@payloadcms/ui 4.0.0-internal.543da65 → 4.0.0-internal.567a487

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 (1042) hide show
  1. package/dist/css/app.css +121 -0
  2. package/dist/css/forms.css +0 -6
  3. package/dist/css/spacing.css +11 -3
  4. package/dist/css/z-index.css +10 -0
  5. package/dist/elements/APIKeyInput/index.css +4 -4
  6. package/dist/elements/AddNewRelation/index.css +0 -1
  7. package/dist/elements/AnimateHeight/usePatchAnimateHeight.d.ts.map +1 -1
  8. package/dist/elements/AppHeader/index.css +7 -18
  9. package/dist/elements/AppHeader/index.d.ts.map +1 -1
  10. package/dist/elements/AppHeader/index.js +12 -9
  11. package/dist/elements/AppHeader/index.js.map +1 -1
  12. package/dist/elements/ArrayAction/index.d.ts +3 -0
  13. package/dist/elements/ArrayAction/index.d.ts.map +1 -1
  14. package/dist/elements/ArrayAction/index.js +83 -29
  15. package/dist/elements/ArrayAction/index.js.map +1 -1
  16. package/dist/elements/Autosave/index.d.ts.map +1 -1
  17. package/dist/elements/Autosave/index.js +3 -0
  18. package/dist/elements/Autosave/index.js.map +1 -1
  19. package/dist/elements/BranchSelector/NewBranchModal/index.css +46 -0
  20. package/dist/elements/BranchSelector/NewBranchModal/index.d.ts +12 -0
  21. package/dist/elements/BranchSelector/NewBranchModal/index.d.ts.map +1 -0
  22. package/dist/elements/BranchSelector/NewBranchModal/index.js +174 -0
  23. package/dist/elements/BranchSelector/NewBranchModal/index.js.map +1 -0
  24. package/dist/elements/BranchSelector/index.css +172 -0
  25. package/dist/elements/BranchSelector/index.d.ts +13 -0
  26. package/dist/elements/BranchSelector/index.d.ts.map +1 -0
  27. package/dist/elements/BranchSelector/index.js +255 -0
  28. package/dist/elements/BranchSelector/index.js.map +1 -0
  29. package/dist/elements/BulkUpload/EditMany/DrawerContent.js +2 -2
  30. package/dist/elements/BulkUpload/EditMany/DrawerContent.js.map +1 -1
  31. package/dist/elements/BulkUpload/FileSidebar/index.css +4 -0
  32. package/dist/elements/BulkUpload/FormsManager/createFormData.d.ts +2 -2
  33. package/dist/elements/BulkUpload/FormsManager/createFormData.d.ts.map +1 -1
  34. package/dist/elements/BulkUpload/FormsManager/createFormData.js +4 -15
  35. package/dist/elements/BulkUpload/FormsManager/createFormData.js.map +1 -1
  36. package/dist/elements/BulkUpload/FormsManager/index.d.ts.map +1 -1
  37. package/dist/elements/BulkUpload/FormsManager/index.js +7 -3
  38. package/dist/elements/BulkUpload/FormsManager/index.js.map +1 -1
  39. package/dist/elements/Button/index.css +2 -2
  40. package/dist/elements/Button/index.d.ts.map +1 -1
  41. package/dist/elements/ChangeSummary/index.css +18 -0
  42. package/dist/elements/ChangeSummary/index.d.ts +28 -0
  43. package/dist/elements/ChangeSummary/index.d.ts.map +1 -0
  44. package/dist/elements/ChangeSummary/index.js +147 -0
  45. package/dist/elements/ChangeSummary/index.js.map +1 -0
  46. package/dist/elements/ClipboardAction/ClipboardActionLabel.d.ts.map +1 -1
  47. package/dist/elements/ClipboardAction/clipboardUtilities.d.ts +8 -1
  48. package/dist/elements/ClipboardAction/clipboardUtilities.d.ts.map +1 -1
  49. package/dist/elements/ClipboardAction/clipboardUtilities.js +40 -8
  50. package/dist/elements/ClipboardAction/clipboardUtilities.js.map +1 -1
  51. package/dist/elements/ClipboardAction/clipboardUtilities.spec.js +120 -0
  52. package/dist/elements/ClipboardAction/clipboardUtilities.spec.js.map +1 -0
  53. package/dist/elements/ClipboardAction/index.d.ts.map +1 -1
  54. package/dist/elements/ClipboardAction/index.js +17 -1
  55. package/dist/elements/ClipboardAction/index.js.map +1 -1
  56. package/dist/elements/ClipboardAction/isClipboardDataValid.spec.js +144 -0
  57. package/dist/elements/ClipboardAction/isClipboardDataValid.spec.js.map +1 -0
  58. package/dist/elements/ClipboardAction/mergeFormStateFromClipboard.d.ts +10 -0
  59. package/dist/elements/ClipboardAction/mergeFormStateFromClipboard.d.ts.map +1 -1
  60. package/dist/elements/ClipboardAction/mergeFormStateFromClipboard.js +55 -0
  61. package/dist/elements/ClipboardAction/mergeFormStateFromClipboard.js.map +1 -1
  62. package/dist/elements/ClipboardAction/types.d.ts +3 -0
  63. package/dist/elements/ClipboardAction/types.d.ts.map +1 -1
  64. package/dist/elements/ClipboardAction/types.js.map +1 -1
  65. package/dist/elements/ClipboardAction/useCanPasteClipboard.d.ts +10 -0
  66. package/dist/elements/ClipboardAction/useCanPasteClipboard.d.ts.map +1 -0
  67. package/dist/elements/ClipboardAction/useCanPasteClipboard.js +21 -0
  68. package/dist/elements/ClipboardAction/useCanPasteClipboard.js.map +1 -0
  69. package/dist/elements/CodeEditor/CodeEditor.d.ts.map +1 -1
  70. package/dist/elements/CodeEditor/index.css +5 -5
  71. package/dist/elements/ColumnSelection/Popup.d.ts.map +1 -1
  72. package/dist/elements/ColumnSelection/Popup.js +5 -1
  73. package/dist/elements/ColumnSelection/Popup.js.map +1 -1
  74. package/dist/elements/Combobox/index.css +84 -23
  75. package/dist/elements/Combobox/index.d.ts +21 -0
  76. package/dist/elements/Combobox/index.d.ts.map +1 -1
  77. package/dist/elements/Combobox/index.js +66 -21
  78. package/dist/elements/Combobox/index.js.map +1 -1
  79. package/dist/elements/CommandPalette/index.css +0 -7
  80. package/dist/elements/CopyToClipboard/index.d.ts +1 -0
  81. package/dist/elements/CopyToClipboard/index.d.ts.map +1 -1
  82. package/dist/elements/CopyToClipboard/index.js +10 -8
  83. package/dist/elements/CopyToClipboard/index.js.map +1 -1
  84. package/dist/elements/CreateDocumentButton/index.d.ts.map +1 -1
  85. package/dist/elements/CreateDocumentButton/index.js +4 -1
  86. package/dist/elements/CreateDocumentButton/index.js.map +1 -1
  87. package/dist/elements/DatePicker/DatePicker.d.ts.map +1 -1
  88. package/dist/elements/DatePicker/DatePicker.js +1 -0
  89. package/dist/elements/DatePicker/DatePicker.js.map +1 -1
  90. package/dist/elements/DatePicker/getFormattedLocale.d.ts.map +1 -1
  91. package/dist/elements/DatePicker/index.css +1 -1
  92. package/dist/elements/DeleteDocument/index.d.ts.map +1 -1
  93. package/dist/elements/DeleteDocument/index.js +24 -2
  94. package/dist/elements/DeleteDocument/index.js.map +1 -1
  95. package/dist/elements/DeleteMany/index.d.ts.map +1 -1
  96. package/dist/elements/DeleteMany/index.js +4 -1
  97. package/dist/elements/DeleteMany/index.js.map +1 -1
  98. package/dist/elements/Dialog/DialogTitle/index.d.ts.map +1 -1
  99. package/dist/elements/DocumentControls/index.css +0 -2
  100. package/dist/elements/DocumentControls/index.d.ts +2 -2
  101. package/dist/elements/DocumentControls/index.d.ts.map +1 -1
  102. package/dist/elements/DocumentControls/index.js.map +1 -1
  103. package/dist/elements/DocumentDrawer/DrawerHeader/index.d.ts +2 -2
  104. package/dist/elements/DocumentDrawer/DrawerHeader/index.d.ts.map +1 -1
  105. package/dist/elements/DocumentDrawer/DrawerHeader/index.js.map +1 -1
  106. package/dist/elements/DocumentHeader/Tabs/Tab/index.css +5 -3
  107. package/dist/elements/DocumentHeader/Tabs/tabs/BranchChangesPill/index.css +12 -0
  108. package/dist/elements/DocumentHeader/Tabs/tabs/BranchChangesPill/index.d.ts +12 -0
  109. package/dist/elements/DocumentHeader/Tabs/tabs/BranchChangesPill/index.d.ts.map +1 -0
  110. package/dist/elements/DocumentHeader/Tabs/tabs/BranchChangesPill/index.js +83 -0
  111. package/dist/elements/DocumentHeader/Tabs/tabs/BranchChangesPill/index.js.map +1 -0
  112. package/dist/elements/DocumentHeader/Tabs/tabs/BranchSettingsTab/index.d.ts +14 -0
  113. package/dist/elements/DocumentHeader/Tabs/tabs/BranchSettingsTab/index.d.ts.map +1 -0
  114. package/dist/elements/DocumentHeader/Tabs/tabs/BranchSettingsTab/index.js +28 -0
  115. package/dist/elements/DocumentHeader/Tabs/tabs/BranchSettingsTab/index.js.map +1 -0
  116. package/dist/elements/DocumentHeader/Tabs/tabs/index.d.ts.map +1 -1
  117. package/dist/elements/DocumentHeader/Tabs/tabs/index.js +32 -1
  118. package/dist/elements/DocumentHeader/Tabs/tabs/index.js.map +1 -1
  119. package/dist/elements/DocumentLocked/index.d.ts +2 -2
  120. package/dist/elements/DocumentLocked/index.d.ts.map +1 -1
  121. package/dist/elements/DocumentLocked/index.js.map +1 -1
  122. package/dist/elements/DraggableSortable/useDraggableSortable/index.d.ts.map +1 -1
  123. package/dist/elements/Drawer/index.css +10 -4
  124. package/dist/elements/Drawer/index.d.ts.map +1 -1
  125. package/dist/elements/Drawer/index.js +1 -0
  126. package/dist/elements/Drawer/index.js.map +1 -1
  127. package/dist/elements/Drawer/useDrawerSlug.d.ts.map +1 -1
  128. package/dist/elements/DrawerActionHeader/index.d.ts.map +1 -1
  129. package/dist/elements/DuplicateDocument/SelectLocalesDrawer/index.js +3 -2
  130. package/dist/elements/DuplicateDocument/SelectLocalesDrawer/index.js.map +1 -1
  131. package/dist/elements/DuplicateDocument/index.d.ts.map +1 -1
  132. package/dist/elements/DuplicateDocument/index.js +6 -1
  133. package/dist/elements/DuplicateDocument/index.js.map +1 -1
  134. package/dist/elements/EditMany/DrawerContent.d.ts.map +1 -1
  135. package/dist/elements/EditMany/DrawerContent.js +6 -3
  136. package/dist/elements/EditMany/DrawerContent.js.map +1 -1
  137. package/dist/elements/FieldSelect/reduceFieldOptions.d.ts.map +1 -1
  138. package/dist/elements/FieldSelect/reduceFieldOptions.js +3 -1
  139. package/dist/elements/FieldSelect/reduceFieldOptions.js.map +1 -1
  140. package/dist/elements/FieldSelect/reduceFieldOptions.spec.js +143 -0
  141. package/dist/elements/FieldSelect/reduceFieldOptions.spec.js.map +1 -0
  142. package/dist/elements/FileDetails/StaticFileDetails/index.css +8 -9
  143. package/dist/elements/FileManager/FilePreview/index.css +3 -3
  144. package/dist/elements/FileManager/FileToolbar/index.d.ts.map +1 -1
  145. package/dist/elements/FileManager/FileToolbar/index.js +3 -0
  146. package/dist/elements/FileManager/FileToolbar/index.js.map +1 -1
  147. package/dist/elements/FileManager/index.css +36 -23
  148. package/dist/elements/FileManager/index.d.ts +1 -1
  149. package/dist/elements/FileManager/index.d.ts.map +1 -1
  150. package/dist/elements/FileManager/index.js +15 -4
  151. package/dist/elements/FileManager/index.js.map +1 -1
  152. package/dist/elements/HTMLDiff/diff/index.d.ts.map +1 -1
  153. package/dist/elements/HTMLDiff/index.d.ts.map +1 -1
  154. package/dist/elements/Hierarchy/ColumnBrowser/ColumnItem/index.css +0 -1
  155. package/dist/elements/Hierarchy/ColumnBrowser/index.d.ts.map +1 -1
  156. package/dist/elements/Hierarchy/ColumnBrowser/index.js +4 -1
  157. package/dist/elements/Hierarchy/ColumnBrowser/index.js.map +1 -1
  158. package/dist/elements/Hierarchy/Field/SelectedHierarchies.d.ts.map +1 -1
  159. package/dist/elements/Hierarchy/Field/SelectedHierarchies.js +4 -1
  160. package/dist/elements/Hierarchy/Field/SelectedHierarchies.js.map +1 -1
  161. package/dist/elements/Hierarchy/Modal/fetchAncestorPath.d.ts +2 -1
  162. package/dist/elements/Hierarchy/Modal/fetchAncestorPath.d.ts.map +1 -1
  163. package/dist/elements/Hierarchy/Modal/fetchAncestorPath.js +2 -0
  164. package/dist/elements/Hierarchy/Modal/fetchAncestorPath.js.map +1 -1
  165. package/dist/elements/Hierarchy/Modal/index.d.ts.map +1 -1
  166. package/dist/elements/Hierarchy/Modal/index.js +3 -0
  167. package/dist/elements/Hierarchy/Modal/index.js.map +1 -1
  168. package/dist/elements/Hierarchy/Modal/useHierarchyModal.d.ts.map +1 -1
  169. package/dist/elements/Hierarchy/MoveMany/index.d.ts.map +1 -1
  170. package/dist/elements/Hierarchy/MoveMany/index.js +4 -1
  171. package/dist/elements/Hierarchy/MoveMany/index.js.map +1 -1
  172. package/dist/elements/Hierarchy/Search/useHierarchySearch.d.ts.map +1 -1
  173. package/dist/elements/Hierarchy/Search/useHierarchySearch.js +3 -0
  174. package/dist/elements/Hierarchy/Search/useHierarchySearch.js.map +1 -1
  175. package/dist/elements/Hierarchy/Tree/HierarchySidebarTab.d.ts.map +1 -1
  176. package/dist/elements/Hierarchy/Tree/HierarchySidebarTab.js +109 -89
  177. package/dist/elements/Hierarchy/Tree/HierarchySidebarTab.js.map +1 -1
  178. package/dist/elements/Hierarchy/Tree/HierarchySidebarTab.server.d.ts.map +1 -1
  179. package/dist/elements/Hierarchy/Tree/HierarchySidebarTab.server.js +2 -0
  180. package/dist/elements/Hierarchy/Tree/HierarchySidebarTab.server.js.map +1 -1
  181. package/dist/elements/Hierarchy/Tree/TreeFocusContext.d.ts +1 -1
  182. package/dist/elements/Hierarchy/Tree/TreeFocusContext.d.ts.map +1 -1
  183. package/dist/elements/Hierarchy/Tree/TreeNode/index.css +0 -1
  184. package/dist/elements/Hierarchy/Tree/TreeNode/index.d.ts.map +1 -1
  185. package/dist/elements/Hierarchy/Tree/useChildren.d.ts.map +1 -1
  186. package/dist/elements/Hierarchy/Tree/useChildren.js +4 -1
  187. package/dist/elements/Hierarchy/Tree/useChildren.js.map +1 -1
  188. package/dist/elements/IDLabel/index.css +6 -0
  189. package/dist/elements/IDLabel/index.d.ts +1 -1
  190. package/dist/elements/IDLabel/index.d.ts.map +1 -1
  191. package/dist/elements/IDLabel/index.js +16 -21
  192. package/dist/elements/IDLabel/index.js.map +1 -1
  193. package/dist/elements/InputStepper/index.css +0 -1
  194. package/dist/elements/LeaveWithoutSaving/index.d.ts.map +1 -1
  195. package/dist/elements/LeaveWithoutSaving/usePreventLeave.d.ts.map +1 -1
  196. package/dist/elements/ListDrawer/index.d.ts.map +1 -1
  197. package/dist/elements/ListHeader/TitleActions/ListBulkUploadButton.d.ts +1 -7
  198. package/dist/elements/ListHeader/TitleActions/ListBulkUploadButton.d.ts.map +1 -1
  199. package/dist/elements/ListHeader/TitleActions/ListBulkUploadButton.js +26 -32
  200. package/dist/elements/ListHeader/TitleActions/ListBulkUploadButton.js.map +1 -1
  201. package/dist/elements/ListHeader/TitleActions/ListEmptyTrashButton.d.ts.map +1 -1
  202. package/dist/elements/ListHeader/TitleActions/ListEmptyTrashButton.js +6 -2
  203. package/dist/elements/ListHeader/TitleActions/ListEmptyTrashButton.js.map +1 -1
  204. package/dist/elements/LoadingOverlay/reducer.d.ts.map +1 -1
  205. package/dist/elements/Locked/index.css +0 -5
  206. package/dist/elements/Locked/index.d.ts +2 -2
  207. package/dist/elements/Locked/index.d.ts.map +1 -1
  208. package/dist/elements/Locked/index.js +38 -19
  209. package/dist/elements/Locked/index.js.map +1 -1
  210. package/dist/elements/MergeBranch/context.d.ts +67 -0
  211. package/dist/elements/MergeBranch/context.d.ts.map +1 -0
  212. package/dist/elements/MergeBranch/context.js +47 -0
  213. package/dist/elements/MergeBranch/context.js.map +1 -0
  214. package/dist/elements/MergeBranch/index.css +136 -0
  215. package/dist/elements/MergeBranch/index.d.ts +15 -0
  216. package/dist/elements/MergeBranch/index.d.ts.map +1 -0
  217. package/dist/elements/MergeBranch/index.js +545 -0
  218. package/dist/elements/MergeBranch/index.js.map +1 -0
  219. package/dist/elements/MergeBranch/provider.d.ts +12 -0
  220. package/dist/elements/MergeBranch/provider.d.ts.map +1 -0
  221. package/dist/elements/MergeBranch/provider.js +19 -0
  222. package/dist/elements/MergeBranch/provider.js.map +1 -0
  223. package/dist/elements/MergeBranch/slug.d.ts +9 -0
  224. package/dist/elements/MergeBranch/slug.d.ts.map +1 -0
  225. package/dist/elements/MergeBranch/slug.js +8 -0
  226. package/dist/elements/MergeBranch/slug.js.map +1 -0
  227. package/dist/elements/MiniCarousel/index.css +39 -37
  228. package/dist/elements/Nav/SidebarTabs/index.client.d.ts.map +1 -1
  229. package/dist/elements/Nav/SidebarTabs/index.client.js +12 -5
  230. package/dist/elements/Nav/SidebarTabs/index.client.js.map +1 -1
  231. package/dist/elements/Nav/SidebarTabs/index.css +0 -5
  232. package/dist/elements/Nav/SidebarTabs/renderTabServerFn.d.ts +1 -0
  233. package/dist/elements/Nav/SidebarTabs/renderTabServerFn.d.ts.map +1 -1
  234. package/dist/elements/Nav/SidebarTabs/renderTabServerFn.js +2 -1
  235. package/dist/elements/Nav/SidebarTabs/renderTabServerFn.js.map +1 -1
  236. package/dist/elements/Nav/context.js +2 -2
  237. package/dist/elements/Nav/context.js.map +1 -1
  238. package/dist/elements/Nav/getNavPrefs.d.ts +6 -0
  239. package/dist/elements/Nav/getNavPrefs.d.ts.map +1 -1
  240. package/dist/elements/Nav/getNavPrefs.js +14 -46
  241. package/dist/elements/Nav/getNavPrefs.js.map +1 -1
  242. package/dist/elements/Nav/index.css +0 -5
  243. package/dist/elements/NavGroup/index.css +0 -1
  244. package/dist/elements/NavGroup/index.js +1 -1
  245. package/dist/elements/NavGroup/index.js.map +1 -1
  246. package/dist/elements/Pagination/index.css +5 -0
  247. package/dist/elements/Pagination/index.d.ts.map +1 -1
  248. package/dist/elements/Pagination/index.js +21 -21
  249. package/dist/elements/Pagination/index.js.map +1 -1
  250. package/dist/elements/PermanentlyDeleteButton/index.d.ts.map +1 -1
  251. package/dist/elements/PermanentlyDeleteButton/index.js +4 -1
  252. package/dist/elements/PermanentlyDeleteButton/index.js.map +1 -1
  253. package/dist/elements/Popup/PopupButtonList/index.css +1 -1
  254. package/dist/elements/Popup/index.js +1 -1
  255. package/dist/elements/Popup/index.js.map +1 -1
  256. package/dist/elements/PreviewButton/index.d.ts +1 -2
  257. package/dist/elements/PreviewButton/index.d.ts.map +1 -1
  258. package/dist/elements/PreviewButton/index.js +11 -5
  259. package/dist/elements/PreviewButton/index.js.map +1 -1
  260. package/dist/elements/PreviewSizes/index.css +8 -9
  261. package/dist/elements/PublishButton/ScheduleDrawer/buildUpcomingColumns.d.ts.map +1 -1
  262. package/dist/elements/PublishButton/ScheduleDrawer/buildUpcomingScheduleWhere.d.ts.map +1 -1
  263. package/dist/elements/PublishButton/ScheduleDrawer/index.js +1 -1
  264. package/dist/elements/PublishButton/ScheduleDrawer/index.js.map +1 -1
  265. package/dist/elements/PublishButton/index.d.ts.map +1 -1
  266. package/dist/elements/PublishButton/index.js +6 -2
  267. package/dist/elements/PublishButton/index.js.map +1 -1
  268. package/dist/elements/PublishMany/DrawerContent.d.ts.map +1 -1
  269. package/dist/elements/PublishMany/DrawerContent.js +4 -1
  270. package/dist/elements/PublishMany/DrawerContent.js.map +1 -1
  271. package/dist/elements/QueryPresets/QueryPresetBar/index.js +1 -3
  272. package/dist/elements/QueryPresets/QueryPresetBar/index.js.map +1 -1
  273. package/dist/elements/ReactSelect/ClearIndicator/index.css +0 -1
  274. package/dist/elements/ReactSelect/DefaultMenuPortal.d.ts +7 -0
  275. package/dist/elements/ReactSelect/DefaultMenuPortal.d.ts.map +1 -0
  276. package/dist/elements/ReactSelect/DefaultMenuPortal.js +120 -0
  277. package/dist/elements/ReactSelect/DefaultMenuPortal.js.map +1 -0
  278. package/dist/elements/ReactSelect/MultiValue/index.css +0 -1
  279. package/dist/elements/ReactSelect/MultiValueLabel/index.css +2 -2
  280. package/dist/elements/ReactSelect/getCaptureMenuScroll.d.ts.map +1 -1
  281. package/dist/elements/ReactSelect/getMenuListStyles.d.ts +1 -1
  282. package/dist/elements/ReactSelect/getMenuListStyles.d.ts.map +1 -1
  283. package/dist/elements/ReactSelect/getMenuListStyles.js +13 -5
  284. package/dist/elements/ReactSelect/getMenuListStyles.js.map +1 -1
  285. package/dist/elements/ReactSelect/getMenuStyles.d.ts +10 -0
  286. package/dist/elements/ReactSelect/getMenuStyles.d.ts.map +1 -0
  287. package/dist/elements/ReactSelect/getMenuStyles.js +21 -0
  288. package/dist/elements/ReactSelect/getMenuStyles.js.map +1 -0
  289. package/dist/elements/ReactSelect/index.css +8 -4
  290. package/dist/elements/ReactSelect/index.d.ts.map +1 -1
  291. package/dist/elements/ReactSelect/index.js +24 -101
  292. package/dist/elements/ReactSelect/index.js.map +1 -1
  293. package/dist/elements/ReactSelect/types.d.ts +1 -2
  294. package/dist/elements/ReactSelect/types.d.ts.map +1 -1
  295. package/dist/elements/ReactSelect/types.js.map +1 -1
  296. package/dist/elements/RelationshipTable/AddNewButton.d.ts +2 -2
  297. package/dist/elements/RelationshipTable/AddNewButton.d.ts.map +1 -1
  298. package/dist/elements/RelationshipTable/Pagination.d.ts +0 -1
  299. package/dist/elements/RelationshipTable/Pagination.d.ts.map +1 -1
  300. package/dist/elements/RelationshipTable/Pagination.js +27 -77
  301. package/dist/elements/RelationshipTable/Pagination.js.map +1 -1
  302. package/dist/elements/RelationshipTable/index.css +0 -2
  303. package/dist/elements/RelationshipTable/index.d.ts +1 -0
  304. package/dist/elements/RelationshipTable/index.d.ts.map +1 -1
  305. package/dist/elements/RelationshipTable/index.js +41 -5
  306. package/dist/elements/RelationshipTable/index.js.map +1 -1
  307. package/dist/elements/RenderTitle/index.css +4 -0
  308. package/dist/elements/RenderTitle/index.d.ts.map +1 -1
  309. package/dist/elements/RenderTitle/index.js +18 -13
  310. package/dist/elements/RenderTitle/index.js.map +1 -1
  311. package/dist/elements/RestoreButton/index.d.ts.map +1 -1
  312. package/dist/elements/RestoreButton/index.js +4 -1
  313. package/dist/elements/RestoreButton/index.js.map +1 -1
  314. package/dist/elements/RestoreMany/index.d.ts.map +1 -1
  315. package/dist/elements/RestoreMany/index.js +3 -0
  316. package/dist/elements/RestoreMany/index.js.map +1 -1
  317. package/dist/elements/SaveDraftButton/index.d.ts.map +1 -1
  318. package/dist/elements/SaveDraftButton/index.js +15 -2
  319. package/dist/elements/SaveDraftButton/index.js.map +1 -1
  320. package/dist/elements/SchedulePublishButton/index.d.ts.map +1 -1
  321. package/dist/elements/SchedulePublishButton/index.js +7 -1
  322. package/dist/elements/SchedulePublishButton/index.js.map +1 -1
  323. package/dist/elements/Search/ListSearchFilter/index.d.ts.map +1 -1
  324. package/dist/elements/Search/ListSearchFilter/index.js +1 -0
  325. package/dist/elements/Search/ListSearchFilter/index.js.map +1 -1
  326. package/dist/elements/Search/SearchInput/index.d.ts +2 -0
  327. package/dist/elements/Search/SearchInput/index.d.ts.map +1 -1
  328. package/dist/elements/Search/SearchInput/index.js +21 -18
  329. package/dist/elements/Search/SearchInput/index.js.map +1 -1
  330. package/dist/elements/SelectAll/index.css +3 -1
  331. package/dist/elements/SelectRow/index.d.ts +5 -4
  332. package/dist/elements/SelectRow/index.d.ts.map +1 -1
  333. package/dist/elements/SelectRow/index.js +10 -7
  334. package/dist/elements/SelectRow/index.js.map +1 -1
  335. package/dist/elements/SidebarToggle/index.css +0 -17
  336. package/dist/elements/SortColumn/index.d.ts.map +1 -1
  337. package/dist/elements/SortColumn/index.js +42 -38
  338. package/dist/elements/SortColumn/index.js.map +1 -1
  339. package/dist/elements/SortHeader/index.d.ts.map +1 -1
  340. package/dist/elements/SortHeader/index.js +29 -26
  341. package/dist/elements/SortHeader/index.js.map +1 -1
  342. package/dist/elements/Status/index.d.ts.map +1 -1
  343. package/dist/elements/Status/index.js +16 -3
  344. package/dist/elements/Status/index.js.map +1 -1
  345. package/dist/elements/StepNav/index.css +71 -14
  346. package/dist/elements/StepNav/index.d.ts.map +1 -1
  347. package/dist/elements/StepNav/index.js +135 -69
  348. package/dist/elements/StepNav/index.js.map +1 -1
  349. package/dist/elements/Table/DefaultCell/fields/BranchStatus/index.css +34 -0
  350. package/dist/elements/Table/DefaultCell/fields/BranchStatus/index.d.ts +13 -0
  351. package/dist/elements/Table/DefaultCell/fields/BranchStatus/index.d.ts.map +1 -0
  352. package/dist/elements/Table/DefaultCell/fields/BranchStatus/index.js +51 -0
  353. package/dist/elements/Table/DefaultCell/fields/BranchStatus/index.js.map +1 -0
  354. package/dist/elements/Table/DefaultCell/fields/index.d.ts +1 -1
  355. package/dist/elements/Table/DefaultCell/fields/index.d.ts.map +1 -1
  356. package/dist/elements/Table/DefaultCell/index.d.ts.map +1 -1
  357. package/dist/elements/Table/DefaultCell/index.js +3 -11
  358. package/dist/elements/Table/DefaultCell/index.js.map +1 -1
  359. package/dist/elements/Table/OrderableRow.d.ts +3 -1
  360. package/dist/elements/Table/OrderableRow.d.ts.map +1 -1
  361. package/dist/elements/Table/OrderableRow.js +17 -1
  362. package/dist/elements/Table/OrderableRow.js.map +1 -1
  363. package/dist/elements/Table/OrderableRowDragPreview.d.ts.map +1 -1
  364. package/dist/elements/Table/OrderableTable.d.ts.map +1 -1
  365. package/dist/elements/Table/OrderableTable.js +22 -3
  366. package/dist/elements/Table/OrderableTable.js.map +1 -1
  367. package/dist/elements/Table/RelationshipProvider/index.d.ts.map +1 -1
  368. package/dist/elements/Table/RelationshipProvider/index.js +29 -23
  369. package/dist/elements/Table/RelationshipProvider/index.js.map +1 -1
  370. package/dist/elements/Table/index.css +19 -0
  371. package/dist/elements/TableSection/index.css +0 -1
  372. package/dist/elements/Tabs/index.d.ts.map +1 -1
  373. package/dist/elements/Thumbnail/createThumbnail.d.ts.map +1 -1
  374. package/dist/elements/Thumbnail/index.d.ts +1 -1
  375. package/dist/elements/Thumbnail/index.d.ts.map +1 -1
  376. package/dist/elements/Thumbnail/index.js.map +1 -1
  377. package/dist/elements/TimezonePicker/index.d.ts.map +1 -1
  378. package/dist/elements/TimezonePicker/index.js +5 -1
  379. package/dist/elements/TimezonePicker/index.js.map +1 -1
  380. package/dist/elements/Tooltip/index.css +15 -34
  381. package/dist/elements/Tooltip/index.d.ts +11 -3
  382. package/dist/elements/Tooltip/index.d.ts.map +1 -1
  383. package/dist/elements/Tooltip/index.js +151 -85
  384. package/dist/elements/Tooltip/index.js.map +1 -1
  385. package/dist/elements/UnpublishButton/index.d.ts.map +1 -1
  386. package/dist/elements/UnpublishButton/index.js +4 -1
  387. package/dist/elements/UnpublishButton/index.js.map +1 -1
  388. package/dist/elements/UnpublishMany/DrawerContent.d.ts.map +1 -1
  389. package/dist/elements/UnpublishMany/DrawerContent.js +4 -1
  390. package/dist/elements/UnpublishMany/DrawerContent.js.map +1 -1
  391. package/dist/elements/Upload/index.css +0 -5
  392. package/dist/elements/Upload/index.d.ts.map +1 -1
  393. package/dist/elements/UserMenu/SubMenuHeader/index.d.ts.map +1 -1
  394. package/dist/elements/UserMenu/SubMenuHeader/index.js +8 -9
  395. package/dist/elements/UserMenu/SubMenuHeader/index.js.map +1 -1
  396. package/dist/elements/UserMenu/index.css +26 -1
  397. package/dist/elements/WhereBuilder/Condition/Relationship/index.d.ts.map +1 -1
  398. package/dist/elements/WhereBuilder/Condition/Relationship/index.js +3 -0
  399. package/dist/elements/WhereBuilder/Condition/Relationship/index.js.map +1 -1
  400. package/dist/elements/WhereBuilder/Condition/Relationship/optionsReducer.d.ts.map +1 -1
  401. package/dist/elements/WhereBuilder/Condition/Select/formatOptions.d.ts.map +1 -1
  402. package/dist/elements/WhereBuilder/Condition/validOperators.d.ts.map +1 -1
  403. package/dist/elements/WhereBuilder/field-types.d.ts.map +1 -1
  404. package/dist/exports/client/index.d.ts +22 -2
  405. package/dist/exports/client/index.d.ts.map +1 -1
  406. package/dist/exports/client/index.js +1 -1
  407. package/dist/exports/client/index.js.map +3 -3
  408. package/dist/exports/layouts.d.ts +1 -0
  409. package/dist/exports/layouts.d.ts.map +1 -1
  410. package/dist/exports/layouts.js +1 -0
  411. package/dist/exports/layouts.js.map +1 -1
  412. package/dist/exports/shared/index.d.ts +1 -0
  413. package/dist/exports/shared/index.d.ts.map +1 -1
  414. package/dist/exports/shared/index.js +2 -2
  415. package/dist/exports/shared/index.js.map +4 -4
  416. package/dist/fields/Array/ArrayRow.d.ts +1 -0
  417. package/dist/fields/Array/ArrayRow.d.ts.map +1 -1
  418. package/dist/fields/Array/ArrayRow.js +99 -160
  419. package/dist/fields/Array/ArrayRow.js.map +1 -1
  420. package/dist/fields/Array/index.d.ts +1 -1
  421. package/dist/fields/Array/index.d.ts.map +1 -1
  422. package/dist/fields/Array/index.js +45 -14
  423. package/dist/fields/Array/index.js.map +1 -1
  424. package/dist/fields/Blocks/BlockRow.d.ts +1 -0
  425. package/dist/fields/Blocks/BlockRow.d.ts.map +1 -1
  426. package/dist/fields/Blocks/BlockRow.js +136 -195
  427. package/dist/fields/Blocks/BlockRow.js.map +1 -1
  428. package/dist/fields/Blocks/RowActions.d.ts +3 -0
  429. package/dist/fields/Blocks/RowActions.d.ts.map +1 -1
  430. package/dist/fields/Blocks/RowActions.js +26 -20
  431. package/dist/fields/Blocks/RowActions.js.map +1 -1
  432. package/dist/fields/Blocks/index.d.ts +1 -1
  433. package/dist/fields/Blocks/index.d.ts.map +1 -1
  434. package/dist/fields/Blocks/index.js +44 -13
  435. package/dist/fields/Blocks/index.js.map +1 -1
  436. package/dist/fields/Checkbox/Input.d.ts +2 -0
  437. package/dist/fields/Checkbox/Input.d.ts.map +1 -1
  438. package/dist/fields/Checkbox/Input.js +32 -26
  439. package/dist/fields/Checkbox/Input.js.map +1 -1
  440. package/dist/fields/Checkbox/index.css +37 -73
  441. package/dist/fields/Checkbox/index.d.ts +1 -1
  442. package/dist/fields/Code/index.css +1 -1
  443. package/dist/fields/Code/index.d.ts +2 -2
  444. package/dist/fields/Collapsible/index.d.ts +1 -1
  445. package/dist/fields/DateTime/index.d.ts +1 -1
  446. package/dist/fields/Email/index.d.ts +1 -1
  447. package/dist/fields/FieldError/index.css +0 -9
  448. package/dist/fields/FieldError/index.d.ts.map +1 -1
  449. package/dist/fields/FieldError/index.js +19 -9
  450. package/dist/fields/FieldError/index.js.map +1 -1
  451. package/dist/fields/Group/index.d.ts +2 -2
  452. package/dist/fields/JSON/index.d.ts +1 -1
  453. package/dist/fields/Join/index.css +9 -0
  454. package/dist/fields/Join/index.d.ts +1 -1
  455. package/dist/fields/Join/index.d.ts.map +1 -1
  456. package/dist/fields/Join/index.js +13 -9
  457. package/dist/fields/Join/index.js.map +1 -1
  458. package/dist/fields/Number/index.d.ts +1 -1
  459. package/dist/fields/Password/types.d.ts +3 -3
  460. package/dist/fields/Password/types.d.ts.map +1 -1
  461. package/dist/fields/Password/types.js.map +1 -1
  462. package/dist/fields/Point/index.d.ts +1 -1
  463. package/dist/fields/RadioGroup/index.css +0 -7
  464. package/dist/fields/Relationship/Input.d.ts.map +1 -1
  465. package/dist/fields/Relationship/Input.js +37 -15
  466. package/dist/fields/Relationship/Input.js.map +1 -1
  467. package/dist/fields/Relationship/findOptionsByValue.d.ts.map +1 -1
  468. package/dist/fields/Relationship/index.d.ts +1 -1
  469. package/dist/fields/Relationship/optionsReducer.d.ts.map +1 -1
  470. package/dist/fields/Relationship/select-components/MultiValueLabel/index.css +1 -1
  471. package/dist/fields/Row/index.d.ts +1 -1
  472. package/dist/fields/Select/index.d.ts +1 -1
  473. package/dist/fields/Select/index.d.ts.map +1 -1
  474. package/dist/fields/Slug/index.css +0 -1
  475. package/dist/fields/Slug/index.d.ts.map +1 -1
  476. package/dist/fields/Slug/index.js +75 -111
  477. package/dist/fields/Slug/index.js.map +1 -1
  478. package/dist/fields/Tabs/index.d.ts +1 -1
  479. package/dist/fields/Text/index.d.ts +1 -1
  480. package/dist/fields/Text/types.d.ts +2 -2
  481. package/dist/fields/Text/types.d.ts.map +1 -1
  482. package/dist/fields/Text/types.js.map +1 -1
  483. package/dist/fields/Textarea/index.d.ts +1 -1
  484. package/dist/fields/Upload/Input.d.ts.map +1 -1
  485. package/dist/fields/Upload/Input.js +4 -1
  486. package/dist/fields/Upload/Input.js.map +1 -1
  487. package/dist/fields/Upload/index.css +19 -4
  488. package/dist/fields/mergeFieldStyles.d.ts +1 -1
  489. package/dist/fields/mergeFieldStyles.d.ts.map +1 -1
  490. package/dist/forms/Form/context.d.ts.map +1 -1
  491. package/dist/forms/Form/createNestedClientFieldPath.d.ts.map +1 -1
  492. package/dist/forms/Form/errorMessages.d.ts.map +1 -1
  493. package/dist/forms/Form/fieldReducer.d.ts.map +1 -1
  494. package/dist/forms/Form/fieldReducer.js +3 -1
  495. package/dist/forms/Form/fieldReducer.js.map +1 -1
  496. package/dist/forms/Form/index.d.ts.map +1 -1
  497. package/dist/forms/Form/index.js +12 -15
  498. package/dist/forms/Form/index.js.map +1 -1
  499. package/dist/forms/Form/mergeServerFormState.d.ts.map +1 -1
  500. package/dist/forms/Form/reduceToSerializableFields.d.ts.map +1 -1
  501. package/dist/forms/Form/rowHelpers.d.ts.map +1 -1
  502. package/dist/forms/Form/rows.d.ts.map +1 -1
  503. package/dist/forms/Form/types.d.ts +1 -1
  504. package/dist/forms/Form/types.d.ts.map +1 -1
  505. package/dist/forms/Form/types.js.map +1 -1
  506. package/dist/forms/RenderFields/RenderField.d.ts +1 -1
  507. package/dist/forms/RenderFields/index.css +16 -2
  508. package/dist/forms/WatchChildErrors/buildPathSegments.d.ts.map +1 -1
  509. package/dist/forms/WatchChildErrors/index.d.ts.map +1 -1
  510. package/dist/forms/WatchChildErrors/index.js +2 -2
  511. package/dist/forms/WatchChildErrors/index.js.map +1 -1
  512. package/dist/forms/fieldSchemasToFormState/addFieldStatePromise.d.ts.map +1 -1
  513. package/dist/forms/fieldSchemasToFormState/addFieldStatePromise.js +1 -1
  514. package/dist/forms/fieldSchemasToFormState/addFieldStatePromise.js.map +1 -1
  515. package/dist/forms/fieldSchemasToFormState/calculateDefaultValues/index.d.ts.map +1 -1
  516. package/dist/forms/fieldSchemasToFormState/calculateDefaultValues/iterateFields.d.ts.map +1 -1
  517. package/dist/forms/fieldSchemasToFormState/calculateDefaultValues/promise.d.ts.map +1 -1
  518. package/dist/forms/fieldSchemasToFormState/index.d.ts.map +1 -1
  519. package/dist/forms/fieldSchemasToFormState/iterateFields.d.ts.map +1 -1
  520. package/dist/forms/fieldSchemasToFormState/renderField.d.ts.map +1 -1
  521. package/dist/forms/fieldSchemasToFormState/renderField.js +1 -3
  522. package/dist/forms/fieldSchemasToFormState/renderField.js.map +1 -1
  523. package/dist/forms/useField/index.d.ts.map +1 -1
  524. package/dist/forms/withCondition/index.d.ts +1 -1
  525. package/dist/forms/withCondition/index.d.ts.map +1 -1
  526. package/dist/hooks/useDebouncedCallback.d.ts.map +1 -1
  527. package/dist/hooks/useDelay.d.ts.map +1 -1
  528. package/dist/hooks/useElementHeightVariable.d.ts.map +1 -1
  529. package/dist/hooks/useHotkey.d.ts.map +1 -1
  530. package/dist/hooks/useIntersect.d.ts.map +1 -1
  531. package/dist/hooks/usePayloadAPI.d.ts.map +1 -1
  532. package/dist/hooks/usePayloadAPI.js +44 -40
  533. package/dist/hooks/usePayloadAPI.js.map +1 -1
  534. package/dist/hooks/usePopupWindow.d.ts +1 -1
  535. package/dist/hooks/usePopupWindow.d.ts.map +1 -1
  536. package/dist/hooks/useRelatedCollections.d.ts.map +1 -1
  537. package/dist/hooks/useResize.d.ts.map +1 -1
  538. package/dist/hooks/useUseAsTitle.d.ts.map +1 -1
  539. package/dist/icons/Branch/index.css +5 -0
  540. package/dist/icons/Branch/index.d.ts +7 -0
  541. package/dist/icons/Branch/index.d.ts.map +1 -0
  542. package/dist/icons/Branch/index.js +25 -0
  543. package/dist/icons/Branch/index.js.map +1 -0
  544. package/dist/icons/Edit/index.d.ts +0 -1
  545. package/dist/icons/Edit/index.d.ts.map +1 -1
  546. package/dist/icons/Edit/index.js +4 -4
  547. package/dist/icons/Edit/index.js.map +1 -1
  548. package/dist/layouts/Root/index.d.ts +1 -1
  549. package/dist/layouts/Root/index.d.ts.map +1 -1
  550. package/dist/layouts/Root/index.js +15 -5
  551. package/dist/layouts/Root/index.js.map +1 -1
  552. package/dist/layouts/Root/index.spec.js +20 -0
  553. package/dist/layouts/Root/index.spec.js.map +1 -0
  554. package/dist/layouts/Root/viewport.d.ts +5 -0
  555. package/dist/layouts/Root/viewport.d.ts.map +1 -0
  556. package/dist/layouts/Root/viewport.js +17 -0
  557. package/dist/layouts/Root/viewport.js.map +1 -0
  558. package/dist/providers/Actions/index.d.ts +1 -0
  559. package/dist/providers/Actions/index.d.ts.map +1 -1
  560. package/dist/providers/Actions/index.js +43 -11
  561. package/dist/providers/Actions/index.js.map +1 -1
  562. package/dist/providers/Auth/AuthSessionDebug/index.css +48 -0
  563. package/dist/providers/Auth/AuthSessionDebug/index.d.ts +13 -0
  564. package/dist/providers/Auth/AuthSessionDebug/index.d.ts.map +1 -0
  565. package/dist/providers/Auth/AuthSessionDebug/index.js +93 -0
  566. package/dist/providers/Auth/AuthSessionDebug/index.js.map +1 -0
  567. package/dist/providers/Auth/AuthSessionDebug/utilities.d.ts +21 -0
  568. package/dist/providers/Auth/AuthSessionDebug/utilities.d.ts.map +1 -0
  569. package/dist/providers/Auth/AuthSessionDebug/utilities.js +53 -0
  570. package/dist/providers/Auth/AuthSessionDebug/utilities.js.map +1 -0
  571. package/dist/providers/Auth/authSessionRequests.d.ts +27 -0
  572. package/dist/providers/Auth/authSessionRequests.d.ts.map +1 -0
  573. package/dist/providers/Auth/authSessionRequests.js +119 -0
  574. package/dist/providers/Auth/authSessionRequests.js.map +1 -0
  575. package/dist/providers/Auth/authSessionRequests.spec.js +121 -0
  576. package/dist/providers/Auth/authSessionRequests.spec.js.map +1 -0
  577. package/dist/providers/Auth/index.d.ts +5 -59
  578. package/dist/providers/Auth/index.d.ts.map +1 -1
  579. package/dist/providers/Auth/index.js +283 -135
  580. package/dist/providers/Auth/index.js.map +1 -1
  581. package/dist/providers/Auth/sessionActivity.d.ts +23 -0
  582. package/dist/providers/Auth/sessionActivity.d.ts.map +1 -0
  583. package/dist/providers/Auth/sessionActivity.js +49 -0
  584. package/dist/providers/Auth/sessionActivity.js.map +1 -0
  585. package/dist/providers/Auth/sessionActivity.spec.js +44 -0
  586. package/dist/providers/Auth/sessionActivity.spec.js.map +1 -0
  587. package/dist/providers/Auth/sessionTiming.d.ts +11 -0
  588. package/dist/providers/Auth/sessionTiming.d.ts.map +1 -0
  589. package/dist/providers/Auth/sessionTiming.js +18 -0
  590. package/dist/providers/Auth/sessionTiming.js.map +1 -0
  591. package/dist/providers/Auth/tabSessionSync/index.d.ts +17 -0
  592. package/dist/providers/Auth/tabSessionSync/index.d.ts.map +1 -0
  593. package/dist/providers/Auth/tabSessionSync/index.js +263 -0
  594. package/dist/providers/Auth/tabSessionSync/index.js.map +1 -0
  595. package/dist/providers/Auth/tabSessionSync/index.spec.js +463 -0
  596. package/dist/providers/Auth/tabSessionSync/index.spec.js.map +1 -0
  597. package/dist/providers/Auth/tabSessionSync/types.d.ts +107 -0
  598. package/dist/providers/Auth/tabSessionSync/types.d.ts.map +1 -0
  599. package/dist/providers/Auth/tabSessionSync/types.js +6 -0
  600. package/dist/providers/Auth/tabSessionSync/types.js.map +1 -0
  601. package/dist/providers/Auth/tabSessionSync/useTabSessionSync.d.ts +11 -0
  602. package/dist/providers/Auth/tabSessionSync/useTabSessionSync.d.ts.map +1 -0
  603. package/dist/providers/Auth/tabSessionSync/useTabSessionSync.js +90 -0
  604. package/dist/providers/Auth/tabSessionSync/useTabSessionSync.js.map +1 -0
  605. package/dist/providers/Auth/tabSessionSync/utilities.d.ts +26 -0
  606. package/dist/providers/Auth/tabSessionSync/utilities.d.ts.map +1 -0
  607. package/dist/providers/Auth/tabSessionSync/utilities.js +159 -0
  608. package/dist/providers/Auth/tabSessionSync/utilities.js.map +1 -0
  609. package/dist/providers/Auth/types.d.ts +65 -0
  610. package/dist/providers/Auth/types.d.ts.map +1 -0
  611. package/dist/providers/Auth/types.js +2 -0
  612. package/dist/providers/Auth/types.js.map +1 -0
  613. package/dist/providers/Auth/useAuthSessionTimers.d.ts +26 -0
  614. package/dist/providers/Auth/useAuthSessionTimers.d.ts.map +1 -0
  615. package/dist/providers/Auth/useAuthSessionTimers.js +203 -0
  616. package/dist/providers/Auth/useAuthSessionTimers.js.map +1 -0
  617. package/dist/providers/Auth/useAuthSessionTimers.spec.js +311 -0
  618. package/dist/providers/Auth/useAuthSessionTimers.spec.js.map +1 -0
  619. package/dist/providers/Branch/index.d.ts +68 -0
  620. package/dist/providers/Branch/index.d.ts.map +1 -0
  621. package/dist/providers/Branch/index.js +193 -0
  622. package/dist/providers/Branch/index.js.map +1 -0
  623. package/dist/providers/Branch/index.server.d.ts +14 -0
  624. package/dist/providers/Branch/index.server.d.ts.map +1 -0
  625. package/dist/providers/Branch/index.server.js +125 -0
  626. package/dist/providers/Branch/index.server.js.map +1 -0
  627. package/dist/providers/ClientFunction/index.d.ts.map +1 -1
  628. package/dist/providers/DocumentInfo/index.d.ts.map +1 -1
  629. package/dist/providers/DocumentInfo/index.js +5 -1
  630. package/dist/providers/DocumentInfo/index.js.map +1 -1
  631. package/dist/providers/DocumentInfo/types.d.ts +5 -5
  632. package/dist/providers/DocumentInfo/types.d.ts.map +1 -1
  633. package/dist/providers/DocumentInfo/types.js.map +1 -1
  634. package/dist/providers/DocumentInfo/useGetDocPermissions.d.ts +2 -1
  635. package/dist/providers/DocumentInfo/useGetDocPermissions.d.ts.map +1 -1
  636. package/dist/providers/DocumentInfo/useGetDocPermissions.js +3 -1
  637. package/dist/providers/DocumentInfo/useGetDocPermissions.js.map +1 -1
  638. package/dist/providers/DocumentTitle/index.d.ts +1 -0
  639. package/dist/providers/DocumentTitle/index.d.ts.map +1 -1
  640. package/dist/providers/DocumentTitle/index.js +2 -0
  641. package/dist/providers/DocumentTitle/index.js.map +1 -1
  642. package/dist/providers/Embed/index.d.ts +24 -0
  643. package/dist/providers/Embed/index.d.ts.map +1 -0
  644. package/dist/providers/Embed/index.js +105 -0
  645. package/dist/providers/Embed/index.js.map +1 -0
  646. package/dist/providers/FormErrorHandler/index.d.ts +24 -0
  647. package/dist/providers/FormErrorHandler/index.d.ts.map +1 -0
  648. package/dist/providers/FormErrorHandler/index.js +6 -0
  649. package/dist/providers/FormErrorHandler/index.js.map +1 -0
  650. package/dist/providers/Hierarchy/index.d.ts.map +1 -1
  651. package/dist/providers/Hierarchy/index.js +4 -1
  652. package/dist/providers/Hierarchy/index.js.map +1 -1
  653. package/dist/providers/ListQuery/index.d.ts.map +1 -1
  654. package/dist/providers/ListQuery/index.js +8 -1
  655. package/dist/providers/ListQuery/index.js.map +1 -1
  656. package/dist/providers/ListQuery/mergeQuery.d.ts.map +1 -1
  657. package/dist/providers/ListQuery/sanitizeQuery.d.ts.map +1 -1
  658. package/dist/providers/LivePreview/sizeReducer.d.ts +1 -1
  659. package/dist/providers/LivePreview/sizeReducer.d.ts.map +1 -1
  660. package/dist/providers/Locale/index.d.ts.map +1 -1
  661. package/dist/providers/Locale/index.js +41 -36
  662. package/dist/providers/Locale/index.js.map +1 -1
  663. package/dist/providers/Preferences/index.d.ts +3 -1
  664. package/dist/providers/Preferences/index.d.ts.map +1 -1
  665. package/dist/providers/Preferences/index.js +9 -3
  666. package/dist/providers/Preferences/index.js.map +1 -1
  667. package/dist/providers/Root/index.d.ts +1 -0
  668. package/dist/providers/Root/index.d.ts.map +1 -1
  669. package/dist/providers/Root/index.js +37 -31
  670. package/dist/providers/Root/index.js.map +1 -1
  671. package/dist/providers/RouteTransition/ProgressBar/index.js +4 -1
  672. package/dist/providers/RouteTransition/ProgressBar/index.js.map +1 -1
  673. package/dist/providers/RouteTransition/ProgressBar/index.spec.js +44 -0
  674. package/dist/providers/RouteTransition/ProgressBar/index.spec.js.map +1 -0
  675. package/dist/providers/RouteTransition/index.d.ts +2 -0
  676. package/dist/providers/RouteTransition/index.d.ts.map +1 -1
  677. package/dist/providers/RouteTransition/index.js +42 -14
  678. package/dist/providers/RouteTransition/index.js.map +1 -1
  679. package/dist/providers/SidebarTabs/index.d.ts +3 -2
  680. package/dist/providers/SidebarTabs/index.d.ts.map +1 -1
  681. package/dist/providers/SidebarTabs/index.js.map +1 -1
  682. package/dist/providers/TableColumns/buildColumnState/filterFields.d.ts.map +1 -1
  683. package/dist/providers/TableColumns/buildColumnState/filterFieldsWithPermissions.d.ts.map +1 -1
  684. package/dist/providers/TableColumns/buildColumnState/findValueFromPath.d.ts.map +1 -1
  685. package/dist/providers/TableColumns/buildColumnState/index.d.ts.map +1 -1
  686. package/dist/providers/TableColumns/buildColumnState/index.js +1 -1
  687. package/dist/providers/TableColumns/buildColumnState/index.js.map +1 -1
  688. package/dist/providers/TableColumns/buildColumnState/index.spec.js +40 -0
  689. package/dist/providers/TableColumns/buildColumnState/index.spec.js.map +1 -0
  690. package/dist/providers/TableColumns/getInitialColumns.d.ts +1 -1
  691. package/dist/providers/TableColumns/getInitialColumns.d.ts.map +1 -1
  692. package/dist/providers/Theme/index.d.ts +5 -2
  693. package/dist/providers/Theme/index.d.ts.map +1 -1
  694. package/dist/providers/Theme/index.js +109 -96
  695. package/dist/providers/Theme/index.js.map +1 -1
  696. package/dist/providers/Theme/shared.d.ts +3 -0
  697. package/dist/providers/Theme/shared.d.ts.map +1 -0
  698. package/dist/providers/Theme/shared.js +2 -0
  699. package/dist/providers/Theme/shared.js.map +1 -0
  700. package/dist/providers/UploadEdits/index.d.ts.map +1 -1
  701. package/dist/providers/UploadHandlers/index.d.ts +2 -7
  702. package/dist/providers/UploadHandlers/index.d.ts.map +1 -1
  703. package/dist/providers/UploadHandlers/index.js +102 -42
  704. package/dist/providers/UploadHandlers/index.js.map +1 -1
  705. package/dist/styles.css +23 -10
  706. package/dist/templates/Default/index.d.ts +1 -0
  707. package/dist/templates/Default/index.d.ts.map +1 -1
  708. package/dist/templates/Default/index.js +44 -36
  709. package/dist/templates/Default/index.js.map +1 -1
  710. package/dist/utilities/api.d.ts.map +1 -1
  711. package/dist/utilities/buildClientFieldSchemaMap/index.d.ts.map +1 -1
  712. package/dist/utilities/buildClientFieldSchemaMap/traverseFields.d.ts.map +1 -1
  713. package/dist/utilities/buildFieldSchemaMap/index.d.ts.map +1 -1
  714. package/dist/utilities/buildFieldSchemaMap/traverseFields.d.ts.map +1 -1
  715. package/dist/utilities/buildFormState.d.ts +2 -2
  716. package/dist/utilities/buildFormState.d.ts.map +1 -1
  717. package/dist/utilities/buildFormState.js.map +1 -1
  718. package/dist/utilities/checkDependencies.d.ts.map +1 -1
  719. package/dist/utilities/combineFieldLabel.d.ts.map +1 -1
  720. package/dist/utilities/combineFieldLabel.js +5 -1
  721. package/dist/utilities/combineFieldLabel.js.map +1 -1
  722. package/dist/utilities/copyDataFromLocale.d.ts.map +1 -1
  723. package/dist/utilities/filterOutUploadFields.d.ts.map +1 -1
  724. package/dist/utilities/findLocaleFromCode.d.ts.map +1 -1
  725. package/dist/utilities/formatAbsoluteURL.d.ts.map +1 -1
  726. package/dist/utilities/formatDocTitle/formatDateTitle.d.ts.map +1 -1
  727. package/dist/utilities/formatDocTitle/formatRelationshipTitle.d.ts.map +1 -1
  728. package/dist/utilities/formatDocTitle/index.d.ts +1 -1
  729. package/dist/utilities/formatDocTitle/index.d.ts.map +1 -1
  730. package/dist/utilities/formatDocTitle/index.js +1 -1
  731. package/dist/utilities/formatDocTitle/index.js.map +1 -1
  732. package/dist/utilities/formatFields.d.ts.map +1 -1
  733. package/dist/utilities/formatMetadata.d.ts.map +1 -1
  734. package/dist/utilities/generateFieldID.d.ts +1 -1
  735. package/dist/utilities/generateFieldID.d.ts.map +1 -1
  736. package/dist/utilities/generateFieldID.js +2 -2
  737. package/dist/utilities/generateFieldID.js.map +1 -1
  738. package/dist/utilities/getAdminPreferences.d.ts +14 -0
  739. package/dist/utilities/getAdminPreferences.d.ts.map +1 -0
  740. package/dist/utilities/getAdminPreferences.js +22 -0
  741. package/dist/utilities/getAdminPreferences.js.map +1 -0
  742. package/dist/utilities/getColumns.d.ts.map +1 -1
  743. package/dist/utilities/getDisplayedFieldValue.d.ts.map +1 -1
  744. package/dist/utilities/getDocPreferences.d.ts.map +1 -1
  745. package/dist/utilities/getDocumentData.d.ts.map +1 -1
  746. package/dist/utilities/getDocumentPermissions.d.ts.map +1 -1
  747. package/dist/utilities/getGlobalData.d.ts +2 -2
  748. package/dist/utilities/getGlobalData.d.ts.map +1 -1
  749. package/dist/utilities/getGlobalData.js.map +1 -1
  750. package/dist/utilities/getHasScheduledPublish.d.ts.map +1 -1
  751. package/dist/utilities/getIsLocked.d.ts.map +1 -1
  752. package/dist/utilities/getLanguageDir.d.ts +12 -0
  753. package/dist/utilities/getLanguageDir.d.ts.map +1 -0
  754. package/dist/utilities/getLanguageDir.js +12 -0
  755. package/dist/utilities/getLanguageDir.js.map +1 -0
  756. package/dist/utilities/getOffsetTop.d.ts.map +1 -1
  757. package/dist/utilities/getRequestBranch.d.ts +20 -0
  758. package/dist/utilities/getRequestBranch.d.ts.map +1 -0
  759. package/dist/utilities/getRequestBranch.js +35 -0
  760. package/dist/utilities/getRequestBranch.js.map +1 -0
  761. package/dist/utilities/getRequestEmbed.d.ts +14 -0
  762. package/dist/utilities/getRequestEmbed.d.ts.map +1 -0
  763. package/dist/utilities/getRequestEmbed.js +10 -0
  764. package/dist/utilities/getRequestEmbed.js.map +1 -0
  765. package/dist/utilities/getRequestHighContrast.d.ts.map +1 -1
  766. package/dist/utilities/getRequestLanguage.d.ts.map +1 -1
  767. package/dist/utilities/getRequestTheme.d.ts +1 -1
  768. package/dist/utilities/getRequestTheme.d.ts.map +1 -1
  769. package/dist/utilities/getRequestTheme.js +1 -1
  770. package/dist/utilities/getRequestTheme.js.map +1 -1
  771. package/dist/utilities/getRouteWithoutAdmin.d.ts.map +1 -1
  772. package/dist/utilities/getSupportedMonacoLocale.d.ts.map +1 -1
  773. package/dist/utilities/getVersions.d.ts +6 -1
  774. package/dist/utilities/getVersions.d.ts.map +1 -1
  775. package/dist/utilities/getVersions.js +5 -0
  776. package/dist/utilities/getVersions.js.map +1 -1
  777. package/dist/utilities/handleAuthRedirect.d.ts.map +1 -1
  778. package/dist/utilities/handleBackToDashboard.d.ts.map +1 -1
  779. package/dist/utilities/handleFormStateLocking.d.ts.map +1 -1
  780. package/dist/utilities/handleGoBack.d.ts.map +1 -1
  781. package/dist/utilities/handleLivePreview.d.ts.map +1 -1
  782. package/dist/utilities/handlePreview.d.ts.map +1 -1
  783. package/dist/utilities/handleServerFunctions.d.ts +32 -8
  784. package/dist/utilities/handleServerFunctions.d.ts.map +1 -1
  785. package/dist/utilities/handleServerFunctions.js +17 -37
  786. package/dist/utilities/handleServerFunctions.js.map +1 -1
  787. package/dist/utilities/handleStaleDataCheck.d.ts.map +1 -1
  788. package/dist/utilities/handleTakeOver.d.ts +5 -5
  789. package/dist/utilities/handleTakeOver.d.ts.map +1 -1
  790. package/dist/utilities/handleTakeOver.js.map +1 -1
  791. package/dist/utilities/hasOptionLabelJSXElement.d.ts.map +1 -1
  792. package/dist/utilities/hasSavePermission.d.ts.map +1 -1
  793. package/dist/utilities/initReq.d.ts.map +1 -1
  794. package/dist/utilities/initReq.js +8 -0
  795. package/dist/utilities/initReq.js.map +1 -1
  796. package/dist/utilities/isClientUserObject.d.ts +2 -2
  797. package/dist/utilities/isClientUserObject.d.ts.map +1 -1
  798. package/dist/utilities/isClientUserObject.js.map +1 -1
  799. package/dist/utilities/isCustomAdminView.d.ts.map +1 -1
  800. package/dist/utilities/isEditing.d.ts.map +1 -1
  801. package/dist/utilities/isPathMatchingRoute.d.ts.map +1 -1
  802. package/dist/utilities/isPublicAdminRoute.d.ts.map +1 -1
  803. package/dist/utilities/isURLAllowed.d.ts.map +1 -1
  804. package/dist/utilities/matchesSearchQuery.d.ts +12 -0
  805. package/dist/utilities/matchesSearchQuery.d.ts.map +1 -0
  806. package/dist/utilities/matchesSearchQuery.js +23 -0
  807. package/dist/utilities/matchesSearchQuery.js.map +1 -0
  808. package/dist/utilities/matchesSearchQuery.spec.js +87 -0
  809. package/dist/utilities/matchesSearchQuery.spec.js.map +1 -0
  810. package/dist/utilities/recentlyViewed.d.ts.map +1 -1
  811. package/dist/utilities/reduceFieldsToOptions.d.ts.map +1 -1
  812. package/dist/utilities/reduceFieldsToValuesWithValidation.d.ts.map +1 -1
  813. package/dist/utilities/renderTable.d.ts +2 -2
  814. package/dist/utilities/renderTable.d.ts.map +1 -1
  815. package/dist/utilities/renderTable.js +18 -2
  816. package/dist/utilities/renderTable.js.map +1 -1
  817. package/dist/utilities/resolveFilterOptions.d.ts +1 -1
  818. package/dist/utilities/resolveFilterOptions.d.ts.map +1 -1
  819. package/dist/utilities/sanitizeFilterOptionsQuery.d.ts.map +1 -1
  820. package/dist/utilities/scheduleMergeHandler.d.ts +33 -0
  821. package/dist/utilities/scheduleMergeHandler.d.ts.map +1 -0
  822. package/dist/utilities/scheduleMergeHandler.js +119 -0
  823. package/dist/utilities/scheduleMergeHandler.js.map +1 -0
  824. package/dist/utilities/schedulePublishHandler.d.ts.map +1 -1
  825. package/dist/utilities/schedulePublishHandler.js +10 -0
  826. package/dist/utilities/schedulePublishHandler.js.map +1 -1
  827. package/dist/utilities/scrollToID.d.ts.map +1 -1
  828. package/dist/utilities/selectiveCache.d.ts.map +1 -1
  829. package/dist/utilities/serverFunctionRegistry.d.ts +12 -7
  830. package/dist/utilities/serverFunctionRegistry.d.ts.map +1 -1
  831. package/dist/utilities/serverFunctionRegistry.js +31 -7
  832. package/dist/utilities/serverFunctionRegistry.js.map +1 -1
  833. package/dist/utilities/setsAreEqual.d.ts.map +1 -1
  834. package/dist/utilities/slugify.d.ts.map +1 -1
  835. package/dist/utilities/slugify.js +49 -6
  836. package/dist/utilities/slugify.js.map +1 -1
  837. package/dist/utilities/traverseForLocalizedFields.d.ts.map +1 -1
  838. package/dist/utilities/upsertPreferences.d.ts.map +1 -1
  839. package/dist/views/API/index.client.d.ts.map +1 -1
  840. package/dist/views/API/index.client.js +10 -2
  841. package/dist/views/API/index.client.js.map +1 -1
  842. package/dist/views/Branch/BranchChanges/index.d.ts +23 -0
  843. package/dist/views/Branch/BranchChanges/index.d.ts.map +1 -0
  844. package/dist/views/Branch/BranchChanges/index.js +150 -0
  845. package/dist/views/Branch/BranchChanges/index.js.map +1 -0
  846. package/dist/views/Branch/ChangedDocuments/index.css +118 -0
  847. package/dist/views/Branch/ChangedDocuments/index.d.ts +34 -0
  848. package/dist/views/Branch/ChangedDocuments/index.d.ts.map +1 -0
  849. package/dist/views/Branch/ChangedDocuments/index.js +233 -0
  850. package/dist/views/Branch/ChangedDocuments/index.js.map +1 -0
  851. package/dist/views/Branch/DiscardChangesButton/index.d.ts +16 -0
  852. package/dist/views/Branch/DiscardChangesButton/index.d.ts.map +1 -0
  853. package/dist/views/Branch/DiscardChangesButton/index.js +106 -0
  854. package/dist/views/Branch/DiscardChangesButton/index.js.map +1 -0
  855. package/dist/views/Branch/Manage/index.d.ts +11 -0
  856. package/dist/views/Branch/Manage/index.d.ts.map +1 -0
  857. package/dist/views/Branch/Manage/index.js +71 -0
  858. package/dist/views/Branch/Manage/index.js.map +1 -0
  859. package/dist/views/Branch/MergeChangesButton/index.d.ts +14 -0
  860. package/dist/views/Branch/MergeChangesButton/index.d.ts.map +1 -0
  861. package/dist/views/Branch/MergeChangesButton/index.js +55 -0
  862. package/dist/views/Branch/MergeChangesButton/index.js.map +1 -0
  863. package/dist/views/Branch/MergeLedger/index.css +137 -0
  864. package/dist/views/Branch/MergeLedger/index.d.ts +31 -0
  865. package/dist/views/Branch/MergeLedger/index.d.ts.map +1 -0
  866. package/dist/views/Branch/MergeLedger/index.js +211 -0
  867. package/dist/views/Branch/MergeLedger/index.js.map +1 -0
  868. package/dist/views/Branch/ScheduledMerges/index.css +83 -0
  869. package/dist/views/Branch/ScheduledMerges/index.d.ts +32 -0
  870. package/dist/views/Branch/ScheduledMerges/index.d.ts.map +1 -0
  871. package/dist/views/Branch/ScheduledMerges/index.js +183 -0
  872. package/dist/views/Branch/ScheduledMerges/index.js.map +1 -0
  873. package/dist/views/Branch/index.css +77 -0
  874. package/dist/views/Branch/index.d.ts +17 -0
  875. package/dist/views/Branch/index.d.ts.map +1 -0
  876. package/dist/views/Branch/index.js +188 -0
  877. package/dist/views/Branch/index.js.map +1 -0
  878. package/dist/views/Branch/renderBranchDiff.d.ts +29 -0
  879. package/dist/views/Branch/renderBranchDiff.d.ts.map +1 -0
  880. package/dist/views/Branch/renderBranchDiff.js +151 -0
  881. package/dist/views/Branch/renderBranchDiff.js.map +1 -0
  882. package/dist/views/Branch/renderMergeDiff.d.ts +24 -0
  883. package/dist/views/Branch/renderMergeDiff.d.ts.map +1 -0
  884. package/dist/views/Branch/renderMergeDiff.js +94 -0
  885. package/dist/views/Branch/renderMergeDiff.js.map +1 -0
  886. package/dist/views/Branches/index.d.ts +16 -0
  887. package/dist/views/Branches/index.d.ts.map +1 -0
  888. package/dist/views/Branches/index.js +54 -0
  889. package/dist/views/Branches/index.js.map +1 -0
  890. package/dist/views/CollectionTrash/generateCollectionTrashMetadata.d.ts.map +1 -1
  891. package/dist/views/Dashboard/Default/ModularDashboard/DashboardStepNav.d.ts.map +1 -1
  892. package/dist/views/Dashboard/Default/ModularDashboard/DashboardStepNav.js +3 -2
  893. package/dist/views/Dashboard/Default/ModularDashboard/DashboardStepNav.js.map +1 -1
  894. package/dist/views/Dashboard/Default/ModularDashboard/WidgetEditControl.d.ts.map +1 -1
  895. package/dist/views/Dashboard/Default/ModularDashboard/WidgetEditControl.js +7 -7
  896. package/dist/views/Dashboard/Default/ModularDashboard/WidgetEditControl.js.map +1 -1
  897. package/dist/views/Dashboard/Default/ModularDashboard/index.client.d.ts.map +1 -1
  898. package/dist/views/Dashboard/Default/ModularDashboard/index.client.js +104 -66
  899. package/dist/views/Dashboard/Default/ModularDashboard/index.client.js.map +1 -1
  900. package/dist/views/Dashboard/Default/ModularDashboard/index.css +29 -144
  901. package/dist/views/Dashboard/Default/ModularDashboard/renderWidget/RenderWidget.js +4 -4
  902. package/dist/views/Dashboard/Default/ModularDashboard/renderWidget/RenderWidget.js.map +1 -1
  903. package/dist/views/Dashboard/Default/ModularDashboard/renderWidget/renderWidgetServerFn.js +10 -10
  904. package/dist/views/Dashboard/Default/ModularDashboard/renderWidget/renderWidgetServerFn.js.map +1 -1
  905. package/dist/views/Dashboard/Default/index.d.ts +2 -2
  906. package/dist/views/Dashboard/Default/index.d.ts.map +1 -1
  907. package/dist/views/Dashboard/Default/index.js.map +1 -1
  908. package/dist/views/Document/getCustomDocumentViewByKey.d.ts +1 -1
  909. package/dist/views/Document/getCustomDocumentViewByKey.d.ts.map +1 -1
  910. package/dist/views/Document/getCustomViewByRoute.d.ts +1 -1
  911. package/dist/views/Document/getCustomViewByRoute.d.ts.map +1 -1
  912. package/dist/views/Document/getDocumentView.d.ts.map +1 -1
  913. package/dist/views/Document/getDocumentView.js +21 -2
  914. package/dist/views/Document/getDocumentView.js.map +1 -1
  915. package/dist/views/Document/getMetaBySegment.d.ts.map +1 -1
  916. package/dist/views/Document/getMetaBySegment.js +9 -0
  917. package/dist/views/Document/getMetaBySegment.js.map +1 -1
  918. package/dist/views/Document/index.d.ts +3 -1
  919. package/dist/views/Document/index.d.ts.map +1 -1
  920. package/dist/views/Document/index.js +8 -1
  921. package/dist/views/Document/index.js.map +1 -1
  922. package/dist/views/Document/recordRecentlyViewed.d.ts.map +1 -1
  923. package/dist/views/Edit/index.css +61 -53
  924. package/dist/views/Edit/index.d.ts.map +1 -1
  925. package/dist/views/Edit/index.js.map +1 -1
  926. package/dist/views/HierarchyList/HierarchyTable/SlotTable.d.ts +2 -2
  927. package/dist/views/HierarchyList/HierarchyTable/SlotTable.d.ts.map +1 -1
  928. package/dist/views/HierarchyList/HierarchyTable/SlotTable.js.map +1 -1
  929. package/dist/views/HierarchyList/HierarchyTable/index.d.ts.map +1 -1
  930. package/dist/views/HierarchyList/HierarchyTable/index.js +6 -2
  931. package/dist/views/HierarchyList/HierarchyTable/index.js.map +1 -1
  932. package/dist/views/HierarchyList/HierarchyTable/types.d.ts +2 -2
  933. package/dist/views/HierarchyList/HierarchyTable/types.d.ts.map +1 -1
  934. package/dist/views/HierarchyList/HierarchyTable/types.js.map +1 -1
  935. package/dist/views/HierarchyList/TypeFilter/index.d.ts.map +1 -1
  936. package/dist/views/HierarchyList/TypeFilter/index.js +3 -0
  937. package/dist/views/HierarchyList/TypeFilter/index.js.map +1 -1
  938. package/dist/views/HierarchyList/index.css +1 -1
  939. package/dist/views/HierarchyList/index.d.ts.map +1 -1
  940. package/dist/views/HierarchyList/index.js +2 -6
  941. package/dist/views/HierarchyList/index.js.map +1 -1
  942. package/dist/views/List/ListHeader/index.d.ts +1 -10
  943. package/dist/views/List/ListHeader/index.d.ts.map +1 -1
  944. package/dist/views/List/ListHeader/index.js +1 -3
  945. package/dist/views/List/ListHeader/index.js.map +1 -1
  946. package/dist/views/List/createSerializableValue.d.ts.map +1 -1
  947. package/dist/views/List/extractRelationshipDisplayValue.d.ts.map +1 -1
  948. package/dist/views/List/extractValueOrRelationshipID.d.ts.map +1 -1
  949. package/dist/views/List/generateListViewMetadata.d.ts.map +1 -1
  950. package/dist/views/List/handleGroupBy.d.ts.map +1 -1
  951. package/dist/views/List/handleHierarchy.d.ts +1 -1
  952. package/dist/views/List/handleHierarchy.d.ts.map +1 -1
  953. package/dist/views/List/index.client.d.ts.map +1 -1
  954. package/dist/views/List/index.client.js +0 -14
  955. package/dist/views/List/index.client.js.map +1 -1
  956. package/dist/views/List/index.css +6 -1
  957. package/dist/views/List/index.d.ts.map +1 -1
  958. package/dist/views/List/index.js +4 -0
  959. package/dist/views/List/index.js.map +1 -1
  960. package/dist/views/List/renderListViewSlots.d.ts.map +1 -1
  961. package/dist/views/List/resolveAllFilterOptions.d.ts.map +1 -1
  962. package/dist/views/List/transformColumnsToSelect.d.ts.map +1 -1
  963. package/dist/views/Logout/index.d.ts.map +1 -1
  964. package/dist/views/Logout/index.js +11 -0
  965. package/dist/views/Logout/index.js.map +1 -1
  966. package/dist/views/NotFound/page.d.ts.map +1 -1
  967. package/dist/views/Root/generateCustomViewMetadata.d.ts.map +1 -1
  968. package/dist/views/Root/generatePageMetadata.d.ts.map +1 -1
  969. package/dist/views/Root/getCustomCollectionViewByRoute.d.ts +1 -1
  970. package/dist/views/Root/getCustomCollectionViewByRoute.d.ts.map +1 -1
  971. package/dist/views/Root/getCustomCollectionViewByRoute.js.map +1 -1
  972. package/dist/views/Root/getCustomGlobalViewByRoute.d.ts +1 -1
  973. package/dist/views/Root/getCustomGlobalViewByRoute.d.ts.map +1 -1
  974. package/dist/views/Root/getCustomGlobalViewByRoute.js.map +1 -1
  975. package/dist/views/Root/getCustomViewByKey.d.ts.map +1 -1
  976. package/dist/views/Root/getCustomViewByKey.js.map +1 -1
  977. package/dist/views/Root/getCustomViewByRoute.d.ts.map +1 -1
  978. package/dist/views/Root/getRouteData.d.ts.map +1 -1
  979. package/dist/views/Root/getRouteData.js +12 -4
  980. package/dist/views/Root/getRouteData.js.map +1 -1
  981. package/dist/views/Root/index.d.ts +12 -1
  982. package/dist/views/Root/index.d.ts.map +1 -1
  983. package/dist/views/Root/index.js +11 -3
  984. package/dist/views/Root/index.js.map +1 -1
  985. package/dist/views/Unauthorized/index.d.ts.map +1 -1
  986. package/dist/views/Version/Default/index.css +26 -2
  987. package/dist/views/Version/Default/index.d.ts.map +1 -1
  988. package/dist/views/Version/Default/index.js +18 -6
  989. package/dist/views/Version/Default/index.js.map +1 -1
  990. package/dist/views/Version/Default/types.d.ts +9 -0
  991. package/dist/views/Version/Default/types.d.ts.map +1 -1
  992. package/dist/views/Version/Default/types.js.map +1 -1
  993. package/dist/views/Version/RenderFieldsToDiff/RenderVersionFieldsToDiff.d.ts.map +1 -1
  994. package/dist/views/Version/RenderFieldsToDiff/buildVersionFields.d.ts.map +1 -1
  995. package/dist/views/Version/RenderFieldsToDiff/buildVersionFields.js +8 -0
  996. package/dist/views/Version/RenderFieldsToDiff/buildVersionFields.js.map +1 -1
  997. package/dist/views/Version/RenderFieldsToDiff/fields/Relationship/generateLabelFromValue.d.ts.map +1 -1
  998. package/dist/views/Version/RenderFieldsToDiff/index.d.ts.map +1 -1
  999. package/dist/views/Version/Restore/index.d.ts.map +1 -1
  1000. package/dist/views/Version/Restore/index.js +6 -3
  1001. package/dist/views/Version/Restore/index.js.map +1 -1
  1002. package/dist/views/Version/SelectComparison/VersionDrawer/index.d.ts.map +1 -1
  1003. package/dist/views/Version/index.d.ts.map +1 -1
  1004. package/dist/views/Version/index.js +4 -0
  1005. package/dist/views/Version/index.js.map +1 -1
  1006. package/dist/views/Versions/buildColumns.d.ts +3 -2
  1007. package/dist/views/Versions/buildColumns.d.ts.map +1 -1
  1008. package/dist/views/Versions/buildColumns.js +21 -1
  1009. package/dist/views/Versions/buildColumns.js.map +1 -1
  1010. package/dist/views/Versions/cells/Branch/index.d.ts +12 -0
  1011. package/dist/views/Versions/cells/Branch/index.d.ts.map +1 -0
  1012. package/dist/views/Versions/cells/Branch/index.js +27 -0
  1013. package/dist/views/Versions/cells/Branch/index.js.map +1 -0
  1014. package/dist/views/Versions/fetchVersions.d.ts +4 -4
  1015. package/dist/views/Versions/fetchVersions.d.ts.map +1 -1
  1016. package/dist/views/Versions/index.client.d.ts +0 -1
  1017. package/dist/views/Versions/index.client.d.ts.map +1 -1
  1018. package/dist/views/Versions/index.client.js.map +1 -1
  1019. package/dist/views/Versions/index.d.ts.map +1 -1
  1020. package/dist/views/Versions/index.js +2 -14
  1021. package/dist/views/Versions/index.js.map +1 -1
  1022. package/dist/widgets/CollectionCards/getCollectionCardsData.d.ts +2 -2
  1023. package/dist/widgets/CollectionCards/getCollectionCardsData.d.ts.map +1 -1
  1024. package/dist/widgets/CollectionCards/getCollectionCardsData.js.map +1 -1
  1025. package/dist/widgets/CollectionCards/index.client.js.map +1 -1
  1026. package/dist/widgets/WidgetCard/index.css +1 -1
  1027. package/package.json +6 -10
  1028. package/dist/elements/Nav/NavToggler/index.css +0 -12
  1029. package/dist/elements/Nav/NavToggler/index.d.ts +0 -9
  1030. package/dist/elements/Nav/NavToggler/index.d.ts.map +0 -1
  1031. package/dist/elements/Nav/NavToggler/index.js +0 -91
  1032. package/dist/elements/Nav/NavToggler/index.js.map +0 -1
  1033. package/dist/elements/RelationshipTable/Pagination.css +0 -39
  1034. package/dist/scss/app.scss +0 -183
  1035. package/dist/scss/colors.scss +0 -191
  1036. package/dist/scss/custom.css +0 -1
  1037. package/dist/scss/queries.scss +0 -27
  1038. package/dist/scss/styles.scss +0 -9
  1039. package/dist/scss/svg.scss +0 -10
  1040. package/dist/scss/toastify.scss +0 -61
  1041. package/dist/scss/vars.scss +0 -192
  1042. package/dist/scss/z-index.scss +0 -9
@@ -0,0 +1,17 @@
1
+ import type { DocumentViewServerProps } from 'payload';
2
+ import React from 'react';
3
+ import './index.css';
4
+ /**
5
+ * The default view for a branch: what the branch has changed, ready to review and
6
+ * merge.
7
+ *
8
+ * This is the default rather than the branch's own form because the form is
9
+ * incidental — a name and a description — while the changes are the reason the
10
+ * branch exists. The form lives one click away at `/manage`.
11
+ *
12
+ * Only the change registry is read here. Each document's diff is fetched by the
13
+ * client as its row is opened or approached, because a branch can hold hundreds
14
+ * and rendering every field tree up front would dominate the page load.
15
+ */
16
+ export declare function BranchChangesView(props: DocumentViewServerProps): Promise<React.JSX.Element>;
17
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/views/Branch/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAA;AAOtD,OAAO,KAAK,MAAM,OAAO,CAAA;AAUzB,OAAO,aAAa,CAAA;AAKpB;;;;;;;;;;;GAWG;AACH,wBAAsB,iBAAiB,CAAC,KAAK,EAAE,uBAAuB,8BA4NrE"}
@@ -0,0 +1,188 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { branchChangesCollectionSlug, branchesCollectionSlug, branchMergesCollectionSlug } from 'payload/shared';
3
+ import React from 'react';
4
+ // eslint-disable-next-line payload/no-imports-from-exports-dir -- Server component must reference exports dir for proper client boundary
5
+ import { BranchChanges } from '../../exports/client/index.js';
6
+ import { buildUpcomingMergeWhere } from '../../utilities/scheduleMergeHandler.js';
7
+ import { SetDocumentStepNav } from '../Edit/SetDocumentStepNav/index.js';
8
+ import './index.css';
9
+ /** Small: each event lists every document it merged, so pages grow with the events. */
10
+ const MERGE_HISTORY_PAGE_SIZE = 5;
11
+ /**
12
+ * The default view for a branch: what the branch has changed, ready to review and
13
+ * merge.
14
+ *
15
+ * This is the default rather than the branch's own form because the form is
16
+ * incidental — a name and a description — while the changes are the reason the
17
+ * branch exists. The form lives one click away at `/manage`.
18
+ *
19
+ * Only the change registry is read here. Each document's diff is fetched by the
20
+ * client as its row is opened or approached, because a branch can hold hundreds
21
+ * and rendering every field tree up front would dominate the page load.
22
+ */
23
+ export async function BranchChangesView(props) {
24
+ const {
25
+ initPageResult: {
26
+ collectionConfig,
27
+ docID: branchID,
28
+ req,
29
+ req: {
30
+ i18n,
31
+ payload
32
+ }
33
+ }
34
+ } = props;
35
+ const branch = branchID ? await payload.findByID({
36
+ id: branchID,
37
+ collection: branchesCollectionSlug,
38
+ depth: 0,
39
+ overrideAccess: false,
40
+ req,
41
+ user: req.user
42
+ }) : null;
43
+ const slug = branch?.slug;
44
+ const changes = slug ? await payload.find({
45
+ collection: branchChangesCollectionSlug,
46
+ depth: 0,
47
+ overrideAccess: false,
48
+ pagination: false,
49
+ req,
50
+ sort: 'collectionSlug',
51
+ user: req.user,
52
+ where: {
53
+ branch: {
54
+ equals: slug
55
+ }
56
+ }
57
+ }) : null;
58
+ const documentChanges = (changes?.docs ?? []).reduce((acc, change) => {
59
+ const row = change;
60
+ // A global is listed alongside the documents rather than in a section of its own:
61
+ // it is one more thing this branch changed, and merging works on the same rows.
62
+ if (row.entityType === 'global' && row.globalSlug) {
63
+ acc.push({
64
+ id: String(row.id),
65
+ globalSlug: row.globalSlug,
66
+ operation: 'update'
67
+ });
68
+ return acc;
69
+ }
70
+ const docID = typeof row.doc === 'object' ? row.doc?.value : row.doc;
71
+ if (row.collectionSlug && docID !== undefined && docID !== null && row.operation) {
72
+ acc.push({
73
+ id: String(row.id),
74
+ collectionSlug: row.collectionSlug,
75
+ docID,
76
+ operation: row.operation
77
+ });
78
+ }
79
+ return acc;
80
+ }, []);
81
+ // Upcoming schedules, soonest first. A branch can carry several — schedule a merge,
82
+ // keep working, schedule another — so this is a list rather than a flag.
83
+ const scheduledJobs = slug ? await payload.find({
84
+ collection: 'payload-jobs',
85
+ depth: 0,
86
+ limit: 25,
87
+ overrideAccess: false,
88
+ pagination: false,
89
+ req,
90
+ sort: 'waitUntil',
91
+ user: req.user,
92
+ where: buildUpcomingMergeWhere({
93
+ branchSlug: slug
94
+ })
95
+ }) : null;
96
+ const scheduledMerges = (scheduledJobs?.docs ?? []).reduce((acc, job) => {
97
+ const row = job;
98
+ if (!row.waitUntil) {
99
+ return acc;
100
+ }
101
+ const selected = row.input?.changes?.length ? new Set(row.input.changes.map(String)) : null;
102
+ acc.push({
103
+ id: String(row.id),
104
+ // What a schedule will actually apply, resolved against what is pending *now*:
105
+ // a schedule with no selection takes whatever is on the branch when it fires,
106
+ // and a selection can name changes that have since been discarded.
107
+ changes: selected ? documentChanges.filter(change => selected.has(String(change.id))) : documentChanges,
108
+ closeBranch: Boolean(row.input?.closeBranch),
109
+ isEverything: !selected,
110
+ waitUntil: row.waitUntil
111
+ });
112
+ return acc;
113
+ }, []);
114
+ // The merge history, newest first and paginated: a long-lived branch accumulates
115
+ // one event per merge indefinitely, and each event carries a snapshot per document
116
+ // it merged, so this is the one read on this page that grows without bound.
117
+ const historyPage = Number(props.searchParams?.historyPage ?? 1);
118
+ const historyPageNumber = Number.isFinite(historyPage) && historyPage > 0 ? historyPage : 1;
119
+ const merges = slug ? await payload.find({
120
+ collection: branchMergesCollectionSlug,
121
+ depth: 0,
122
+ limit: MERGE_HISTORY_PAGE_SIZE,
123
+ overrideAccess: false,
124
+ page: historyPageNumber,
125
+ req,
126
+ // `changes.before` / `changes.after` are whole-document snapshots, so they
127
+ // are left out of the list read — a row's diff is fetched when it is opened.
128
+ select: {
129
+ branch: true,
130
+ changes: {
131
+ collectionSlug: true,
132
+ docID: true,
133
+ docTitle: true,
134
+ globalSlug: true,
135
+ operation: true
136
+ },
137
+ mergedAt: true,
138
+ mergedByLabel: true
139
+ },
140
+ sort: '-mergedAt',
141
+ user: req.user,
142
+ where: {
143
+ branch: {
144
+ equals: slug
145
+ }
146
+ }
147
+ }) : null;
148
+ const mergeEvents = (merges?.docs ?? []).map(event => {
149
+ const row = event;
150
+ return {
151
+ id: String(row.id),
152
+ changes: (row.changes ?? []).map(change => ({
153
+ collectionSlug: change.collectionSlug ?? '',
154
+ docID: change.docID ?? '',
155
+ docTitle: change.docTitle ?? change.docID ?? '',
156
+ globalSlug: change.globalSlug,
157
+ operation: change.operation ?? 'update'
158
+ })),
159
+ mergedAt: row.mergedAt ?? '',
160
+ mergedByLabel: row.mergedByLabel
161
+ };
162
+ });
163
+ // Resolved here rather than passed through: the label is a function on this
164
+ // collection, and `SetDocumentStepNav` is a client component.
165
+ const pluralLabel = typeof collectionConfig?.labels?.plural === 'function' ? collectionConfig.labels.plural({
166
+ i18n,
167
+ t: i18n.t
168
+ }) : collectionConfig?.labels?.plural;
169
+ return /*#__PURE__*/_jsxs(React.Fragment, {
170
+ children: [/*#__PURE__*/_jsx(SetDocumentStepNav, {
171
+ collectionSlug: branchesCollectionSlug,
172
+ id: branchID,
173
+ pluralLabel: pluralLabel,
174
+ useAsTitle: collectionConfig?.admin?.useAsTitle
175
+ }), branchID !== undefined && branchID !== null && /*#__PURE__*/_jsx(BranchChanges, {
176
+ branchID: branchID,
177
+ branchName: branch?.name ?? slug ?? '',
178
+ branchSlug: slug ?? '',
179
+ changes: documentChanges,
180
+ historyPage: historyPageNumber,
181
+ historyTotalPages: merges?.totalPages ?? 1,
182
+ isClosed: branch?.status === 'closed',
183
+ mergeEvents: mergeEvents,
184
+ scheduledMerges: scheduledMerges
185
+ })]
186
+ });
187
+ }
188
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":["branchChangesCollectionSlug","branchesCollectionSlug","branchMergesCollectionSlug","React","BranchChanges","buildUpcomingMergeWhere","SetDocumentStepNav","MERGE_HISTORY_PAGE_SIZE","BranchChangesView","props","initPageResult","collectionConfig","docID","branchID","req","i18n","payload","branch","findByID","id","collection","depth","overrideAccess","user","slug","changes","find","pagination","sort","where","equals","documentChanges","docs","reduce","acc","change","row","entityType","globalSlug","push","String","operation","doc","value","collectionSlug","undefined","scheduledJobs","limit","branchSlug","scheduledMerges","job","waitUntil","selected","input","length","Set","map","filter","has","closeBranch","Boolean","isEverything","historyPage","Number","searchParams","historyPageNumber","isFinite","merges","page","select","docTitle","mergedAt","mergedByLabel","mergeEvents","event","pluralLabel","labels","plural","t","_jsxs","Fragment","_jsx","useAsTitle","admin","branchName","name","historyTotalPages","totalPages","isClosed","status"],"sources":["../../../src/views/Branch/index.tsx"],"sourcesContent":["import type { DocumentViewServerProps } from 'payload'\n\nimport {\n branchChangesCollectionSlug,\n branchesCollectionSlug,\n branchMergesCollectionSlug,\n} from 'payload/shared'\nimport React from 'react'\n\nimport type { BranchChange } from './ChangedDocuments/index.js'\nimport type { MergeEvent } from './MergeLedger/index.js'\nimport type { ScheduledMerge } from './ScheduledMerges/index.js'\n\n// eslint-disable-next-line payload/no-imports-from-exports-dir -- Server component must reference exports dir for proper client boundary\nimport { BranchChanges } from '../../exports/client/index.js'\nimport { buildUpcomingMergeWhere } from '../../utilities/scheduleMergeHandler.js'\nimport { SetDocumentStepNav } from '../Edit/SetDocumentStepNav/index.js'\nimport './index.css'\n\n/** Small: each event lists every document it merged, so pages grow with the events. */\nconst MERGE_HISTORY_PAGE_SIZE = 5\n\n/**\n * The default view for a branch: what the branch has changed, ready to review and\n * merge.\n *\n * This is the default rather than the branch's own form because the form is\n * incidental — a name and a description — while the changes are the reason the\n * branch exists. The form lives one click away at `/manage`.\n *\n * Only the change registry is read here. Each document's diff is fetched by the\n * client as its row is opened or approached, because a branch can hold hundreds\n * and rendering every field tree up front would dominate the page load.\n */\nexport async function BranchChangesView(props: DocumentViewServerProps) {\n const {\n initPageResult: {\n collectionConfig,\n docID: branchID,\n req,\n req: { i18n, payload },\n },\n } = props\n\n const branch = branchID\n ? await payload.findByID({\n id: branchID,\n collection: branchesCollectionSlug,\n depth: 0,\n overrideAccess: false,\n req,\n user: req.user,\n })\n : null\n\n const slug = (branch as { slug?: string } | null)?.slug\n\n const changes = slug\n ? await payload.find({\n collection: branchChangesCollectionSlug,\n depth: 0,\n overrideAccess: false,\n pagination: false,\n req,\n sort: 'collectionSlug',\n user: req.user,\n where: { branch: { equals: slug } },\n })\n : null\n\n const documentChanges: BranchChange[] = (changes?.docs ?? []).reduce<BranchChange[]>(\n (acc, change) => {\n const row = change as {\n collectionSlug?: string\n doc?: { value?: number | string } | number | string\n entityType?: string\n globalSlug?: string\n id: number | string\n operation?: BranchChange['operation']\n }\n\n // A global is listed alongside the documents rather than in a section of its own:\n // it is one more thing this branch changed, and merging works on the same rows.\n if (row.entityType === 'global' && row.globalSlug) {\n acc.push({\n id: String(row.id),\n globalSlug: row.globalSlug,\n operation: 'update',\n })\n\n return acc\n }\n\n const docID = typeof row.doc === 'object' ? row.doc?.value : row.doc\n\n if (row.collectionSlug && docID !== undefined && docID !== null && row.operation) {\n acc.push({\n id: String(row.id),\n collectionSlug: row.collectionSlug,\n docID,\n operation: row.operation,\n })\n }\n\n return acc\n },\n [],\n )\n\n // Upcoming schedules, soonest first. A branch can carry several — schedule a merge,\n // keep working, schedule another — so this is a list rather than a flag.\n const scheduledJobs = slug\n ? await payload.find({\n collection: 'payload-jobs',\n depth: 0,\n limit: 25,\n overrideAccess: false,\n pagination: false,\n req,\n sort: 'waitUntil',\n user: req.user,\n where: buildUpcomingMergeWhere({ branchSlug: slug }),\n })\n : null\n\n const scheduledMerges: ScheduledMerge[] = (scheduledJobs?.docs ?? []).reduce<ScheduledMerge[]>(\n (acc, job) => {\n const row = job as {\n id: number | string\n input?: { changes?: string[]; closeBranch?: boolean }\n waitUntil?: string\n }\n\n if (!row.waitUntil) {\n return acc\n }\n\n const selected = row.input?.changes?.length ? new Set(row.input.changes.map(String)) : null\n\n acc.push({\n id: String(row.id),\n // What a schedule will actually apply, resolved against what is pending *now*:\n // a schedule with no selection takes whatever is on the branch when it fires,\n // and a selection can name changes that have since been discarded.\n changes: selected\n ? documentChanges.filter((change) => selected.has(String(change.id)))\n : documentChanges,\n closeBranch: Boolean(row.input?.closeBranch),\n isEverything: !selected,\n waitUntil: row.waitUntil,\n })\n\n return acc\n },\n [],\n )\n\n // The merge history, newest first and paginated: a long-lived branch accumulates\n // one event per merge indefinitely, and each event carries a snapshot per document\n // it merged, so this is the one read on this page that grows without bound.\n const historyPage = Number(\n (props.searchParams as Record<string, string | undefined> | undefined)?.historyPage ?? 1,\n )\n const historyPageNumber = Number.isFinite(historyPage) && historyPage > 0 ? historyPage : 1\n\n const merges = slug\n ? await payload.find({\n collection: branchMergesCollectionSlug,\n depth: 0,\n limit: MERGE_HISTORY_PAGE_SIZE,\n overrideAccess: false,\n page: historyPageNumber,\n req,\n // `changes.before` / `changes.after` are whole-document snapshots, so they\n // are left out of the list read — a row's diff is fetched when it is opened.\n select: {\n branch: true,\n changes: {\n collectionSlug: true,\n docID: true,\n docTitle: true,\n globalSlug: true,\n operation: true,\n },\n mergedAt: true,\n mergedByLabel: true,\n },\n sort: '-mergedAt',\n user: req.user,\n where: { branch: { equals: slug } },\n })\n : null\n\n const mergeEvents: MergeEvent[] = (merges?.docs ?? []).map((event) => {\n const row = event as {\n changes?: {\n collectionSlug?: string\n docID?: string\n docTitle?: string\n globalSlug?: string\n operation?: string\n }[]\n id: number | string\n mergedAt?: string\n mergedByLabel?: string\n }\n\n return {\n id: String(row.id),\n changes: (row.changes ?? []).map((change) => ({\n collectionSlug: change.collectionSlug ?? '',\n docID: change.docID ?? '',\n docTitle: change.docTitle ?? change.docID ?? '',\n globalSlug: change.globalSlug,\n operation: (change.operation ?? 'update') as BranchChange['operation'],\n })),\n mergedAt: row.mergedAt ?? '',\n mergedByLabel: row.mergedByLabel,\n }\n })\n\n // Resolved here rather than passed through: the label is a function on this\n // collection, and `SetDocumentStepNav` is a client component.\n const pluralLabel =\n typeof collectionConfig?.labels?.plural === 'function'\n ? collectionConfig.labels.plural({ i18n, t: i18n.t })\n : collectionConfig?.labels?.plural\n\n return (\n <React.Fragment>\n {/* Without this the trail stops at the dashboard: the crumbs are set by the\n view, and this one replaced the default edit view. No crumb of its own —\n this is what a branch opens to, so naming it would repeat the branch. */}\n <SetDocumentStepNav\n collectionSlug={branchesCollectionSlug}\n id={branchID}\n pluralLabel={pluralLabel}\n useAsTitle={collectionConfig?.admin?.useAsTitle}\n />\n {branchID !== undefined && branchID !== null && (\n <BranchChanges\n branchID={branchID}\n branchName={(branch as { name?: string } | null)?.name ?? slug ?? ''}\n branchSlug={slug ?? ''}\n changes={documentChanges}\n historyPage={historyPageNumber}\n historyTotalPages={merges?.totalPages ?? 1}\n isClosed={(branch as { status?: string } | null)?.status === 'closed'}\n mergeEvents={mergeEvents}\n scheduledMerges={scheduledMerges}\n />\n )}\n </React.Fragment>\n )\n}\n"],"mappings":"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","ignoreList":[]}
@@ -0,0 +1,29 @@
1
+ import type { CollectionSlug, ServerFunction } from 'payload';
2
+ import type React from 'react';
3
+ export type RenderBranchDiffArgs = {
4
+ branch: string;
5
+ /** Absent for a global. */
6
+ collectionSlug?: CollectionSlug;
7
+ /** Absent for a global. */
8
+ docID?: number | string;
9
+ globalSlug?: string;
10
+ operation: 'create' | 'delete' | 'update';
11
+ };
12
+ export type RenderBranchDiffResult = {
13
+ diff: React.ReactNode;
14
+ title: string;
15
+ };
16
+ /**
17
+ * Renders one changed document's diff, on demand.
18
+ *
19
+ * Per document rather than per branch because a branch can hold hundreds of
20
+ * changes and each diff is a full field-tree render — building them all up front
21
+ * would be the slowest thing in the admin panel. The client asks for one at a
22
+ * time, as rows are opened or come into view.
23
+ *
24
+ * The diff itself is the version-comparison renderer, unmodified: the shape of
25
+ * the question is identical — two versions of one document, only the changed
26
+ * fields — so `main`'s copy stands in for "before" and the branch's for "after".
27
+ */
28
+ export declare const renderBranchDiffHandler: ServerFunction<RenderBranchDiffArgs, Promise<RenderBranchDiffResult>>;
29
+ //# sourceMappingURL=renderBranchDiff.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"renderBranchDiff.d.ts","sourceRoot":"","sources":["../../../src/views/Branch/renderBranchDiff.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAC7D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAY9B,MAAM,MAAM,oBAAoB,GAAG;IACjC,MAAM,EAAE,MAAM,CAAA;IACd,2BAA2B;IAC3B,cAAc,CAAC,EAAE,cAAc,CAAA;IAC/B,2BAA2B;IAC3B,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACvB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,SAAS,EAAE,QAAQ,GAAG,QAAQ,GAAG,QAAQ,CAAA;CAC1C,CAAA;AAED,MAAM,MAAM,sBAAsB,GAAG;IACnC,IAAI,EAAE,KAAK,CAAC,SAAS,CAAA;IACrB,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AAID;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,uBAAuB,EAAE,cAAc,CAClD,oBAAoB,EACpB,OAAO,CAAC,sBAAsB,CAAC,CAiIhC,CAAA"}
@@ -0,0 +1,151 @@
1
+ import { getTranslation } from '@payloadcms/translations';
2
+ import { isolateBranchState } from 'payload';
3
+ import { MAIN_BRANCH } from 'payload/shared';
4
+ import { formatDocTitle } from '../../utilities/formatDocTitle/index.js';
5
+ import { getClientConfig } from '../../utilities/getClientConfig.js';
6
+ import { getClientSchemaMap } from '../../utilities/getClientSchemaMap.js';
7
+ import { getSchemaMap } from '../../utilities/getSchemaMap.js';
8
+ import { RenderDiff } from '../Version/RenderFieldsToDiff/index.js';
9
+ const timestampFields = new Set(['createdAt', 'updatedAt']);
10
+ /**
11
+ * Renders one changed document's diff, on demand.
12
+ *
13
+ * Per document rather than per branch because a branch can hold hundreds of
14
+ * changes and each diff is a full field-tree render — building them all up front
15
+ * would be the slowest thing in the admin panel. The client asks for one at a
16
+ * time, as rows are opened or come into view.
17
+ *
18
+ * The diff itself is the version-comparison renderer, unmodified: the shape of
19
+ * the question is identical — two versions of one document, only the changed
20
+ * fields — so `main`'s copy stands in for "before" and the branch's for "after".
21
+ */
22
+ export const renderBranchDiffHandler = async ({
23
+ branch,
24
+ collectionSlug,
25
+ docID,
26
+ globalSlug,
27
+ operation,
28
+ req
29
+ }) => {
30
+ if (!req.user) {
31
+ throw new Error('Unauthorized');
32
+ }
33
+ const {
34
+ i18n,
35
+ payload
36
+ } = req;
37
+ const {
38
+ config
39
+ } = payload;
40
+ // A global is the same question asked of a different entity: two copies of one thing,
41
+ // only the changed fields. Everything below is shared; only what is read differs.
42
+ const globalConfig = globalSlug ? config.globals.find(each => each.slug === globalSlug) : undefined;
43
+ const collectionConfig = collectionSlug ? payload.collections[collectionSlug]?.config : undefined;
44
+ const entityConfig = globalConfig ?? collectionConfig;
45
+ if (!entityConfig) {
46
+ throw new Error(`Unknown entity: ${globalSlug ?? collectionSlug}`);
47
+ }
48
+ // Drafts are the point of comparison on a versioned collection: a branch edit
49
+ // that was only ever saved as a draft never touches the document row, so reading
50
+ // published state returns main's own values on both sides and renders an empty
51
+ // diff for a change that is really there.
52
+ const draft = Boolean(entityConfig.versions?.drafts);
53
+ const read = async fromBranch => {
54
+ try {
55
+ if (globalSlug) {
56
+ return await payload.findGlobal({
57
+ slug: globalSlug,
58
+ branch: fromBranch,
59
+ depth: 0,
60
+ draft,
61
+ overrideAccess: false,
62
+ req: isolateBranchState(req),
63
+ user: req.user
64
+ });
65
+ }
66
+ return await payload.findByID({
67
+ id: docID,
68
+ branch: fromBranch,
69
+ collection: collectionSlug,
70
+ depth: 0,
71
+ disableErrors: true,
72
+ draft,
73
+ overrideAccess: false,
74
+ req: isolateBranchState(req),
75
+ user: req.user
76
+ });
77
+ } catch (_err) {
78
+ // A document that does not exist on one side is the normal case for a
79
+ // create or a delete — the diff renders it as wholly added or removed.
80
+ return null;
81
+ }
82
+ };
83
+ // A delete is a tombstone, so the branch read hides it: `before` is main's copy
84
+ // and `after` is nothing. A create is the mirror of that.
85
+ const [before, after] = await Promise.all([operation === 'create' ? Promise.resolve(null) : read(MAIN_BRANCH), operation === 'delete' ? Promise.resolve(null) : read(branch)]);
86
+ // Timestamps are bookkeeping, not content. A branched document is written when
87
+ // it is branched, so `updatedAt` differs on every single change — it would be
88
+ // the one row present in every diff, and never the one worth reading.
89
+ const contentFields = entityConfig.fields.filter(field => !('name' in field) || !timestampFields.has(field.name));
90
+ const schemaMap = getSchemaMap({
91
+ collectionSlug,
92
+ config,
93
+ globalSlug,
94
+ i18n
95
+ });
96
+ const clientConfig = getClientConfig({
97
+ config,
98
+ i18n,
99
+ importMap: payload.importMap,
100
+ user: req.user
101
+ });
102
+ const clientSchemaMap = getClientSchemaMap({
103
+ collectionSlug,
104
+ config: clientConfig,
105
+ globalSlug,
106
+ i18n,
107
+ payload,
108
+ schemaMap
109
+ });
110
+ const diff = RenderDiff({
111
+ clientSchemaMap,
112
+ customDiffComponents: {},
113
+ entitySlug: globalSlug ?? collectionSlug,
114
+ fields: contentFields,
115
+ i18n,
116
+ // Only what the branch changed. The unchanged remainder of a document is
117
+ // noise when the question is "what does merging this do?".
118
+ fieldsPermissions: true,
119
+ modifiedOnly: true,
120
+ parentIndexPath: '',
121
+ parentIsLocalized: false,
122
+ parentPath: '',
123
+ parentSchemaPath: '',
124
+ req,
125
+ selectedLocales: [],
126
+ versionFromSiblingData: before ?? {},
127
+ versionToSiblingData: after ?? {}
128
+ });
129
+ // A global has one of itself, so its label *is* its title — there is no document to name.
130
+ if (globalSlug) {
131
+ return {
132
+ diff,
133
+ title: getTranslation(globalConfig?.label ?? globalSlug, i18n)
134
+ };
135
+ }
136
+ return {
137
+ diff,
138
+ title: formatDocTitle({
139
+ collectionConfig: clientConfig.collections.find(({
140
+ slug
141
+ }) => slug === collectionSlug),
142
+ data: after ?? before ?? {
143
+ id: docID
144
+ },
145
+ dateFormat: config.admin.dateFormat,
146
+ fallback: String(docID),
147
+ i18n
148
+ })
149
+ };
150
+ };
151
+ //# sourceMappingURL=renderBranchDiff.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"renderBranchDiff.js","names":["getTranslation","isolateBranchState","MAIN_BRANCH","formatDocTitle","getClientConfig","getClientSchemaMap","getSchemaMap","RenderDiff","timestampFields","Set","renderBranchDiffHandler","branch","collectionSlug","docID","globalSlug","operation","req","user","Error","i18n","payload","config","globalConfig","globals","find","each","slug","undefined","collectionConfig","collections","entityConfig","draft","Boolean","versions","drafts","read","fromBranch","findGlobal","depth","overrideAccess","findByID","id","collection","disableErrors","_err","before","after","Promise","all","resolve","contentFields","fields","filter","field","has","name","schemaMap","clientConfig","importMap","clientSchemaMap","diff","customDiffComponents","entitySlug","fieldsPermissions","modifiedOnly","parentIndexPath","parentIsLocalized","parentPath","parentSchemaPath","selectedLocales","versionFromSiblingData","versionToSiblingData","title","label","data","dateFormat","admin","fallback","String"],"sources":["../../../src/views/Branch/renderBranchDiff.tsx"],"sourcesContent":["import type { CollectionSlug, ServerFunction } from 'payload'\nimport type React from 'react'\n\nimport { getTranslation } from '@payloadcms/translations'\nimport { isolateBranchState } from 'payload'\nimport { MAIN_BRANCH } from 'payload/shared'\n\nimport { formatDocTitle } from '../../utilities/formatDocTitle/index.js'\nimport { getClientConfig } from '../../utilities/getClientConfig.js'\nimport { getClientSchemaMap } from '../../utilities/getClientSchemaMap.js'\nimport { getSchemaMap } from '../../utilities/getSchemaMap.js'\nimport { RenderDiff } from '../Version/RenderFieldsToDiff/index.js'\n\nexport type RenderBranchDiffArgs = {\n branch: string\n /** Absent for a global. */\n collectionSlug?: CollectionSlug\n /** Absent for a global. */\n docID?: number | string\n globalSlug?: string\n operation: 'create' | 'delete' | 'update'\n}\n\nexport type RenderBranchDiffResult = {\n diff: React.ReactNode\n title: string\n}\n\nconst timestampFields = new Set(['createdAt', 'updatedAt'])\n\n/**\n * Renders one changed document's diff, on demand.\n *\n * Per document rather than per branch because a branch can hold hundreds of\n * changes and each diff is a full field-tree render — building them all up front\n * would be the slowest thing in the admin panel. The client asks for one at a\n * time, as rows are opened or come into view.\n *\n * The diff itself is the version-comparison renderer, unmodified: the shape of\n * the question is identical — two versions of one document, only the changed\n * fields — so `main`'s copy stands in for \"before\" and the branch's for \"after\".\n */\nexport const renderBranchDiffHandler: ServerFunction<\n RenderBranchDiffArgs,\n Promise<RenderBranchDiffResult>\n> = async ({ branch, collectionSlug, docID, globalSlug, operation, req }) => {\n if (!req.user) {\n throw new Error('Unauthorized')\n }\n\n const { i18n, payload } = req\n const { config } = payload\n\n // A global is the same question asked of a different entity: two copies of one thing,\n // only the changed fields. Everything below is shared; only what is read differs.\n const globalConfig = globalSlug\n ? config.globals.find((each) => each.slug === globalSlug)\n : undefined\n const collectionConfig = collectionSlug ? payload.collections[collectionSlug]?.config : undefined\n const entityConfig = globalConfig ?? collectionConfig\n\n if (!entityConfig) {\n throw new Error(`Unknown entity: ${globalSlug ?? collectionSlug}`)\n }\n\n // Drafts are the point of comparison on a versioned collection: a branch edit\n // that was only ever saved as a draft never touches the document row, so reading\n // published state returns main's own values on both sides and renders an empty\n // diff for a change that is really there.\n const draft = Boolean(entityConfig.versions?.drafts)\n\n const read = async (fromBranch: string) => {\n try {\n if (globalSlug) {\n return await payload.findGlobal({\n slug: globalSlug,\n branch: fromBranch,\n depth: 0,\n draft,\n overrideAccess: false,\n req: isolateBranchState(req),\n user: req.user,\n })\n }\n\n return await payload.findByID({\n id: docID,\n branch: fromBranch,\n collection: collectionSlug,\n depth: 0,\n disableErrors: true,\n draft,\n overrideAccess: false,\n req: isolateBranchState(req),\n user: req.user,\n })\n } catch (_err) {\n // A document that does not exist on one side is the normal case for a\n // create or a delete — the diff renders it as wholly added or removed.\n return null\n }\n }\n\n // A delete is a tombstone, so the branch read hides it: `before` is main's copy\n // and `after` is nothing. A create is the mirror of that.\n const [before, after] = await Promise.all([\n operation === 'create' ? Promise.resolve(null) : read(MAIN_BRANCH),\n operation === 'delete' ? Promise.resolve(null) : read(branch),\n ])\n\n // Timestamps are bookkeeping, not content. A branched document is written when\n // it is branched, so `updatedAt` differs on every single change — it would be\n // the one row present in every diff, and never the one worth reading.\n const contentFields = entityConfig.fields.filter(\n (field) => !('name' in field) || !timestampFields.has(field.name),\n )\n\n const schemaMap = getSchemaMap({ collectionSlug, config, globalSlug, i18n })\n\n const clientConfig = getClientConfig({\n config,\n i18n,\n importMap: payload.importMap,\n user: req.user,\n })\n\n const clientSchemaMap = getClientSchemaMap({\n collectionSlug,\n config: clientConfig,\n globalSlug,\n i18n,\n payload,\n schemaMap,\n })\n\n const diff = RenderDiff({\n clientSchemaMap,\n customDiffComponents: {},\n entitySlug: globalSlug ?? collectionSlug,\n fields: contentFields,\n i18n,\n // Only what the branch changed. The unchanged remainder of a document is\n // noise when the question is \"what does merging this do?\".\n fieldsPermissions: true,\n modifiedOnly: true,\n parentIndexPath: '',\n parentIsLocalized: false,\n parentPath: '',\n parentSchemaPath: '',\n req,\n selectedLocales: [],\n versionFromSiblingData: before ?? {},\n versionToSiblingData: after ?? {},\n })\n\n // A global has one of itself, so its label *is* its title — there is no document to name.\n if (globalSlug) {\n return {\n diff,\n title: getTranslation(globalConfig?.label ?? globalSlug, i18n),\n }\n }\n\n return {\n diff,\n title: formatDocTitle({\n collectionConfig: clientConfig.collections.find(({ slug }) => slug === collectionSlug),\n data: (after ?? before ?? { id: docID }) as Parameters<typeof formatDocTitle>[0]['data'],\n dateFormat: config.admin.dateFormat,\n fallback: String(docID),\n i18n,\n }),\n }\n}\n"],"mappings":"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","ignoreList":[]}
@@ -0,0 +1,24 @@
1
+ import type { ServerFunction } from 'payload';
2
+ import type React from 'react';
3
+ export type RenderMergeDiffArgs = {
4
+ /** Position within the merge event's `changes` array. */
5
+ changeIndex: number;
6
+ mergeID: number | string;
7
+ };
8
+ export type RenderMergeDiffResult = {
9
+ diff: React.ReactNode;
10
+ };
11
+ /**
12
+ * Renders what one already-merged document changed, from the ledger.
13
+ *
14
+ * The live document is no longer a useful source here: main has moved on since, and
15
+ * the branch's copy is gone. So this reads the two snapshots taken either side of
16
+ * the merge write — the only record of that moment — and renders them through the
17
+ * same version-comparison renderer the pre-merge diff uses.
18
+ *
19
+ * Per change rather than with the page, for the reason `renderBranchDiff` is: a
20
+ * branch's history can hold hundreds of documents and each diff is a full field-tree
21
+ * render.
22
+ */
23
+ export declare const renderMergeDiffHandler: ServerFunction<RenderMergeDiffArgs, Promise<RenderMergeDiffResult>>;
24
+ //# sourceMappingURL=renderMergeDiff.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"renderMergeDiff.d.ts","sourceRoot":"","sources":["../../../src/views/Branch/renderMergeDiff.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAC7C,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAS9B,MAAM,MAAM,mBAAmB,GAAG;IAChC,yDAAyD;IACzD,WAAW,EAAE,MAAM,CAAA;IACnB,OAAO,EAAE,MAAM,GAAG,MAAM,CAAA;CACzB,CAAA;AAED,MAAM,MAAM,qBAAqB,GAAG;IAClC,IAAI,EAAE,KAAK,CAAC,SAAS,CAAA;CACtB,CAAA;AAID;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,sBAAsB,EAAE,cAAc,CACjD,mBAAmB,EACnB,OAAO,CAAC,qBAAqB,CAAC,CAsF/B,CAAA"}
@@ -0,0 +1,94 @@
1
+ import { branchMergesCollectionSlug } from 'payload/shared';
2
+ import { getClientConfig } from '../../utilities/getClientConfig.js';
3
+ import { getClientSchemaMap } from '../../utilities/getClientSchemaMap.js';
4
+ import { getSchemaMap } from '../../utilities/getSchemaMap.js';
5
+ import { RenderDiff } from '../Version/RenderFieldsToDiff/index.js';
6
+ const timestampFields = new Set(['createdAt', 'updatedAt']);
7
+ /**
8
+ * Renders what one already-merged document changed, from the ledger.
9
+ *
10
+ * The live document is no longer a useful source here: main has moved on since, and
11
+ * the branch's copy is gone. So this reads the two snapshots taken either side of
12
+ * the merge write — the only record of that moment — and renders them through the
13
+ * same version-comparison renderer the pre-merge diff uses.
14
+ *
15
+ * Per change rather than with the page, for the reason `renderBranchDiff` is: a
16
+ * branch's history can hold hundreds of documents and each diff is a full field-tree
17
+ * render.
18
+ */
19
+ export const renderMergeDiffHandler = async ({
20
+ changeIndex,
21
+ mergeID,
22
+ req
23
+ }) => {
24
+ if (!req.user) {
25
+ throw new Error('Unauthorized');
26
+ }
27
+ const {
28
+ i18n,
29
+ payload
30
+ } = req;
31
+ const {
32
+ config
33
+ } = payload;
34
+ const event = await payload.findByID({
35
+ id: mergeID,
36
+ collection: branchMergesCollectionSlug,
37
+ depth: 0,
38
+ overrideAccess: false,
39
+ req,
40
+ user: req.user
41
+ });
42
+ const change = event?.changes?.[changeIndex];
43
+ const collectionSlug = change?.collectionSlug;
44
+ const globalSlug = change?.globalSlug;
45
+ // A merged global's snapshots are the same pair of documents any other row holds; only
46
+ // the field set they are read against comes from somewhere else.
47
+ const entityConfig = globalSlug ? config.globals.find(each => each.slug === globalSlug) : collectionSlug ? payload.collections[collectionSlug]?.config : undefined;
48
+ if (!change || !entityConfig) {
49
+ throw new Error('Unknown merged change');
50
+ }
51
+ // Timestamps are bookkeeping, not content, and `updatedAt` differs on every
52
+ // merged document by definition — it would be the one row present in every diff.
53
+ const contentFields = entityConfig.fields.filter(field => !('name' in field) || !timestampFields.has(field.name));
54
+ const schemaMap = getSchemaMap({
55
+ collectionSlug,
56
+ config,
57
+ globalSlug,
58
+ i18n
59
+ });
60
+ const clientConfig = getClientConfig({
61
+ config,
62
+ i18n,
63
+ importMap: payload.importMap,
64
+ user: req.user
65
+ });
66
+ const clientSchemaMap = getClientSchemaMap({
67
+ collectionSlug,
68
+ config: clientConfig,
69
+ globalSlug,
70
+ i18n,
71
+ payload,
72
+ schemaMap
73
+ });
74
+ return {
75
+ diff: RenderDiff({
76
+ clientSchemaMap,
77
+ customDiffComponents: {},
78
+ entitySlug: globalSlug ?? collectionSlug,
79
+ fields: contentFields,
80
+ fieldsPermissions: true,
81
+ i18n,
82
+ modifiedOnly: true,
83
+ parentIndexPath: '',
84
+ parentIsLocalized: false,
85
+ parentPath: '',
86
+ parentSchemaPath: '',
87
+ req,
88
+ selectedLocales: [],
89
+ versionFromSiblingData: change.before ?? {},
90
+ versionToSiblingData: change.after ?? {}
91
+ })
92
+ };
93
+ };
94
+ //# sourceMappingURL=renderMergeDiff.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"renderMergeDiff.js","names":["branchMergesCollectionSlug","getClientConfig","getClientSchemaMap","getSchemaMap","RenderDiff","timestampFields","Set","renderMergeDiffHandler","changeIndex","mergeID","req","user","Error","i18n","payload","config","event","findByID","id","collection","depth","overrideAccess","change","changes","collectionSlug","globalSlug","entityConfig","globals","find","each","slug","collections","undefined","contentFields","fields","filter","field","has","name","schemaMap","clientConfig","importMap","clientSchemaMap","diff","customDiffComponents","entitySlug","fieldsPermissions","modifiedOnly","parentIndexPath","parentIsLocalized","parentPath","parentSchemaPath","selectedLocales","versionFromSiblingData","before","versionToSiblingData","after"],"sources":["../../../src/views/Branch/renderMergeDiff.tsx"],"sourcesContent":["import type { ServerFunction } from 'payload'\nimport type React from 'react'\n\nimport { branchMergesCollectionSlug } from 'payload/shared'\n\nimport { getClientConfig } from '../../utilities/getClientConfig.js'\nimport { getClientSchemaMap } from '../../utilities/getClientSchemaMap.js'\nimport { getSchemaMap } from '../../utilities/getSchemaMap.js'\nimport { RenderDiff } from '../Version/RenderFieldsToDiff/index.js'\n\nexport type RenderMergeDiffArgs = {\n /** Position within the merge event's `changes` array. */\n changeIndex: number\n mergeID: number | string\n}\n\nexport type RenderMergeDiffResult = {\n diff: React.ReactNode\n}\n\nconst timestampFields = new Set(['createdAt', 'updatedAt'])\n\n/**\n * Renders what one already-merged document changed, from the ledger.\n *\n * The live document is no longer a useful source here: main has moved on since, and\n * the branch's copy is gone. So this reads the two snapshots taken either side of\n * the merge write — the only record of that moment — and renders them through the\n * same version-comparison renderer the pre-merge diff uses.\n *\n * Per change rather than with the page, for the reason `renderBranchDiff` is: a\n * branch's history can hold hundreds of documents and each diff is a full field-tree\n * render.\n */\nexport const renderMergeDiffHandler: ServerFunction<\n RenderMergeDiffArgs,\n Promise<RenderMergeDiffResult>\n> = async ({ changeIndex, mergeID, req }) => {\n if (!req.user) {\n throw new Error('Unauthorized')\n }\n\n const { i18n, payload } = req\n const { config } = payload\n\n const event = await payload.findByID({\n id: mergeID,\n collection: branchMergesCollectionSlug,\n depth: 0,\n overrideAccess: false,\n req,\n user: req.user,\n })\n\n const change = (\n event as {\n changes?: {\n after?: unknown\n before?: unknown\n collectionSlug?: string\n globalSlug?: string\n }[]\n }\n )?.changes?.[changeIndex]\n\n const collectionSlug = change?.collectionSlug\n const globalSlug = change?.globalSlug\n // A merged global's snapshots are the same pair of documents any other row holds; only\n // the field set they are read against comes from somewhere else.\n const entityConfig = globalSlug\n ? config.globals.find((each) => each.slug === globalSlug)\n : collectionSlug\n ? payload.collections[collectionSlug]?.config\n : undefined\n\n if (!change || !entityConfig) {\n throw new Error('Unknown merged change')\n }\n\n // Timestamps are bookkeeping, not content, and `updatedAt` differs on every\n // merged document by definition — it would be the one row present in every diff.\n const contentFields = entityConfig.fields.filter(\n (field) => !('name' in field) || !timestampFields.has(field.name),\n )\n\n const schemaMap = getSchemaMap({ collectionSlug, config, globalSlug, i18n })\n\n const clientConfig = getClientConfig({\n config,\n i18n,\n importMap: payload.importMap,\n user: req.user,\n })\n\n const clientSchemaMap = getClientSchemaMap({\n collectionSlug,\n config: clientConfig,\n globalSlug,\n i18n,\n payload,\n schemaMap,\n })\n\n return {\n diff: RenderDiff({\n clientSchemaMap,\n customDiffComponents: {},\n entitySlug: globalSlug ?? collectionSlug,\n fields: contentFields,\n fieldsPermissions: true,\n i18n,\n modifiedOnly: true,\n parentIndexPath: '',\n parentIsLocalized: false,\n parentPath: '',\n parentSchemaPath: '',\n req,\n selectedLocales: [],\n versionFromSiblingData: (change.before ?? {}) as Record<string, unknown>,\n versionToSiblingData: (change.after ?? {}) as Record<string, unknown>,\n }),\n }\n}\n"],"mappings":"AAGA,SAASA,0BAA0B,QAAQ;AAE3C,SAASC,eAAe,QAAQ;AAChC,SAASC,kBAAkB,QAAQ;AACnC,SAASC,YAAY,QAAQ;AAC7B,SAASC,UAAU,QAAQ;AAY3B,MAAMC,eAAA,GAAkB,IAAIC,GAAA,CAAI,CAAC,aAAa,YAAY;AAE1D;;;;;;;;;;;;AAYA,OAAO,MAAMC,sBAAA,GAGT,MAAAA,CAAO;EAAEC,WAAW;EAAEC,OAAO;EAAEC;AAAG,CAAE;EACtC,IAAI,CAACA,GAAA,CAAIC,IAAI,EAAE;IACb,MAAM,IAAIC,KAAA,CAAM;EAClB;EAEA,MAAM;IAAEC,IAAI;IAAEC;EAAO,CAAE,GAAGJ,GAAA;EAC1B,MAAM;IAAEK;EAAM,CAAE,GAAGD,OAAA;EAEnB,MAAME,KAAA,GAAQ,MAAMF,OAAA,CAAQG,QAAQ,CAAC;IACnCC,EAAA,EAAIT,OAAA;IACJU,UAAA,EAAYnB,0BAAA;IACZoB,KAAA,EAAO;IACPC,cAAA,EAAgB;IAChBX,GAAA;IACAC,IAAA,EAAMD,GAAA,CAAIC;EACZ;EAEA,MAAMW,MAAA,GACJN,KAAA,EAQCO,OAAA,GAAUf,WAAA,CAAY;EAEzB,MAAMgB,cAAA,GAAiBF,MAAA,EAAQE,cAAA;EAC/B,MAAMC,UAAA,GAAaH,MAAA,EAAQG,UAAA;EAC3B;EACA;EACA,MAAMC,YAAA,GAAeD,UAAA,GACjBV,MAAA,CAAOY,OAAO,CAACC,IAAI,CAAEC,IAAA,IAASA,IAAA,CAAKC,IAAI,KAAKL,UAAA,IAC5CD,cAAA,GACEV,OAAA,CAAQiB,WAAW,CAACP,cAAA,CAAe,EAAET,MAAA,GACrCiB,SAAA;EAEN,IAAI,CAACV,MAAA,IAAU,CAACI,YAAA,EAAc;IAC5B,MAAM,IAAId,KAAA,CAAM;EAClB;EAEA;EACA;EACA,MAAMqB,aAAA,GAAgBP,YAAA,CAAaQ,MAAM,CAACC,MAAM,CAC7CC,KAAA,IAAU,EAAE,UAAUA,KAAI,KAAM,CAAC/B,eAAA,CAAgBgC,GAAG,CAACD,KAAA,CAAME,IAAI;EAGlE,MAAMC,SAAA,GAAYpC,YAAA,CAAa;IAAEqB,cAAA;IAAgBT,MAAA;IAAQU,UAAA;IAAYZ;EAAK;EAE1E,MAAM2B,YAAA,GAAevC,eAAA,CAAgB;IACnCc,MAAA;IACAF,IAAA;IACA4B,SAAA,EAAW3B,OAAA,CAAQ2B,SAAS;IAC5B9B,IAAA,EAAMD,GAAA,CAAIC;EACZ;EAEA,MAAM+B,eAAA,GAAkBxC,kBAAA,CAAmB;IACzCsB,cAAA;IACAT,MAAA,EAAQyB,YAAA;IACRf,UAAA;IACAZ,IAAA;IACAC,OAAA;IACAyB;EACF;EAEA,OAAO;IACLI,IAAA,EAAMvC,UAAA,CAAW;MACfsC,eAAA;MACAE,oBAAA,EAAsB,CAAC;MACvBC,UAAA,EAAYpB,UAAA,IAAcD,cAAA;MAC1BU,MAAA,EAAQD,aAAA;MACRa,iBAAA,EAAmB;MACnBjC,IAAA;MACAkC,YAAA,EAAc;MACdC,eAAA,EAAiB;MACjBC,iBAAA,EAAmB;MACnBC,UAAA,EAAY;MACZC,gBAAA,EAAkB;MAClBzC,GAAA;MACA0C,eAAA,EAAiB,EAAE;MACnBC,sBAAA,EAAyB/B,MAAA,CAAOgC,MAAM,IAAI,CAAC;MAC3CC,oBAAA,EAAuBjC,MAAA,CAAOkC,KAAK,IAAI,CAAC;IAC1C;EACF;AACF","ignoreList":[]}
@@ -0,0 +1,16 @@
1
+ import type { AdminViewServerProps } from 'payload';
2
+ import React from 'react';
3
+ import type { RenderListViewArgs } from '../List/index.js';
4
+ /**
5
+ * Routes for `payload-branches`.
6
+ *
7
+ * The collection is `admin.hidden`, which is what keeps it out of the nav, the
8
+ * dashboard and the command palette — branches are a scope control, not a content
9
+ * type, and the only way in is the switcher in the app header. But the generic
10
+ * list and document views treat a hidden collection as not-found, so its own
11
+ * routes need to opt back in. That is all these wrappers do; the views themselves
12
+ * are Payload's, unchanged.
13
+ */
14
+ export declare const BranchesListView: React.FC<RenderListViewArgs>;
15
+ export declare const BranchDocumentView: React.FC<AdminViewServerProps>;
16
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/views/Branches/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAmB,MAAM,SAAS,CAAA;AAGpE,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAA;AAO1D;;;;;;;;;GASG;AACH,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAIzD,CAAA;AAED,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAI7D,CAAA"}