@payloadcms/next 4.0.0-internal.5f0cd13 → 4.0.0-internal.688c4d0

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 (705) 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/cjs/withPayload.cjs +1 -0
  19. package/dist/cjs/withPayload.cjs.map +3 -3
  20. package/dist/exports/css.d.ts +3 -0
  21. package/dist/exports/css.d.ts.map +1 -0
  22. package/dist/exports/css.js +3 -0
  23. package/dist/exports/css.js.map +1 -0
  24. package/dist/exports/layouts.d.ts +2 -2
  25. package/dist/exports/layouts.d.ts.map +1 -1
  26. package/dist/exports/layouts.js +2 -2
  27. package/dist/exports/layouts.js.map +1 -1
  28. package/dist/exports/utilities.d.ts +0 -3
  29. package/dist/exports/utilities.d.ts.map +1 -1
  30. package/dist/exports/utilities.js +0 -2
  31. package/dist/exports/utilities.js.map +1 -1
  32. package/dist/exports/views.d.ts +2 -9
  33. package/dist/exports/views.d.ts.map +1 -1
  34. package/dist/exports/views.js +2 -9
  35. package/dist/exports/views.js.map +1 -1
  36. package/dist/prod/styles.css +1 -1
  37. package/dist/withPayload/withPayload.d.ts.map +1 -1
  38. package/dist/withPayload/withPayload.js +1 -0
  39. package/dist/withPayload/withPayload.js.map +1 -1
  40. package/dist/withPayload/withPayload.spec.js +14 -0
  41. package/dist/withPayload/withPayload.spec.js.map +1 -1
  42. package/package.json +8 -7
  43. package/dist/layouts/Root/NestProviders.d.ts +0 -12
  44. package/dist/layouts/Root/NestProviders.d.ts.map +0 -1
  45. package/dist/layouts/Root/NestProviders.js +0 -24
  46. package/dist/layouts/Root/NestProviders.js.map +0 -1
  47. package/dist/layouts/Root/checkDependencies.d.ts +0 -2
  48. package/dist/layouts/Root/checkDependencies.d.ts.map +0 -1
  49. package/dist/layouts/Root/checkDependencies.js +0 -49
  50. package/dist/layouts/Root/checkDependencies.js.map +0 -1
  51. package/dist/layouts/Root/index.d.ts +0 -34
  52. package/dist/layouts/Root/index.d.ts.map +0 -1
  53. package/dist/layouts/Root/index.js +0 -168
  54. package/dist/layouts/Root/index.js.map +0 -1
  55. package/dist/utilities/getHierarchyAncestry.d.ts +0 -24
  56. package/dist/utilities/getHierarchyAncestry.d.ts.map +0 -1
  57. package/dist/utilities/getHierarchyAncestry.js +0 -103
  58. package/dist/utilities/getHierarchyAncestry.js.map +0 -1
  59. package/dist/utilities/getPayloadHMR.d.ts +0 -11
  60. package/dist/utilities/getPayloadHMR.d.ts.map +0 -1
  61. package/dist/utilities/getPayloadHMR.js +0 -15
  62. package/dist/utilities/getPayloadHMR.js.map +0 -1
  63. package/dist/utilities/getPreferences.d.ts +0 -6
  64. package/dist/utilities/getPreferences.d.ts.map +0 -1
  65. package/dist/utilities/getPreferences.js +0 -26
  66. package/dist/utilities/getPreferences.js.map +0 -1
  67. package/dist/utilities/getRequestHighContrast.d.ts +0 -10
  68. package/dist/utilities/getRequestHighContrast.d.ts.map +0 -1
  69. package/dist/utilities/getRequestHighContrast.js +0 -18
  70. package/dist/utilities/getRequestHighContrast.js.map +0 -1
  71. package/dist/utilities/getRequestLocale.d.ts +0 -7
  72. package/dist/utilities/getRequestLocale.d.ts.map +0 -1
  73. package/dist/utilities/getRequestLocale.js +0 -20
  74. package/dist/utilities/getRequestLocale.js.map +0 -1
  75. package/dist/utilities/getRequestTheme.d.ts +0 -11
  76. package/dist/utilities/getRequestTheme.d.ts.map +0 -1
  77. package/dist/utilities/getRequestTheme.js +0 -22
  78. package/dist/utilities/getRequestTheme.js.map +0 -1
  79. package/dist/utilities/getRouteWithoutAdmin.d.ts +0 -5
  80. package/dist/utilities/getRouteWithoutAdmin.d.ts.map +0 -1
  81. package/dist/utilities/getRouteWithoutAdmin.js +0 -7
  82. package/dist/utilities/getRouteWithoutAdmin.js.map +0 -1
  83. package/dist/utilities/handleAuthRedirect.d.ts +0 -12
  84. package/dist/utilities/handleAuthRedirect.d.ts.map +0 -1
  85. package/dist/utilities/handleAuthRedirect.js +0 -41
  86. package/dist/utilities/handleAuthRedirect.js.map +0 -1
  87. package/dist/utilities/handleServerFunctions.d.ts +0 -3
  88. package/dist/utilities/handleServerFunctions.d.ts.map +0 -1
  89. package/dist/utilities/handleServerFunctions.js +0 -58
  90. package/dist/utilities/handleServerFunctions.js.map +0 -1
  91. package/dist/utilities/initReq.d.ts +0 -14
  92. package/dist/utilities/initReq.d.ts.map +0 -1
  93. package/dist/utilities/initReq.js +0 -112
  94. package/dist/utilities/initReq.js.map +0 -1
  95. package/dist/utilities/isCustomAdminView.d.ts +0 -10
  96. package/dist/utilities/isCustomAdminView.d.ts.map +0 -1
  97. package/dist/utilities/isCustomAdminView.js +0 -31
  98. package/dist/utilities/isCustomAdminView.js.map +0 -1
  99. package/dist/utilities/isCustomAdminView.spec.js +0 -90
  100. package/dist/utilities/isCustomAdminView.spec.js.map +0 -1
  101. package/dist/utilities/isPublicAdminRoute.d.ts +0 -7
  102. package/dist/utilities/isPublicAdminRoute.d.ts.map +0 -1
  103. package/dist/utilities/isPublicAdminRoute.js +0 -25
  104. package/dist/utilities/isPublicAdminRoute.js.map +0 -1
  105. package/dist/utilities/meta.d.ts +0 -6
  106. package/dist/utilities/meta.d.ts.map +0 -1
  107. package/dist/utilities/meta.js +0 -105
  108. package/dist/utilities/meta.js.map +0 -1
  109. package/dist/utilities/meta.spec.js +0 -83
  110. package/dist/utilities/meta.spec.js.map +0 -1
  111. package/dist/utilities/selectiveCache.d.ts +0 -12
  112. package/dist/utilities/selectiveCache.d.ts.map +0 -1
  113. package/dist/utilities/selectiveCache.js +0 -38
  114. package/dist/utilities/selectiveCache.js.map +0 -1
  115. package/dist/utilities/slugify.d.ts +0 -15
  116. package/dist/utilities/slugify.d.ts.map +0 -1
  117. package/dist/utilities/slugify.js +0 -47
  118. package/dist/utilities/slugify.js.map +0 -1
  119. package/dist/utilities/timestamp.d.ts +0 -2
  120. package/dist/utilities/timestamp.d.ts.map +0 -1
  121. package/dist/utilities/timestamp.js +0 -8
  122. package/dist/utilities/timestamp.js.map +0 -1
  123. package/dist/views/API/LocaleSelector/index.d.ts +0 -9
  124. package/dist/views/API/LocaleSelector/index.d.ts.map +0 -1
  125. package/dist/views/API/LocaleSelector/index.js +0 -44
  126. package/dist/views/API/LocaleSelector/index.js.map +0 -1
  127. package/dist/views/API/index.client.d.ts +0 -4
  128. package/dist/views/API/index.client.d.ts.map +0 -1
  129. package/dist/views/API/index.client.js +0 -249
  130. package/dist/views/API/index.client.js.map +0 -1
  131. package/dist/views/API/index.css +0 -205
  132. package/dist/views/API/index.d.ts +0 -4
  133. package/dist/views/API/index.d.ts.map +0 -1
  134. package/dist/views/API/index.js +0 -7
  135. package/dist/views/API/index.js.map +0 -1
  136. package/dist/views/API/metadata.d.ts +0 -6
  137. package/dist/views/API/metadata.d.ts.map +0 -1
  138. package/dist/views/API/metadata.js +0 -29
  139. package/dist/views/API/metadata.js.map +0 -1
  140. package/dist/views/Account/ResetPreferences/index.d.ts +0 -5
  141. package/dist/views/Account/ResetPreferences/index.d.ts.map +0 -1
  142. package/dist/views/Account/ResetPreferences/index.js +0 -110
  143. package/dist/views/Account/ResetPreferences/index.js.map +0 -1
  144. package/dist/views/Account/Settings/LanguageSelector.d.ts +0 -6
  145. package/dist/views/Account/Settings/LanguageSelector.d.ts.map +0 -1
  146. package/dist/views/Account/Settings/LanguageSelector.js +0 -52
  147. package/dist/views/Account/Settings/LanguageSelector.js.map +0 -1
  148. package/dist/views/Account/Settings/index.css +0 -26
  149. package/dist/views/Account/Settings/index.d.ts +0 -13
  150. package/dist/views/Account/Settings/index.d.ts.map +0 -1
  151. package/dist/views/Account/Settings/index.js +0 -34
  152. package/dist/views/Account/Settings/index.js.map +0 -1
  153. package/dist/views/Account/ToggleHighContrast/index.d.ts +0 -3
  154. package/dist/views/Account/ToggleHighContrast/index.d.ts.map +0 -1
  155. package/dist/views/Account/ToggleHighContrast/index.js +0 -45
  156. package/dist/views/Account/ToggleHighContrast/index.js.map +0 -1
  157. package/dist/views/Account/ToggleTheme/index.d.ts +0 -3
  158. package/dist/views/Account/ToggleTheme/index.d.ts.map +0 -1
  159. package/dist/views/Account/ToggleTheme/index.js +0 -60
  160. package/dist/views/Account/ToggleTheme/index.js.map +0 -1
  161. package/dist/views/Account/index.client.d.ts +0 -3
  162. package/dist/views/Account/index.client.d.ts.map +0 -1
  163. package/dist/views/Account/index.client.js +0 -37
  164. package/dist/views/Account/index.client.js.map +0 -1
  165. package/dist/views/Account/index.d.ts +0 -4
  166. package/dist/views/Account/index.d.ts.map +0 -1
  167. package/dist/views/Account/index.js +0 -183
  168. package/dist/views/Account/index.js.map +0 -1
  169. package/dist/views/Account/metadata.d.ts +0 -3
  170. package/dist/views/Account/metadata.d.ts.map +0 -1
  171. package/dist/views/Account/metadata.js +0 -14
  172. package/dist/views/Account/metadata.js.map +0 -1
  173. package/dist/views/CollectionTrash/index.d.ts +0 -18
  174. package/dist/views/CollectionTrash/index.d.ts.map +0 -1
  175. package/dist/views/CollectionTrash/index.js +0 -21
  176. package/dist/views/CollectionTrash/index.js.map +0 -1
  177. package/dist/views/CollectionTrash/metadata.d.ts +0 -7
  178. package/dist/views/CollectionTrash/metadata.d.ts.map +0 -1
  179. package/dist/views/CollectionTrash/metadata.js +0 -25
  180. package/dist/views/CollectionTrash/metadata.js.map +0 -1
  181. package/dist/views/CreateFirstUser/index.client.d.ts +0 -10
  182. package/dist/views/CreateFirstUser/index.client.d.ts.map +0 -1
  183. package/dist/views/CreateFirstUser/index.client.js +0 -119
  184. package/dist/views/CreateFirstUser/index.client.js.map +0 -1
  185. package/dist/views/CreateFirstUser/index.css +0 -69
  186. package/dist/views/CreateFirstUser/index.d.ts +0 -5
  187. package/dist/views/CreateFirstUser/index.d.ts.map +0 -1
  188. package/dist/views/CreateFirstUser/index.js +0 -92
  189. package/dist/views/CreateFirstUser/index.js.map +0 -1
  190. package/dist/views/CreateFirstUser/metadata.d.ts +0 -3
  191. package/dist/views/CreateFirstUser/metadata.d.ts.map +0 -1
  192. package/dist/views/CreateFirstUser/metadata.js +0 -14
  193. package/dist/views/CreateFirstUser/metadata.js.map +0 -1
  194. package/dist/views/Dashboard/Default/ModularDashboard/DashboardStepNav.d.ts +0 -19
  195. package/dist/views/Dashboard/Default/ModularDashboard/DashboardStepNav.d.ts.map +0 -1
  196. package/dist/views/Dashboard/Default/ModularDashboard/DashboardStepNav.js +0 -209
  197. package/dist/views/Dashboard/Default/ModularDashboard/DashboardStepNav.js.map +0 -1
  198. package/dist/views/Dashboard/Default/ModularDashboard/WidgetConfigDrawer.d.ts +0 -11
  199. package/dist/views/Dashboard/Default/ModularDashboard/WidgetConfigDrawer.d.ts.map +0 -1
  200. package/dist/views/Dashboard/Default/ModularDashboard/WidgetConfigDrawer.js +0 -131
  201. package/dist/views/Dashboard/Default/ModularDashboard/WidgetConfigDrawer.js.map +0 -1
  202. package/dist/views/Dashboard/Default/ModularDashboard/WidgetEditControl.d.ts +0 -8
  203. package/dist/views/Dashboard/Default/ModularDashboard/WidgetEditControl.d.ts.map +0 -1
  204. package/dist/views/Dashboard/Default/ModularDashboard/WidgetEditControl.js +0 -78
  205. package/dist/views/Dashboard/Default/ModularDashboard/WidgetEditControl.js.map +0 -1
  206. package/dist/views/Dashboard/Default/ModularDashboard/index.client.d.ts +0 -22
  207. package/dist/views/Dashboard/Default/ModularDashboard/index.client.d.ts.map +0 -1
  208. package/dist/views/Dashboard/Default/ModularDashboard/index.client.js +0 -440
  209. package/dist/views/Dashboard/Default/ModularDashboard/index.client.js.map +0 -1
  210. package/dist/views/Dashboard/Default/ModularDashboard/index.css +0 -299
  211. package/dist/views/Dashboard/Default/ModularDashboard/index.d.ts +0 -5
  212. package/dist/views/Dashboard/Default/ModularDashboard/index.d.ts.map +0 -1
  213. package/dist/views/Dashboard/Default/ModularDashboard/index.js +0 -72
  214. package/dist/views/Dashboard/Default/ModularDashboard/index.js.map +0 -1
  215. package/dist/views/Dashboard/Default/ModularDashboard/renderWidget/RenderWidget.d.ts +0 -15
  216. package/dist/views/Dashboard/Default/ModularDashboard/renderWidget/RenderWidget.d.ts.map +0 -1
  217. package/dist/views/Dashboard/Default/ModularDashboard/renderWidget/RenderWidget.js +0 -106
  218. package/dist/views/Dashboard/Default/ModularDashboard/renderWidget/RenderWidget.js.map +0 -1
  219. package/dist/views/Dashboard/Default/ModularDashboard/renderWidget/getDefaultLayoutServerFn.d.ts +0 -12
  220. package/dist/views/Dashboard/Default/ModularDashboard/renderWidget/getDefaultLayoutServerFn.d.ts.map +0 -1
  221. package/dist/views/Dashboard/Default/ModularDashboard/renderWidget/getDefaultLayoutServerFn.js +0 -65
  222. package/dist/views/Dashboard/Default/ModularDashboard/renderWidget/getDefaultLayoutServerFn.js.map +0 -1
  223. package/dist/views/Dashboard/Default/ModularDashboard/renderWidget/renderWidgetServerFn.d.ts +0 -21
  224. package/dist/views/Dashboard/Default/ModularDashboard/renderWidget/renderWidgetServerFn.d.ts.map +0 -1
  225. package/dist/views/Dashboard/Default/ModularDashboard/renderWidget/renderWidgetServerFn.js +0 -80
  226. package/dist/views/Dashboard/Default/ModularDashboard/renderWidget/renderWidgetServerFn.js.map +0 -1
  227. package/dist/views/Dashboard/Default/ModularDashboard/useDashboardLayout.d.ts +0 -21
  228. package/dist/views/Dashboard/Default/ModularDashboard/useDashboardLayout.d.ts.map +0 -1
  229. package/dist/views/Dashboard/Default/ModularDashboard/useDashboardLayout.js +0 -188
  230. package/dist/views/Dashboard/Default/ModularDashboard/useDashboardLayout.js.map +0 -1
  231. package/dist/views/Dashboard/Default/ModularDashboard/utils/collisionDetection.d.ts +0 -7
  232. package/dist/views/Dashboard/Default/ModularDashboard/utils/collisionDetection.d.ts.map +0 -1
  233. package/dist/views/Dashboard/Default/ModularDashboard/utils/collisionDetection.js +0 -38
  234. package/dist/views/Dashboard/Default/ModularDashboard/utils/collisionDetection.js.map +0 -1
  235. package/dist/views/Dashboard/Default/ModularDashboard/utils/getItemsFromConfig.d.ts +0 -4
  236. package/dist/views/Dashboard/Default/ModularDashboard/utils/getItemsFromConfig.d.ts.map +0 -1
  237. package/dist/views/Dashboard/Default/ModularDashboard/utils/getItemsFromConfig.js +0 -21
  238. package/dist/views/Dashboard/Default/ModularDashboard/utils/getItemsFromConfig.js.map +0 -1
  239. package/dist/views/Dashboard/Default/ModularDashboard/utils/getItemsFromPreferences.d.ts +0 -4
  240. package/dist/views/Dashboard/Default/ModularDashboard/utils/getItemsFromPreferences.d.ts.map +0 -1
  241. package/dist/views/Dashboard/Default/ModularDashboard/utils/getItemsFromPreferences.js +0 -10
  242. package/dist/views/Dashboard/Default/ModularDashboard/utils/getItemsFromPreferences.js.map +0 -1
  243. package/dist/views/Dashboard/Default/ModularDashboard/utils/localeUtils.d.ts +0 -23
  244. package/dist/views/Dashboard/Default/ModularDashboard/utils/localeUtils.d.ts.map +0 -1
  245. package/dist/views/Dashboard/Default/ModularDashboard/utils/localeUtils.js +0 -103
  246. package/dist/views/Dashboard/Default/ModularDashboard/utils/localeUtils.js.map +0 -1
  247. package/dist/views/Dashboard/Default/ModularDashboard/utils/sensors.d.ts +0 -2
  248. package/dist/views/Dashboard/Default/ModularDashboard/utils/sensors.d.ts.map +0 -1
  249. package/dist/views/Dashboard/Default/ModularDashboard/utils/sensors.js +0 -269
  250. package/dist/views/Dashboard/Default/ModularDashboard/utils/sensors.js.map +0 -1
  251. package/dist/views/Dashboard/Default/index.d.ts +0 -21
  252. package/dist/views/Dashboard/Default/index.d.ts.map +0 -1
  253. package/dist/views/Dashboard/Default/index.js +0 -55
  254. package/dist/views/Dashboard/Default/index.js.map +0 -1
  255. package/dist/views/Dashboard/index.d.ts +0 -4
  256. package/dist/views/Dashboard/index.d.ts.map +0 -1
  257. package/dist/views/Dashboard/index.js +0 -51
  258. package/dist/views/Dashboard/index.js.map +0 -1
  259. package/dist/views/Dashboard/metadata.d.ts +0 -3
  260. package/dist/views/Dashboard/metadata.d.ts.map +0 -1
  261. package/dist/views/Dashboard/metadata.js +0 -16
  262. package/dist/views/Dashboard/metadata.js.map +0 -1
  263. package/dist/views/Document/getCustomDocumentViewByKey.d.ts +0 -3
  264. package/dist/views/Document/getCustomDocumentViewByKey.d.ts.map +0 -1
  265. package/dist/views/Document/getCustomDocumentViewByKey.js +0 -4
  266. package/dist/views/Document/getCustomDocumentViewByKey.js.map +0 -1
  267. package/dist/views/Document/getCustomViewByRoute.d.ts +0 -10
  268. package/dist/views/Document/getCustomViewByRoute.d.ts.map +0 -1
  269. package/dist/views/Document/getCustomViewByRoute.js +0 -35
  270. package/dist/views/Document/getCustomViewByRoute.js.map +0 -1
  271. package/dist/views/Document/getDocPreferences.d.ts +0 -11
  272. package/dist/views/Document/getDocPreferences.d.ts.map +0 -1
  273. package/dist/views/Document/getDocPreferences.js +0 -45
  274. package/dist/views/Document/getDocPreferences.js.map +0 -1
  275. package/dist/views/Document/getDocumentData.d.ts +0 -14
  276. package/dist/views/Document/getDocumentData.d.ts.map +0 -1
  277. package/dist/views/Document/getDocumentData.js +0 -60
  278. package/dist/views/Document/getDocumentData.js.map +0 -1
  279. package/dist/views/Document/getDocumentPermissions.d.ts +0 -18
  280. package/dist/views/Document/getDocumentPermissions.d.ts.map +0 -1
  281. package/dist/views/Document/getDocumentPermissions.js +0 -124
  282. package/dist/views/Document/getDocumentPermissions.js.map +0 -1
  283. package/dist/views/Document/getDocumentView.d.ts +0 -18
  284. package/dist/views/Document/getDocumentView.d.ts.map +0 -1
  285. package/dist/views/Document/getDocumentView.js +0 -304
  286. package/dist/views/Document/getDocumentView.js.map +0 -1
  287. package/dist/views/Document/getIsLocked.d.ts +0 -16
  288. package/dist/views/Document/getIsLocked.d.ts.map +0 -1
  289. package/dist/views/Document/getIsLocked.js +0 -79
  290. package/dist/views/Document/getIsLocked.js.map +0 -1
  291. package/dist/views/Document/getMetaBySegment.d.ts +0 -11
  292. package/dist/views/Document/getMetaBySegment.d.ts.map +0 -1
  293. package/dist/views/Document/getMetaBySegment.js +0 -150
  294. package/dist/views/Document/getMetaBySegment.js.map +0 -1
  295. package/dist/views/Document/getVersions.d.ts +0 -26
  296. package/dist/views/Document/getVersions.d.ts.map +0 -1
  297. package/dist/views/Document/getVersions.js +0 -230
  298. package/dist/views/Document/getVersions.js.map +0 -1
  299. package/dist/views/Document/handleServerFunction.d.ts +0 -3
  300. package/dist/views/Document/handleServerFunction.d.ts.map +0 -1
  301. package/dist/views/Document/handleServerFunction.js +0 -134
  302. package/dist/views/Document/handleServerFunction.js.map +0 -1
  303. package/dist/views/Document/index.d.ts +0 -25
  304. package/dist/views/Document/index.d.ts.map +0 -1
  305. package/dist/views/Document/index.js +0 -398
  306. package/dist/views/Document/index.js.map +0 -1
  307. package/dist/views/Document/metadata.d.ts +0 -3
  308. package/dist/views/Document/metadata.d.ts.map +0 -1
  309. package/dist/views/Document/metadata.js +0 -3
  310. package/dist/views/Document/metadata.js.map +0 -1
  311. package/dist/views/Document/renderDocumentSlots.d.ts +0 -15
  312. package/dist/views/Document/renderDocumentSlots.d.ts.map +0 -1
  313. package/dist/views/Document/renderDocumentSlots.js +0 -178
  314. package/dist/views/Document/renderDocumentSlots.js.map +0 -1
  315. package/dist/views/Edit/index.d.ts +0 -4
  316. package/dist/views/Edit/index.d.ts.map +0 -1
  317. package/dist/views/Edit/index.js +0 -11
  318. package/dist/views/Edit/index.js.map +0 -1
  319. package/dist/views/Edit/metadata.d.ts +0 -6
  320. package/dist/views/Edit/metadata.d.ts.map +0 -1
  321. package/dist/views/Edit/metadata.js +0 -52
  322. package/dist/views/Edit/metadata.js.map +0 -1
  323. package/dist/views/ForgotPassword/ForgotPasswordForm/index.d.ts +0 -3
  324. package/dist/views/ForgotPassword/ForgotPasswordForm/index.d.ts.map +0 -1
  325. package/dist/views/ForgotPassword/ForgotPasswordForm/index.js +0 -181
  326. package/dist/views/ForgotPassword/ForgotPasswordForm/index.js.map +0 -1
  327. package/dist/views/ForgotPassword/index.d.ts +0 -5
  328. package/dist/views/ForgotPassword/index.d.ts.map +0 -1
  329. package/dist/views/ForgotPassword/index.js +0 -72
  330. package/dist/views/ForgotPassword/index.js.map +0 -1
  331. package/dist/views/ForgotPassword/metadata.d.ts +0 -3
  332. package/dist/views/ForgotPassword/metadata.d.ts.map +0 -1
  333. package/dist/views/ForgotPassword/metadata.js +0 -14
  334. package/dist/views/ForgotPassword/metadata.js.map +0 -1
  335. package/dist/views/Hierarchy/index.d.ts +0 -18
  336. package/dist/views/Hierarchy/index.d.ts.map +0 -1
  337. package/dist/views/Hierarchy/index.js +0 -20
  338. package/dist/views/Hierarchy/index.js.map +0 -1
  339. package/dist/views/List/createSerializableValue.d.ts +0 -2
  340. package/dist/views/List/createSerializableValue.d.ts.map +0 -1
  341. package/dist/views/List/createSerializableValue.js +0 -14
  342. package/dist/views/List/createSerializableValue.js.map +0 -1
  343. package/dist/views/List/enrichDocsWithVersionStatus.d.ts +0 -14
  344. package/dist/views/List/enrichDocsWithVersionStatus.d.ts.map +0 -1
  345. package/dist/views/List/enrichDocsWithVersionStatus.js +0 -96
  346. package/dist/views/List/enrichDocsWithVersionStatus.js.map +0 -1
  347. package/dist/views/List/extractRelationshipDisplayValue.d.ts +0 -3
  348. package/dist/views/List/extractRelationshipDisplayValue.d.ts.map +0 -1
  349. package/dist/views/List/extractRelationshipDisplayValue.js +0 -17
  350. package/dist/views/List/extractRelationshipDisplayValue.js.map +0 -1
  351. package/dist/views/List/extractValueOrRelationshipID.d.ts +0 -2
  352. package/dist/views/List/extractValueOrRelationshipID.d.ts.map +0 -1
  353. package/dist/views/List/extractValueOrRelationshipID.js +0 -19
  354. package/dist/views/List/extractValueOrRelationshipID.js.map +0 -1
  355. package/dist/views/List/handleGroupBy.d.ts +0 -24
  356. package/dist/views/List/handleGroupBy.d.ts.map +0 -1
  357. package/dist/views/List/handleGroupBy.js +0 -168
  358. package/dist/views/List/handleGroupBy.js.map +0 -1
  359. package/dist/views/List/handleHierarchy.d.ts +0 -18
  360. package/dist/views/List/handleHierarchy.d.ts.map +0 -1
  361. package/dist/views/List/handleHierarchy.js +0 -259
  362. package/dist/views/List/handleHierarchy.js.map +0 -1
  363. package/dist/views/List/handleServerFunction.d.ts +0 -4
  364. package/dist/views/List/handleServerFunction.d.ts.map +0 -1
  365. package/dist/views/List/handleServerFunction.js +0 -131
  366. package/dist/views/List/handleServerFunction.js.map +0 -1
  367. package/dist/views/List/index.css +0 -3
  368. package/dist/views/List/index.d.ts +0 -43
  369. package/dist/views/List/index.d.ts.map +0 -1
  370. package/dist/views/List/index.js +0 -445
  371. package/dist/views/List/index.js.map +0 -1
  372. package/dist/views/List/metadata.d.ts +0 -7
  373. package/dist/views/List/metadata.d.ts.map +0 -1
  374. package/dist/views/List/metadata.js +0 -24
  375. package/dist/views/List/metadata.js.map +0 -1
  376. package/dist/views/List/renderListViewSlots.d.ts +0 -12
  377. package/dist/views/List/renderListViewSlots.d.ts.map +0 -1
  378. package/dist/views/List/renderListViewSlots.js +0 -81
  379. package/dist/views/List/renderListViewSlots.js.map +0 -1
  380. package/dist/views/List/resolveAllFilterOptions.d.ts +0 -8
  381. package/dist/views/List/resolveAllFilterOptions.d.ts.map +0 -1
  382. package/dist/views/List/resolveAllFilterOptions.js +0 -49
  383. package/dist/views/List/resolveAllFilterOptions.js.map +0 -1
  384. package/dist/views/List/transformColumnsToSelect.d.ts +0 -3
  385. package/dist/views/List/transformColumnsToSelect.d.ts.map +0 -1
  386. package/dist/views/List/transformColumnsToSelect.js +0 -11
  387. package/dist/views/List/transformColumnsToSelect.js.map +0 -1
  388. package/dist/views/Login/LoginField/index.d.ts +0 -9
  389. package/dist/views/Login/LoginField/index.d.ts.map +0 -1
  390. package/dist/views/Login/LoginField/index.js +0 -98
  391. package/dist/views/Login/LoginField/index.js.map +0 -1
  392. package/dist/views/Login/LoginForm/index.css +0 -48
  393. package/dist/views/Login/LoginForm/index.d.ts +0 -11
  394. package/dist/views/Login/LoginForm/index.d.ts.map +0 -1
  395. package/dist/views/Login/LoginForm/index.js +0 -184
  396. package/dist/views/Login/LoginForm/index.js.map +0 -1
  397. package/dist/views/Login/index.css +0 -8
  398. package/dist/views/Login/index.d.ts +0 -6
  399. package/dist/views/Login/index.d.ts.map +0 -1
  400. package/dist/views/Login/index.js +0 -98
  401. package/dist/views/Login/index.js.map +0 -1
  402. package/dist/views/Login/metadata.d.ts +0 -3
  403. package/dist/views/Login/metadata.d.ts.map +0 -1
  404. package/dist/views/Login/metadata.js +0 -14
  405. package/dist/views/Login/metadata.js.map +0 -1
  406. package/dist/views/Logout/LogoutClient.d.ts +0 -18
  407. package/dist/views/Logout/LogoutClient.d.ts.map +0 -1
  408. package/dist/views/Logout/LogoutClient.js +0 -140
  409. package/dist/views/Logout/LogoutClient.js.map +0 -1
  410. package/dist/views/Logout/index.d.ts +0 -8
  411. package/dist/views/Logout/index.d.ts.map +0 -1
  412. package/dist/views/Logout/index.js +0 -36
  413. package/dist/views/Logout/index.js.map +0 -1
  414. package/dist/views/Logout/metadata.d.ts +0 -3
  415. package/dist/views/Logout/metadata.d.ts.map +0 -1
  416. package/dist/views/Logout/metadata.js +0 -13
  417. package/dist/views/Logout/metadata.js.map +0 -1
  418. package/dist/views/NotFound/index.client.d.ts +0 -4
  419. package/dist/views/NotFound/index.client.d.ts.map +0 -1
  420. package/dist/views/NotFound/index.client.js +0 -71
  421. package/dist/views/NotFound/index.client.js.map +0 -1
  422. package/dist/views/NotFound/index.css +0 -47
  423. package/dist/views/NotFound/index.d.ts +0 -21
  424. package/dist/views/NotFound/index.d.ts.map +0 -1
  425. package/dist/views/NotFound/index.js +0 -86
  426. package/dist/views/NotFound/index.js.map +0 -1
  427. package/dist/views/NotFound/metadata.d.ts +0 -8
  428. package/dist/views/NotFound/metadata.d.ts.map +0 -1
  429. package/dist/views/NotFound/metadata.js +0 -11
  430. package/dist/views/NotFound/metadata.js.map +0 -1
  431. package/dist/views/ResetPassword/ResetPasswordForm/index.d.ts +0 -7
  432. package/dist/views/ResetPassword/ResetPasswordForm/index.d.ts.map +0 -1
  433. package/dist/views/ResetPassword/ResetPasswordForm/index.js +0 -117
  434. package/dist/views/ResetPassword/ResetPasswordForm/index.js.map +0 -1
  435. package/dist/views/ResetPassword/index.d.ts +0 -6
  436. package/dist/views/ResetPassword/index.d.ts.map +0 -1
  437. package/dist/views/ResetPassword/index.js +0 -83
  438. package/dist/views/ResetPassword/index.js.map +0 -1
  439. package/dist/views/ResetPassword/metadata.d.ts +0 -3
  440. package/dist/views/ResetPassword/metadata.d.ts.map +0 -1
  441. package/dist/views/ResetPassword/metadata.js +0 -14
  442. package/dist/views/ResetPassword/metadata.js.map +0 -1
  443. package/dist/views/Root/attachViewActions.d.ts +0 -10
  444. package/dist/views/Root/attachViewActions.d.ts.map +0 -1
  445. package/dist/views/Root/attachViewActions.js +0 -27
  446. package/dist/views/Root/attachViewActions.js.map +0 -1
  447. package/dist/views/Root/generateCustomViewMetadata.d.ts +0 -11
  448. package/dist/views/Root/generateCustomViewMetadata.d.ts.map +0 -1
  449. package/dist/views/Root/generateCustomViewMetadata.js +0 -25
  450. package/dist/views/Root/generateCustomViewMetadata.js.map +0 -1
  451. package/dist/views/Root/getCustomCollectionViewByRoute.d.ts +0 -12
  452. package/dist/views/Root/getCustomCollectionViewByRoute.d.ts.map +0 -1
  453. package/dist/views/Root/getCustomCollectionViewByRoute.js +0 -48
  454. package/dist/views/Root/getCustomCollectionViewByRoute.js.map +0 -1
  455. package/dist/views/Root/getCustomCollectionViewByRoute.spec.js +0 -168
  456. package/dist/views/Root/getCustomCollectionViewByRoute.spec.js.map +0 -1
  457. package/dist/views/Root/getCustomGlobalViewByRoute.d.ts +0 -12
  458. package/dist/views/Root/getCustomGlobalViewByRoute.d.ts.map +0 -1
  459. package/dist/views/Root/getCustomGlobalViewByRoute.js +0 -46
  460. package/dist/views/Root/getCustomGlobalViewByRoute.js.map +0 -1
  461. package/dist/views/Root/getCustomViewByKey.d.ts +0 -10
  462. package/dist/views/Root/getCustomViewByKey.d.ts.map +0 -1
  463. package/dist/views/Root/getCustomViewByKey.js +0 -16
  464. package/dist/views/Root/getCustomViewByKey.js.map +0 -1
  465. package/dist/views/Root/getCustomViewByRoute.d.ts +0 -11
  466. package/dist/views/Root/getCustomViewByRoute.d.ts.map +0 -1
  467. package/dist/views/Root/getCustomViewByRoute.js +0 -48
  468. package/dist/views/Root/getCustomViewByRoute.js.map +0 -1
  469. package/dist/views/Root/getDocumentViewInfo.d.ts +0 -6
  470. package/dist/views/Root/getDocumentViewInfo.d.ts.map +0 -1
  471. package/dist/views/Root/getDocumentViewInfo.js +0 -28
  472. package/dist/views/Root/getDocumentViewInfo.js.map +0 -1
  473. package/dist/views/Root/getRouteData.d.ts +0 -45
  474. package/dist/views/Root/getRouteData.d.ts.map +0 -1
  475. package/dist/views/Root/getRouteData.js +0 -349
  476. package/dist/views/Root/getRouteData.js.map +0 -1
  477. package/dist/views/Root/index.d.ts +0 -23
  478. package/dist/views/Root/index.d.ts.map +0 -1
  479. package/dist/views/Root/index.js +0 -297
  480. package/dist/views/Root/index.js.map +0 -1
  481. package/dist/views/Root/isPathMatchingRoute.d.ts +0 -8
  482. package/dist/views/Root/isPathMatchingRoute.d.ts.map +0 -1
  483. package/dist/views/Root/isPathMatchingRoute.js +0 -33
  484. package/dist/views/Root/isPathMatchingRoute.js.map +0 -1
  485. package/dist/views/Root/isPathMatchingRoute.spec.js +0 -178
  486. package/dist/views/Root/isPathMatchingRoute.spec.js.map +0 -1
  487. package/dist/views/Root/metadata.d.ts.map +0 -1
  488. package/dist/views/Root/metadata.js +0 -173
  489. package/dist/views/Root/metadata.js.map +0 -1
  490. package/dist/views/Unauthorized/index.css +0 -44
  491. package/dist/views/Unauthorized/index.d.ts +0 -6
  492. package/dist/views/Unauthorized/index.d.ts.map +0 -1
  493. package/dist/views/Unauthorized/index.js +0 -33
  494. package/dist/views/Unauthorized/index.js.map +0 -1
  495. package/dist/views/Unauthorized/metadata.d.ts +0 -3
  496. package/dist/views/Unauthorized/metadata.d.ts.map +0 -1
  497. package/dist/views/Unauthorized/metadata.js +0 -14
  498. package/dist/views/Unauthorized/metadata.js.map +0 -1
  499. package/dist/views/Verify/index.client.d.ts +0 -7
  500. package/dist/views/Verify/index.client.d.ts.map +0 -1
  501. package/dist/views/Verify/index.client.js +0 -50
  502. package/dist/views/Verify/index.client.js.map +0 -1
  503. package/dist/views/Verify/index.d.ts +0 -6
  504. package/dist/views/Verify/index.d.ts.map +0 -1
  505. package/dist/views/Verify/index.js +0 -72
  506. package/dist/views/Verify/index.js.map +0 -1
  507. package/dist/views/Verify/metadata.d.ts +0 -3
  508. package/dist/views/Verify/metadata.d.ts.map +0 -1
  509. package/dist/views/Verify/metadata.js +0 -14
  510. package/dist/views/Verify/metadata.js.map +0 -1
  511. package/dist/views/Version/Default/SelectedLocalesContext.d.ts +0 -7
  512. package/dist/views/Version/Default/SelectedLocalesContext.d.ts.map +0 -1
  513. package/dist/views/Version/Default/SelectedLocalesContext.js +0 -8
  514. package/dist/views/Version/Default/SelectedLocalesContext.js.map +0 -1
  515. package/dist/views/Version/Default/SetStepNav.d.ts +0 -11
  516. package/dist/views/Version/Default/SetStepNav.d.ts.map +0 -1
  517. package/dist/views/Version/Default/SetStepNav.js +0 -135
  518. package/dist/views/Version/Default/SetStepNav.js.map +0 -1
  519. package/dist/views/Version/Default/index.css +0 -227
  520. package/dist/views/Version/Default/index.d.ts +0 -5
  521. package/dist/views/Version/Default/index.d.ts.map +0 -1
  522. package/dist/views/Version/Default/index.js +0 -255
  523. package/dist/views/Version/Default/index.js.map +0 -1
  524. package/dist/views/Version/Default/types.d.ts +0 -23
  525. package/dist/views/Version/Default/types.d.ts.map +0 -1
  526. package/dist/views/Version/Default/types.js +0 -2
  527. package/dist/views/Version/Default/types.js.map +0 -1
  528. package/dist/views/Version/RenderFieldsToDiff/DiffCollapser/index.css +0 -64
  529. package/dist/views/Version/RenderFieldsToDiff/DiffCollapser/index.d.ts +0 -27
  530. package/dist/views/Version/RenderFieldsToDiff/DiffCollapser/index.d.ts.map +0 -1
  531. package/dist/views/Version/RenderFieldsToDiff/DiffCollapser/index.js +0 -136
  532. package/dist/views/Version/RenderFieldsToDiff/DiffCollapser/index.js.map +0 -1
  533. package/dist/views/Version/RenderFieldsToDiff/RenderVersionFieldsToDiff.d.ts +0 -12
  534. package/dist/views/Version/RenderFieldsToDiff/RenderVersionFieldsToDiff.d.ts.map +0 -1
  535. package/dist/views/Version/RenderFieldsToDiff/RenderVersionFieldsToDiff.js +0 -80
  536. package/dist/views/Version/RenderFieldsToDiff/RenderVersionFieldsToDiff.js.map +0 -1
  537. package/dist/views/Version/RenderFieldsToDiff/buildVersionFields.d.ts +0 -31
  538. package/dist/views/Version/RenderFieldsToDiff/buildVersionFields.d.ts.map +0 -1
  539. package/dist/views/Version/RenderFieldsToDiff/buildVersionFields.js +0 -439
  540. package/dist/views/Version/RenderFieldsToDiff/buildVersionFields.js.map +0 -1
  541. package/dist/views/Version/RenderFieldsToDiff/fields/Checkbox/index.css +0 -97
  542. package/dist/views/Version/RenderFieldsToDiff/fields/Checkbox/index.d.ts +0 -4
  543. package/dist/views/Version/RenderFieldsToDiff/fields/Checkbox/index.d.ts.map +0 -1
  544. package/dist/views/Version/RenderFieldsToDiff/fields/Checkbox/index.js +0 -91
  545. package/dist/views/Version/RenderFieldsToDiff/fields/Checkbox/index.js.map +0 -1
  546. package/dist/views/Version/RenderFieldsToDiff/fields/Collapsible/index.d.ts +0 -3
  547. package/dist/views/Version/RenderFieldsToDiff/fields/Collapsible/index.d.ts.map +0 -1
  548. package/dist/views/Version/RenderFieldsToDiff/fields/Collapsible/index.js +0 -61
  549. package/dist/views/Version/RenderFieldsToDiff/fields/Collapsible/index.js.map +0 -1
  550. package/dist/views/Version/RenderFieldsToDiff/fields/Date/index.css +0 -29
  551. package/dist/views/Version/RenderFieldsToDiff/fields/Date/index.d.ts +0 -4
  552. package/dist/views/Version/RenderFieldsToDiff/fields/Date/index.d.ts.map +0 -1
  553. package/dist/views/Version/RenderFieldsToDiff/fields/Date/index.js +0 -83
  554. package/dist/views/Version/RenderFieldsToDiff/fields/Date/index.js.map +0 -1
  555. package/dist/views/Version/RenderFieldsToDiff/fields/Group/index.css +0 -5
  556. package/dist/views/Version/RenderFieldsToDiff/fields/Group/index.d.ts +0 -4
  557. package/dist/views/Version/RenderFieldsToDiff/fields/Group/index.d.ts.map +0 -1
  558. package/dist/views/Version/RenderFieldsToDiff/fields/Group/index.js +0 -66
  559. package/dist/views/Version/RenderFieldsToDiff/fields/Group/index.js.map +0 -1
  560. package/dist/views/Version/RenderFieldsToDiff/fields/Iterable/index.css +0 -40
  561. package/dist/views/Version/RenderFieldsToDiff/fields/Iterable/index.d.ts +0 -5
  562. package/dist/views/Version/RenderFieldsToDiff/fields/Iterable/index.d.ts.map +0 -1
  563. package/dist/views/Version/RenderFieldsToDiff/fields/Iterable/index.js +0 -126
  564. package/dist/views/Version/RenderFieldsToDiff/fields/Iterable/index.js.map +0 -1
  565. package/dist/views/Version/RenderFieldsToDiff/fields/Relationship/generateLabelFromValue.d.ts +0 -10
  566. package/dist/views/Version/RenderFieldsToDiff/fields/Relationship/generateLabelFromValue.d.ts.map +0 -1
  567. package/dist/views/Version/RenderFieldsToDiff/fields/Relationship/generateLabelFromValue.js +0 -67
  568. package/dist/views/Version/RenderFieldsToDiff/fields/Relationship/generateLabelFromValue.js.map +0 -1
  569. package/dist/views/Version/RenderFieldsToDiff/fields/Relationship/index.css +0 -213
  570. package/dist/views/Version/RenderFieldsToDiff/fields/Relationship/index.d.ts +0 -21
  571. package/dist/views/Version/RenderFieldsToDiff/fields/Relationship/index.d.ts.map +0 -1
  572. package/dist/views/Version/RenderFieldsToDiff/fields/Relationship/index.js +0 -238
  573. package/dist/views/Version/RenderFieldsToDiff/fields/Relationship/index.js.map +0 -1
  574. package/dist/views/Version/RenderFieldsToDiff/fields/Row/index.d.ts +0 -3
  575. package/dist/views/Version/RenderFieldsToDiff/fields/Row/index.d.ts.map +0 -1
  576. package/dist/views/Version/RenderFieldsToDiff/fields/Row/index.js +0 -17
  577. package/dist/views/Version/RenderFieldsToDiff/fields/Row/index.js.map +0 -1
  578. package/dist/views/Version/RenderFieldsToDiff/fields/Select/index.css +0 -4
  579. package/dist/views/Version/RenderFieldsToDiff/fields/Select/index.d.ts +0 -4
  580. package/dist/views/Version/RenderFieldsToDiff/fields/Select/index.d.ts.map +0 -1
  581. package/dist/views/Version/RenderFieldsToDiff/fields/Select/index.js +0 -94
  582. package/dist/views/Version/RenderFieldsToDiff/fields/Select/index.js.map +0 -1
  583. package/dist/views/Version/RenderFieldsToDiff/fields/Tabs/index.css +0 -6
  584. package/dist/views/Version/RenderFieldsToDiff/fields/Tabs/index.d.ts +0 -4
  585. package/dist/views/Version/RenderFieldsToDiff/fields/Tabs/index.d.ts.map +0 -1
  586. package/dist/views/Version/RenderFieldsToDiff/fields/Tabs/index.js +0 -158
  587. package/dist/views/Version/RenderFieldsToDiff/fields/Tabs/index.js.map +0 -1
  588. package/dist/views/Version/RenderFieldsToDiff/fields/Text/index.css +0 -4
  589. package/dist/views/Version/RenderFieldsToDiff/fields/Text/index.d.ts +0 -4
  590. package/dist/views/Version/RenderFieldsToDiff/fields/Text/index.d.ts.map +0 -1
  591. package/dist/views/Version/RenderFieldsToDiff/fields/Text/index.js +0 -109
  592. package/dist/views/Version/RenderFieldsToDiff/fields/Text/index.js.map +0 -1
  593. package/dist/views/Version/RenderFieldsToDiff/fields/Upload/index.css +0 -188
  594. package/dist/views/Version/RenderFieldsToDiff/fields/Upload/index.d.ts +0 -33
  595. package/dist/views/Version/RenderFieldsToDiff/fields/Upload/index.d.ts.map +0 -1
  596. package/dist/views/Version/RenderFieldsToDiff/fields/Upload/index.js +0 -262
  597. package/dist/views/Version/RenderFieldsToDiff/fields/Upload/index.js.map +0 -1
  598. package/dist/views/Version/RenderFieldsToDiff/fields/index.d.ts +0 -3
  599. package/dist/views/Version/RenderFieldsToDiff/fields/index.d.ts.map +0 -1
  600. package/dist/views/Version/RenderFieldsToDiff/fields/index.js +0 -36
  601. package/dist/views/Version/RenderFieldsToDiff/fields/index.js.map +0 -1
  602. package/dist/views/Version/RenderFieldsToDiff/index.css +0 -24
  603. package/dist/views/Version/RenderFieldsToDiff/index.d.ts +0 -3
  604. package/dist/views/Version/RenderFieldsToDiff/index.d.ts.map +0 -1
  605. package/dist/views/Version/RenderFieldsToDiff/index.js +0 -13
  606. package/dist/views/Version/RenderFieldsToDiff/index.js.map +0 -1
  607. package/dist/views/Version/RenderFieldsToDiff/utilities/countChangedFields.d.ts +0 -25
  608. package/dist/views/Version/RenderFieldsToDiff/utilities/countChangedFields.d.ts.map +0 -1
  609. package/dist/views/Version/RenderFieldsToDiff/utilities/countChangedFields.js +0 -242
  610. package/dist/views/Version/RenderFieldsToDiff/utilities/countChangedFields.js.map +0 -1
  611. package/dist/views/Version/RenderFieldsToDiff/utilities/countChangedFields.spec.js +0 -861
  612. package/dist/views/Version/RenderFieldsToDiff/utilities/countChangedFields.spec.js.map +0 -1
  613. package/dist/views/Version/RenderFieldsToDiff/utilities/fieldHasChanges.d.ts +0 -2
  614. package/dist/views/Version/RenderFieldsToDiff/utilities/fieldHasChanges.d.ts.map +0 -1
  615. package/dist/views/Version/RenderFieldsToDiff/utilities/fieldHasChanges.js +0 -4
  616. package/dist/views/Version/RenderFieldsToDiff/utilities/fieldHasChanges.js.map +0 -1
  617. package/dist/views/Version/RenderFieldsToDiff/utilities/fieldHasChanges.spec.js +0 -47
  618. package/dist/views/Version/RenderFieldsToDiff/utilities/fieldHasChanges.spec.js.map +0 -1
  619. package/dist/views/Version/RenderFieldsToDiff/utilities/getFieldsForRowComparison.d.ts +0 -19
  620. package/dist/views/Version/RenderFieldsToDiff/utilities/getFieldsForRowComparison.d.ts.map +0 -1
  621. package/dist/views/Version/RenderFieldsToDiff/utilities/getFieldsForRowComparison.js +0 -45
  622. package/dist/views/Version/RenderFieldsToDiff/utilities/getFieldsForRowComparison.js.map +0 -1
  623. package/dist/views/Version/RenderFieldsToDiff/utilities/getFieldsForRowComparison.spec.js +0 -135
  624. package/dist/views/Version/RenderFieldsToDiff/utilities/getFieldsForRowComparison.spec.js.map +0 -1
  625. package/dist/views/Version/Restore/index.css +0 -26
  626. package/dist/views/Version/Restore/index.d.ts +0 -16
  627. package/dist/views/Version/Restore/index.d.ts.map +0 -1
  628. package/dist/views/Version/Restore/index.js +0 -106
  629. package/dist/views/Version/Restore/index.js.map +0 -1
  630. package/dist/views/Version/SelectComparison/VersionDrawer/CreatedAtCell.d.ts +0 -3
  631. package/dist/views/Version/SelectComparison/VersionDrawer/CreatedAtCell.d.ts.map +0 -1
  632. package/dist/views/Version/SelectComparison/VersionDrawer/CreatedAtCell.js +0 -56
  633. package/dist/views/Version/SelectComparison/VersionDrawer/CreatedAtCell.js.map +0 -1
  634. package/dist/views/Version/SelectComparison/VersionDrawer/index.d.ts +0 -33
  635. package/dist/views/Version/SelectComparison/VersionDrawer/index.d.ts.map +0 -1
  636. package/dist/views/Version/SelectComparison/VersionDrawer/index.js +0 -239
  637. package/dist/views/Version/SelectComparison/VersionDrawer/index.js.map +0 -1
  638. package/dist/views/Version/SelectComparison/index.d.ts +0 -5
  639. package/dist/views/Version/SelectComparison/index.d.ts.map +0 -1
  640. package/dist/views/Version/SelectComparison/index.js +0 -57
  641. package/dist/views/Version/SelectComparison/index.js.map +0 -1
  642. package/dist/views/Version/SelectComparison/types.d.ts +0 -26
  643. package/dist/views/Version/SelectComparison/types.d.ts.map +0 -1
  644. package/dist/views/Version/SelectComparison/types.js +0 -2
  645. package/dist/views/Version/SelectComparison/types.js.map +0 -1
  646. package/dist/views/Version/SelectLocales/index.d.ts +0 -12
  647. package/dist/views/Version/SelectLocales/index.d.ts.map +0 -1
  648. package/dist/views/Version/SelectLocales/index.js +0 -39
  649. package/dist/views/Version/SelectLocales/index.js.map +0 -1
  650. package/dist/views/Version/VersionPillLabel/VersionPillLabel.d.ts +0 -31
  651. package/dist/views/Version/VersionPillLabel/VersionPillLabel.d.ts.map +0 -1
  652. package/dist/views/Version/VersionPillLabel/VersionPillLabel.js +0 -122
  653. package/dist/views/Version/VersionPillLabel/VersionPillLabel.js.map +0 -1
  654. package/dist/views/Version/VersionPillLabel/getVersionLabel.d.ts +0 -37
  655. package/dist/views/Version/VersionPillLabel/getVersionLabel.d.ts.map +0 -1
  656. package/dist/views/Version/VersionPillLabel/getVersionLabel.js +0 -43
  657. package/dist/views/Version/VersionPillLabel/getVersionLabel.js.map +0 -1
  658. package/dist/views/Version/VersionPillLabel/index.css +0 -31
  659. package/dist/views/Version/fetchVersions.d.ts +0 -42
  660. package/dist/views/Version/fetchVersions.d.ts.map +0 -1
  661. package/dist/views/Version/fetchVersions.js +0 -151
  662. package/dist/views/Version/fetchVersions.js.map +0 -1
  663. package/dist/views/Version/index.d.ts +0 -4
  664. package/dist/views/Version/index.d.ts.map +0 -1
  665. package/dist/views/Version/index.js +0 -352
  666. package/dist/views/Version/index.js.map +0 -1
  667. package/dist/views/Version/metadata.d.ts +0 -6
  668. package/dist/views/Version/metadata.d.ts.map +0 -1
  669. package/dist/views/Version/metadata.js +0 -58
  670. package/dist/views/Version/metadata.js.map +0 -1
  671. package/dist/views/Versions/buildColumns.d.ts +0 -16
  672. package/dist/views/Versions/buildColumns.d.ts.map +0 -1
  673. package/dist/views/Versions/buildColumns.js +0 -88
  674. package/dist/views/Versions/buildColumns.js.map +0 -1
  675. package/dist/views/Versions/cells/AutosaveCell/index.css +0 -7
  676. package/dist/views/Versions/cells/AutosaveCell/index.d.ts +0 -21
  677. package/dist/views/Versions/cells/AutosaveCell/index.d.ts.map +0 -1
  678. package/dist/views/Versions/cells/AutosaveCell/index.js +0 -45
  679. package/dist/views/Versions/cells/AutosaveCell/index.js.map +0 -1
  680. package/dist/views/Versions/cells/CreatedAt/index.d.ts +0 -13
  681. package/dist/views/Versions/cells/CreatedAt/index.d.ts.map +0 -1
  682. package/dist/views/Versions/cells/CreatedAt/index.js +0 -60
  683. package/dist/views/Versions/cells/CreatedAt/index.js.map +0 -1
  684. package/dist/views/Versions/cells/ID/index.d.ts +0 -5
  685. package/dist/views/Versions/cells/ID/index.d.ts.map +0 -1
  686. package/dist/views/Versions/cells/ID/index.js +0 -12
  687. package/dist/views/Versions/cells/ID/index.js.map +0 -1
  688. package/dist/views/Versions/index.client.d.ts +0 -9
  689. package/dist/views/Versions/index.client.d.ts.map +0 -1
  690. package/dist/views/Versions/index.client.js +0 -73
  691. package/dist/views/Versions/index.client.js.map +0 -1
  692. package/dist/views/Versions/index.css +0 -85
  693. package/dist/views/Versions/index.d.ts +0 -5
  694. package/dist/views/Versions/index.d.ts.map +0 -1
  695. package/dist/views/Versions/index.js +0 -178
  696. package/dist/views/Versions/index.js.map +0 -1
  697. package/dist/views/Versions/metadata.d.ts +0 -6
  698. package/dist/views/Versions/metadata.d.ts.map +0 -1
  699. package/dist/views/Versions/metadata.js +0 -51
  700. package/dist/views/Versions/metadata.js.map +0 -1
  701. package/dist/views/Versions/types.d.ts +0 -17
  702. package/dist/views/Versions/types.d.ts.map +0 -1
  703. package/dist/views/Versions/types.js +0 -2
  704. package/dist/views/Versions/types.js.map +0 -1
  705. /package/dist/{views/Root → adapters}/metadata.d.ts +0 -0
@@ -1,269 +0,0 @@
1
- import { KeyboardCode, KeyboardSensor, MouseSensor, TouchSensor, useSensor, useSensors } from '@dnd-kit/core';
2
- /**
3
- * Get all droppable widget positions, filtering out overlapping "before" droppables
4
- * and assigning row numbers based on Y position.
5
- */
6
- function getDroppablePositions() {
7
- const positionTolerance = 5;
8
- const rowTolerance = 10;
9
- const result = [];
10
- let currentRow = 0;
11
- let currentY = null;
12
- const allDroppables = Array.from(document.querySelectorAll('.droppable-widget'));
13
- for (let i = 0; i < allDroppables.length; i++) {
14
- const element = allDroppables[i];
15
- const rect = element.getBoundingClientRect();
16
- // Skip hidden elements
17
- if (rect.width === 0 || rect.height === 0) {
18
- continue;
19
- }
20
- const centerX = rect.left + rect.width / 2;
21
- const centerY = rect.top + rect.height / 2;
22
- const testId = element.getAttribute('data-testid') || '';
23
- const isBeforeDroppable = testId.endsWith('-before');
24
- // Skip "before" droppables that overlap with another droppable
25
- if (isBeforeDroppable) {
26
- const hasOverlapping = allDroppables.some((other, otherIndex) => {
27
- if (otherIndex === i) {
28
- return false;
29
- }
30
- const otherRect = other.getBoundingClientRect();
31
- const otherCenterX = otherRect.left + otherRect.width / 2;
32
- const otherCenterY = otherRect.top + otherRect.height / 2;
33
- return Math.abs(otherCenterX - centerX) < positionTolerance && Math.abs(otherCenterY - centerY) < positionTolerance;
34
- });
35
- if (hasOverlapping) {
36
- continue;
37
- }
38
- }
39
- // Assign row number based on Y position change
40
- if (currentY === null) {
41
- currentY = centerY;
42
- } else if (Math.abs(centerY - currentY) >= rowTolerance) {
43
- currentRow++;
44
- currentY = centerY;
45
- }
46
- result.push({
47
- centerX,
48
- centerY,
49
- element,
50
- isBeforeDroppable,
51
- rect,
52
- row: currentRow
53
- });
54
- }
55
- return result;
56
- }
57
- /**
58
- * Find the row with the closest Y position to the given posY.
59
- * Returns the row index, or null if no droppables exist.
60
- */
61
- function findClosestRow(droppables, posY) {
62
- if (droppables.length === 0) {
63
- return null;
64
- }
65
- let closestRow = droppables[0].row;
66
- let minYDistance = Infinity;
67
- for (const droppable of droppables) {
68
- const yDistance = Math.abs(droppable.centerY - posY);
69
- if (yDistance < minYDistance) {
70
- minYDistance = yDistance;
71
- closestRow = droppable.row;
72
- }
73
- }
74
- return closestRow;
75
- }
76
- /**
77
- * Find the closest droppable within a specific row by X position.
78
- * Returns the droppable and its index, or null if no droppables in that row.
79
- */
80
- function findClosestDroppableInRow(droppables, rowIndex, posX) {
81
- let closestIndex = -1;
82
- let minXDistance = Infinity;
83
- for (let i = 0; i < droppables.length; i++) {
84
- const droppable = droppables[i];
85
- if (droppable.row === rowIndex) {
86
- const xDistance = Math.abs(droppable.centerX - posX);
87
- if (xDistance < minXDistance) {
88
- minXDistance = xDistance;
89
- closestIndex = i;
90
- }
91
- }
92
- }
93
- if (closestIndex === -1) {
94
- return null;
95
- }
96
- return {
97
- droppable: droppables[closestIndex],
98
- index: closestIndex
99
- };
100
- }
101
- /**
102
- * Find the target droppable based on direction
103
- * - ArrowRight/Left: Next/previous in DOM order (now that overlapping droppables are filtered)
104
- * - ArrowUp/Down: Closest in adjacent row (row +1 or -1) by X position
105
- */
106
- function findTargetDroppable(droppables, currentCenterX, currentCenterY, direction) {
107
- // Find the closest row, then the closest droppable in that row
108
- const currentRow = findClosestRow(droppables, currentCenterY);
109
- if (currentRow === null) {
110
- return null;
111
- }
112
- const currentDroppable = findClosestDroppableInRow(droppables, currentRow, currentCenterX);
113
- if (!currentDroppable) {
114
- return null;
115
- }
116
- const {
117
- index: currentIndex
118
- } = currentDroppable;
119
- switch (direction) {
120
- case 'ArrowDown':
121
- {
122
- const targetRow = currentRow + 1;
123
- return findClosestDroppableInRow(droppables, targetRow, currentCenterX)?.droppable || null;
124
- }
125
- case 'ArrowLeft':
126
- // Previous in DOM order
127
- return droppables[currentIndex - 1] || null;
128
- case 'ArrowRight':
129
- // Next in DOM order
130
- return droppables[currentIndex + 1] || null;
131
- case 'ArrowUp':
132
- {
133
- const targetRow = currentRow - 1;
134
- return findClosestDroppableInRow(droppables, targetRow, currentCenterX)?.droppable || null;
135
- }
136
- default:
137
- return null;
138
- }
139
- }
140
- /**
141
- * Custom coordinate getter that jumps directly to droppable positions
142
- * instead of moving in pixel increments. This works better with scrolling
143
- * and provides more predictable navigation.
144
- */
145
- const droppableJumpKeyboardCoordinateGetter = (event, {
146
- context,
147
- currentCoordinates
148
- }) => {
149
- const {
150
- collisionRect
151
- } = context;
152
- const {
153
- code
154
- } = event;
155
- if (!collisionRect) {
156
- return currentCoordinates;
157
- }
158
- // Only handle arrow keys
159
- if (!['ArrowDown', 'ArrowLeft', 'ArrowRight', 'ArrowUp'].includes(code)) {
160
- return currentCoordinates;
161
- }
162
- // Prevent default browser scroll behavior for arrow keys
163
- event.preventDefault();
164
- // Clear scrollableAncestors to prevent dnd-kit from scrolling instead of moving
165
- // This must be done on every keydown because context is updated by dnd-kit
166
- if (context.scrollableAncestors) {
167
- context.scrollableAncestors.length = 0;
168
- }
169
- // Get all droppable widgets and their positions
170
- const droppables = getDroppablePositions();
171
- if (droppables.length === 0) {
172
- return currentCoordinates;
173
- }
174
- // Current position center (viewport coordinates from collisionRect)
175
- const currentCenterX = collisionRect.left + collisionRect.width / 2;
176
- const currentCenterY = collisionRect.top + collisionRect.height / 2;
177
- // Find the target droppable based on direction
178
- const targetDroppable = findTargetDroppable(droppables, currentCenterX, currentCenterY, code);
179
- // If we found a target, scroll if needed and calculate the delta
180
- if (targetDroppable) {
181
- const viewportHeight = window.innerHeight;
182
- const targetRect = targetDroppable.rect;
183
- const scrollPadding = 20 // Extra padding to ensure element is fully visible
184
- ;
185
- // Check if target droppable is fully visible in viewport
186
- const isAboveViewport = targetRect.top < scrollPadding;
187
- const isBelowViewport = targetRect.bottom > viewportHeight - scrollPadding;
188
- // Scroll to make target visible (using instant scroll for synchronous behavior)
189
- if (isAboveViewport) {
190
- const scrollAmount = targetRect.top - scrollPadding;
191
- // don't use smooth scroll here, because it will mess up the delta calculation
192
- window.scrollBy({
193
- behavior: 'instant',
194
- top: scrollAmount
195
- });
196
- } else if (isBelowViewport) {
197
- const scrollAmount = targetRect.bottom - viewportHeight + scrollPadding;
198
- window.scrollBy({
199
- behavior: 'instant',
200
- top: scrollAmount
201
- });
202
- }
203
- // After scroll, recalculate target position (it may have changed due to scroll)
204
- const newTargetRect = targetDroppable.element.getBoundingClientRect();
205
- const newTargetCenterX = newTargetRect.left + newTargetRect.width / 2;
206
- const newTargetCenterY = newTargetRect.top + newTargetRect.height / 2;
207
- // Calculate delta using current overlay position (which didn't change) and new target position
208
- const deltaX = newTargetCenterX - currentCenterX;
209
- const deltaY = newTargetCenterY - currentCenterY;
210
- // Add delta to currentCoordinates to position overlay's center at target's center
211
- return {
212
- x: currentCoordinates.x + deltaX,
213
- y: currentCoordinates.y + deltaY
214
- };
215
- }
216
- // No valid target found, stay in place
217
- return currentCoordinates;
218
- };
219
- /**
220
- * Custom KeyboardSensor that only activates when focus is directly on the
221
- * draggable element, not on any of its descendants. This allows interactive
222
- * elements inside draggables (like buttons) to work normally with the keyboard.
223
- */
224
- class DirectFocusKeyboardSensor extends KeyboardSensor {
225
- static activators = [{
226
- eventName: 'onKeyDown',
227
- handler: (event, {
228
- keyboardCodes = {
229
- cancel: [KeyboardCode.Esc],
230
- end: [KeyboardCode.Space, KeyboardCode.Enter],
231
- start: [KeyboardCode.Space, KeyboardCode.Enter]
232
- },
233
- onActivation
234
- }, {
235
- active
236
- }) => {
237
- const {
238
- code
239
- } = event.nativeEvent;
240
- // Only activate if focus is directly on the draggable node, not descendants
241
- if (event.target !== active.node.current) {
242
- return false;
243
- }
244
- if (keyboardCodes.start.includes(code)) {
245
- event.preventDefault();
246
- onActivation?.({
247
- event: event.nativeEvent
248
- });
249
- return true;
250
- }
251
- return false;
252
- }
253
- }];
254
- }
255
- export function useDashboardSensors() {
256
- return useSensors(useSensor(MouseSensor, {
257
- activationConstraint: {
258
- distance: 5
259
- }
260
- }), useSensor(TouchSensor, {
261
- activationConstraint: {
262
- delay: 200,
263
- tolerance: 5
264
- }
265
- }), useSensor(DirectFocusKeyboardSensor, {
266
- coordinateGetter: droppableJumpKeyboardCoordinateGetter
267
- }));
268
- }
269
- //# sourceMappingURL=sensors.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sensors.js","names":["KeyboardCode","KeyboardSensor","MouseSensor","TouchSensor","useSensor","useSensors","getDroppablePositions","positionTolerance","rowTolerance","result","currentRow","currentY","allDroppables","Array","from","document","querySelectorAll","i","length","element","rect","getBoundingClientRect","width","height","centerX","left","centerY","top","testId","getAttribute","isBeforeDroppable","endsWith","hasOverlapping","some","other","otherIndex","otherRect","otherCenterX","otherCenterY","Math","abs","push","row","findClosestRow","droppables","posY","closestRow","minYDistance","Infinity","droppable","yDistance","findClosestDroppableInRow","rowIndex","posX","closestIndex","minXDistance","xDistance","index","findTargetDroppable","currentCenterX","currentCenterY","direction","currentDroppable","currentIndex","targetRow","droppableJumpKeyboardCoordinateGetter","event","context","currentCoordinates","collisionRect","code","includes","preventDefault","scrollableAncestors","targetDroppable","viewportHeight","window","innerHeight","targetRect","scrollPadding","isAboveViewport","isBelowViewport","bottom","scrollAmount","scrollBy","behavior","newTargetRect","newTargetCenterX","newTargetCenterY","deltaX","deltaY","x","y","DirectFocusKeyboardSensor","activators","eventName","handler","keyboardCodes","cancel","Esc","end","Space","Enter","start","onActivation","active","nativeEvent","target","node","current","useDashboardSensors","activationConstraint","distance","delay","tolerance","coordinateGetter"],"sources":["../../../../../../src/views/Dashboard/Default/ModularDashboard/utils/sensors.ts"],"sourcesContent":["import type { KeyboardCoordinateGetter, KeyboardSensorOptions } from '@dnd-kit/core'\n\nimport {\n KeyboardCode,\n KeyboardSensor,\n MouseSensor,\n TouchSensor,\n useSensor,\n useSensors,\n} from '@dnd-kit/core'\n\ntype DroppablePosition = {\n centerX: number\n centerY: number\n element: Element\n isBeforeDroppable: boolean\n rect: DOMRect\n row: number\n}\n\n/**\n * Get all droppable widget positions, filtering out overlapping \"before\" droppables\n * and assigning row numbers based on Y position.\n */\nfunction getDroppablePositions(): DroppablePosition[] {\n const positionTolerance = 5\n const rowTolerance = 10\n const result: DroppablePosition[] = []\n let currentRow = 0\n let currentY: null | number = null\n\n const allDroppables = Array.from(document.querySelectorAll('.droppable-widget'))\n\n for (let i = 0; i < allDroppables.length; i++) {\n const element = allDroppables[i]\n const rect = element.getBoundingClientRect()\n\n // Skip hidden elements\n if (rect.width === 0 || rect.height === 0) {\n continue\n }\n\n const centerX = rect.left + rect.width / 2\n const centerY = rect.top + rect.height / 2\n const testId = element.getAttribute('data-testid') || ''\n const isBeforeDroppable = testId.endsWith('-before')\n\n // Skip \"before\" droppables that overlap with another droppable\n if (isBeforeDroppable) {\n const hasOverlapping = allDroppables.some((other, otherIndex) => {\n if (otherIndex === i) {\n return false\n }\n const otherRect = other.getBoundingClientRect()\n const otherCenterX = otherRect.left + otherRect.width / 2\n const otherCenterY = otherRect.top + otherRect.height / 2\n return (\n Math.abs(otherCenterX - centerX) < positionTolerance &&\n Math.abs(otherCenterY - centerY) < positionTolerance\n )\n })\n if (hasOverlapping) {\n continue\n }\n }\n\n // Assign row number based on Y position change\n if (currentY === null) {\n currentY = centerY\n } else if (Math.abs(centerY - currentY) >= rowTolerance) {\n currentRow++\n currentY = centerY\n }\n\n result.push({\n centerX,\n centerY,\n element,\n isBeforeDroppable,\n rect,\n row: currentRow,\n })\n }\n\n return result\n}\n\n/**\n * Find the row with the closest Y position to the given posY.\n * Returns the row index, or null if no droppables exist.\n */\nfunction findClosestRow(droppables: DroppablePosition[], posY: number): null | number {\n if (droppables.length === 0) {\n return null\n }\n\n let closestRow = droppables[0].row\n let minYDistance = Infinity\n\n for (const droppable of droppables) {\n const yDistance = Math.abs(droppable.centerY - posY)\n if (yDistance < minYDistance) {\n minYDistance = yDistance\n closestRow = droppable.row\n }\n }\n\n return closestRow\n}\n\n/**\n * Find the closest droppable within a specific row by X position.\n * Returns the droppable and its index, or null if no droppables in that row.\n */\nfunction findClosestDroppableInRow(\n droppables: DroppablePosition[],\n rowIndex: number,\n posX: number,\n): { droppable: DroppablePosition; index: number } | null {\n let closestIndex = -1\n let minXDistance = Infinity\n\n for (let i = 0; i < droppables.length; i++) {\n const droppable = droppables[i]\n if (droppable.row === rowIndex) {\n const xDistance = Math.abs(droppable.centerX - posX)\n if (xDistance < minXDistance) {\n minXDistance = xDistance\n closestIndex = i\n }\n }\n }\n\n if (closestIndex === -1) {\n return null\n }\n\n return { droppable: droppables[closestIndex], index: closestIndex }\n}\n\n/**\n * Find the target droppable based on direction\n * - ArrowRight/Left: Next/previous in DOM order (now that overlapping droppables are filtered)\n * - ArrowUp/Down: Closest in adjacent row (row +1 or -1) by X position\n */\nfunction findTargetDroppable(\n droppables: DroppablePosition[],\n currentCenterX: number,\n currentCenterY: number,\n direction: string,\n): DroppablePosition | null {\n // Find the closest row, then the closest droppable in that row\n const currentRow = findClosestRow(droppables, currentCenterY)\n\n if (currentRow === null) {\n return null\n }\n\n const currentDroppable = findClosestDroppableInRow(droppables, currentRow, currentCenterX)\n\n if (!currentDroppable) {\n return null\n }\n\n const { index: currentIndex } = currentDroppable\n\n switch (direction) {\n case 'ArrowDown': {\n const targetRow = currentRow + 1\n return findClosestDroppableInRow(droppables, targetRow, currentCenterX)?.droppable || null\n }\n\n case 'ArrowLeft':\n // Previous in DOM order\n return droppables[currentIndex - 1] || null\n\n case 'ArrowRight':\n // Next in DOM order\n return droppables[currentIndex + 1] || null\n\n case 'ArrowUp': {\n const targetRow = currentRow - 1\n return findClosestDroppableInRow(droppables, targetRow, currentCenterX)?.droppable || null\n }\n\n default:\n return null\n }\n}\n\n/**\n * Custom coordinate getter that jumps directly to droppable positions\n * instead of moving in pixel increments. This works better with scrolling\n * and provides more predictable navigation.\n */\nconst droppableJumpKeyboardCoordinateGetter: KeyboardCoordinateGetter = (\n event,\n { context, currentCoordinates },\n) => {\n const { collisionRect } = context\n const { code } = event\n\n if (!collisionRect) {\n return currentCoordinates\n }\n\n // Only handle arrow keys\n if (!['ArrowDown', 'ArrowLeft', 'ArrowRight', 'ArrowUp'].includes(code)) {\n return currentCoordinates\n }\n\n // Prevent default browser scroll behavior for arrow keys\n event.preventDefault()\n\n // Clear scrollableAncestors to prevent dnd-kit from scrolling instead of moving\n // This must be done on every keydown because context is updated by dnd-kit\n if (context.scrollableAncestors) {\n context.scrollableAncestors.length = 0\n }\n\n // Get all droppable widgets and their positions\n const droppables = getDroppablePositions()\n\n if (droppables.length === 0) {\n return currentCoordinates\n }\n\n // Current position center (viewport coordinates from collisionRect)\n const currentCenterX = collisionRect.left + collisionRect.width / 2\n const currentCenterY = collisionRect.top + collisionRect.height / 2\n\n // Find the target droppable based on direction\n const targetDroppable = findTargetDroppable(droppables, currentCenterX, currentCenterY, code)\n\n // If we found a target, scroll if needed and calculate the delta\n if (targetDroppable) {\n const viewportHeight = window.innerHeight\n const targetRect = targetDroppable.rect\n const scrollPadding = 20 // Extra padding to ensure element is fully visible\n\n // Check if target droppable is fully visible in viewport\n const isAboveViewport = targetRect.top < scrollPadding\n const isBelowViewport = targetRect.bottom > viewportHeight - scrollPadding\n\n // Scroll to make target visible (using instant scroll for synchronous behavior)\n if (isAboveViewport) {\n const scrollAmount = targetRect.top - scrollPadding\n // don't use smooth scroll here, because it will mess up the delta calculation\n window.scrollBy({ behavior: 'instant', top: scrollAmount })\n } else if (isBelowViewport) {\n const scrollAmount = targetRect.bottom - viewportHeight + scrollPadding\n window.scrollBy({ behavior: 'instant', top: scrollAmount })\n }\n\n // After scroll, recalculate target position (it may have changed due to scroll)\n const newTargetRect = targetDroppable.element.getBoundingClientRect()\n const newTargetCenterX = newTargetRect.left + newTargetRect.width / 2\n const newTargetCenterY = newTargetRect.top + newTargetRect.height / 2\n\n // Calculate delta using current overlay position (which didn't change) and new target position\n const deltaX = newTargetCenterX - currentCenterX\n const deltaY = newTargetCenterY - currentCenterY\n\n // Add delta to currentCoordinates to position overlay's center at target's center\n return {\n x: currentCoordinates.x + deltaX,\n y: currentCoordinates.y + deltaY,\n }\n }\n\n // No valid target found, stay in place\n return currentCoordinates\n}\n\n/**\n * Custom KeyboardSensor that only activates when focus is directly on the\n * draggable element, not on any of its descendants. This allows interactive\n * elements inside draggables (like buttons) to work normally with the keyboard.\n */\nclass DirectFocusKeyboardSensor extends KeyboardSensor {\n static override activators = [\n {\n eventName: 'onKeyDown' as const,\n handler: (\n event: React.KeyboardEvent,\n {\n keyboardCodes = {\n cancel: [KeyboardCode.Esc],\n end: [KeyboardCode.Space, KeyboardCode.Enter],\n start: [KeyboardCode.Space, KeyboardCode.Enter],\n },\n onActivation,\n }: KeyboardSensorOptions,\n { active }: { active: { node: React.MutableRefObject<HTMLElement | null> } },\n ) => {\n const { code } = event.nativeEvent\n\n // Only activate if focus is directly on the draggable node, not descendants\n if (event.target !== active.node.current) {\n return false\n }\n\n if (keyboardCodes.start.includes(code)) {\n event.preventDefault()\n onActivation?.({ event: event.nativeEvent })\n return true\n }\n\n return false\n },\n },\n ]\n}\n\nexport function useDashboardSensors() {\n return useSensors(\n useSensor(MouseSensor, {\n activationConstraint: {\n distance: 5,\n },\n }),\n useSensor(TouchSensor, {\n activationConstraint: {\n delay: 200,\n tolerance: 5,\n },\n }),\n useSensor(DirectFocusKeyboardSensor, {\n coordinateGetter: droppableJumpKeyboardCoordinateGetter,\n }),\n )\n}\n"],"mappings":"AAEA,SACEA,YAAY,EACZC,cAAc,EACdC,WAAW,EACXC,WAAW,EACXC,SAAS,EACTC,UAAU,QACL;AAWP;;;;AAIA,SAASC,sBAAA;EACP,MAAMC,iBAAA,GAAoB;EAC1B,MAAMC,YAAA,GAAe;EACrB,MAAMC,MAAA,GAA8B,EAAE;EACtC,IAAIC,UAAA,GAAa;EACjB,IAAIC,QAAA,GAA0B;EAE9B,MAAMC,aAAA,GAAgBC,KAAA,CAAMC,IAAI,CAACC,QAAA,CAASC,gBAAgB,CAAC;EAE3D,KAAK,IAAIC,CAAA,GAAI,GAAGA,CAAA,GAAIL,aAAA,CAAcM,MAAM,EAAED,CAAA,IAAK;IAC7C,MAAME,OAAA,GAAU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KAAA,EAAOA,KAAA,CAAMwC;QAAY;QAC1C,OAAO;MACT;MAEA,OAAO;IACT;EACF,EACD;AACH;AAEA,OAAO,SAASI,oBAAA;EACd,OAAOzG,UAAA,CACLD,SAAA,CAAUF,WAAA,EAAa;IACrB6G,oBAAA,EAAsB;MACpBC,QAAA,EAAU;IACZ;EACF,IACA5G,SAAA,CAAUD,WAAA,EAAa;IACrB4G,oBAAA,EAAsB;MACpBE,KAAA,EAAO;MACPC,SAAA,EAAW;IACb;EACF,IACA9G,SAAA,CAAUyF,yBAAA,EAA2B;IACnCsB,gBAAA,EAAkBlD;EACpB;AAEJ","ignoreList":[]}
@@ -1,21 +0,0 @@
1
- import type { groupNavItems } from '@payloadcms/ui/shared';
2
- import type { AdminViewServerPropsOnly, ClientUser, Locale } from 'payload';
3
- import React from 'react';
4
- export type DashboardViewClientProps = {
5
- locale: Locale;
6
- };
7
- export type DashboardViewServerPropsOnly = {
8
- globalData: Array<{
9
- data: {
10
- _isLocked: boolean;
11
- _lastEditedAt: string;
12
- _userEditing: ClientUser | number | string;
13
- };
14
- lockDuration?: number;
15
- slug: string;
16
- }>;
17
- navGroups?: ReturnType<typeof groupNavItems>;
18
- } & AdminViewServerPropsOnly;
19
- export type DashboardViewServerProps = DashboardViewClientProps & DashboardViewServerPropsOnly;
20
- export declare function DefaultDashboard(props: DashboardViewServerProps): React.JSX.Element;
21
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/Dashboard/Default/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAA;AAC1D,OAAO,KAAK,EAAE,wBAAwB,EAAE,UAAU,EAAE,MAAM,EAAe,MAAM,SAAS,CAAA;AAIxF,OAAO,KAAK,MAAM,OAAO,CAAA;AAMzB,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,55 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { Gutter } from '@payloadcms/ui';
3
- import { RenderServerComponent } from '@payloadcms/ui/elements/RenderServerComponent';
4
- import React from 'react';
5
- import { ModularDashboard } from './ModularDashboard/index.js';
6
- const baseClass = 'dashboard';
7
- export function DefaultDashboard(props) {
8
- const {
9
- i18n,
10
- locale,
11
- params,
12
- payload,
13
- permissions,
14
- searchParams,
15
- server,
16
- user
17
- } = props;
18
- const {
19
- afterDashboard,
20
- beforeDashboard
21
- } = payload.config.admin.components;
22
- return /*#__PURE__*/_jsxs(Gutter, {
23
- className: baseClass,
24
- children: [beforeDashboard && RenderServerComponent({
25
- Component: beforeDashboard,
26
- importMap: payload.importMap,
27
- serverProps: {
28
- i18n,
29
- locale,
30
- params,
31
- payload,
32
- permissions,
33
- searchParams,
34
- server,
35
- user
36
- }
37
- }), /*#__PURE__*/_jsx(ModularDashboard, {
38
- ...props
39
- }), afterDashboard && RenderServerComponent({
40
- Component: afterDashboard,
41
- importMap: payload.importMap,
42
- serverProps: {
43
- i18n,
44
- locale,
45
- params,
46
- payload,
47
- permissions,
48
- searchParams,
49
- server,
50
- user
51
- }
52
- })]
53
- });
54
- }
55
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","names":["Gutter","RenderServerComponent","React","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 { groupNavItems } from '@payloadcms/ui/shared'\nimport type { AdminViewServerPropsOnly, ClientUser, Locale, ServerProps } from 'payload'\n\nimport { Gutter } from '@payloadcms/ui'\nimport { RenderServerComponent } from '@payloadcms/ui/elements/RenderServerComponent'\nimport React from 'react'\n\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":";AAGA,SAASA,MAAM,QAAQ;AACvB,SAASC,qBAAqB,QAAQ;AACtC,OAAOC,KAAA,MAAW;AAElB,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,CAACpB,MAAA;IAAOqB,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,4 +0,0 @@
1
- import type { AdminViewServerProps } from 'payload';
2
- import React from 'react';
3
- export declare function DashboardView(props: AdminViewServerProps): Promise<React.JSX.Element>;
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/views/Dashboard/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAA;AAKnD,OAAO,KAAmB,MAAM,OAAO,CAAA;AAMvC,wBAAsB,aAAa,CAAC,KAAK,EAAE,oBAAoB,8BA2C9D"}
@@ -1,51 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { HydrateAuthProvider, SetStepNav } from '@payloadcms/ui';
3
- import { RenderServerComponent } from '@payloadcms/ui/elements/RenderServerComponent';
4
- import { getGlobalData, getNavGroups } from '@payloadcms/ui/shared';
5
- import React, { Fragment } from 'react';
6
- import { DefaultDashboard } from './Default/index.js';
7
- export async function DashboardView(props) {
8
- const {
9
- locale,
10
- permissions,
11
- req: {
12
- i18n,
13
- payload: {
14
- config
15
- },
16
- payload,
17
- user
18
- },
19
- req,
20
- visibleEntities
21
- } = props.initPageResult;
22
- const globalData = await getGlobalData(req);
23
- const navGroups = getNavGroups(permissions, visibleEntities, config, i18n);
24
- return /*#__PURE__*/_jsxs(Fragment, {
25
- children: [/*#__PURE__*/_jsx(HydrateAuthProvider, {
26
- permissions: permissions
27
- }), /*#__PURE__*/_jsx(SetStepNav, {
28
- nav: []
29
- }), RenderServerComponent({
30
- clientProps: {
31
- locale
32
- },
33
- Component: config.admin?.components?.views?.dashboard?.Component,
34
- Fallback: DefaultDashboard,
35
- importMap: payload.importMap,
36
- serverProps: {
37
- ...props,
38
- globalData,
39
- i18n,
40
- locale,
41
- navGroups,
42
- payload,
43
- permissions,
44
- server: req.server,
45
- user,
46
- visibleEntities
47
- }
48
- })]
49
- });
50
- }
51
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","names":["HydrateAuthProvider","SetStepNav","RenderServerComponent","getGlobalData","getNavGroups","React","Fragment","DefaultDashboard","DashboardView","props","locale","permissions","req","i18n","payload","config","user","visibleEntities","initPageResult","globalData","navGroups","_jsxs","_jsx","nav","clientProps","Component","admin","components","views","dashboard","Fallback","importMap","serverProps","server"],"sources":["../../../src/views/Dashboard/index.tsx"],"sourcesContent":["import type { AdminViewServerProps } from 'payload'\n\nimport { HydrateAuthProvider, SetStepNav } from '@payloadcms/ui'\nimport { RenderServerComponent } from '@payloadcms/ui/elements/RenderServerComponent'\nimport { getGlobalData, getNavGroups } from '@payloadcms/ui/shared'\nimport React, { Fragment } from 'react'\n\nimport type { DashboardViewClientProps, DashboardViewServerPropsOnly } from './Default/index.js'\n\nimport { DefaultDashboard } from './Default/index.js'\n\nexport async function DashboardView(props: AdminViewServerProps) {\n const {\n locale,\n permissions,\n req: {\n i18n,\n payload: { config },\n payload,\n user,\n },\n req,\n visibleEntities,\n } = props.initPageResult\n\n const globalData = await getGlobalData(req)\n const navGroups = getNavGroups(permissions, visibleEntities, config, i18n)\n\n return (\n <Fragment>\n <HydrateAuthProvider permissions={permissions} />\n <SetStepNav nav={[]} />\n {RenderServerComponent({\n clientProps: {\n locale,\n } satisfies DashboardViewClientProps,\n Component: config.admin?.components?.views?.dashboard?.Component,\n Fallback: DefaultDashboard,\n importMap: payload.importMap,\n serverProps: {\n ...props,\n globalData,\n i18n,\n locale,\n navGroups,\n payload,\n permissions,\n server: req.server,\n user,\n visibleEntities,\n } satisfies DashboardViewServerPropsOnly,\n })}\n </Fragment>\n )\n}\n"],"mappings":";AAEA,SAASA,mBAAmB,EAAEC,UAAU,QAAQ;AAChD,SAASC,qBAAqB,QAAQ;AACtC,SAASC,aAAa,EAAEC,YAAY,QAAQ;AAC5C,OAAOC,KAAA,IAASC,QAAQ,QAAQ;AAIhC,SAASC,gBAAgB,QAAQ;AAEjC,OAAO,eAAeC,cAAcC,KAA2B;EAC7D,MAAM;IACJC,MAAM;IACNC,WAAW;IACXC,GAAA,EAAK;MACHC,IAAI;MACJC,OAAA,EAAS;QAAEC;MAAM,CAAE;MACnBD,OAAO;MACPE;IAAI,CACL;IACDJ,GAAG;IACHK;EAAe,CAChB,GAAGR,KAAA,CAAMS,cAAc;EAExB,MAAMC,UAAA,GAAa,MAAMhB,aAAA,CAAcS,GAAA;EACvC,MAAMQ,SAAA,GAAYhB,YAAA,CAAaO,WAAA,EAAaM,eAAA,EAAiBF,MAAA,EAAQF,IAAA;EAErE,oBACEQ,KAAA,CAACf,QAAA;4BACCgB,IAAA,CAACtB,mBAAA;MAAoBW,WAAA,EAAaA;qBAClCW,IAAA,CAACrB,UAAA;MAAWsB,GAAA,EAAK;QAChBrB,qBAAA,CAAsB;MACrBsB,WAAA,EAAa;QACXd;MACF;MACAe,SAAA,EAAWV,MAAA,CAAOW,KAAK,EAAEC,UAAA,EAAYC,KAAA,EAAOC,SAAA,EAAWJ,SAAA;MACvDK,QAAA,EAAUvB,gBAAA;MACVwB,SAAA,EAAWjB,OAAA,CAAQiB,SAAS;MAC5BC,WAAA,EAAa;QACX,GAAGvB,KAAK;QACRU,UAAA;QACAN,IAAA;QACAH,MAAA;QACAU,SAAA;QACAN,OAAA;QACAH,WAAA;QACAsB,MAAA,EAAQrB,GAAA,CAAIqB,MAAM;QAClBjB,IAAA;QACAC;MACF;IACF;;AAGN","ignoreList":[]}
@@ -1,3 +0,0 @@
1
- import type { GenerateViewMetadata } from '../Root/index.js';
2
- export declare const generateDashboardViewMetadata: GenerateViewMetadata;
3
- //# sourceMappingURL=metadata.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"metadata.d.ts","sourceRoot":"","sources":["../../../src/views/Dashboard/metadata.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAA;AAI5D,eAAO,MAAM,6BAA6B,EAAE,oBAYxC,CAAA"}
@@ -1,16 +0,0 @@
1
- import { generateMetadata } from '../../utilities/meta.js';
2
- export const generateDashboardViewMetadata = async ({
3
- config,
4
- i18n: {
5
- t
6
- }
7
- }) => generateMetadata({
8
- serverURL: config.serverURL,
9
- title: t('general:dashboard'),
10
- ...config.admin.meta,
11
- openGraph: {
12
- title: t('general:dashboard'),
13
- ...(config.admin.meta?.openGraph || {})
14
- }
15
- });
16
- //# sourceMappingURL=metadata.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"metadata.js","names":["generateMetadata","generateDashboardViewMetadata","config","i18n","t","serverURL","title","admin","meta","openGraph"],"sources":["../../../src/views/Dashboard/metadata.ts"],"sourcesContent":["import type { GenerateViewMetadata } from '../Root/index.js'\n\nimport { generateMetadata } from '../../utilities/meta.js'\n\nexport const generateDashboardViewMetadata: GenerateViewMetadata = async ({\n config,\n i18n: { t },\n}) =>\n generateMetadata({\n serverURL: config.serverURL,\n title: t('general:dashboard'),\n ...config.admin.meta,\n openGraph: {\n title: t('general:dashboard'),\n ...(config.admin.meta?.openGraph || {}),\n },\n })\n"],"mappings":"AAEA,SAASA,gBAAgB,QAAQ;AAEjC,OAAO,MAAMC,6BAAA,GAAsD,MAAAA,CAAO;EACxEC,MAAM;EACNC,IAAA,EAAM;IAAEC;EAAC;AAAE,CACZ,KACCJ,gBAAA,CAAiB;EACfK,SAAA,EAAWH,MAAA,CAAOG,SAAS;EAC3BC,KAAA,EAAOF,CAAA,CAAE;EACT,GAAGF,MAAA,CAAOK,KAAK,CAACC,IAAI;EACpBC,SAAA,EAAW;IACTH,KAAA,EAAOF,CAAA,CAAE;IACT,IAAIF,MAAA,CAAOK,KAAK,CAACC,IAAI,EAAEC,SAAA,IAAa,CAAC,CAAC;EACxC;AACF","ignoreList":[]}
@@ -1,3 +0,0 @@
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;
3
- //# sourceMappingURL=getCustomDocumentViewByKey.d.ts.map
@@ -1 +0,0 @@
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,4 +0,0 @@
1
- export const getCustomDocumentViewByKey = (views, customViewKey) => {
2
- return typeof views?.edit?.[customViewKey] === 'object' && 'Component' in views.edit[customViewKey] ? views?.edit?.[customViewKey].Component : null;
3
- };
4
- //# sourceMappingURL=getCustomDocumentViewByKey.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getCustomDocumentViewByKey.js","names":["getCustomDocumentViewByKey","views","customViewKey","edit","Component"],"sources":["../../../src/views/Document/getCustomDocumentViewByKey.tsx"],"sourcesContent":["import type { EditViewComponent, SanitizedCollectionConfig, SanitizedGlobalConfig } from 'payload'\n\nexport const getCustomDocumentViewByKey = (\n views:\n | SanitizedCollectionConfig['admin']['components']['views']\n | SanitizedGlobalConfig['admin']['components']['views'],\n customViewKey: string,\n): EditViewComponent => {\n return typeof views?.edit?.[customViewKey] === 'object' &&\n 'Component' in views.edit[customViewKey]\n ? views?.edit?.[customViewKey].Component\n : null\n}\n"],"mappings":"AAEA,OAAO,MAAMA,0BAAA,GAA6BA,CACxCC,KAAA,EAGAC,aAAA;EAEA,OAAO,OAAOD,KAAA,EAAOE,IAAA,GAAOD,aAAA,CAAc,KAAK,YAC7C,eAAeD,KAAA,CAAME,IAAI,CAACD,aAAA,CAAc,GACtCD,KAAA,EAAOE,IAAA,GAAOD,aAAA,CAAc,CAACE,SAAA,GAC7B;AACN","ignoreList":[]}
@@ -1,10 +0,0 @@
1
- import type { EditViewComponent, SanitizedCollectionConfig, SanitizedGlobalConfig } from 'payload';
2
- export declare const getCustomViewByRoute: ({ baseRoute, currentRoute, views, }: {
3
- baseRoute: string;
4
- currentRoute: string;
5
- views: SanitizedCollectionConfig["admin"]["components"]["views"] | SanitizedGlobalConfig["admin"]["components"]["views"];
6
- }) => {
7
- Component: EditViewComponent;
8
- viewKey?: string;
9
- };
10
- //# sourceMappingURL=getCustomViewByRoute.d.ts.map
@@ -1 +0,0 @@
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,35 +0,0 @@
1
- import { isPathMatchingRoute } from '../Root/isPathMatchingRoute.js';
2
- export const getCustomViewByRoute = ({
3
- baseRoute,
4
- currentRoute,
5
- views
6
- }) => {
7
- if (typeof views?.edit === 'object') {
8
- let viewKey;
9
- const foundViewConfig = Object.entries(views.edit).find(([key, view]) => {
10
- if (typeof view === 'object' && 'path' in view) {
11
- const viewPath = `${baseRoute}${view.path}`;
12
- const isMatching = isPathMatchingRoute({
13
- currentRoute,
14
- exact: true,
15
- path: viewPath
16
- });
17
- if (isMatching) {
18
- viewKey = key;
19
- }
20
- return isMatching;
21
- }
22
- return false;
23
- })?.[1];
24
- if (foundViewConfig && 'Component' in foundViewConfig) {
25
- return {
26
- Component: foundViewConfig.Component,
27
- viewKey
28
- };
29
- }
30
- }
31
- return {
32
- Component: null
33
- };
34
- };
35
- //# sourceMappingURL=getCustomViewByRoute.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getCustomViewByRoute.js","names":["isPathMatchingRoute","getCustomViewByRoute","baseRoute","currentRoute","views","edit","viewKey","foundViewConfig","Object","entries","find","key","view","viewPath","path","isMatching","exact","Component"],"sources":["../../../src/views/Document/getCustomViewByRoute.tsx"],"sourcesContent":["import type { EditViewComponent, SanitizedCollectionConfig, SanitizedGlobalConfig } from 'payload'\n\nimport { isPathMatchingRoute } from '../Root/isPathMatchingRoute.js'\n\nexport const getCustomViewByRoute = ({\n baseRoute,\n currentRoute,\n views,\n}: {\n baseRoute: string\n currentRoute: string\n views:\n | SanitizedCollectionConfig['admin']['components']['views']\n | SanitizedGlobalConfig['admin']['components']['views']\n}): {\n Component: EditViewComponent\n viewKey?: string\n} => {\n if (typeof views?.edit === 'object') {\n let viewKey: string\n\n const foundViewConfig = Object.entries(views.edit).find(([key, view]) => {\n if (typeof view === 'object' && 'path' in view) {\n const viewPath = `${baseRoute}${view.path}`\n\n const isMatching = isPathMatchingRoute({\n currentRoute,\n exact: true,\n path: viewPath,\n })\n\n if (isMatching) {\n viewKey = key\n }\n\n return isMatching\n }\n\n return false\n })?.[1]\n\n if (foundViewConfig && 'Component' in foundViewConfig) {\n return {\n Component: foundViewConfig.Component,\n viewKey,\n }\n }\n }\n\n return {\n Component: null,\n }\n}\n"],"mappings":"AAEA,SAASA,mBAAmB,QAAQ;AAEpC,OAAO,MAAMC,oBAAA,GAAuBA,CAAC;EACnCC,SAAS;EACTC,YAAY;EACZC;AAAK,CAON;EAIC,IAAI,OAAOA,KAAA,EAAOC,IAAA,KAAS,UAAU;IACnC,IAAIC,OAAA;IAEJ,MAAMC,eAAA,GAAkBC,MAAA,CAAOC,OAAO,CAACL,KAAA,CAAMC,IAAI,EAAEK,IAAI,CAAC,CAAC,CAACC,GAAA,EAAKC,IAAA,CAAK;MAClE,IAAI,OAAOA,IAAA,KAAS,YAAY,UAAUA,IAAA,EAAM;QAC9C,MAAMC,QAAA,GAAW,GAAGX,SAAA,GAAYU,IAAA,CAAKE,IAAI,EAAE;QAE3C,MAAMC,UAAA,GAAaf,mBAAA,CAAoB;UACrCG,YAAA;UACAa,KAAA,EAAO;UACPF,IAAA,EAAMD;QACR;QAEA,IAAIE,UAAA,EAAY;UACdT,OAAA,GAAUK,GAAA;QACZ;QAEA,OAAOI,UAAA;MACT;MAEA,OAAO;IACT,KAAK,EAAE;IAEP,IAAIR,eAAA,IAAmB,eAAeA,eAAA,EAAiB;MACrD,OAAO;QACLU,SAAA,EAAWV,eAAA,CAAgBU,SAAS;QACpCX;MACF;IACF;EACF;EAEA,OAAO;IACLW,SAAA,EAAW;EACb;AACF","ignoreList":[]}
@@ -1,11 +0,0 @@
1
- import type { DocumentPreferences, Payload, TypedUser } from 'payload';
2
- type Args = {
3
- collectionSlug?: string;
4
- globalSlug?: string;
5
- id?: number | string;
6
- payload: Payload;
7
- user: TypedUser;
8
- };
9
- export declare const getDocPreferences: ({ id, collectionSlug, globalSlug, payload, user, }: Args) => Promise<DocumentPreferences>;
10
- export {};
11
- //# sourceMappingURL=getDocPreferences.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getDocPreferences.d.ts","sourceRoot":"","sources":["../../../src/views/Document/getDocPreferences.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAItE,KAAK,IAAI,GAAG;IACV,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACpB,OAAO,EAAE,OAAO,CAAA;IAChB,IAAI,EAAE,SAAS,CAAA;CAChB,CAAA;AAED,eAAO,MAAM,iBAAiB,GAAU,oDAMrC,IAAI,KAAG,OAAO,CAAC,mBAAmB,CA2CpC,CAAA"}
@@ -1,45 +0,0 @@
1
- import { sanitizeID } from '@payloadcms/ui/shared';
2
- export const getDocPreferences = async ({
3
- id,
4
- collectionSlug,
5
- globalSlug,
6
- payload,
7
- user
8
- }) => {
9
- let preferencesKey;
10
- if (collectionSlug && id) {
11
- preferencesKey = `collection-${collectionSlug}-${id}`;
12
- }
13
- if (globalSlug) {
14
- preferencesKey = `global-${globalSlug}`;
15
- }
16
- if (preferencesKey) {
17
- const preferencesResult = await payload.find({
18
- collection: 'payload-preferences',
19
- depth: 0,
20
- limit: 1,
21
- where: {
22
- and: [{
23
- key: {
24
- equals: preferencesKey
25
- }
26
- }, {
27
- 'user.relationTo': {
28
- equals: user.collection
29
- }
30
- }, {
31
- 'user.value': {
32
- equals: sanitizeID(user.id)
33
- }
34
- }]
35
- }
36
- });
37
- if (preferencesResult?.docs?.[0]?.value) {
38
- return preferencesResult.docs[0].value;
39
- }
40
- }
41
- return {
42
- fields: {}
43
- };
44
- };
45
- //# sourceMappingURL=getDocPreferences.js.map