@payloadcms/next 3.0.0-alpha.4 → 3.0.0-alpha.40

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 (775) hide show
  1. package/dist/bin/index.js +5 -14
  2. package/dist/bin/install.js +16 -31
  3. package/dist/config.js +2 -12
  4. package/dist/elements/ClearRouteCache/index.d.ts +3 -0
  5. package/dist/elements/ClearRouteCache/index.d.ts.map +1 -0
  6. package/dist/elements/ClearRouteCache/index.js +16 -0
  7. package/dist/elements/LeaveWithoutSaving/index.js +26 -76
  8. package/dist/elements/LeaveWithoutSaving/usePreventLeave.js +11 -29
  9. package/dist/exports/index.d.ts +1 -1
  10. package/dist/exports/index.d.ts.map +1 -1
  11. package/dist/exports/index.js +2 -12
  12. package/dist/graphql/registerSchema.js +0 -1
  13. package/dist/index.d.ts +5 -1
  14. package/dist/index.d.ts.map +1 -1
  15. package/dist/index.js +6 -3
  16. package/dist/layouts/Admin/index.js +9 -32
  17. package/dist/layouts/Root/index.d.ts.map +1 -1
  18. package/dist/layouts/Root/index.js +39 -55
  19. package/dist/next-fileupload/fileFactory.d.ts +2 -2
  20. package/dist/next-fileupload/fileFactory.d.ts.map +1 -1
  21. package/dist/next-fileupload/fileFactory.js +9 -19
  22. package/dist/next-fileupload/handlers.d.ts +2 -2
  23. package/dist/next-fileupload/handlers.d.ts.map +1 -1
  24. package/dist/next-fileupload/handlers.js +25 -89
  25. package/dist/next-fileupload/index.d.ts +1 -1
  26. package/dist/next-fileupload/index.js +10 -25
  27. package/dist/next-fileupload/isEligibleRequest.js +2 -12
  28. package/dist/next-fileupload/processMultipart.d.ts +1 -1
  29. package/dist/next-fileupload/processMultipart.d.ts.map +1 -1
  30. package/dist/next-fileupload/processMultipart.js +33 -46
  31. package/dist/next-fileupload/processNested.js +4 -14
  32. package/dist/next-fileupload/uploadTimer.js +2 -12
  33. package/dist/next-fileupload/utilities.d.ts +1 -1
  34. package/dist/next-fileupload/utilities.d.ts.map +1 -1
  35. package/dist/next-fileupload/utilities.js +31 -76
  36. package/dist/next-stream-file/index.d.ts +4 -0
  37. package/dist/next-stream-file/index.d.ts.map +1 -1
  38. package/dist/next-stream-file/index.js +6 -21
  39. package/dist/routes/graphql/handler.d.ts.map +1 -1
  40. package/dist/routes/graphql/handler.js +19 -36
  41. package/dist/routes/graphql/index.d.ts +2 -2
  42. package/dist/routes/graphql/index.d.ts.map +1 -1
  43. package/dist/routes/graphql/index.js +3 -21
  44. package/dist/routes/graphql/playground.js +6 -16
  45. package/dist/routes/index.d.ts +2 -3
  46. package/dist/routes/index.d.ts.map +1 -1
  47. package/dist/routes/index.js +3 -37
  48. package/dist/routes/rest/RouteError.js +10 -25
  49. package/dist/routes/rest/auth/access.d.ts +1 -1
  50. package/dist/routes/rest/auth/access.d.ts.map +1 -1
  51. package/dist/routes/rest/auth/access.js +6 -21
  52. package/dist/routes/rest/auth/forgotPassword.d.ts +1 -1
  53. package/dist/routes/rest/auth/forgotPassword.d.ts.map +1 -1
  54. package/dist/routes/rest/auth/forgotPassword.js +6 -21
  55. package/dist/routes/rest/auth/init.d.ts +1 -1
  56. package/dist/routes/rest/auth/init.d.ts.map +1 -1
  57. package/dist/routes/rest/auth/init.js +4 -14
  58. package/dist/routes/rest/auth/login.d.ts +1 -1
  59. package/dist/routes/rest/auth/login.d.ts.map +1 -1
  60. package/dist/routes/rest/auth/login.js +10 -25
  61. package/dist/routes/rest/auth/logout.d.ts +1 -1
  62. package/dist/routes/rest/auth/logout.d.ts.map +1 -1
  63. package/dist/routes/rest/auth/logout.js +9 -24
  64. package/dist/routes/rest/auth/me.d.ts +1 -1
  65. package/dist/routes/rest/auth/me.d.ts.map +1 -1
  66. package/dist/routes/rest/auth/me.js +8 -23
  67. package/dist/routes/rest/auth/refresh.d.ts +1 -1
  68. package/dist/routes/rest/auth/refresh.d.ts.map +1 -1
  69. package/dist/routes/rest/auth/refresh.js +11 -25
  70. package/dist/routes/rest/auth/registerFirstUser.d.ts +1 -1
  71. package/dist/routes/rest/auth/registerFirstUser.d.ts.map +1 -1
  72. package/dist/routes/rest/auth/registerFirstUser.js +8 -23
  73. package/dist/routes/rest/auth/resetPassword.d.ts +1 -1
  74. package/dist/routes/rest/auth/resetPassword.d.ts.map +1 -1
  75. package/dist/routes/rest/auth/resetPassword.js +8 -23
  76. package/dist/routes/rest/auth/unlock.d.ts +1 -1
  77. package/dist/routes/rest/auth/unlock.d.ts.map +1 -1
  78. package/dist/routes/rest/auth/unlock.js +6 -21
  79. package/dist/routes/rest/auth/verifyEmail.d.ts +1 -1
  80. package/dist/routes/rest/auth/verifyEmail.d.ts.map +1 -1
  81. package/dist/routes/rest/auth/verifyEmail.js +6 -21
  82. package/dist/routes/rest/buildFormState.js +11 -34
  83. package/dist/routes/rest/checkEndpoints.d.ts.map +1 -1
  84. package/dist/routes/rest/checkEndpoints.js +4 -19
  85. package/dist/routes/rest/collections/create.d.ts +1 -1
  86. package/dist/routes/rest/collections/create.d.ts.map +1 -1
  87. package/dist/routes/rest/collections/create.js +8 -23
  88. package/dist/routes/rest/collections/delete.d.ts +1 -1
  89. package/dist/routes/rest/collections/delete.d.ts.map +1 -1
  90. package/dist/routes/rest/collections/delete.js +13 -31
  91. package/dist/routes/rest/collections/deleteByID.d.ts +1 -1
  92. package/dist/routes/rest/collections/deleteByID.d.ts.map +1 -1
  93. package/dist/routes/rest/collections/deleteByID.js +9 -24
  94. package/dist/routes/rest/collections/docAccess.d.ts +1 -1
  95. package/dist/routes/rest/collections/docAccess.d.ts.map +1 -1
  96. package/dist/routes/rest/collections/docAccess.js +6 -21
  97. package/dist/routes/rest/collections/find.d.ts +1 -1
  98. package/dist/routes/rest/collections/find.d.ts.map +1 -1
  99. package/dist/routes/rest/collections/find.js +11 -29
  100. package/dist/routes/rest/collections/findByID.d.ts +1 -1
  101. package/dist/routes/rest/collections/findByID.d.ts.map +1 -1
  102. package/dist/routes/rest/collections/findByID.js +8 -23
  103. package/dist/routes/rest/collections/findVersionByID.d.ts +1 -1
  104. package/dist/routes/rest/collections/findVersionByID.d.ts.map +1 -1
  105. package/dist/routes/rest/collections/findVersionByID.js +8 -23
  106. package/dist/routes/rest/collections/findVersions.d.ts +1 -1
  107. package/dist/routes/rest/collections/findVersions.d.ts.map +1 -1
  108. package/dist/routes/rest/collections/findVersions.js +11 -29
  109. package/dist/routes/rest/collections/restoreVersion.d.ts +1 -1
  110. package/dist/routes/rest/collections/restoreVersion.d.ts.map +1 -1
  111. package/dist/routes/rest/collections/restoreVersion.js +8 -23
  112. package/dist/routes/rest/collections/update.d.ts +1 -1
  113. package/dist/routes/rest/collections/update.d.ts.map +1 -1
  114. package/dist/routes/rest/collections/update.js +13 -31
  115. package/dist/routes/rest/collections/updateByID.d.ts +1 -1
  116. package/dist/routes/rest/collections/updateByID.d.ts.map +1 -1
  117. package/dist/routes/rest/collections/updateByID.js +8 -23
  118. package/dist/routes/rest/files/checkFileAccess.d.ts +7 -0
  119. package/dist/routes/rest/files/checkFileAccess.d.ts.map +1 -0
  120. package/dist/routes/rest/files/checkFileAccess.js +50 -0
  121. package/dist/routes/rest/files/getFile.d.ts +9 -0
  122. package/dist/routes/rest/files/getFile.d.ts.map +1 -0
  123. package/dist/routes/rest/files/getFile.js +52 -0
  124. package/dist/routes/rest/globals/docAccess.d.ts +1 -1
  125. package/dist/routes/rest/globals/docAccess.d.ts.map +1 -1
  126. package/dist/routes/rest/globals/docAccess.js +6 -21
  127. package/dist/routes/rest/globals/findOne.d.ts +1 -1
  128. package/dist/routes/rest/globals/findOne.d.ts.map +1 -1
  129. package/dist/routes/rest/globals/findOne.js +8 -23
  130. package/dist/routes/rest/globals/findVersionByID.d.ts +1 -1
  131. package/dist/routes/rest/globals/findVersionByID.d.ts.map +1 -1
  132. package/dist/routes/rest/globals/findVersionByID.js +8 -23
  133. package/dist/routes/rest/globals/findVersions.d.ts +1 -1
  134. package/dist/routes/rest/globals/findVersions.d.ts.map +1 -1
  135. package/dist/routes/rest/globals/findVersions.js +11 -29
  136. package/dist/routes/rest/globals/restoreVersion.d.ts +1 -1
  137. package/dist/routes/rest/globals/restoreVersion.d.ts.map +1 -1
  138. package/dist/routes/rest/globals/restoreVersion.js +8 -23
  139. package/dist/routes/rest/globals/update.d.ts +1 -1
  140. package/dist/routes/rest/globals/update.d.ts.map +1 -1
  141. package/dist/routes/rest/globals/update.js +8 -23
  142. package/dist/routes/rest/index.d.ts.map +1 -1
  143. package/dist/routes/rest/index.js +101 -121
  144. package/dist/routes/rest/types.js +2 -5
  145. package/dist/utilities/auth.d.ts +3 -3
  146. package/dist/utilities/auth.d.ts.map +1 -1
  147. package/dist/utilities/auth.js +7 -21
  148. package/dist/utilities/createPayloadRequest.d.ts.map +1 -1
  149. package/dist/utilities/createPayloadRequest.js +29 -31
  150. package/dist/utilities/getDataAndFile.js +6 -16
  151. package/dist/utilities/getNextI18n.js +11 -21
  152. package/dist/utilities/getNextT.js +11 -21
  153. package/dist/utilities/getPayload.d.ts +4 -0
  154. package/dist/utilities/getPayload.d.ts.map +1 -0
  155. package/dist/utilities/getPayload.js +62 -0
  156. package/dist/utilities/getRequestLanguage.d.ts +1 -1
  157. package/dist/utilities/getRequestLanguage.d.ts.map +1 -1
  158. package/dist/utilities/getRequestLanguage.js +4 -14
  159. package/dist/utilities/getRequestLocales.js +2 -12
  160. package/dist/utilities/initPage.d.ts +6 -15
  161. package/dist/utilities/initPage.d.ts.map +1 -1
  162. package/dist/utilities/initPage.js +45 -45
  163. package/dist/utilities/meta.js +5 -15
  164. package/dist/utilities/timestamp.d.ts +2 -0
  165. package/dist/utilities/timestamp.d.ts.map +1 -0
  166. package/dist/utilities/timestamp.js +7 -0
  167. package/dist/{pages → views}/API/RenderJSON/index.d.ts.map +1 -1
  168. package/dist/views/API/RenderJSON/index.js +91 -0
  169. package/dist/views/API/index.client.d.ts +4 -0
  170. package/dist/views/API/index.client.d.ts.map +1 -0
  171. package/dist/views/API/index.client.js +176 -0
  172. package/dist/views/API/index.d.ts +4 -0
  173. package/dist/views/API/index.d.ts.map +1 -0
  174. package/dist/views/API/index.js +7 -0
  175. package/dist/{pages/LivePreview → views/API}/meta.d.ts +1 -1
  176. package/dist/views/API/meta.d.ts.map +1 -0
  177. package/dist/views/API/meta.js +11 -0
  178. package/dist/{pages → views}/Account/Settings/index.d.ts.map +1 -1
  179. package/dist/views/Account/Settings/index.js +30 -0
  180. package/dist/views/Account/ToggleTheme/index.d.ts.map +1 -0
  181. package/dist/views/Account/ToggleTheme/index.js +34 -0
  182. package/dist/views/Account/index.d.ts +5 -0
  183. package/dist/views/Account/index.d.ts.map +1 -0
  184. package/dist/views/Account/index.js +98 -0
  185. package/dist/views/Account/meta.d.ts +3 -0
  186. package/dist/views/Account/meta.d.ts.map +1 -0
  187. package/dist/views/Account/meta.js +11 -0
  188. package/dist/views/CreateFirstUser/index.client.d.ts +7 -0
  189. package/dist/views/CreateFirstUser/index.client.d.ts.map +1 -0
  190. package/dist/views/CreateFirstUser/index.client.js +18 -0
  191. package/dist/views/CreateFirstUser/index.d.ts +6 -0
  192. package/dist/views/CreateFirstUser/index.d.ts.map +1 -0
  193. package/dist/views/CreateFirstUser/index.js +51 -0
  194. package/dist/views/CreateFirstUser/meta.d.ts +3 -0
  195. package/dist/views/CreateFirstUser/meta.d.ts.map +1 -0
  196. package/dist/views/CreateFirstUser/meta.js +11 -0
  197. package/dist/{pages → views}/Dashboard/Default/index.client.d.ts +2 -0
  198. package/dist/views/Dashboard/Default/index.client.d.ts.map +1 -0
  199. package/dist/views/Dashboard/Default/index.client.js +99 -0
  200. package/dist/{pages → views}/Dashboard/Default/index.d.ts +2 -0
  201. package/dist/views/Dashboard/Default/index.d.ts.map +1 -0
  202. package/dist/views/Dashboard/Default/index.js +28 -0
  203. package/dist/views/Dashboard/index.d.ts +5 -0
  204. package/dist/views/Dashboard/index.d.ts.map +1 -0
  205. package/dist/views/Dashboard/index.js +46 -0
  206. package/dist/views/Dashboard/meta.d.ts +3 -0
  207. package/dist/views/Dashboard/meta.d.ts.map +1 -0
  208. package/dist/views/Dashboard/meta.js +11 -0
  209. package/dist/{pages → views}/Document/getCustomViewByKey.d.ts +2 -2
  210. package/dist/views/Document/getCustomViewByKey.d.ts.map +1 -0
  211. package/dist/views/Document/getCustomViewByKey.js +5 -0
  212. package/dist/{pages → views}/Document/getCustomViewByPath.d.ts +2 -2
  213. package/dist/views/Document/getCustomViewByPath.d.ts.map +1 -0
  214. package/dist/views/Document/getCustomViewByPath.js +16 -0
  215. package/dist/views/Document/getMetaBySegment.d.ts +10 -0
  216. package/dist/views/Document/getMetaBySegment.d.ts.map +1 -0
  217. package/dist/views/Document/getMetaBySegment.js +77 -0
  218. package/dist/{pages → views}/Document/getViewsFromConfig.d.ts +3 -3
  219. package/dist/views/Document/getViewsFromConfig.d.ts.map +1 -0
  220. package/dist/views/Document/getViewsFromConfig.js +155 -0
  221. package/dist/views/Document/index.d.ts +6 -0
  222. package/dist/views/Document/index.d.ts.map +1 -0
  223. package/dist/views/Document/index.js +159 -0
  224. package/dist/views/Document/meta.d.ts +3 -0
  225. package/dist/views/Document/meta.d.ts.map +1 -0
  226. package/dist/views/Document/meta.js +4 -0
  227. package/dist/{pages → views}/Edit/Default/Auth/APIKey.d.ts.map +1 -1
  228. package/dist/views/Edit/Default/Auth/APIKey.js +89 -0
  229. package/dist/{pages → views}/Edit/Default/Auth/index.d.ts +1 -1
  230. package/dist/{pages → views}/Edit/Default/Auth/index.d.ts.map +1 -1
  231. package/dist/views/Edit/Default/Auth/index.js +124 -0
  232. package/dist/{pages → views}/Edit/Default/Auth/types.d.ts.map +1 -1
  233. package/dist/views/Edit/Default/Auth/types.js +3 -0
  234. package/dist/views/Edit/Default/SetDocumentTitle/formatTitle.d.ts +10 -0
  235. package/dist/views/Edit/Default/SetDocumentTitle/formatTitle.d.ts.map +1 -0
  236. package/dist/views/Edit/Default/SetDocumentTitle/formatTitle.js +23 -0
  237. package/dist/{pages → views}/Edit/Default/SetDocumentTitle/index.d.ts +1 -1
  238. package/dist/{pages → views}/Edit/Default/SetDocumentTitle/index.d.ts.map +1 -1
  239. package/dist/views/Edit/Default/SetDocumentTitle/index.js +33 -0
  240. package/dist/{pages → views}/Edit/Default/SetStepNav/index.d.ts +1 -2
  241. package/dist/views/Edit/Default/SetStepNav/index.d.ts.map +1 -0
  242. package/dist/views/Edit/Default/SetStepNav/index.js +60 -0
  243. package/dist/views/Edit/Default/index.d.ts.map +1 -0
  244. package/dist/views/Edit/Default/index.js +145 -0
  245. package/dist/{pages → views}/Edit/Default/types.d.ts.map +1 -1
  246. package/dist/views/Edit/Default/types.js +3 -0
  247. package/dist/views/Edit/index.client.d.ts +3 -0
  248. package/dist/views/Edit/index.client.d.ts.map +1 -0
  249. package/dist/views/Edit/index.client.js +53 -0
  250. package/dist/views/Edit/index.d.ts +4 -0
  251. package/dist/views/Edit/index.d.ts.map +1 -0
  252. package/dist/views/Edit/index.js +7 -0
  253. package/dist/{pages/API → views/Edit}/meta.d.ts +1 -1
  254. package/dist/views/Edit/meta.d.ts.map +1 -0
  255. package/dist/views/Edit/meta.js +26 -0
  256. package/dist/views/Edit/sanitizeEditViewProps.d.ts +3 -0
  257. package/dist/views/Edit/sanitizeEditViewProps.d.ts.map +1 -0
  258. package/dist/views/Edit/sanitizeEditViewProps.js +11 -0
  259. package/dist/views/ForgotPassword/index.d.ts +6 -0
  260. package/dist/views/ForgotPassword/index.d.ts.map +1 -0
  261. package/dist/views/ForgotPassword/index.js +58 -0
  262. package/dist/views/ForgotPassword/meta.d.ts +3 -0
  263. package/dist/views/ForgotPassword/meta.d.ts.map +1 -0
  264. package/dist/views/ForgotPassword/meta.js +11 -0
  265. package/dist/{pages → views}/List/Default/Cell/cellTypes.spec.js +21 -30
  266. package/dist/{pages → views}/List/Default/Cell/fields/Array/index.d.ts.map +1 -1
  267. package/dist/views/List/Default/Cell/fields/Array/index.js +12 -0
  268. package/dist/{pages → views}/List/Default/Cell/fields/Blocks/index.d.ts.map +1 -1
  269. package/dist/views/List/Default/Cell/fields/Blocks/index.js +30 -0
  270. package/dist/{pages → views}/List/Default/Cell/fields/Checkbox/index.d.ts.map +1 -1
  271. package/dist/views/List/Default/Cell/fields/Checkbox/index.js +8 -0
  272. package/dist/{pages → views}/List/Default/Cell/fields/Code/index.d.ts.map +1 -1
  273. package/dist/views/List/Default/Cell/fields/Code/index.js +14 -0
  274. package/dist/{pages → views}/List/Default/Cell/fields/Date/index.d.ts.map +1 -1
  275. package/dist/views/List/Default/Cell/fields/Date/index.js +11 -0
  276. package/dist/{pages → views}/List/Default/Cell/fields/File/index.d.ts.map +1 -1
  277. package/dist/{pages → views}/List/Default/Cell/fields/File/index.js +8 -23
  278. package/dist/{pages → views}/List/Default/Cell/fields/JSON/index.d.ts.map +1 -1
  279. package/dist/views/List/Default/Cell/fields/JSON/index.js +11 -0
  280. package/dist/{pages → views}/List/Default/Cell/fields/Relationship/index.d.ts.map +1 -1
  281. package/dist/views/List/Default/Cell/fields/Relationship/index.js +70 -0
  282. package/dist/{pages → views}/List/Default/Cell/fields/Select/index.d.ts.map +1 -1
  283. package/dist/{pages → views}/List/Default/Cell/fields/Select/index.js +10 -25
  284. package/dist/{pages → views}/List/Default/Cell/fields/Textarea/index.d.ts.map +1 -1
  285. package/dist/views/List/Default/Cell/fields/Textarea/index.js +8 -0
  286. package/dist/views/List/Default/Cell/fields/index.d.ts +17 -0
  287. package/dist/views/List/Default/Cell/fields/index.d.ts.map +1 -0
  288. package/dist/views/List/Default/Cell/fields/index.js +26 -0
  289. package/dist/views/List/Default/Cell/index.d.ts.map +1 -0
  290. package/dist/views/List/Default/Cell/index.js +75 -0
  291. package/dist/{pages → views}/List/Default/RelationshipProvider/index.d.ts.map +1 -1
  292. package/dist/views/List/Default/RelationshipProvider/index.js +89 -0
  293. package/dist/{pages → views}/List/Default/RelationshipProvider/reducer.d.ts +1 -1
  294. package/dist/{pages → views}/List/Default/RelationshipProvider/reducer.d.ts.map +1 -1
  295. package/dist/views/List/Default/RelationshipProvider/reducer.js +45 -0
  296. package/dist/views/List/Default/index.d.ts.map +1 -0
  297. package/dist/views/List/Default/index.js +130 -0
  298. package/dist/{pages → views}/List/Default/types.d.ts.map +1 -1
  299. package/dist/views/List/Default/types.js +3 -0
  300. package/dist/views/List/index.d.ts +5 -0
  301. package/dist/views/List/index.d.ts.map +1 -0
  302. package/dist/views/List/index.js +70 -0
  303. package/dist/views/List/meta.d.ts +7 -0
  304. package/dist/views/List/meta.d.ts.map +1 -0
  305. package/dist/views/List/meta.js +19 -0
  306. package/dist/{pages → views}/LivePreview/Context/collisionDetection.d.ts.map +1 -1
  307. package/dist/{pages → views}/LivePreview/Context/collisionDetection.js +6 -14
  308. package/dist/{pages → views}/LivePreview/Context/context.d.ts +2 -2
  309. package/dist/views/LivePreview/Context/context.d.ts.map +1 -0
  310. package/dist/views/LivePreview/Context/context.js +40 -0
  311. package/dist/{pages → views}/LivePreview/Context/index.d.ts +3 -3
  312. package/dist/views/LivePreview/Context/index.d.ts.map +1 -0
  313. package/dist/views/LivePreview/Context/index.js +157 -0
  314. package/dist/{pages → views}/LivePreview/Context/sizeReducer.d.ts.map +1 -1
  315. package/dist/{pages → views}/LivePreview/Context/sizeReducer.js +2 -12
  316. package/dist/{pages → views}/LivePreview/Device/index.d.ts.map +1 -1
  317. package/dist/views/LivePreview/Device/index.js +51 -0
  318. package/dist/{pages → views}/LivePreview/DeviceContainer/index.d.ts.map +1 -1
  319. package/dist/views/LivePreview/DeviceContainer/index.js +29 -0
  320. package/dist/{pages → views}/LivePreview/IFrame/index.d.ts.map +1 -1
  321. package/dist/views/LivePreview/IFrame/index.js +23 -0
  322. package/dist/{pages → views}/LivePreview/Preview/index.d.ts +1 -1
  323. package/dist/views/LivePreview/Preview/index.d.ts.map +1 -0
  324. package/dist/views/LivePreview/Preview/index.js +76 -0
  325. package/dist/{pages → views}/LivePreview/Toolbar/Controls/index.d.ts +1 -1
  326. package/dist/views/LivePreview/Toolbar/Controls/index.d.ts.map +1 -0
  327. package/dist/views/LivePreview/Toolbar/Controls/index.js +81 -0
  328. package/dist/{pages → views}/LivePreview/Toolbar/SizeInput/index.d.ts.map +1 -1
  329. package/dist/views/LivePreview/Toolbar/SizeInput/index.js +61 -0
  330. package/dist/{pages → views}/LivePreview/Toolbar/index.d.ts +1 -1
  331. package/dist/views/LivePreview/Toolbar/index.d.ts.map +1 -0
  332. package/dist/views/LivePreview/Toolbar/index.js +50 -0
  333. package/dist/{pages → views}/LivePreview/ToolbarArea/index.d.ts.map +1 -1
  334. package/dist/views/LivePreview/ToolbarArea/index.js +17 -0
  335. package/dist/views/LivePreview/index.client.d.ts.map +1 -0
  336. package/dist/views/LivePreview/index.client.js +141 -0
  337. package/dist/views/LivePreview/index.d.ts +4 -0
  338. package/dist/views/LivePreview/index.d.ts.map +1 -0
  339. package/dist/views/LivePreview/index.js +45 -0
  340. package/dist/{pages/Version → views/LivePreview}/meta.d.ts +1 -1
  341. package/dist/views/LivePreview/meta.d.ts.map +1 -0
  342. package/dist/views/LivePreview/meta.js +26 -0
  343. package/dist/{pages → views}/LivePreview/usePopupWindow.d.ts.map +1 -1
  344. package/dist/{pages → views}/LivePreview/usePopupWindow.js +11 -21
  345. package/dist/{pages → views}/Login/LoginForm/index.d.ts.map +1 -1
  346. package/dist/views/Login/LoginForm/index.js +58 -0
  347. package/dist/views/Login/index.d.ts +7 -0
  348. package/dist/views/Login/index.d.ts.map +1 -0
  349. package/dist/views/Login/index.js +29 -0
  350. package/dist/views/Login/index.scss +8 -0
  351. package/dist/views/Login/meta.d.ts +3 -0
  352. package/dist/views/Login/meta.d.ts.map +1 -0
  353. package/dist/views/Login/meta.js +11 -0
  354. package/dist/views/Logout/LogoutClient.d.ts.map +1 -0
  355. package/dist/views/Logout/LogoutClient.js +33 -0
  356. package/dist/views/Logout/index.d.ts +9 -0
  357. package/dist/views/Logout/index.d.ts.map +1 -0
  358. package/dist/views/Logout/index.js +26 -0
  359. package/dist/views/Logout/meta.d.ts +3 -0
  360. package/dist/views/Logout/meta.d.ts.map +1 -0
  361. package/dist/views/Logout/meta.js +11 -0
  362. package/dist/views/NotFound/index.client.d.ts +6 -0
  363. package/dist/views/NotFound/index.client.d.ts.map +1 -0
  364. package/dist/views/NotFound/index.client.js +38 -0
  365. package/dist/views/NotFound/index.d.ts +12 -0
  366. package/dist/views/NotFound/index.d.ts.map +1 -0
  367. package/dist/views/NotFound/index.js +20 -0
  368. package/dist/views/NotFound/meta.d.ts +8 -0
  369. package/dist/views/NotFound/meta.d.ts.map +1 -0
  370. package/dist/views/NotFound/meta.js +11 -0
  371. package/dist/views/ResetPassword/index.d.ts +7 -0
  372. package/dist/views/ResetPassword/index.d.ts.map +1 -0
  373. package/dist/views/ResetPassword/index.js +63 -0
  374. package/dist/views/ResetPassword/meta.d.ts +3 -0
  375. package/dist/views/ResetPassword/meta.d.ts.map +1 -0
  376. package/dist/views/ResetPassword/meta.js +11 -0
  377. package/dist/views/Root/index.d.ts +31 -0
  378. package/dist/views/Root/index.d.ts.map +1 -0
  379. package/dist/views/Root/index.js +174 -0
  380. package/dist/views/Root/meta.d.ts +14 -0
  381. package/dist/views/Root/meta.d.ts.map +1 -0
  382. package/dist/views/Root/meta.js +159 -0
  383. package/dist/views/Unauthorized/UnauthorizedClient.d.ts.map +1 -0
  384. package/dist/views/Unauthorized/UnauthorizedClient.js +15 -0
  385. package/dist/views/Unauthorized/index.d.ts +5 -0
  386. package/dist/views/Unauthorized/index.d.ts.map +1 -0
  387. package/dist/views/Unauthorized/index.js +11 -0
  388. package/dist/views/Unauthorized/meta.d.ts +3 -0
  389. package/dist/views/Unauthorized/meta.d.ts.map +1 -0
  390. package/dist/views/Unauthorized/meta.js +11 -0
  391. package/dist/views/Verify/index.d.ts +7 -0
  392. package/dist/views/Verify/index.d.ts.map +1 -0
  393. package/dist/views/Verify/index.js +33 -0
  394. package/dist/views/Verify/meta.d.ts +3 -0
  395. package/dist/views/Verify/meta.d.ts.map +1 -0
  396. package/dist/views/Verify/meta.js +11 -0
  397. package/dist/{pages → views}/Version/Default/SetStepNav.d.ts.map +1 -1
  398. package/dist/{pages → views}/Version/Default/SetStepNav.js +13 -23
  399. package/dist/{pages → views}/Version/Default/index.d.ts +1 -1
  400. package/dist/views/Version/Default/index.d.ts.map +1 -0
  401. package/dist/views/Version/Default/index.js +100 -0
  402. package/dist/{pages → views}/Version/Default/types.d.ts +2 -7
  403. package/dist/views/Version/Default/types.d.ts.map +1 -0
  404. package/dist/views/Version/Default/types.js +3 -0
  405. package/dist/{pages → views}/Version/RenderFieldsToDiff/Label/index.d.ts.map +1 -1
  406. package/dist/views/Version/RenderFieldsToDiff/Label/index.js +9 -0
  407. package/dist/{pages → views}/Version/RenderFieldsToDiff/fields/Iterable/index.d.ts +1 -1
  408. package/dist/{pages → views}/Version/RenderFieldsToDiff/fields/Iterable/index.d.ts.map +1 -1
  409. package/dist/views/Version/RenderFieldsToDiff/fields/Iterable/index.js +65 -0
  410. package/dist/{pages → views}/Version/RenderFieldsToDiff/fields/Nested/index.d.ts +1 -1
  411. package/dist/{pages → views}/Version/RenderFieldsToDiff/fields/Nested/index.d.ts.map +1 -1
  412. package/dist/views/Version/RenderFieldsToDiff/fields/Nested/index.js +29 -0
  413. package/dist/{pages → views}/Version/RenderFieldsToDiff/fields/Relationship/index.d.ts +1 -1
  414. package/dist/views/Version/RenderFieldsToDiff/fields/Relationship/index.d.ts.map +1 -0
  415. package/dist/views/Version/RenderFieldsToDiff/fields/Relationship/index.js +75 -0
  416. package/dist/{pages → views}/Version/RenderFieldsToDiff/fields/Select/DiffViewer/index.d.ts.map +1 -1
  417. package/dist/views/Version/RenderFieldsToDiff/fields/Select/DiffViewer/index.js +17 -0
  418. package/dist/{pages → views}/Version/RenderFieldsToDiff/fields/Select/index.d.ts +1 -1
  419. package/dist/{pages → views}/Version/RenderFieldsToDiff/fields/Select/index.d.ts.map +1 -1
  420. package/dist/views/Version/RenderFieldsToDiff/fields/Select/index.js +39 -0
  421. package/dist/{pages → views}/Version/RenderFieldsToDiff/fields/Tabs/index.d.ts +1 -1
  422. package/dist/{pages → views}/Version/RenderFieldsToDiff/fields/Tabs/index.d.ts.map +1 -1
  423. package/dist/views/Version/RenderFieldsToDiff/fields/Tabs/index.js +39 -0
  424. package/dist/{pages → views}/Version/RenderFieldsToDiff/fields/Text/DiffViewer/index.d.ts.map +1 -1
  425. package/dist/views/Version/RenderFieldsToDiff/fields/Text/DiffViewer/index.js +17 -0
  426. package/dist/{pages → views}/Version/RenderFieldsToDiff/fields/Text/index.d.ts +1 -1
  427. package/dist/{pages → views}/Version/RenderFieldsToDiff/fields/Text/index.d.ts.map +1 -1
  428. package/dist/views/Version/RenderFieldsToDiff/fields/Text/index.js +31 -0
  429. package/dist/{pages → views}/Version/RenderFieldsToDiff/fields/diffMethods.d.ts.map +1 -1
  430. package/dist/{pages → views}/Version/RenderFieldsToDiff/fields/diffMethods.js +2 -12
  431. package/dist/views/Version/RenderFieldsToDiff/fields/index.d.ts +25 -0
  432. package/dist/views/Version/RenderFieldsToDiff/fields/index.d.ts.map +1 -0
  433. package/dist/views/Version/RenderFieldsToDiff/fields/index.js +29 -0
  434. package/dist/{pages → views}/Version/RenderFieldsToDiff/fields/styles.d.ts.map +1 -1
  435. package/dist/{pages → views}/Version/RenderFieldsToDiff/fields/styles.js +2 -12
  436. package/dist/{pages → views}/Version/RenderFieldsToDiff/fields/types.d.ts.map +1 -1
  437. package/dist/views/Version/RenderFieldsToDiff/fields/types.js +3 -0
  438. package/dist/{pages → views}/Version/RenderFieldsToDiff/index.d.ts +1 -1
  439. package/dist/{pages → views}/Version/RenderFieldsToDiff/index.d.ts.map +1 -1
  440. package/dist/views/Version/RenderFieldsToDiff/index.js +100 -0
  441. package/dist/{pages → views}/Version/RenderFieldsToDiff/types.d.ts +1 -1
  442. package/dist/{pages → views}/Version/RenderFieldsToDiff/types.d.ts.map +1 -1
  443. package/dist/views/Version/RenderFieldsToDiff/types.js +3 -0
  444. package/dist/{pages → views}/Version/Restore/index.d.ts +1 -1
  445. package/dist/views/Version/Restore/index.d.ts.map +1 -0
  446. package/dist/views/Version/Restore/index.js +71 -0
  447. package/dist/{pages → views}/Version/Restore/types.d.ts.map +1 -1
  448. package/dist/views/Version/Restore/types.js +3 -0
  449. package/dist/{pages → views}/Version/SelectComparison/index.d.ts +1 -1
  450. package/dist/views/Version/SelectComparison/index.d.ts.map +1 -0
  451. package/dist/views/Version/SelectComparison/index.js +112 -0
  452. package/dist/{pages → views}/Version/SelectComparison/types.d.ts +1 -1
  453. package/dist/{pages → views}/Version/SelectComparison/types.d.ts.map +1 -1
  454. package/dist/views/Version/SelectComparison/types.js +3 -0
  455. package/dist/{pages → views}/Version/SelectLocales/index.d.ts +1 -1
  456. package/dist/views/Version/SelectLocales/index.d.ts.map +1 -0
  457. package/dist/views/Version/SelectLocales/index.js +33 -0
  458. package/dist/{pages → views}/Version/SelectLocales/types.d.ts.map +1 -1
  459. package/dist/views/Version/SelectLocales/types.js +3 -0
  460. package/dist/views/Version/index.d.ts +3 -0
  461. package/dist/views/Version/index.d.ts.map +1 -0
  462. package/dist/views/Version/index.js +89 -0
  463. package/dist/{pages/Edit → views/Version}/meta.d.ts +1 -1
  464. package/dist/views/Version/meta.d.ts.map +1 -0
  465. package/dist/views/Version/meta.js +37 -0
  466. package/dist/{pages → views}/Version/shared.d.ts.map +1 -1
  467. package/dist/views/Version/shared.js +10 -0
  468. package/dist/{pages → views}/Versions/buildColumns.d.ts.map +1 -1
  469. package/dist/views/Versions/buildColumns.js +54 -0
  470. package/dist/{pages → views}/Versions/cells/AutosaveCell/index.d.ts.map +1 -1
  471. package/dist/views/Versions/cells/AutosaveCell/index.js +12 -0
  472. package/dist/{pages → views}/Versions/cells/CreatedAt/index.d.ts.map +1 -1
  473. package/dist/views/Versions/cells/CreatedAt/index.js +19 -0
  474. package/dist/{pages → views}/Versions/cells/ID/index.d.ts.map +1 -1
  475. package/dist/views/Versions/cells/ID/index.js +9 -0
  476. package/dist/{pages → views}/Versions/index.client.d.ts +0 -3
  477. package/dist/views/Versions/index.client.d.ts.map +1 -0
  478. package/dist/views/Versions/index.client.js +93 -0
  479. package/dist/{pages → views}/Versions/index.d.ts +1 -1
  480. package/dist/views/Versions/index.d.ts.map +1 -0
  481. package/dist/views/Versions/index.js +86 -0
  482. package/dist/views/Versions/meta.d.ts +3 -0
  483. package/dist/views/Versions/meta.d.ts.map +1 -0
  484. package/dist/views/Versions/meta.js +33 -0
  485. package/dist/{pages → views}/Versions/types.d.ts.map +1 -1
  486. package/dist/views/Versions/types.js +3 -0
  487. package/dist/withPayload.d.ts +2 -1
  488. package/dist/withPayload.d.ts.map +1 -1
  489. package/dist/withPayload.js +3 -6
  490. package/package.json +24 -15
  491. package/src/index.ts +5 -1
  492. package/dist/layouts/Document/index.d.ts +0 -14
  493. package/dist/layouts/Document/index.d.ts.map +0 -1
  494. package/dist/layouts/Document/index.js +0 -82
  495. package/dist/pages/API/RenderJSON/index.js +0 -142
  496. package/dist/pages/API/index.client.d.ts +0 -5
  497. package/dist/pages/API/index.client.d.ts.map +0 -1
  498. package/dist/pages/API/index.client.js +0 -241
  499. package/dist/pages/API/index.d.ts +0 -4
  500. package/dist/pages/API/index.d.ts.map +0 -1
  501. package/dist/pages/API/index.js +0 -27
  502. package/dist/pages/API/meta.d.ts.map +0 -1
  503. package/dist/pages/API/meta.js +0 -21
  504. package/dist/pages/Account/Settings/index.js +0 -45
  505. package/dist/pages/Account/ToggleTheme/index.d.ts.map +0 -1
  506. package/dist/pages/Account/ToggleTheme/index.js +0 -85
  507. package/dist/pages/Account/index.d.ts +0 -13
  508. package/dist/pages/Account/index.d.ts.map +0 -1
  509. package/dist/pages/Account/index.js +0 -171
  510. package/dist/pages/CreateFirstUser/index.client.d.ts +0 -5
  511. package/dist/pages/CreateFirstUser/index.client.d.ts.map +0 -1
  512. package/dist/pages/CreateFirstUser/index.client.js +0 -29
  513. package/dist/pages/CreateFirstUser/index.d.ts +0 -11
  514. package/dist/pages/CreateFirstUser/index.d.ts.map +0 -1
  515. package/dist/pages/CreateFirstUser/index.js +0 -91
  516. package/dist/pages/Dashboard/Default/index.client.d.ts.map +0 -1
  517. package/dist/pages/Dashboard/Default/index.client.js +0 -154
  518. package/dist/pages/Dashboard/Default/index.d.ts.map +0 -1
  519. package/dist/pages/Dashboard/Default/index.js +0 -44
  520. package/dist/pages/Dashboard/index.d.ts +0 -13
  521. package/dist/pages/Dashboard/index.d.ts.map +0 -1
  522. package/dist/pages/Dashboard/index.js +0 -128
  523. package/dist/pages/Document/getCustomViewByKey.d.ts.map +0 -1
  524. package/dist/pages/Document/getCustomViewByKey.js +0 -15
  525. package/dist/pages/Document/getCustomViewByPath.d.ts.map +0 -1
  526. package/dist/pages/Document/getCustomViewByPath.js +0 -26
  527. package/dist/pages/Document/getMetaBySegment.d.ts +0 -20
  528. package/dist/pages/Document/getMetaBySegment.d.ts.map +0 -1
  529. package/dist/pages/Document/getMetaBySegment.js +0 -124
  530. package/dist/pages/Document/getViewsFromConfig.d.ts.map +0 -1
  531. package/dist/pages/Document/getViewsFromConfig.js +0 -224
  532. package/dist/pages/Document/index.d.ts +0 -23
  533. package/dist/pages/Document/index.d.ts.map +0 -1
  534. package/dist/pages/Document/index.js +0 -237
  535. package/dist/pages/Edit/Default/Auth/APIKey.js +0 -140
  536. package/dist/pages/Edit/Default/Auth/index.js +0 -180
  537. package/dist/pages/Edit/Default/Auth/types.js +0 -6
  538. package/dist/pages/Edit/Default/RenderCustomView.d.ts +0 -2
  539. package/dist/pages/Edit/Default/RenderCustomView.d.ts.map +0 -1
  540. package/dist/pages/Edit/Default/RenderCustomView.js +0 -3
  541. package/dist/pages/Edit/Default/SetDocumentTitle/index.js +0 -50
  542. package/dist/pages/Edit/Default/SetStepNav/index.d.ts.map +0 -1
  543. package/dist/pages/Edit/Default/SetStepNav/index.js +0 -70
  544. package/dist/pages/Edit/Default/index.d.ts.map +0 -1
  545. package/dist/pages/Edit/Default/index.js +0 -202
  546. package/dist/pages/Edit/Default/types.js +0 -6
  547. package/dist/pages/Edit/index.client.d.ts +0 -4
  548. package/dist/pages/Edit/index.client.d.ts.map +0 -1
  549. package/dist/pages/Edit/index.client.js +0 -99
  550. package/dist/pages/Edit/index.d.ts +0 -4
  551. package/dist/pages/Edit/index.d.ts.map +0 -1
  552. package/dist/pages/Edit/index.js +0 -27
  553. package/dist/pages/Edit/meta.d.ts.map +0 -1
  554. package/dist/pages/Edit/meta.js +0 -36
  555. package/dist/pages/Edit/sanitizeEditViewProps.d.ts +0 -4
  556. package/dist/pages/Edit/sanitizeEditViewProps.d.ts.map +0 -1
  557. package/dist/pages/Edit/sanitizeEditViewProps.js +0 -24
  558. package/dist/pages/Edit/types.d.js +0 -7
  559. package/dist/pages/Edit/types.d.ts +0 -37
  560. package/dist/pages/Edit/types.d.ts.map +0 -1
  561. package/dist/pages/Edit/types.js +0 -6
  562. package/dist/pages/ForgotPassword/index.d.ts +0 -10
  563. package/dist/pages/ForgotPassword/index.d.ts.map +0 -1
  564. package/dist/pages/ForgotPassword/index.js +0 -101
  565. package/dist/pages/List/Default/Cell/fields/Array/index.js +0 -27
  566. package/dist/pages/List/Default/Cell/fields/Blocks/index.js +0 -45
  567. package/dist/pages/List/Default/Cell/fields/Checkbox/index.js +0 -23
  568. package/dist/pages/List/Default/Cell/fields/Code/index.js +0 -29
  569. package/dist/pages/List/Default/Cell/fields/Date/index.js +0 -26
  570. package/dist/pages/List/Default/Cell/fields/JSON/index.js +0 -26
  571. package/dist/pages/List/Default/Cell/fields/Relationship/index.js +0 -121
  572. package/dist/pages/List/Default/Cell/fields/Richtext/index.d.ts +0 -2
  573. package/dist/pages/List/Default/Cell/fields/Richtext/index.d.ts.map +0 -1
  574. package/dist/pages/List/Default/Cell/fields/Richtext/index.js +0 -3
  575. package/dist/pages/List/Default/Cell/fields/Textarea/index.js +0 -23
  576. package/dist/pages/List/Default/Cell/fields/index.d.ts +0 -17
  577. package/dist/pages/List/Default/Cell/fields/index.d.ts.map +0 -1
  578. package/dist/pages/List/Default/Cell/fields/index.js +0 -36
  579. package/dist/pages/List/Default/Cell/index.d.ts.map +0 -1
  580. package/dist/pages/List/Default/Cell/index.js +0 -89
  581. package/dist/pages/List/Default/RelationshipProvider/index.js +0 -153
  582. package/dist/pages/List/Default/RelationshipProvider/reducer.js +0 -55
  583. package/dist/pages/List/Default/index.d.ts.map +0 -1
  584. package/dist/pages/List/Default/index.js +0 -174
  585. package/dist/pages/List/Default/types.js +0 -6
  586. package/dist/pages/List/index.d.ts +0 -18
  587. package/dist/pages/List/index.d.ts.map +0 -1
  588. package/dist/pages/List/index.js +0 -158
  589. package/dist/pages/LivePreview/Context/context.d.ts.map +0 -1
  590. package/dist/pages/LivePreview/Context/context.js +0 -58
  591. package/dist/pages/LivePreview/Context/index.d.ts.map +0 -1
  592. package/dist/pages/LivePreview/Context/index.js +0 -208
  593. package/dist/pages/LivePreview/Device/index.js +0 -102
  594. package/dist/pages/LivePreview/DeviceContainer/index.js +0 -44
  595. package/dist/pages/LivePreview/IFrame/index.js +0 -74
  596. package/dist/pages/LivePreview/Preview/index.d.ts.map +0 -1
  597. package/dist/pages/LivePreview/Preview/index.js +0 -127
  598. package/dist/pages/LivePreview/Toolbar/Controls/index.d.ts.map +0 -1
  599. package/dist/pages/LivePreview/Toolbar/Controls/index.js +0 -96
  600. package/dist/pages/LivePreview/Toolbar/SizeInput/index.js +0 -112
  601. package/dist/pages/LivePreview/Toolbar/index.d.ts.map +0 -1
  602. package/dist/pages/LivePreview/Toolbar/index.js +0 -65
  603. package/dist/pages/LivePreview/ToolbarArea/index.js +0 -32
  604. package/dist/pages/LivePreview/index.client.d.ts.map +0 -1
  605. package/dist/pages/LivePreview/index.client.js +0 -195
  606. package/dist/pages/LivePreview/index.d.ts +0 -5
  607. package/dist/pages/LivePreview/index.d.ts.map +0 -1
  608. package/dist/pages/LivePreview/index.js +0 -59
  609. package/dist/pages/LivePreview/meta.d.ts.map +0 -1
  610. package/dist/pages/LivePreview/meta.js +0 -36
  611. package/dist/pages/Login/LoginForm/index.js +0 -67
  612. package/dist/pages/Login/index.d.ts +0 -14
  613. package/dist/pages/Login/index.d.ts.map +0 -1
  614. package/dist/pages/Login/index.js +0 -108
  615. package/dist/pages/Login/index.scss +0 -38
  616. package/dist/pages/Logout/LogoutClient.d.ts.map +0 -1
  617. package/dist/pages/Logout/LogoutClient.js +0 -88
  618. package/dist/pages/Logout/index.d.ts +0 -16
  619. package/dist/pages/Logout/index.d.ts.map +0 -1
  620. package/dist/pages/Logout/index.js +0 -61
  621. package/dist/pages/NotFound/index.d.ts +0 -7
  622. package/dist/pages/NotFound/index.d.ts.map +0 -1
  623. package/dist/pages/NotFound/index.js +0 -48
  624. package/dist/pages/ResetPassword/index.d.ts +0 -12
  625. package/dist/pages/ResetPassword/index.d.ts.map +0 -1
  626. package/dist/pages/ResetPassword/index.js +0 -99
  627. package/dist/pages/Root/index.d.ts +0 -5
  628. package/dist/pages/Root/index.d.ts.map +0 -1
  629. package/dist/pages/Root/index.js +0 -17
  630. package/dist/pages/Unauthorized/UnauthorizedClient.d.ts.map +0 -1
  631. package/dist/pages/Unauthorized/UnauthorizedClient.js +0 -27
  632. package/dist/pages/Unauthorized/index.d.ts +0 -10
  633. package/dist/pages/Unauthorized/index.d.ts.map +0 -1
  634. package/dist/pages/Unauthorized/index.js +0 -51
  635. package/dist/pages/Verify/index.d.ts +0 -13
  636. package/dist/pages/Verify/index.d.ts.map +0 -1
  637. package/dist/pages/Verify/index.js +0 -90
  638. package/dist/pages/Version/Default/index.d.ts.map +0 -1
  639. package/dist/pages/Version/Default/index.js +0 -157
  640. package/dist/pages/Version/Default/types.d.ts.map +0 -1
  641. package/dist/pages/Version/Default/types.js +0 -6
  642. package/dist/pages/Version/RenderFieldsToDiff/Label/index.js +0 -24
  643. package/dist/pages/Version/RenderFieldsToDiff/fields/Iterable/index.js +0 -80
  644. package/dist/pages/Version/RenderFieldsToDiff/fields/Nested/index.js +0 -44
  645. package/dist/pages/Version/RenderFieldsToDiff/fields/Relationship/index.d.ts.map +0 -1
  646. package/dist/pages/Version/RenderFieldsToDiff/fields/Relationship/index.js +0 -89
  647. package/dist/pages/Version/RenderFieldsToDiff/fields/Select/DiffViewer/index.js +0 -72
  648. package/dist/pages/Version/RenderFieldsToDiff/fields/Select/index.js +0 -54
  649. package/dist/pages/Version/RenderFieldsToDiff/fields/Tabs/index.js +0 -54
  650. package/dist/pages/Version/RenderFieldsToDiff/fields/Text/DiffViewer/index.js +0 -72
  651. package/dist/pages/Version/RenderFieldsToDiff/fields/Text/index.js +0 -46
  652. package/dist/pages/Version/RenderFieldsToDiff/fields/index.d.ts +0 -25
  653. package/dist/pages/Version/RenderFieldsToDiff/fields/index.d.ts.map +0 -1
  654. package/dist/pages/Version/RenderFieldsToDiff/fields/index.js +0 -44
  655. package/dist/pages/Version/RenderFieldsToDiff/fields/types.js +0 -6
  656. package/dist/pages/Version/RenderFieldsToDiff/index.js +0 -115
  657. package/dist/pages/Version/RenderFieldsToDiff/types.js +0 -6
  658. package/dist/pages/Version/Restore/index.d.ts.map +0 -1
  659. package/dist/pages/Version/Restore/index.js +0 -121
  660. package/dist/pages/Version/Restore/types.js +0 -6
  661. package/dist/pages/Version/SelectComparison/index.d.ts.map +0 -1
  662. package/dist/pages/Version/SelectComparison/index.js +0 -167
  663. package/dist/pages/Version/SelectComparison/types.js +0 -6
  664. package/dist/pages/Version/SelectLocales/index.d.ts.map +0 -1
  665. package/dist/pages/Version/SelectLocales/index.js +0 -47
  666. package/dist/pages/Version/SelectLocales/types.js +0 -6
  667. package/dist/pages/Version/index.d.ts +0 -4
  668. package/dist/pages/Version/index.d.ts.map +0 -1
  669. package/dist/pages/Version/index.js +0 -111
  670. package/dist/pages/Version/meta.d.ts.map +0 -1
  671. package/dist/pages/Version/meta.js +0 -47
  672. package/dist/pages/Version/shared.js +0 -28
  673. package/dist/pages/Versions/buildColumns.js +0 -69
  674. package/dist/pages/Versions/cells/AutosaveCell/index.js +0 -63
  675. package/dist/pages/Versions/cells/CreatedAt/index.js +0 -33
  676. package/dist/pages/Versions/cells/ID/index.js +0 -60
  677. package/dist/pages/Versions/index.client.d.ts.map +0 -1
  678. package/dist/pages/Versions/index.client.js +0 -142
  679. package/dist/pages/Versions/index.d.ts.map +0 -1
  680. package/dist/pages/Versions/index.js +0 -125
  681. package/dist/pages/Versions/meta.d.ts +0 -3
  682. package/dist/pages/Versions/meta.d.ts.map +0 -1
  683. package/dist/pages/Versions/meta.js +0 -43
  684. package/dist/pages/Versions/types.js +0 -6
  685. package/dist/routes/rest/[collection]/file/[filename]/route.d.ts +0 -8
  686. package/dist/routes/rest/[collection]/file/[filename]/route.d.ts.map +0 -1
  687. package/dist/routes/rest/[collection]/file/[filename]/route.js +0 -116
  688. package/dist/utilities/createClientConfig.d.ts +0 -5
  689. package/dist/utilities/createClientConfig.d.ts.map +0 -1
  690. package/dist/utilities/createClientConfig.js +0 -120
  691. /package/dist/{pages → views}/API/RenderJSON/index.d.ts +0 -0
  692. /package/dist/{pages → views}/API/RenderJSON/index.scss +0 -0
  693. /package/dist/{pages → views}/API/index.scss +0 -0
  694. /package/dist/{pages → views}/Account/Settings/index.d.ts +0 -0
  695. /package/dist/{pages → views}/Account/Settings/index.scss +0 -0
  696. /package/dist/{pages → views}/Account/ToggleTheme/index.d.ts +0 -0
  697. /package/dist/{pages → views}/CreateFirstUser/index.scss +0 -0
  698. /package/dist/{pages → views}/Dashboard/Default/index.scss +0 -0
  699. /package/dist/{pages → views}/Edit/Default/Auth/APIKey.d.ts +0 -0
  700. /package/dist/{pages → views}/Edit/Default/Auth/index.scss +0 -0
  701. /package/dist/{pages → views}/Edit/Default/Auth/types.d.ts +0 -0
  702. /package/dist/{pages → views}/Edit/Default/index.d.ts +0 -0
  703. /package/dist/{pages → views}/Edit/Default/index.scss +0 -0
  704. /package/dist/{pages → views}/Edit/Default/types.d.ts +0 -0
  705. /package/dist/{pages → views}/List/Default/Cell/fields/Array/index.d.ts +0 -0
  706. /package/dist/{pages → views}/List/Default/Cell/fields/Blocks/index.d.ts +0 -0
  707. /package/dist/{pages → views}/List/Default/Cell/fields/Checkbox/index.d.ts +0 -0
  708. /package/dist/{pages → views}/List/Default/Cell/fields/Checkbox/index.scss +0 -0
  709. /package/dist/{pages → views}/List/Default/Cell/fields/Code/index.d.ts +0 -0
  710. /package/dist/{pages → views}/List/Default/Cell/fields/Code/index.scss +0 -0
  711. /package/dist/{pages → views}/List/Default/Cell/fields/Date/index.d.ts +0 -0
  712. /package/dist/{pages → views}/List/Default/Cell/fields/File/index.d.ts +0 -0
  713. /package/dist/{pages → views}/List/Default/Cell/fields/File/index.scss +0 -0
  714. /package/dist/{pages → views}/List/Default/Cell/fields/JSON/index.d.ts +0 -0
  715. /package/dist/{pages → views}/List/Default/Cell/fields/JSON/index.scss +0 -0
  716. /package/dist/{pages → views}/List/Default/Cell/fields/Relationship/index.d.ts +0 -0
  717. /package/dist/{pages → views}/List/Default/Cell/fields/Relationship/index.scss +0 -0
  718. /package/dist/{pages → views}/List/Default/Cell/fields/Select/index.d.ts +0 -0
  719. /package/dist/{pages → views}/List/Default/Cell/fields/Textarea/index.d.ts +0 -0
  720. /package/dist/{pages → views}/List/Default/Cell/index.d.ts +0 -0
  721. /package/dist/{pages → views}/List/Default/RelationshipProvider/index.d.ts +0 -0
  722. /package/dist/{pages → views}/List/Default/index.d.ts +0 -0
  723. /package/dist/{pages → views}/List/Default/index.scss +0 -0
  724. /package/dist/{pages → views}/List/Default/types.d.ts +0 -0
  725. /package/dist/{pages → views}/LivePreview/Context/collisionDetection.d.ts +0 -0
  726. /package/dist/{pages → views}/LivePreview/Context/sizeReducer.d.ts +0 -0
  727. /package/dist/{pages → views}/LivePreview/Device/index.d.ts +0 -0
  728. /package/dist/{pages → views}/LivePreview/DeviceContainer/index.d.ts +0 -0
  729. /package/dist/{pages → views}/LivePreview/IFrame/index.d.ts +0 -0
  730. /package/dist/{pages → views}/LivePreview/IFrame/index.scss +0 -0
  731. /package/dist/{pages → views}/LivePreview/Preview/index.scss +0 -0
  732. /package/dist/{pages → views}/LivePreview/Toolbar/Controls/index.scss +0 -0
  733. /package/dist/{pages → views}/LivePreview/Toolbar/SizeInput/index.d.ts +0 -0
  734. /package/dist/{pages → views}/LivePreview/Toolbar/SizeInput/index.scss +0 -0
  735. /package/dist/{pages → views}/LivePreview/Toolbar/index.scss +0 -0
  736. /package/dist/{pages → views}/LivePreview/ToolbarArea/index.d.ts +0 -0
  737. /package/dist/{pages → views}/LivePreview/ToolbarArea/index.scss +0 -0
  738. /package/dist/{pages → views}/LivePreview/index.client.d.ts +0 -0
  739. /package/dist/{pages → views}/LivePreview/index.scss +0 -0
  740. /package/dist/{pages → views}/LivePreview/usePopupWindow.d.ts +0 -0
  741. /package/dist/{pages → views}/Login/LoginForm/index.d.ts +0 -0
  742. /package/dist/{pages → views}/Login/LoginForm/index.scss +0 -0
  743. /package/dist/{pages → views}/Logout/LogoutClient.d.ts +0 -0
  744. /package/dist/{pages → views}/Logout/index.scss +0 -0
  745. /package/dist/{pages → views}/NotFound/index.scss +0 -0
  746. /package/dist/{pages → views}/ResetPassword/index.scss +0 -0
  747. /package/dist/{pages → views}/Unauthorized/UnauthorizedClient.d.ts +0 -0
  748. /package/dist/{pages → views}/Verify/index.scss +0 -0
  749. /package/dist/{pages → views}/Version/Default/SetStepNav.d.ts +0 -0
  750. /package/dist/{pages → views}/Version/Default/index.scss +0 -0
  751. /package/dist/{pages → views}/Version/RenderFieldsToDiff/Label/index.d.ts +0 -0
  752. /package/dist/{pages → views}/Version/RenderFieldsToDiff/Label/index.scss +0 -0
  753. /package/dist/{pages → views}/Version/RenderFieldsToDiff/fields/Iterable/index.scss +0 -0
  754. /package/dist/{pages → views}/Version/RenderFieldsToDiff/fields/Nested/index.scss +0 -0
  755. /package/dist/{pages → views}/Version/RenderFieldsToDiff/fields/Relationship/index.scss +0 -0
  756. /package/dist/{pages → views}/Version/RenderFieldsToDiff/fields/Select/DiffViewer/index.d.ts +0 -0
  757. /package/dist/{pages → views}/Version/RenderFieldsToDiff/fields/Select/index.scss +0 -0
  758. /package/dist/{pages → views}/Version/RenderFieldsToDiff/fields/Text/DiffViewer/index.d.ts +0 -0
  759. /package/dist/{pages → views}/Version/RenderFieldsToDiff/fields/Text/index.scss +0 -0
  760. /package/dist/{pages → views}/Version/RenderFieldsToDiff/fields/diffMethods.d.ts +0 -0
  761. /package/dist/{pages → views}/Version/RenderFieldsToDiff/fields/styles.d.ts +0 -0
  762. /package/dist/{pages → views}/Version/RenderFieldsToDiff/fields/types.d.ts +0 -0
  763. /package/dist/{pages → views}/Version/RenderFieldsToDiff/index.scss +0 -0
  764. /package/dist/{pages → views}/Version/Restore/index.scss +0 -0
  765. /package/dist/{pages → views}/Version/Restore/types.d.ts +0 -0
  766. /package/dist/{pages → views}/Version/SelectComparison/index.scss +0 -0
  767. /package/dist/{pages → views}/Version/SelectLocales/index.scss +0 -0
  768. /package/dist/{pages → views}/Version/SelectLocales/types.d.ts +0 -0
  769. /package/dist/{pages → views}/Version/shared.d.ts +0 -0
  770. /package/dist/{pages → views}/Versions/buildColumns.d.ts +0 -0
  771. /package/dist/{pages → views}/Versions/cells/AutosaveCell/index.d.ts +0 -0
  772. /package/dist/{pages → views}/Versions/cells/CreatedAt/index.d.ts +0 -0
  773. /package/dist/{pages → views}/Versions/cells/ID/index.d.ts +0 -0
  774. /package/dist/{pages → views}/Versions/index.scss +0 -0
  775. /package/dist/{pages → views}/Versions/types.d.ts +0 -0
@@ -1,54 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "default", {
6
- enumerable: true,
7
- get: function() {
8
- return _default;
9
- }
10
- });
11
- const _react = /*#__PURE__*/ _interop_require_default(require("react"));
12
- const _ = /*#__PURE__*/ _interop_require_default(require("../.."));
13
- const _Nested = /*#__PURE__*/ _interop_require_default(require("../Nested"));
14
- function _interop_require_default(obj) {
15
- return obj && obj.__esModule ? obj : {
16
- default: obj
17
- };
18
- }
19
- const baseClass = 'tabs-diff';
20
- const Tabs = ({ comparison, diffComponents, field, i18n, locale, locales, permissions, version })=>{
21
- return /*#__PURE__*/ _react.default.createElement("div", {
22
- className: baseClass
23
- }, /*#__PURE__*/ _react.default.createElement("div", {
24
- className: `${baseClass}__wrap`
25
- }, field.tabs.map((tab, i)=>{
26
- if ('name' in tab) {
27
- return /*#__PURE__*/ _react.default.createElement(_Nested.default, {
28
- comparison: comparison?.[tab.name],
29
- diffComponents: diffComponents,
30
- field: field,
31
- fieldMap: tab.subfields,
32
- i18n: i18n,
33
- key: i,
34
- locale: locale,
35
- locales: locales,
36
- permissions: permissions,
37
- version: version?.[tab.name]
38
- });
39
- }
40
- return /*#__PURE__*/ _react.default.createElement(_.default, {
41
- comparison: comparison,
42
- diffComponents: diffComponents,
43
- fieldMap: tab.subfields,
44
- fieldPermissions: permissions,
45
- i18n: i18n,
46
- key: i,
47
- locales: locales,
48
- version: version
49
- });
50
- })));
51
- };
52
- const _default = Tabs;
53
-
54
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy9wYWdlcy9WZXJzaW9uL1JlbmRlckZpZWxkc1RvRGlmZi9maWVsZHMvVGFicy9pbmRleC50c3giXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IFJlYWN0IGZyb20gJ3JlYWN0J1xuXG5pbXBvcnQgdHlwZSB7IFByb3BzIH0gZnJvbSAnLi4vdHlwZXMnXG5cbmltcG9ydCBSZW5kZXJGaWVsZHNUb0RpZmYgZnJvbSAnLi4vLi4nXG5pbXBvcnQgTmVzdGVkIGZyb20gJy4uL05lc3RlZCdcblxuY29uc3QgYmFzZUNsYXNzID0gJ3RhYnMtZGlmZidcblxuY29uc3QgVGFiczogUmVhY3QuRkM8UHJvcHM+ID0gKHtcbiAgY29tcGFyaXNvbixcbiAgZGlmZkNvbXBvbmVudHMsXG4gIGZpZWxkLFxuICBpMThuLFxuICBsb2NhbGUsXG4gIGxvY2FsZXMsXG4gIHBlcm1pc3Npb25zLFxuICB2ZXJzaW9uLFxufSkgPT4ge1xuICByZXR1cm4gKFxuICAgIDxkaXYgY2xhc3NOYW1lPXtiYXNlQ2xhc3N9PlxuICAgICAgPGRpdiBjbGFzc05hbWU9e2Ake2Jhc2VDbGFzc31fX3dyYXBgfT5cbiAgICAgICAge2ZpZWxkLnRhYnMubWFwKCh0YWIsIGkpID0+IHtcbiAgICAgICAgICBpZiAoJ25hbWUnIGluIHRhYikge1xuICAgICAgICAgICAgcmV0dXJuIChcbiAgICAgICAgICAgICAgPE5lc3RlZFxuICAgICAgICAgICAgICAgIGNvbXBhcmlzb249e2NvbXBhcmlzb24/Llt0YWIubmFtZV19XG4gICAgICAgICAgICAgICAgZGlmZkNvbXBvbmVudHM9e2RpZmZDb21wb25lbnRzfVxuICAgICAgICAgICAgICAgIGZpZWxkPXtmaWVsZH1cbiAgICAgICAgICAgICAgICBmaWVsZE1hcD17dGFiLnN1YmZpZWxkc31cbiAgICAgICAgICAgICAgICBpMThuPXtpMThufVxuICAgICAgICAgICAgICAgIGtleT17aX1cbiAgICAgICAgICAgICAgICBsb2NhbGU9e2xvY2FsZX1cbiAgICAgICAgICAgICAgICBsb2NhbGVzPXtsb2NhbGVzfVxuICAgICAgICAgICAgICAgIHBlcm1pc3Npb25zPXtwZXJtaXNzaW9uc31cbiAgICAgICAgICAgICAgICB2ZXJzaW9uPXt2ZXJzaW9uPy5bdGFiLm5hbWVdfVxuICAgICAgICAgICAgICAvPlxuICAgICAgICAgICAgKVxuICAgICAgICAgIH1cblxuICAgICAgICAgIHJldHVybiAoXG4gICAgICAgICAgICA8UmVuZGVyRmllbGRzVG9EaWZmXG4gICAgICAgICAgICAgIGNvbXBhcmlzb249e2NvbXBhcmlzb259XG4gICAgICAgICAgICAgIGRpZmZDb21wb25lbnRzPXtkaWZmQ29tcG9uZW50c31cbiAgICAgICAgICAgICAgZmllbGRNYXA9e3Rh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FBRyxDQUFDLENBQUNDLEtBQUtDO1FBQ3BCLElBQUksVUFBVUQsS0FBSztZQUNqQixxQkFDRSw2QkFBQ0UsZUFBTTtnQkFDTGQsWUFBWUEsWUFBWSxDQUFDWSxJQUFJRyxJQUFJLENBQUM7Z0JBQ2xDZCxnQkFBZ0JBO2dCQUNoQkMsT0FBT0E7Z0JBQ1BjLFVBQVVKLElBQUlLLFNBQVM7Z0JBQ3ZCZCxNQUFNQTtnQkFDTmUsS0FBS0w7Z0JBQ0xULFFBQVFBO2dCQUNSQyxTQUFTQTtnQkFDVEMsYUFBYUE7Z0JBQ2JDLFNBQVNBLFNBQVMsQ0FBQ0ssSUFBSUcsSUFBSSxDQUFDOztRQUdsQztRQUVBLHFCQUNFLDZCQUFDSSxTQUFrQjtZQUNqQm5CLFlBQVlBO1lBQ1pDLGdCQUFnQkE7WUFDaEJlLFVBQVVKLElBQUlLLFNBQVM7WUFDdkJHLGtCQUFrQmQ7WUFDbEJILE1BQU1BO1lBQ05lLEtBQUtMO1lBQ0xSLFNBQVNBO1lBQ1RFLFNBQVNBOztJQUdmO0FBSVI7TUFFQSxXQUFlUiJ9
@@ -1,72 +0,0 @@
1
- 'use client';
2
- "use strict";
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- Object.defineProperty(exports, "DiffViewer", {
7
- enumerable: true,
8
- get: function() {
9
- return DiffViewer;
10
- }
11
- });
12
- const _react = /*#__PURE__*/ _interop_require_default(require("react"));
13
- const _reactdiffviewercontinued = /*#__PURE__*/ _interop_require_wildcard(require("react-diff-viewer-continued"));
14
- function _interop_require_default(obj) {
15
- return obj && obj.__esModule ? obj : {
16
- default: obj
17
- };
18
- }
19
- function _getRequireWildcardCache(nodeInterop) {
20
- if (typeof WeakMap !== "function") return null;
21
- var cacheBabelInterop = new WeakMap();
22
- var cacheNodeInterop = new WeakMap();
23
- return (_getRequireWildcardCache = function(nodeInterop) {
24
- return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
25
- })(nodeInterop);
26
- }
27
- function _interop_require_wildcard(obj, nodeInterop) {
28
- if (!nodeInterop && obj && obj.__esModule) {
29
- return obj;
30
- }
31
- if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
32
- return {
33
- default: obj
34
- };
35
- }
36
- var cache = _getRequireWildcardCache(nodeInterop);
37
- if (cache && cache.has(obj)) {
38
- return cache.get(obj);
39
- }
40
- var newObj = {
41
- __proto__: null
42
- };
43
- var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
44
- for(var key in obj){
45
- if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
46
- var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
47
- if (desc && (desc.get || desc.set)) {
48
- Object.defineProperty(newObj, key, desc);
49
- } else {
50
- newObj[key] = obj[key];
51
- }
52
- }
53
- }
54
- newObj.default = obj;
55
- if (cache) {
56
- cache.set(obj, newObj);
57
- }
58
- return newObj;
59
- }
60
- const DiffViewer = ({ comparisonToRender, diffMethod, diffStyles, placeholder, versionToRender })=>{
61
- return /*#__PURE__*/ _react.default.createElement(_reactdiffviewercontinued.default, {
62
- compareMethod: _reactdiffviewercontinued.DiffMethod[diffMethod],
63
- hideLineNumbers: true,
64
- newValue: typeof versionToRender !== 'undefined' ? String(versionToRender) : placeholder,
65
- oldValue: typeof comparisonToRender !== 'undefined' ? String(comparisonToRender) : placeholder,
66
- showDiffOnly: false,
67
- splitView: true,
68
- styles: diffStyles
69
- });
70
- };
71
-
72
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3NyYy9wYWdlcy9WZXJzaW9uL1JlbmRlckZpZWxkc1RvRGlmZi9maWVsZHMvVGV4dC9EaWZmVmlld2VyL2luZGV4LnRzeCJdLCJzb3VyY2VzQ29udGVudCI6WyIndXNlIGNsaWVudCdcbmltcG9ydCBSZWFjdCBmcm9tICd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iZGlmZlN0eWxlcyIsInBsYWNlaG9sZGVyIiwidmVyc2lvblRvUmVuZGVyIiwiUmVhY3REaWZmVmlld2VyIiwiY29tcGFyZU1ldGhvZCIsIkRpZmZNZXRob2QiLCJoaWRlTGluZU51bWJlcnMiLCJuZXdWYWx1ZSIsIlN0cmluZyIsIm9sZFZhbHVlIiwic2hvd0RpZmZPbmx5Iiwic3BsaXRWaWV3Iiwic3R5bGVzIl0sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7K0JBSWFBOzs7ZUFBQUE7Ozs4REFISztrRkFDMEI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBRXJDLE1BQU1BLGFBTVIsQ0FBQyxFQUFFQyxrQkFBa0IsRUFBRUMsVUFBVSxFQUFFQyxVQUFVLEVBQUVDLFdBQVcsRUFBRUMsZUFBZSxFQUFFO0lBQ2hGLHFCQUNFLDZCQUFDQyxpQ0FBZTtRQUNkQyxlQUFlQyxvQ0FBVSxDQUFDTixXQUFXO1FBQ3JDTyxpQkFBQUE7UUFDQUMsVUFBVSxPQUFPTCxvQkFBb0IsY0FBY00sT0FBT04sbUJBQW1CRDtRQUM3RVEsVUFDRSxPQUFPWCx1QkFBdUIsY0FBY1UsT0FBT1Ysc0JBQXNCRztRQUUzRVMsY0FBYztRQUNkQyxXQUFBQTtRQUNBQyxRQUFRWjs7QUFHZCJ9
@@ -1,46 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "default", {
6
- enumerable: true,
7
- get: function() {
8
- return _default;
9
- }
10
- });
11
- const _translations = require("@payloadcms/translations");
12
- const _react = /*#__PURE__*/ _interop_require_default(require("react"));
13
- const _Label = /*#__PURE__*/ _interop_require_default(require("../../Label"));
14
- const _styles = require("../styles");
15
- const _DiffViewer = require("./DiffViewer");
16
- require("./index.scss");
17
- function _interop_require_default(obj) {
18
- return obj && obj.__esModule ? obj : {
19
- default: obj
20
- };
21
- }
22
- const baseClass = 'text-diff';
23
- const Text = ({ comparison, diffMethod, field, i18n, isRichText = false, locale, version })=>{
24
- let placeholder = '';
25
- if (version === comparison) placeholder = `[${i18n.t('general:noValue')}]`;
26
- let versionToRender = version;
27
- let comparisonToRender = comparison;
28
- if (isRichText) {
29
- if (typeof version === 'object') versionToRender = JSON.stringify(version, null, 2);
30
- if (typeof comparison === 'object') comparisonToRender = JSON.stringify(comparison, null, 2);
31
- }
32
- return /*#__PURE__*/ _react.default.createElement("div", {
33
- className: baseClass
34
- }, /*#__PURE__*/ _react.default.createElement(_Label.default, null, locale && /*#__PURE__*/ _react.default.createElement("span", {
35
- className: `${baseClass}__locale-label`
36
- }, locale), (0, _translations.getTranslation)(field?.label || '', i18n)), /*#__PURE__*/ _react.default.createElement(_DiffViewer.DiffViewer, {
37
- comparisonToRender: comparisonToRender,
38
- diffMethod: diffMethod,
39
- diffStyles: _styles.diffStyles,
40
- placeholder: placeholder,
41
- versionToRender: versionToRender
42
- }));
43
- };
44
- const _default = Text;
45
-
46
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy9wYWdlcy9WZXJzaW9uL1JlbmRlckZpZWxkc1RvRGlmZi9maWVsZHMvVGV4dC9pbmRleC50c3giXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgZ2V0VHJhbnNsYXRpb24gfSBmcm9tICdAcGF5bG9hZGNtcy90cmFuc2xhdGlvbnMnXG5pbXBvcnQgUmVhY3QgZnJvbSAncmVhY3QnXG5cbmltcG9ydCB0eXBlIHsgUHJvcHMgfSBmcm9tICcuLi90eXBlcydcblxuaW1wb3J0IExhYmVsIGZyb20gJy4uLy4uL0xhYmVsJ1xuaW1wb3J0IHsgZGlmZlN0eWxlcyB9IGZyb20gJy4uL3N0eWxlcydcbmltcG9ydCB7IERp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8sY0FBYyxDQUFDLENBQUMsRUFBRUosS0FBS0ssQ0FBQyxDQUFDLG1CQUFtQixDQUFDLENBQUM7SUFFMUUsSUFBSUMsa0JBQWtCSDtJQUN0QixJQUFJSSxxQkFBcUJWO0lBRXpCLElBQUlJLFlBQVk7UUFDZCxJQUFJLE9BQU9FLFlBQVksVUFBVUcsa0JBQWtCRSxLQUFLQyxTQUFTLENBQUNOLFNBQVMsTUFBTTtRQUNqRixJQUFJLE9BQU9OLGVBQWUsVUFBVVUscUJBQXFCQyxLQUFLQyxTQUFTLENBQUNaLFlBQVksTUFBTTtJQUM1RjtJQUVBLHFCQUNFLDZCQUFDYTtRQUFJQyxXQUFXaEI7cUJBQ2QsNkJBQUNpQixjQUFLLFFBQ0hWLHdCQUFVLDZCQUFDVztRQUFLRixXQUFXLENBQUMsRUFBRWhCLFVBQVUsY0FBYyxDQUFDO09BQUdPLFNBQzFEWSxJQUFBQSw0QkFBYyxFQUFDZixPQUFPZ0IsU0FBUyxJQUFJZixzQkFFdEMsNkJBQUNnQixzQkFBVTtRQUNUVCxvQkFBb0JBO1FBQ3BCVCxZQUFZQTtRQUNabUIsWUFBWUEsa0JBQVU7UUFDdEJiLGFBQWFBO1FBQ2JFLGlCQUFpQkE7O0FBSXpCO01BRUEsV0FBZVYifQ==
@@ -1,25 +0,0 @@
1
- /// <reference types="react" />
2
- declare const _default: {
3
- array: import("react").FC<import("./types").Props>;
4
- blocks: import("react").FC<import("./types").Props>;
5
- checkbox: import("react").FC<import("./types").Props>;
6
- code: import("react").FC<import("./types").Props>;
7
- collapsible: import("react").FC<import("./types").Props>;
8
- date: import("react").FC<import("./types").Props>;
9
- email: import("react").FC<import("./types").Props>;
10
- group: import("react").FC<import("./types").Props>;
11
- json: import("react").FC<import("./types").Props>;
12
- number: import("react").FC<import("./types").Props>;
13
- point: import("react").FC<import("./types").Props>;
14
- radio: import("react").FC<import("./types").Props>;
15
- relationship: any;
16
- richText: import("react").FC<import("./types").Props>;
17
- row: import("react").FC<import("./types").Props>;
18
- select: import("react").FC<import("./types").Props>;
19
- tabs: import("react").FC<import("./types").Props>;
20
- text: import("react").FC<import("./types").Props>;
21
- textarea: import("react").FC<import("./types").Props>;
22
- upload: any;
23
- };
24
- export default _default;
25
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/pages/Version/RenderFieldsToDiff/fields/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAOA,wBAqBC"}
@@ -1,44 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "default", {
6
- enumerable: true,
7
- get: function() {
8
- return _default;
9
- }
10
- });
11
- const _Iterable = /*#__PURE__*/ _interop_require_default(require("./Iterable"));
12
- const _Nested = /*#__PURE__*/ _interop_require_default(require("./Nested"));
13
- const _Select = /*#__PURE__*/ _interop_require_default(require("./Select"));
14
- const _Tabs = /*#__PURE__*/ _interop_require_default(require("./Tabs"));
15
- const _Text = /*#__PURE__*/ _interop_require_default(require("./Text"));
16
- function _interop_require_default(obj) {
17
- return obj && obj.__esModule ? obj : {
18
- default: obj
19
- };
20
- }
21
- const _default = {
22
- array: _Iterable.default,
23
- blocks: _Iterable.default,
24
- checkbox: _Text.default,
25
- code: _Text.default,
26
- collapsible: _Nested.default,
27
- date: _Text.default,
28
- email: _Text.default,
29
- group: _Nested.default,
30
- json: _Text.default,
31
- number: _Text.default,
32
- point: _Text.default,
33
- radio: _Select.default,
34
- relationship: null,
35
- richText: _Text.default,
36
- row: _Nested.default,
37
- select: _Select.default,
38
- tabs: _Tabs.default,
39
- text: _Text.default,
40
- textarea: _Text.default,
41
- upload: null
42
- };
43
-
44
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9wYWdlcy9WZXJzaW9uL1JlbmRl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yIsInNlbGVjdCIsInRhYnMiLCJUYWJzIiwidGV4dCIsInRleHRhcmVhIiwidXBsb2FkIl0sIm1hcHBpbmdzIjoiOzs7OytCQU9BOzs7ZUFBQTs7O2lFQVBxQjsrREFDRjsrREFFQTs2REFDRjs2REFDQTs7Ozs7O01BRWpCLFdBQWU7SUFDYkEsT0FBT0MsaUJBQVE7SUFDZkMsUUFBUUQsaUJBQVE7SUFDaEJFLFVBQVVDLGFBQUk7SUFDZEMsTUFBTUQsYUFBSTtJQUNWRSxhQUFhQyxlQUFNO0lBQ25CQyxNQUFNSixhQUFJO0lBQ1ZLLE9BQU9MLGFBQUk7SUFDWE0sT0FBT0gsZUFBTTtJQUNiSSxNQUFNUCxhQUFJO0lBQ1ZRLFFBQVFSLGFBQUk7SUFDWlMsT0FBT1QsYUFBSTtJQUNYVSxPQUFPQyxlQUFNO0lBQ2JDLGNBQWM7SUFDZEMsVUFBVWIsYUFBSTtJQUNkYyxLQUFLWCxlQUFNO0lBQ1hZLFFBQVFKLGVBQU07SUFDZEssTUFBTUMsYUFBSTtJQUNWQyxNQUFNbEIsYUFBSTtJQUNWbUIsVUFBVW5CLGFBQUk7SUFDZG9CLFFBQVE7QUFDViJ9
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
-
6
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiJ9
@@ -1,115 +0,0 @@
1
- 'use client';
2
- "use strict";
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- Object.defineProperty(exports, "default", {
7
- enumerable: true,
8
- get: function() {
9
- return _default;
10
- }
11
- });
12
- const _react = /*#__PURE__*/ _interop_require_default(require("react"));
13
- const _Nested = /*#__PURE__*/ _interop_require_default(require("./fields/Nested"));
14
- const _diffMethods = require("./fields/diffMethods");
15
- require("./index.scss");
16
- function _interop_require_default(obj) {
17
- return obj && obj.__esModule ? obj : {
18
- default: obj
19
- };
20
- }
21
- const baseClass = 'render-field-diffs';
22
- const RenderFieldsToDiff = ({ comparison, diffComponents, fieldMap, fieldPermissions, i18n, locales, version })=>{
23
- return /*#__PURE__*/ _react.default.createElement("div", {
24
- className: baseClass
25
- }, fieldMap?.map((field, i)=>{
26
- if (field.name === 'id') return null;
27
- const Component = diffComponents[field.type];
28
- const isRichText = field.type === 'richText';
29
- const diffMethod = _diffMethods.diffMethods[field.type] || 'CHARS';
30
- if (Component) {
31
- if (field.isFieldAffectingData) {
32
- const valueIsObject = field.type === 'code' || field.type === 'json';
33
- const versionValue = valueIsObject ? JSON.stringify(version?.[field.name]) : version?.[field.name];
34
- const comparisonValue = valueIsObject ? JSON.stringify(comparison?.[field.name]) : comparison?.[field.name];
35
- const hasPermission = fieldPermissions?.[field.name]?.read?.permission;
36
- const subFieldPermissions = fieldPermissions?.[field.name]?.fields;
37
- if (hasPermission === false) return null;
38
- const baseCellProps = {
39
- comparison: comparisonValue,
40
- diffComponents,
41
- diffMethod,
42
- field,
43
- fieldMap: 'subfields' in field ? field.subfields : fieldMap,
44
- fieldPermissions: subFieldPermissions,
45
- i18n,
46
- isRichText,
47
- locales: locales,
48
- version: versionValue
49
- };
50
- if (field.localized) {
51
- return /*#__PURE__*/ _react.default.createElement("div", {
52
- className: `${baseClass}__field`,
53
- key: i
54
- }, locales.map((locale, index)=>{
55
- const versionLocaleValue = versionValue?.[locale];
56
- const comparisonLocaleValue = comparisonValue?.[locale];
57
- const cellProps = {
58
- ...baseCellProps,
59
- comparison: comparisonLocaleValue,
60
- version: versionLocaleValue
61
- };
62
- return /*#__PURE__*/ _react.default.createElement("div", {
63
- className: `${baseClass}__locale`,
64
- key: [
65
- locale,
66
- index
67
- ].join('-')
68
- }, /*#__PURE__*/ _react.default.createElement("div", {
69
- className: `${baseClass}__locale-value`
70
- }, /*#__PURE__*/ _react.default.createElement(Component, {
71
- ...cellProps,
72
- locale: locale
73
- })));
74
- }));
75
- }
76
- return /*#__PURE__*/ _react.default.createElement("div", {
77
- className: `${baseClass}__field`,
78
- key: i
79
- }, /*#__PURE__*/ _react.default.createElement(Component, baseCellProps));
80
- }
81
- if (field.type === 'tabs') {
82
- const Tabs = diffComponents.tabs;
83
- return /*#__PURE__*/ _react.default.createElement(Tabs, {
84
- comparison: comparison,
85
- diffComponents: diffComponents,
86
- field: field,
87
- fieldMap: field.subfields,
88
- i18n: i18n,
89
- key: i,
90
- locales: locales,
91
- version: version
92
- });
93
- }
94
- // At this point, we are dealing with a `row`, etc
95
- if (field.subfields) {
96
- return /*#__PURE__*/ _react.default.createElement(_Nested.default, {
97
- comparison: comparison,
98
- diffComponents: diffComponents,
99
- disableGutter: true,
100
- field: field,
101
- fieldMap: field.subfields,
102
- i18n: i18n,
103
- key: i,
104
- locales: locales,
105
- permissions: fieldPermissions,
106
- version: version
107
- });
108
- }
109
- }
110
- return null;
111
- }));
112
- };
113
- const _default = RenderFieldsToDiff;
114
-
115
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9wYWdlcy9WZXJzaW9uL1JlbmRlckZpZWxkc1RvRGlmZi9pbmRleC50c3giXSwic291cmNlc0NvbnRlbnQiOlsiJ3VzZSBjbGllbnQnXG5pbXBvcnQgdHlwZSB7IERpZmZNZXRob2QgfSBmcm9tICdyZWFjdC1kaWZmLXZpZXdlci1jb250aW51ZWQnXG5cbmltcG9ydCBSZWFjdCBmcm9tICdyZWFjdCdcblxuaW1wb3J0IHR5cGUgeyBGaWVsZERpZmZQcm9wcywgUHJvcHMgfSBmcm9tICcuL3R5cGVzJ1xuXG5pbXBvcnQgTmVzdGVkIGZyb20gJy4vZmllbGRzL05lc3RlZCdcbmltcG9ydCB7IGRpZmZNZXRob2RzIH0gZnJvbSAnLi9maWVsZHMvZGlmZk1ldGhvZHMnXG5pbXBvcnQgJy4vaW5kZXguc2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gICAgIGNvbnN0IGNvbXBhcmlzb25WYWx1ZSA9IHZhbHVlSXNPYmplY3RcbiAgICAgICAgICAgICAgPyBKU09OLnN0cmluZ2lmeShjb21wYXJpc29uPy5bZmllbGQubmFtZV0pXG4gICAgICAgICAgICAgIDogY29tcGFyaXNvbj8uW2ZpZWxkLm5hbWVdXG5cbiAgICAgICAgICAgIGNvbnN0IGhhc1Blcm1pc3Npb24gPSBmaWVsZFBlcm1pc3Npb25zPy5bZmllbGQubmFtZV0/LnJlYWQ/LnBlcm1pc3Npb25cblxuICAgICAgICAgICAgY29uc3Qgc3ViRmllbGRQZXJtaXNzaW9ucyA9IGZpZWxkUGVybWlzc2lvbnM/LltmaWVsZC5uYW1lXT8uZmllbGRzXG5cbiAgICAgICAgICAgIGlmIChoYXNQZXJtaXNzaW9uID09PSBmYWxzZSkgcmV0dXJuIG51bGxcblxuICAgICAgICAgICAgY29uc3QgYmFzZUNlbGxQcm9wczogRmllbGREaWZmUHJvcHMgPSB7XG4gICAgICAgICAgICAgIGNvbXBhcmlzb246IGNvbXBhcmlzb25WYWx1ZSxcbiAgICAgICAgICAgICAgZGlmZkNvbXBvbmVudHMsXG4gICAgICAgICAgICAgIGRpZmZNZXRob2QsXG4gICAgICAgICAgICAgIGZpZWxkLFxuICAgICAgICAgICAgICBmaWVsZE1hcDogJ3N1YmZpZWxkcycgaW4gZmllbGQgPyBmaWVsZC5zdWJmaWVsZHMgOiBmaWVsZE1hcCxcbiAgICAgICAgICAgICAgZmllbGRQZXJtaXNzaW9uczogc3ViRmllbGRQZXJtaXNzaW9ucyxcbiAgICAgICAgICAgICAgaTE4bixcbiAgICAgICAgICAgICAgaXNSaWNoVGV4dCxcbiAgICAgICAgICAgICAgbG9jYWxlczogbG9jYWxlcyxcbiAgICAgICAgICAgICAgdmVyc2lvbjogdmVyc2lvblZhbHVlLFxuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICBpZiAoZmllbGQubG9jYWxpemVkKSB7XG4gICAgICAgICAgICAgIHJldHVybiAoXG4gICAgICAgICAgICAgICAgPGRpdiBjbGFzc05hbWU9e2Ake2Jhc2VDbGFzc31fX2ZpZWxkYH0ga2V5PXtpfT5cbiAgICAgICAgICAgICAgICAgIHtsb2NhbGVzLm1hcCgobG9jYWxlLCBpbmRleCkgPT4ge1xuICAgICAgICAgICAgICAgICAgICBjb25zdCB2ZXJzaW9uTG9jYWxlVmFsdWUgPSB2ZXJzaW9uVmFsdWU/Lltsb2NhbGVdXG4gICAgICAgICAgICAgICAgICAgIGNvbnN0IGNvbXBhcmlzb25Mb2NhbGVWYWx1ZSA9IGNvbXBhcmlzb25WYWx1ZT8uW2xvY2FsZV1cblxuICAgICAgICAgICAgICAgICAgICBjb25zdCBjZWxsUHJvcHMgPSB7XG4gICAgICAgICAgICAgICAgICAgICAgLi4uYmFzZUNlbGxQcm9wcyxcbiAgICAgICAgICAgICAgICAgICAgICBjb21wYXJpc29uOiBjb21wYXJpc29uTG9jYWxlVmFsdWUsXG4gICAgICAgICAgICAgICAgICAgICAgdmVyc2lvbjogdmVyc2lvbkxvY2FsZVZhbHVlLFxuICAgICAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIChcbiAgICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzTmFtZT17YCR7YmFzZUNsYXNzfV9fbG9jYWxlYH0ga2V5PXtbbG9jYWxlLCBpbmRleF0uam9pbignLScpfT5cbiAgICAgICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3NOYW1lPXtgJHtiYXNlQ2xhc3N9X19sb2NhbGUtdmFsdWVgfT5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgPENvbXBvbmVudCB7Li4uY2VsbFByb3BzfSBsb2NhbGU9e2xvY2FsZX0gLz5cbiAgICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PlxuICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PlxuICAgICAgICAgICAgICAgICAgICApXG4gICAgICAgICAgICAgICAgICB9KX1cbiAgICAgICAgICAgICAgICA8L2Rpdj5cbiAgICAgICAgICAgICAgKVxuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICByZXR1cm4gKFxuICAgICAgICAgICAgICA8ZGl2IGNsYXNzTmFtZT17YCR7YmFzZUNsYXNzfV9fZmllbGRgfSBrZXk9e2l9PlxuICAgICAgICAgICAgICAgIDxDb21wb25lbnQgey4uLmJhc2VDZWxsUHJvcHN9IC8+XG4gICAgICAgICAgICAgIDwvZGl2PlxuICAgICAgICAgICAgKVxuICAgICAgICAgIH1cblxuICAgICAgICAgIGlmIChmaWVsZC50eXBlID09PSAndGFicycpIHtcbiAgICAgICAgICAgIGNvbnN0IFRhYnMgPSBkaWZmQ29tcG9uZW50cy50YWJzXG5cbiAgICAgICAgICAgIHJldHVybiAoXG4gICAgICAgICAgICAgIDxUYWJzXG4gICAgICAgICAgICAgICAgY29tcGFyaXNvbj17Y29tcGFyaXNvbn1cbiAgICAgICAgICAgICAgICBkaWZmQ29tcG9uZW50cz17ZGlmZkNvbXBvbmVudHN9XG4gICAgICAgICAgICAgICAgZmllbGQ9e2ZpZWxkfVxuICAgICAgICAgICAgICAgIGZpZWxkTWFwPXtmaWVsZC5zdWJmaWVsZHN9XG4gICAgICAgICAgICAgICAgaTE4bj17aTE4bn1cbiAgICAgICAgICAgICAgICBrZXk9e2l9XG4gICAgICAgICAgICAgICAgbG9jYWxlcz17bG9jYWxlc31cbiAgICAgICAgICAgICAgICB2ZXJzaW9uPXt2ZXJzaW9ufVxuICAgICAgICAgICAgICAvPlxuICAgICAgICAgICAgKVxuICAgICAgICAgIH1cblxuICAgICAgICAgIC8vIEF0IHRoaXMgcG9pbnQsIHdlIGFyZSBkZWFsaW5nIHdpdGggYSBgcm93YCwgZXRjXG4gICAgICAgICAgaWYgKGZpZWxkLnN1YmZpZWxkcykge1xuICAgICAgICAgICAgcmV0dXJuIChcbiAgICAgICAgICAgICAgPE5lc3RlZFxuICAgICAgICAgICAgICAgIGNvbXBhcmlzb249e2NvbXBhcmlzb259XG4gICAgICAgICAgICAgICAgZGlmZkNvbXBvbmVudHM9e2RpZmZDb21wb25lbnRzfVxuICAgICAgICAgICAgICAgIGRpc2FibGVHdXR0ZXJcbiAgICAgICAgICAgICAgICBmaWVsZD17ZmllbGR9XG4gICAgICAgICAgICAgICAgZmllbGRNYXA9e2ZpZWxkLnN1YmZpZWxkc31cbiAgICAgICAgICAgICAgICBpMThuPXtpMThufVxuICAgICAgICAgICAgICAgIGtleT17aX1cbiAgICAgICAgICAgICAgICBsb2NhbGVzPXtsb2NhbGVzfVxuICAgICAgICAgICAgICAgIHBlcm1pc3Npb25zPXtmaWVsZFBlcm1pc3Npb25zfVxuICAgICAgICAgICAgICAgIHZlcnNpb249e3ZlcnNpb259XG4gICAgICAgICAgICAgIC8+XG4gICAgICAgICAgICApXG4gICAgICAgICAgfVxuICAgICAgICB9XG5cbiAgICAgICAgcmV0dXJuIG51bGxcbiAgICAgIH0pfVxuICAgIDwvZGl2PlxuICApXG59XG5cbmV4cG9ydCBkZWZhdWx0IFJlbmRlckZpZWxkc1RvRGlmZlxuIl0sIm5hbWVzIjpbImJhc2VDbGFzcyIsIlJlbmRlckZpZWxkc1RvRGlmZiIsImNvbXBhcmlzb24iLCJkaWZmQ29tcG9uZW50cyIsImZpZWxkTWFwIiwiZmllbGRQZXJtaXNzaW9ucyIsImkxOG4iLCJsb2NhbGVzIiwidmVyc2lvbiIsImRpdiIsImNsYXNzTmFtZSIsIm1hcCIsImZpZWxkIiwiaSIsIm5hbWUiLCJDb21wb25lbnQiLCJ0eXBlIiwiaXNSaWNoVGV4dCIsImRpZmZNZXRob2QiLCJkaWZmTWV0aG9kcyIsImlzRmllbGRBZmZlY3RpbmdEYXRhIiwidmFsdWVJc09iamVjdCIsInZlcnNpb25WYWx1ZSIsIkpTT04iLCJzdHJpbmdpZnkiLCJjb21wYXJpc29uVmFsdWUiLCJoYXNQZXJtaXNzaW9uIiwicmVhZCIsInBlcm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sT0FBTztJQUNUO0FBR047TUFFQSxXQUFlUCJ9
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
-
6
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiJ9
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/pages/Version/Restore/index.tsx"],"names":[],"mappings":"AAWA,OAAO,KAA0C,MAAM,OAAO,CAAA;AAG9D,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAGpC,OAAO,cAAc,CAAA;AAKrB,QAAA,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAiF5B,CAAA;AAED,eAAe,OAAO,CAAA"}
@@ -1,121 +0,0 @@
1
- 'use client';
2
- "use strict";
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- Object.defineProperty(exports, "default", {
7
- enumerable: true,
8
- get: function() {
9
- return _default;
10
- }
11
- });
12
- const _translations = require("@payloadcms/translations");
13
- const _ui = require("@payloadcms/ui");
14
- const _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
15
- const _reacttoastify = require("react-toastify");
16
- require("./index.scss");
17
- function _getRequireWildcardCache(nodeInterop) {
18
- if (typeof WeakMap !== "function") return null;
19
- var cacheBabelInterop = new WeakMap();
20
- var cacheNodeInterop = new WeakMap();
21
- return (_getRequireWildcardCache = function(nodeInterop) {
22
- return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
23
- })(nodeInterop);
24
- }
25
- function _interop_require_wildcard(obj, nodeInterop) {
26
- if (!nodeInterop && obj && obj.__esModule) {
27
- return obj;
28
- }
29
- if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
30
- return {
31
- default: obj
32
- };
33
- }
34
- var cache = _getRequireWildcardCache(nodeInterop);
35
- if (cache && cache.has(obj)) {
36
- return cache.get(obj);
37
- }
38
- var newObj = {
39
- __proto__: null
40
- };
41
- var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
42
- for(var key in obj){
43
- if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
44
- var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
45
- if (desc && (desc.get || desc.set)) {
46
- Object.defineProperty(newObj, key, desc);
47
- } else {
48
- newObj[key] = obj[key];
49
- }
50
- }
51
- }
52
- newObj.default = obj;
53
- if (cache) {
54
- cache.set(obj, newObj);
55
- }
56
- return newObj;
57
- }
58
- const baseClass = 'restore-version';
59
- const modalSlug = 'restore-version';
60
- const Restore = ({ className, collectionSlug, globalSlug, label, originalDocID, versionDate, versionID })=>{
61
- const { routes: { admin, api }, serverURL } = (0, _ui.useConfig)();
62
- const { toggleModal } = (0, _ui.useModal)();
63
- const [processing, setProcessing] = (0, _react.useState)(false);
64
- const { i18n, t } = (0, _ui.useTranslation)();
65
- const restoreMessage = t('version:aboutToRestoreGlobal', {
66
- label: (0, _translations.getTranslation)(label, i18n),
67
- versionDate
68
- });
69
- let fetchURL = `${serverURL}${api}`;
70
- let redirectURL;
71
- if (collectionSlug) {
72
- fetchURL = `${fetchURL}/${collectionSlug}/versions/${versionID}`;
73
- redirectURL = `${admin}/collections/${collectionSlug}/${originalDocID}`;
74
- }
75
- if (globalSlug) {
76
- fetchURL = `${fetchURL}/globals/${globalSlug}/versions/${versionID}`;
77
- redirectURL = `${admin}/globals/${globalSlug}`;
78
- }
79
- const handleRestore = (0, _react.useCallback)(async ()=>{
80
- setProcessing(true);
81
- const res = {};
82
- // const res = await requests.post(fetchURL, {
83
- // headers: {
84
- // 'Accept-Language': i18n.language,
85
- // },
86
- // })
87
- if (res.status === 200) {
88
- const json = await res.json();
89
- _reacttoastify.toast.success(json.message);
90
- // history.push(redirectURL)
91
- } else {
92
- _reacttoastify.toast.error(t('version:problemRestoringVersion'));
93
- }
94
- }, [
95
- fetchURL,
96
- redirectURL,
97
- t,
98
- i18n
99
- ]);
100
- return /*#__PURE__*/ _react.default.createElement(_react.Fragment, null, /*#__PURE__*/ _react.default.createElement(_ui.Pill, {
101
- className: [
102
- baseClass,
103
- className
104
- ].filter(Boolean).join(' '),
105
- onClick: ()=>toggleModal(modalSlug)
106
- }, t('version:restoreThisVersion')), /*#__PURE__*/ _react.default.createElement(_ui.Modal, {
107
- className: `${baseClass}__modal`,
108
- slug: modalSlug
109
- }, /*#__PURE__*/ _react.default.createElement(_ui.MinimalTemplate, {
110
- className: `${baseClass}__modal-template`
111
- }, /*#__PURE__*/ _react.default.createElement("h1", null, t('version:confirmVersionRestoration')), /*#__PURE__*/ _react.default.createElement("p", null, restoreMessage), /*#__PURE__*/ _react.default.createElement(_ui.Button, {
112
- buttonStyle: "secondary",
113
- onClick: processing ? undefined : ()=>toggleModal(modalSlug),
114
- type: "button"
115
- }, t('general:cancel')), /*#__PURE__*/ _react.default.createElement(_ui.Button, {
116
- onClick: processing ? undefined : handleRestore
117
- }, processing ? t('version:restoring') : t('general:confirm')))));
118
- };
119
- const _default = Restore;
120
-
121
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9wYWdlcy9WZXJzaW9uL1Jlc3RvcmUvaW5kZXgudHN4Il0sInNvdXJjZXNDb250ZW50IjpbIid1c2UgY2xpZW50J1xuaW1wb3J0IHsgZ2V0VHJhbnNsYXRpb24gfSBmcm9tICdAcGF5bG9hZGNtcy90cmFuc2xhdGlvbnMnXG5pbXBvcnQge1xuICBCdXR0b24sXG4gIE1pbmltYWxUZW1wbGF0ZSxcbiAgTW9kYWwsXG4gIFBpbGwsXG4gIHVzZUNvbmZpZyxcbiAgdXNlTW9kYWwsXG4gIHVzZVRyYW5zbGF0aW9uLFxufSBmcm9tICdAcGF5bG9hZGNtcy91aSdcbmltcG9ydCBSZWFjdCwgeyBGc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FJeEIsRUFBRSxxREFDUCw2QkFBQ3lCLFdBQUd2QiwrQkFDSiw2QkFBQ3dCLFVBQU07UUFDTEMsYUFBWTtRQUNaUCxTQUFTeEIsYUFBYWdDLFlBQVksSUFBTWxDLFlBQVlkO1FBQ3BEaUQsTUFBSztPQUVKN0IsRUFBRSxrQ0FFTCw2QkFBQzBCLFVBQU07UUFBQ04sU0FBU3hCLGFBQWFnQyxZQUFZdEI7T0FDdkNWLGFBQWFJLEVBQUUsdUJBQXVCQSxFQUFFO0FBTXJEO01BRUEsV0FBZW5CIn0=
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
-
6
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiJ9
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/pages/Version/SelectComparison/index.tsx"],"names":[],"mappings":"AAOA,OAAO,KAA2C,MAAM,OAAO,CAAA;AAE/D,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAGpC,OAAO,cAAc,CAAA;AAQrB,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAsG5C,CAAA"}