@rakun-kit/manager-react 1.5.10 → 1.6.1

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 (262) hide show
  1. package/README.md +349 -295
  2. package/dist/cjs/components/app-sidebar.js +10 -0
  3. package/dist/cjs/components/app-sidebar.js.map +1 -1
  4. package/dist/cjs/components/media/MediaLibrary.js +10 -1
  5. package/dist/cjs/components/media/MediaLibrary.js.map +1 -1
  6. package/dist/cjs/components/media/contexts/MediaLibraryContext.js +1 -1
  7. package/dist/cjs/components/media/contexts/MediaLibraryContext.js.map +1 -1
  8. package/dist/cjs/components/media/previews/MediaContextMenuContent.js +68 -15
  9. package/dist/cjs/components/media/previews/MediaContextMenuContent.js.map +1 -1
  10. package/dist/cjs/components/media/previews/Previews.js +89 -35
  11. package/dist/cjs/components/media/previews/Previews.js.map +1 -1
  12. package/dist/cjs/components/media/previews/context/MediaPreviewContext.js.map +1 -1
  13. package/dist/cjs/components/media/previews/dialogs/ExpandedPreviewDialog.js +7 -10
  14. package/dist/cjs/components/media/previews/dialogs/ExpandedPreviewDialog.js.map +1 -1
  15. package/dist/cjs/components/media/previews/hooks/useMediaPreviewRenderer.js +3 -1
  16. package/dist/cjs/components/media/previews/hooks/useMediaPreviewRenderer.js.map +1 -1
  17. package/dist/cjs/components/media/previews/toolbar/PreviewsToolbar.js +16 -9
  18. package/dist/cjs/components/media/previews/toolbar/PreviewsToolbar.js.map +1 -1
  19. package/dist/cjs/components/media/previews/utils/mediaDownload.js +54 -0
  20. package/dist/cjs/components/media/previews/utils/mediaDownload.js.map +1 -0
  21. package/dist/cjs/components/media/previews/views/PreviewsListView.js +1 -1
  22. package/dist/cjs/components/media/previews/views/PreviewsListView.js.map +1 -1
  23. package/dist/cjs/components/rakun-logo.js +4 -9
  24. package/dist/cjs/components/rakun-logo.js.map +1 -1
  25. package/dist/cjs/components/ui/context-menu.js +1 -1
  26. package/dist/cjs/components/ui/context-menu.js.map +1 -1
  27. package/dist/cjs/i18n/catalog.js +346 -9
  28. package/dist/cjs/i18n/catalog.js.map +1 -1
  29. package/dist/cjs/lib/media.js +1 -0
  30. package/dist/cjs/lib/media.js.map +1 -1
  31. package/dist/cjs/media.js +45 -0
  32. package/dist/cjs/media.js.map +1 -1
  33. package/dist/cjs/router/dashboard/[contentType]/[edit]/ContentTypeEdit.js +15 -4
  34. package/dist/cjs/router/dashboard/[contentType]/[edit]/ContentTypeEdit.js.map +1 -1
  35. package/dist/cjs/router/dashboard/[contentType]/[edit]/_components/ContentCommentsDrawer.js +11 -6
  36. package/dist/cjs/router/dashboard/[contentType]/[edit]/_components/ContentCommentsDrawer.js.map +1 -1
  37. package/dist/cjs/router/dashboard/[contentType]/[edit]/_components/EditTabPanels.js +2 -1
  38. package/dist/cjs/router/dashboard/[contentType]/[edit]/_components/EditTabPanels.js.map +1 -1
  39. package/dist/cjs/router/dashboard/[contentType]/[edit]/_components/EditToolbar.js +2 -1
  40. package/dist/cjs/router/dashboard/[contentType]/[edit]/_components/EditToolbar.js.map +1 -1
  41. package/dist/cjs/router/dashboard/[contentType]/[edit]/_components/PreviewPanel.js +1 -1
  42. package/dist/cjs/router/dashboard/[contentType]/[edit]/_components/PreviewPanel.js.map +1 -1
  43. package/dist/cjs/router/dashboard/[contentType]/[edit]/_components/SeoTabContent.js +290 -0
  44. package/dist/cjs/router/dashboard/[contentType]/[edit]/_components/SeoTabContent.js.map +1 -0
  45. package/dist/cjs/router/dashboard/[contentType]/[edit]/_components/seo-analysis.js +88 -0
  46. package/dist/cjs/router/dashboard/[contentType]/[edit]/_components/seo-analysis.js.map +1 -0
  47. package/dist/cjs/router/dashboard/[contentType]/[edit]/_context/EditPageContext.js +1 -1
  48. package/dist/cjs/router/dashboard/[contentType]/[edit]/_context/EditPageContext.js.map +1 -1
  49. package/dist/cjs/router/dashboard/[contentType]/[edit]/_fields/ContentReferenceField/ContentReferenceMultiSelectUI.js +15 -2
  50. package/dist/cjs/router/dashboard/[contentType]/[edit]/_fields/ContentReferenceField/ContentReferenceMultiSelectUI.js.map +1 -1
  51. package/dist/cjs/router/dashboard/[contentType]/[edit]/_fields/DynamicDataControl.js +222 -232
  52. package/dist/cjs/router/dashboard/[contentType]/[edit]/_fields/DynamicDataControl.js.map +1 -1
  53. package/dist/cjs/router/dashboard/[contentType]/[edit]/_fields/FileField/index.js +20 -1
  54. package/dist/cjs/router/dashboard/[contentType]/[edit]/_fields/FileField/index.js.map +1 -1
  55. package/dist/cjs/router/dashboard/[contentType]/[edit]/_fields/LinkField/LinkUI.js +27 -21
  56. package/dist/cjs/router/dashboard/[contentType]/[edit]/_fields/LinkField/LinkUI.js.map +1 -1
  57. package/dist/cjs/router/dashboard/[contentType]/[edit]/_fields/LinkField/index.js.map +1 -1
  58. package/dist/cjs/router/dashboard/[contentType]/[edit]/_fields/LinkField/linkValue.js +25 -0
  59. package/dist/cjs/router/dashboard/[contentType]/[edit]/_fields/LinkField/linkValue.js.map +1 -0
  60. package/dist/cjs/router/dashboard/[contentType]/[edit]/_fields/ListField/IteratorModulePicker.js +10 -1
  61. package/dist/cjs/router/dashboard/[contentType]/[edit]/_fields/ListField/IteratorModulePicker.js.map +1 -1
  62. package/dist/cjs/router/dashboard/[contentType]/[edit]/_fields/ListField/SimpleListUI.js +38 -11
  63. package/dist/cjs/router/dashboard/[contentType]/[edit]/_fields/ListField/SimpleListUI.js.map +1 -1
  64. package/dist/cjs/router/dashboard/[contentType]/[edit]/_fields/MenuField/MenuUI.js +135 -0
  65. package/dist/cjs/router/dashboard/[contentType]/[edit]/_fields/MenuField/MenuUI.js.map +1 -0
  66. package/dist/cjs/router/dashboard/[contentType]/[edit]/_fields/MenuField/index.js +10 -0
  67. package/dist/cjs/router/dashboard/[contentType]/[edit]/_fields/MenuField/index.js.map +1 -0
  68. package/dist/cjs/router/dashboard/[contentType]/[edit]/_fields/MenuField/menuTree.js +113 -0
  69. package/dist/cjs/router/dashboard/[contentType]/[edit]/_fields/MenuField/menuTree.js.map +1 -0
  70. package/dist/cjs/router/dashboard/[contentType]/[edit]/_fields/Select/MultiSelectUI.js +15 -2
  71. package/dist/cjs/router/dashboard/[contentType]/[edit]/_fields/Select/MultiSelectUI.js.map +1 -1
  72. package/dist/cjs/router/dashboard/[contentType]/[edit]/_fields/shared/ItemLimitStatus.js +22 -0
  73. package/dist/cjs/router/dashboard/[contentType]/[edit]/_fields/shared/ItemLimitStatus.js.map +1 -0
  74. package/dist/cjs/router/dashboard/[contentType]/[edit]/_fields/shared/index.js.map +1 -1
  75. package/dist/cjs/router/dashboard/[contentType]/[edit]/_hooks/useContentDocumentActions.js +1 -0
  76. package/dist/cjs/router/dashboard/[contentType]/[edit]/_hooks/useContentDocumentActions.js.map +1 -1
  77. package/dist/cjs/router/dashboard/[contentType]/[edit]/_hooks/useContentPreview.js +198 -0
  78. package/dist/cjs/router/dashboard/[contentType]/[edit]/_hooks/useContentPreview.js.map +1 -1
  79. package/dist/cjs/router/dashboard/[contentType]/[edit]/edit.js +10 -1
  80. package/dist/cjs/router/dashboard/[contentType]/[edit]/edit.js.map +1 -1
  81. package/dist/cjs/router/dashboard/debugging/api-routes/ApiTest.js +2 -2
  82. package/dist/cjs/router/dashboard/debugging/api-routes/ApiTest.js.map +1 -1
  83. package/dist/cjs/router/dashboard/debugging/api-routes/JsonViewer.js +17 -0
  84. package/dist/cjs/router/dashboard/debugging/api-routes/JsonViewer.js.map +1 -0
  85. package/dist/cjs/router/dashboard/debugging/api-routes/SchemaViewer.js +40 -26
  86. package/dist/cjs/router/dashboard/debugging/api-routes/SchemaViewer.js.map +1 -1
  87. package/dist/cjs/router/dashboard/debugging/api-routes/test.js +6 -5
  88. package/dist/cjs/router/dashboard/debugging/api-routes/test.js.map +1 -1
  89. package/dist/cjs/router/dashboard/seo/index.js +6 -0
  90. package/dist/cjs/router/dashboard/seo/index.js.map +1 -0
  91. package/dist/cjs/router/dashboard/seo/screen.js +234 -0
  92. package/dist/cjs/router/dashboard/seo/screen.js.map +1 -0
  93. package/dist/cjs/router/dashboard/seo/site-analysis.js +159 -0
  94. package/dist/cjs/router/dashboard/seo/site-analysis.js.map +1 -0
  95. package/dist/cjs/router/shared/route-list.js +10 -2
  96. package/dist/cjs/router/shared/route-list.js.map +1 -1
  97. package/dist/docs/index.md +285 -194
  98. package/dist/esm/components/app-sidebar.d.ts.map +1 -1
  99. package/dist/esm/components/app-sidebar.js +11 -1
  100. package/dist/esm/components/app-sidebar.js.map +1 -1
  101. package/dist/esm/components/media/MediaLibrary.d.ts.map +1 -1
  102. package/dist/esm/components/media/MediaLibrary.js +11 -2
  103. package/dist/esm/components/media/MediaLibrary.js.map +1 -1
  104. package/dist/esm/components/media/contexts/MediaLibraryContext.d.ts +2 -0
  105. package/dist/esm/components/media/contexts/MediaLibraryContext.d.ts.map +1 -1
  106. package/dist/esm/components/media/contexts/MediaLibraryContext.js +1 -1
  107. package/dist/esm/components/media/contexts/MediaLibraryContext.js.map +1 -1
  108. package/dist/esm/components/media/previews/MediaContextMenuContent.d.ts.map +1 -1
  109. package/dist/esm/components/media/previews/MediaContextMenuContent.js +70 -17
  110. package/dist/esm/components/media/previews/MediaContextMenuContent.js.map +1 -1
  111. package/dist/esm/components/media/previews/Previews.d.ts.map +1 -1
  112. package/dist/esm/components/media/previews/Previews.js +90 -36
  113. package/dist/esm/components/media/previews/Previews.js.map +1 -1
  114. package/dist/esm/components/media/previews/context/MediaPreviewContext.d.ts +2 -0
  115. package/dist/esm/components/media/previews/context/MediaPreviewContext.d.ts.map +1 -1
  116. package/dist/esm/components/media/previews/context/MediaPreviewContext.js.map +1 -1
  117. package/dist/esm/components/media/previews/dialogs/ExpandedPreviewDialog.d.ts.map +1 -1
  118. package/dist/esm/components/media/previews/dialogs/ExpandedPreviewDialog.js +7 -10
  119. package/dist/esm/components/media/previews/dialogs/ExpandedPreviewDialog.js.map +1 -1
  120. package/dist/esm/components/media/previews/hooks/useMediaPreviewRenderer.d.ts.map +1 -1
  121. package/dist/esm/components/media/previews/hooks/useMediaPreviewRenderer.js +3 -1
  122. package/dist/esm/components/media/previews/hooks/useMediaPreviewRenderer.js.map +1 -1
  123. package/dist/esm/components/media/previews/toolbar/PreviewsToolbar.d.ts +4 -1
  124. package/dist/esm/components/media/previews/toolbar/PreviewsToolbar.d.ts.map +1 -1
  125. package/dist/esm/components/media/previews/toolbar/PreviewsToolbar.js +17 -10
  126. package/dist/esm/components/media/previews/toolbar/PreviewsToolbar.js.map +1 -1
  127. package/dist/esm/components/media/previews/utils/mediaDownload.d.ts +13 -0
  128. package/dist/esm/components/media/previews/utils/mediaDownload.d.ts.map +1 -0
  129. package/dist/esm/components/media/previews/utils/mediaDownload.js +49 -0
  130. package/dist/esm/components/media/previews/utils/mediaDownload.js.map +1 -0
  131. package/dist/esm/components/media/previews/views/PreviewsListView.js +1 -1
  132. package/dist/esm/components/media/previews/views/PreviewsListView.js.map +1 -1
  133. package/dist/esm/components/rakun-logo.d.ts +1 -5
  134. package/dist/esm/components/rakun-logo.d.ts.map +1 -1
  135. package/dist/esm/components/rakun-logo.js +1 -6
  136. package/dist/esm/components/rakun-logo.js.map +1 -1
  137. package/dist/esm/components/ui/context-menu.js +1 -1
  138. package/dist/esm/components/ui/context-menu.js.map +1 -1
  139. package/dist/esm/i18n/catalog.d.ts +567 -9
  140. package/dist/esm/i18n/catalog.d.ts.map +1 -1
  141. package/dist/esm/i18n/catalog.js +330 -7
  142. package/dist/esm/i18n/catalog.js.map +1 -1
  143. package/dist/esm/lib/media.d.ts +8 -0
  144. package/dist/esm/lib/media.d.ts.map +1 -1
  145. package/dist/esm/lib/media.js +1 -0
  146. package/dist/esm/lib/media.js.map +1 -1
  147. package/dist/esm/media.d.ts +19 -1
  148. package/dist/esm/media.d.ts.map +1 -1
  149. package/dist/esm/media.js +44 -0
  150. package/dist/esm/media.js.map +1 -1
  151. package/dist/esm/router/dashboard/[contentType]/[edit]/ContentTypeEdit.d.ts.map +1 -1
  152. package/dist/esm/router/dashboard/[contentType]/[edit]/ContentTypeEdit.js +18 -7
  153. package/dist/esm/router/dashboard/[contentType]/[edit]/ContentTypeEdit.js.map +1 -1
  154. package/dist/esm/router/dashboard/[contentType]/[edit]/_components/EditTabPanels.d.ts.map +1 -1
  155. package/dist/esm/router/dashboard/[contentType]/[edit]/_components/EditTabPanels.js +2 -1
  156. package/dist/esm/router/dashboard/[contentType]/[edit]/_components/EditTabPanels.js.map +1 -1
  157. package/dist/esm/router/dashboard/[contentType]/[edit]/_components/EditToolbar.d.ts.map +1 -1
  158. package/dist/esm/router/dashboard/[contentType]/[edit]/_components/EditToolbar.js +2 -1
  159. package/dist/esm/router/dashboard/[contentType]/[edit]/_components/EditToolbar.js.map +1 -1
  160. package/dist/esm/router/dashboard/[contentType]/[edit]/_components/PreviewPanel.d.ts.map +1 -1
  161. package/dist/esm/router/dashboard/[contentType]/[edit]/_components/PreviewPanel.js +1 -1
  162. package/dist/esm/router/dashboard/[contentType]/[edit]/_components/PreviewPanel.js.map +1 -1
  163. package/dist/esm/router/dashboard/[contentType]/[edit]/_components/SeoTabContent.d.ts +2 -0
  164. package/dist/esm/router/dashboard/[contentType]/[edit]/_components/SeoTabContent.d.ts.map +1 -0
  165. package/dist/esm/router/dashboard/[contentType]/[edit]/_components/SeoTabContent.js +283 -0
  166. package/dist/esm/router/dashboard/[contentType]/[edit]/_components/SeoTabContent.js.map +1 -0
  167. package/dist/esm/router/dashboard/[contentType]/[edit]/_components/seo-analysis.d.ts +10 -0
  168. package/dist/esm/router/dashboard/[contentType]/[edit]/_components/seo-analysis.d.ts.map +1 -0
  169. package/dist/esm/router/dashboard/[contentType]/[edit]/_components/seo-analysis.js +83 -0
  170. package/dist/esm/router/dashboard/[contentType]/[edit]/_components/seo-analysis.js.map +1 -0
  171. package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/ContentReferenceField/ContentReferenceMultiSelectUI.d.ts.map +1 -1
  172. package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/ContentReferenceField/ContentReferenceMultiSelectUI.js +15 -2
  173. package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/ContentReferenceField/ContentReferenceMultiSelectUI.js.map +1 -1
  174. package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/DynamicDataControl.d.ts +6 -2
  175. package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/DynamicDataControl.d.ts.map +1 -1
  176. package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/DynamicDataControl.js +221 -234
  177. package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/DynamicDataControl.js.map +1 -1
  178. package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/FileField/index.d.ts.map +1 -1
  179. package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/FileField/index.js +20 -1
  180. package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/FileField/index.js.map +1 -1
  181. package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/LinkField/LinkUI.d.ts.map +1 -1
  182. package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/LinkField/LinkUI.js +16 -19
  183. package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/LinkField/LinkUI.js.map +1 -1
  184. package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/LinkField/index.d.ts +2 -0
  185. package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/LinkField/index.d.ts.map +1 -1
  186. package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/LinkField/index.js.map +1 -1
  187. package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/LinkField/linkValue.d.ts +4 -0
  188. package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/LinkField/linkValue.d.ts.map +1 -0
  189. package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/LinkField/linkValue.js +21 -0
  190. package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/LinkField/linkValue.js.map +1 -0
  191. package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/ListField/IteratorModulePicker.d.ts.map +1 -1
  192. package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/ListField/IteratorModulePicker.js +11 -2
  193. package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/ListField/IteratorModulePicker.js.map +1 -1
  194. package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/ListField/SimpleListUI.d.ts.map +1 -1
  195. package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/ListField/SimpleListUI.js +38 -11
  196. package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/ListField/SimpleListUI.js.map +1 -1
  197. package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/MenuField/MenuUI.d.ts +4 -0
  198. package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/MenuField/MenuUI.d.ts.map +1 -0
  199. package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/MenuField/MenuUI.js +130 -0
  200. package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/MenuField/MenuUI.js.map +1 -0
  201. package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/MenuField/index.d.ts +14 -0
  202. package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/MenuField/index.d.ts.map +1 -0
  203. package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/MenuField/index.js +5 -0
  204. package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/MenuField/index.js.map +1 -0
  205. package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/MenuField/menuTree.d.ts +23 -0
  206. package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/MenuField/menuTree.d.ts.map +1 -0
  207. package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/MenuField/menuTree.js +103 -0
  208. package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/MenuField/menuTree.js.map +1 -0
  209. package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/Select/MultiSelectUI.d.ts.map +1 -1
  210. package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/Select/MultiSelectUI.js +15 -2
  211. package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/Select/MultiSelectUI.js.map +1 -1
  212. package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/shared/ItemLimitStatus.d.ts +6 -0
  213. package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/shared/ItemLimitStatus.d.ts.map +1 -0
  214. package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/shared/ItemLimitStatus.js +18 -0
  215. package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/shared/ItemLimitStatus.js.map +1 -0
  216. package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/shared/index.d.ts +2 -1
  217. package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/shared/index.d.ts.map +1 -1
  218. package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/shared/index.js.map +1 -1
  219. package/dist/esm/router/dashboard/[contentType]/[edit]/_hooks/useContentPreview.d.ts +43 -0
  220. package/dist/esm/router/dashboard/[contentType]/[edit]/_hooks/useContentPreview.d.ts.map +1 -1
  221. package/dist/esm/router/dashboard/[contentType]/[edit]/_hooks/useContentPreview.js +198 -0
  222. package/dist/esm/router/dashboard/[contentType]/[edit]/_hooks/useContentPreview.js.map +1 -1
  223. package/dist/esm/router/dashboard/[contentType]/[edit]/_hooks/useRouteLayoutData.d.ts.map +1 -1
  224. package/dist/esm/router/dashboard/[contentType]/[edit]/edit.d.ts.map +1 -1
  225. package/dist/esm/router/dashboard/[contentType]/[edit]/edit.js +10 -1
  226. package/dist/esm/router/dashboard/[contentType]/[edit]/edit.js.map +1 -1
  227. package/dist/esm/router/dashboard/debugging/api-routes/ApiTest.d.ts.map +1 -1
  228. package/dist/esm/router/dashboard/debugging/api-routes/ApiTest.js +2 -2
  229. package/dist/esm/router/dashboard/debugging/api-routes/ApiTest.js.map +1 -1
  230. package/dist/esm/router/dashboard/debugging/api-routes/JsonViewer.d.ts +5 -0
  231. package/dist/esm/router/dashboard/debugging/api-routes/JsonViewer.d.ts.map +1 -0
  232. package/dist/esm/router/dashboard/debugging/api-routes/JsonViewer.js +14 -0
  233. package/dist/esm/router/dashboard/debugging/api-routes/JsonViewer.js.map +1 -0
  234. package/dist/esm/router/dashboard/debugging/api-routes/SchemaViewer.d.ts.map +1 -1
  235. package/dist/esm/router/dashboard/debugging/api-routes/SchemaViewer.js +42 -28
  236. package/dist/esm/router/dashboard/debugging/api-routes/SchemaViewer.js.map +1 -1
  237. package/dist/esm/router/dashboard/debugging/api-routes/test.d.ts.map +1 -1
  238. package/dist/esm/router/dashboard/debugging/api-routes/test.js +6 -5
  239. package/dist/esm/router/dashboard/debugging/api-routes/test.js.map +1 -1
  240. package/dist/esm/router/dashboard/seo/index.d.ts +2 -0
  241. package/dist/esm/router/dashboard/seo/index.d.ts.map +1 -0
  242. package/dist/esm/router/dashboard/seo/index.js +2 -0
  243. package/dist/esm/router/dashboard/seo/index.js.map +1 -0
  244. package/dist/esm/router/dashboard/seo/screen.d.ts +6 -0
  245. package/dist/esm/router/dashboard/seo/screen.d.ts.map +1 -0
  246. package/dist/esm/router/dashboard/seo/screen.js +227 -0
  247. package/dist/esm/router/dashboard/seo/screen.js.map +1 -0
  248. package/dist/esm/router/dashboard/seo/site-analysis.d.ts +41 -0
  249. package/dist/esm/router/dashboard/seo/site-analysis.d.ts.map +1 -0
  250. package/dist/esm/router/dashboard/seo/site-analysis.js +154 -0
  251. package/dist/esm/router/dashboard/seo/site-analysis.js.map +1 -0
  252. package/dist/esm/router/shared/route-definitions.d.ts +4 -2
  253. package/dist/esm/router/shared/route-definitions.d.ts.map +1 -1
  254. package/dist/esm/router/shared/route-list.d.ts +1 -1
  255. package/dist/esm/router/shared/route-list.d.ts.map +1 -1
  256. package/dist/esm/router/shared/route-list.js +8 -0
  257. package/dist/esm/router/shared/route-list.js.map +1 -1
  258. package/dist/esm/router/shared/types.d.ts +2 -0
  259. package/dist/esm/router/shared/types.d.ts.map +1 -1
  260. package/dist/styles.css +237 -6
  261. package/dist/tsconfig.build.tsbuildinfo +1 -1
  262. package/package.json +3 -3
package/README.md CHANGED
@@ -1,118 +1,153 @@
1
- # @rakun-kit/manager-react
2
-
3
- React manager UI and client utilities for Rakun.
4
-
5
- Most apps use this package through framework adapters such as
6
- `@rakun-kit/next/manager`, but the runtime components and clients are also
7
- published for custom integrations.
8
-
9
- ## Browser App
10
-
11
- Render the manager with a manager client and navigation implementation:
12
-
13
- ```tsx
14
- import {
15
- ManagerBrowserApp,
16
- createHttpManagerClient,
17
- } from "@rakun-kit/manager-react";
18
- import "@rakun-kit/manager-react/styles.css";
19
-
20
- const client = createHttpManagerClient({
21
- baseUrl: "/api/rakun",
22
- });
23
-
24
- export function ManagerPage() {
25
- return (
26
- <ManagerBrowserApp
27
- client={client}
28
- pathname={window.location.pathname}
29
- basePath="/backend"
30
- />
31
- );
32
- }
33
- ```
34
-
35
- `ManagerBrowserApp` creates browser path navigation by default. Use
36
- `ManagerRuntimeApp` when you need to provide custom navigation.
37
-
38
- ## Clients
39
-
40
- HTTP client:
41
-
42
- ```ts
43
- import { createHttpManagerClient } from "@rakun-kit/manager-react/client/http";
44
-
45
- const client = createHttpManagerClient({
46
- baseUrl: "/api/rakun",
47
- });
48
-
49
- const contentTypes = await client.request("manager.contentTypes");
50
- ```
51
-
52
- tRPC client adapter:
53
-
54
- ```ts
55
- import { createTrpcManagerClient } from "@rakun-kit/manager-react/client/trpc";
56
-
57
- const managerClient = createTrpcManagerClient(trpcProxyClient);
58
- ```
59
-
60
- Custom client:
61
-
62
- ```ts
63
- import { createManagerClient } from "@rakun-kit/manager-react/client/request";
64
-
65
- const client = createManagerClient(async (name, input, options) => {
66
- // call your transport here
67
- });
68
- ```
69
-
70
- ## Navigation
71
-
72
- Use `createPathManagerNavigation` for router integrations:
73
-
74
- ```ts
75
- import { createPathManagerNavigation } from "@rakun-kit/manager-react/state/navigation";
76
-
77
- const navigation = createPathManagerNavigation({
78
- basePath: "/backend",
79
- push: (href) => router.push(href),
80
- replace: (href) => router.replace(href),
81
- });
82
- ```
83
-
84
- ## Link fields
85
-
86
- The `f.link()` editor shows a title alongside its destination. Users can paste
87
- or type a direct URL, choose the home page, or browse configured page-route
88
- types and select one of their entries. Internal selections automatically use
89
- the item label when the title is empty. Direct links are stored as
90
- `{ href, title }`; internal links as `{ routeId, contentTypeId, title }` so core
91
- can resolve localized paths. Legacy values remain editable.
92
-
93
- Compound arrays such as `f.array(f.link())` are reorderable from their drag
94
- handles in the Info editor, without losing unsaved values inside each item.
95
-
96
- ## Media uploads
97
-
98
- Original file names may contain accents, non-Latin scripts, or emoji. The
99
- manager transports those names through ASCII-safe upload headers and core
100
- restores them before saving media metadata.
101
-
102
- With optimization enabled in the media toolbar, an image's context menu offers
103
- `Reimport with current optimization`. It regenerates the configured variants
104
- while retaining the existing media record and all relations to it. Multi-select
105
- supports the same reimport action from the selection toolbar. Optimization is
106
- on by default, and generated previews are stored as inline `data:image/...`
107
- LQIP values on the media record.
108
-
109
- ## Dynamic data mappings
110
-
111
- The list mapping editor supports recursive `blocks` targets. Select
112
- `Nested list` for a mapped list property to configure its own source, query,
113
- filters, item type, and field mapping. `Current document` query values inside
1
+ # @rakun-kit/manager-react
2
+
3
+ React manager UI and client utilities for Rakun.
4
+
5
+ Most apps use this package through framework adapters such as
6
+ `@rakun-kit/next/manager`, but the runtime components and clients are also
7
+ published for custom integrations.
8
+
9
+ ## Browser App
10
+
11
+ Render the manager with a manager client and navigation implementation:
12
+
13
+ ```tsx
14
+ import {
15
+ ManagerBrowserApp,
16
+ createHttpManagerClient,
17
+ } from "@rakun-kit/manager-react";
18
+ import "@rakun-kit/manager-react/styles.css";
19
+
20
+ const client = createHttpManagerClient({
21
+ baseUrl: "/api/rakun",
22
+ });
23
+
24
+ export function ManagerPage() {
25
+ return (
26
+ <ManagerBrowserApp
27
+ client={client}
28
+ pathname={window.location.pathname}
29
+ basePath="/backend"
30
+ />
31
+ );
32
+ }
33
+ ```
34
+
35
+ `ManagerBrowserApp` creates browser path navigation by default. Use
36
+ `ManagerRuntimeApp` when you need to provide custom navigation.
37
+
38
+ ## Clients
39
+
40
+ HTTP client:
41
+
42
+ ```ts
43
+ import { createHttpManagerClient } from "@rakun-kit/manager-react/client/http";
44
+
45
+ const client = createHttpManagerClient({
46
+ baseUrl: "/api/rakun",
47
+ });
48
+
49
+ const contentTypes = await client.request("manager.contentTypes");
50
+ ```
51
+
52
+ tRPC client adapter:
53
+
54
+ ```ts
55
+ import { createTrpcManagerClient } from "@rakun-kit/manager-react/client/trpc";
56
+
57
+ const managerClient = createTrpcManagerClient(trpcProxyClient);
58
+ ```
59
+
60
+ Custom client:
61
+
62
+ ```ts
63
+ import { createManagerClient } from "@rakun-kit/manager-react/client/request";
64
+
65
+ const client = createManagerClient(async (name, input, options) => {
66
+ // call your transport here
67
+ });
68
+ ```
69
+
70
+ ## Navigation
71
+
72
+ Use `createPathManagerNavigation` for router integrations:
73
+
74
+ ```ts
75
+ import { createPathManagerNavigation } from "@rakun-kit/manager-react/state/navigation";
76
+
77
+ const navigation = createPathManagerNavigation({
78
+ basePath: "/backend",
79
+ push: (href) => router.push(href),
80
+ replace: (href) => router.replace(href),
81
+ });
82
+ ```
83
+
84
+ ## Link fields
85
+
86
+ The `f.link()` editor shows a title alongside its destination. Users can paste
87
+ or type a direct URL, choose the home page, or browse configured page-route
88
+ types and select one of their entries. Internal selections automatically use
89
+ the item label when the title is empty. Direct links are stored as
90
+ `{ href, title }`; internal links as `{ routeId, contentTypeId, title }` so core
91
+ can resolve localized paths. Persisted legacy URL strings are normalized to
92
+ `{ href, title: '' }` when loaded and remain editable.
93
+
94
+ Compound arrays such as `f.array(f.link())` are reorderable from their drag
95
+ handles in the Info editor, without losing unsaved values inside each item.
96
+
97
+ `f.menu()` provides a navigation-tree editor intended especially for headers.
98
+ Every item uses the same internal/direct destination picker as `f.link()` and
99
+ can contain child items. Drag vertically to reorder and horizontally to nest or
100
+ outdent; the level buttons provide the same operations for keyboard users.
101
+ Removing an item also removes its descendant subtree.
102
+
103
+ ## Media uploads
104
+
105
+ Original file names may contain accents, non-Latin scripts, or emoji. The
106
+ manager transports those names through ASCII-safe upload headers and core
107
+ restores them before saving media metadata.
108
+
109
+ The optimization popover separates Image and Video settings through its Format
110
+ selector. Images retain their normal format and responsive-image controls;
111
+ videos have their own quality and are converted to both MP4 and WebM.
112
+
113
+ With optimization enabled in the media toolbar, an image or video's context
114
+ menu offers `Reimport`. It regenerates the configured outputs while retaining
115
+ the existing media record and all relations to it. Multi-select supports the
116
+ same reimport action from the selection toolbar. Optimization is on by default,
117
+ and generated image previews are stored as inline `data:image/...` LQIP values
118
+ on the media record.
119
+
120
+ An image's context menu also offers `Replace image`. The selected file replaces
121
+ the stored image and generated variants while retaining the existing media ID,
122
+ name, title, alt text, folder, status, and every relation to it. Rakun also
123
+ revalidates directly referencing pages when route revalidation is configured.
124
+
125
+ ## Dynamic data mappings
126
+
127
+ Fields configured with core `.help(text)` show a compact help icon beside their
128
+ label. Activating it opens the guidance in a popover, including for inline
129
+ modules and nested content types. Translation keys are resolved with the active
130
+ manager locale, while unregistered strings are displayed directly.
131
+
132
+ The list mapping editor supports recursive `blocks` targets. Select
133
+ `Nested list` for a mapped list property to configure its own source, query,
134
+ filters, item type, and field mapping. `Current document` query values inside
114
135
  that nested editor resolve against the parent source item.
115
136
 
137
+ Arrays of links and arrays of relations, including `relation().multiple()`, can
138
+ choose `Direct field` to bind the whole array or `Nested list` to map every
139
+ source item. Link items show `title` and `href`; relation items show the fields
140
+ of the related content type. Unlike `blocks`, these homogeneous arrays do not
141
+ add a `{ name, value }` wrapper to resolved items.
142
+
143
+ When an array or `.multiple()` relation, file, select, or content-reference field
144
+ declares core `.min(count)` or `.max(count)` limits, its editor shows the current
145
+ count and configured range. It reports values outside that range and prevents
146
+ confirming or adding beyond the maximum.
147
+
148
+ A target link appears as separate `<field>.title` and `<field>.href` mapping
149
+ rows, so its label and destination can come from different source fields.
150
+
116
151
  SEO field mappings can use compatible fields from the full current document.
117
152
  New documents also honor core string-field `.seo('<seoField>')` configuration
118
153
  as an editable initial dynamic data binding.
@@ -133,186 +168,205 @@ manager host until that setting is configured. A published document with a
133
168
  resolved page route also gets a contextual View page button in its edit toolbar;
134
169
  the URL follows the selected manager language and locale variant.
135
170
 
171
+ Routeable content splits its SEO tab into Metadata and Analysis. Generate
172
+ report renders the current unsaved form through the configured preview and
173
+ reports metadata lengths, heading structure, missing image alt attributes,
174
+ indexability, social metadata, rendered JSON-LD blocks, and Google and sharing
175
+ previews. JSON-LD results identify invalid JSON and missing `@context` or
176
+ `@type`. For saved documents, the report is stored with its score and date when
177
+ the editor can create SEO reports. Previous reports for the active language and
178
+ route can be reopened directly from the document's Analysis view. A protective
179
+ `noindex` on the temporary preview URL does not affect the content's
180
+ indexability result.
181
+
182
+ The secondary sidebar also includes a site-wide SEO screen above the media
183
+ library. It audits stored metadata for published routeable documents in the
184
+ active language, treats the global default description as a valid fallback
185
+ with a warning, highlights duplicates and incomplete custom Open Graph data,
186
+ and stores every run so its score can be followed over time. Access and report
187
+ creation reuse the `SeoSettings` read and own permissions. Evolution snapshots
188
+ and recent page reports are fetched and displayed in bounded, paginated groups.
189
+
136
190
  ## Styles
137
-
138
- Import the package stylesheet once:
139
-
140
- ```ts
141
- import "@rakun-kit/manager-react/styles.css";
142
- ```
143
-
144
- ## Manager languages
145
-
146
- English and the locale runtime are built into this package. Extra translations
147
- ship from a separate package:
148
-
149
- ```sh
150
- bun add @rakun-kit/manager-locales
151
- # or: npm install @rakun-kit/manager-locales
152
- ```
153
-
154
- Import only the locale needed by the server bootstrap:
155
-
156
- ```ts
157
- import { esManagerLocalePack } from '@rakun-kit/manager-locales/es'
158
-
159
- rakunBootstrap({
160
- // ...
161
- managerLanguages: [esManagerLocalePack],
162
- })
163
- ```
164
-
165
- Each language has an independent subpath, so application bundlers only include
166
- the locales explicitly imported by the host.
167
-
168
- Content-type titles and categories can use project-defined message keys without
169
- adding them to the built-in `ManagerMessageKey` union. Add an English partial
170
- pack and extend installed locales through `managerLanguages`:
171
-
172
- ```ts
173
- import { extendManagerLanguagePack } from '@rakun-kit/core/contracts'
174
- import { esManagerLocalePack } from '@rakun-kit/manager-locales/es'
175
-
176
- const managerLanguages = [
177
- {
178
- code: 'en',
179
- name: 'English',
180
- messages: {
181
- 'field.title': 'Title',
182
- 'layoutModule.header': 'Header',
183
- 'project.contentTypes.article.menu': 'Articles',
184
- },
185
- },
186
- extendManagerLanguagePack(esManagerLocalePack, {
187
- 'field.title': 'Título',
188
- 'layoutModule.header': 'Cabecera',
189
- 'project.contentTypes.article.menu': 'Artículos',
190
- }),
191
- ]
192
- ```
193
-
194
- Then set `menu.title` or `menu.category` to that arbitrary key. Project keys are
195
- resolved at runtime but remain outside the static manager catalog.
196
-
197
- Field labels use the dynamic `field.<fieldName>` namespace. A content-type field
198
- named `title`, for example, automatically resolves `field.title` in edit forms
199
- and list columns without adding it to `ManagerMessageKey`.
200
-
201
- Layout module labels follow `layoutModule.<layoutKey>`. For example, the
202
- `header` slot automatically resolves `layoutModule.header` in its tab and
203
- configuration panel.
204
-
205
- ## Event Logs
206
-
207
- Settings → Logs displays the persistent Rakun event stream through the native
208
- `manager.logs.list` operation. The screen supports filters, cursor pagination,
209
- and structured event details. Both the settings card and the operation require
210
- the `system.eventLog.read` permission, which can be assigned from Settings →
211
- User Roles.
212
-
213
- ## Manager Plugins
214
-
215
- Manager plugins run inside the normal providers and can add dashboard routes,
216
- sidebar items, and custom field editors:
217
-
218
- ```tsx
219
- import {
220
- defineRakunManagerPlugin,
221
- ManagerBrowserApp,
222
- } from '@rakun-kit/manager-react'
223
-
224
- const analyticsManagerPlugin = defineRakunManagerPlugin({
225
- id: '@acme/rakun-analytics',
226
- routes: [{
227
- id: 'dashboard',
228
- path: '/analytics',
229
- component: AnalyticsScreen,
230
- permissions: ['plugin.analytics.view'],
231
- }],
232
- sidebar: [{
233
- id: 'analytics',
234
- title: 'Analytics',
235
- routeId: 'dashboard',
236
- position: 'primary',
237
- group: 'Plugins',
238
- }],
239
- fieldEditors: {
240
- '@acme/rakun-analytics.query': QueryEditor,
241
- },
242
- })
243
-
244
- <ManagerBrowserApp plugins={[analyticsManagerPlugin]} {...props} />
245
- ```
246
-
247
- Use `ManagerFieldEditorProps`, `ManagerFieldEditorRef`, and
248
- `useManagerFieldValue` from `@rakun-kit/manager-react/plugins` when implementing
249
- field editors. Next.js applications should import plugin objects inside a
250
- `'use client'` wrapper around `RakunManagerClientPage`; `RakunManagerPage` accepts
251
- that wrapper through `managerComponent`.
252
-
253
- ### Extending the RichText editor
254
-
255
- Manager plugins can register Lexical nodes and React plugins for every
256
- `RichText` field, including fields rendered inside relations, blocks, and
257
- modules:
258
-
259
- ```tsx
260
- 'use client'
261
-
262
- import { useLexicalComposerContext } from '@lexical/react/LexicalComposerContext'
263
- import {
264
- defineRakunManagerPlugin,
265
- type ManagerRichTextPluginProps,
266
- } from '@rakun-kit/manager-react/plugins'
267
- import { MentionNode } from './MentionNode'
268
-
269
- const MentionsPlugin = ({ id }: ManagerRichTextPluginProps) => {
270
- const [editor] = useLexicalComposerContext()
271
-
272
- // Register commands and listeners on `editor` here.
273
- return null
274
- }
275
-
276
- export const mentionsManagerPlugin = defineRakunManagerPlugin({
277
- id: '@acme/rakun-mentions',
278
- richText: {
279
- nodes: [MentionNode],
280
- plugins: [
281
- {
282
- id: '@acme/rakun-mentions.plugin',
283
- component: MentionsPlugin,
284
- placement: 'editor',
285
- },
286
- ],
287
- },
288
- })
289
- ```
290
-
291
- Lexical plugin components receive `ManagerRichTextPluginProps` (the field id,
292
- configuration, current content type, and related field metadata) and render
293
- inside `LexicalComposer`, so they can use the normal Lexical React hooks.
294
- Supported placements are `toolbar`, `block-format`, `editor` (the default),
295
- `actions-start`, and `actions-end`. `block-format` components render inside the
296
- manager's block selector and can use `ManagerRichTextBlockFormatItem` from
297
- `@rakun-kit/manager-react/rich-text`. Contributions keep declaration order
298
- unless an explicit `order` is provided. Node types and plugin ids must be unique;
299
- conflicts report both plugin owners. Node replacements use Lexical's standard
300
- `LexicalNodeReplacement` configuration.
301
-
302
- ## Exports
303
-
304
- - `@rakun-kit/manager-react`: manager app, providers, clients, navigation, router, layout, media, and state helpers.
305
- - `@rakun-kit/manager-react/client/http`: HTTP manager client.
306
- - `@rakun-kit/manager-react/client/request`: transport-agnostic manager client.
307
- - `@rakun-kit/manager-react/client/trpc`: tRPC proxy client adapter.
308
- - `@rakun-kit/manager-react/app/runtime-app`: `ManagerRuntimeApp`, `ManagerBrowserApp`.
309
- - `@rakun-kit/manager-react/state/navigation`: navigation helpers and provider.
310
- - `@rakun-kit/manager-react/link`: link component provider.
311
- - `@rakun-kit/manager-react/i18n`: locale runtime, catalog, and locale types.
312
- - `@rakun-kit/manager-react/styles.css`: bundled manager styles.
313
-
314
- ## Build
315
-
316
- ```sh
317
- bun run build --workspace @rakun-kit/manager-react
318
- ```
191
+
192
+ Import the package stylesheet once:
193
+
194
+ ```ts
195
+ import "@rakun-kit/manager-react/styles.css";
196
+ ```
197
+
198
+ ## Manager languages
199
+
200
+ English and the locale runtime are built into this package. Extra translations
201
+ ship from a separate package:
202
+
203
+ ```sh
204
+ bun add @rakun-kit/manager-locales
205
+ # or: npm install @rakun-kit/manager-locales
206
+ ```
207
+
208
+ Import only the locale needed by the server bootstrap:
209
+
210
+ ```ts
211
+ import { esManagerLocalePack } from '@rakun-kit/manager-locales/es'
212
+
213
+ rakunBootstrap({
214
+ // ...
215
+ managerLanguages: [esManagerLocalePack],
216
+ })
217
+ ```
218
+
219
+ Each language has an independent subpath, so application bundlers only include
220
+ the locales explicitly imported by the host.
221
+
222
+ Content-type titles and categories can use project-defined message keys without
223
+ adding them to the built-in `ManagerMessageKey` union. Add an English partial
224
+ pack and extend installed locales through `managerLanguages`:
225
+
226
+ ```ts
227
+ import { extendManagerLanguagePack } from '@rakun-kit/core/contracts'
228
+ import { esManagerLocalePack } from '@rakun-kit/manager-locales/es'
229
+
230
+ const managerLanguages = [
231
+ {
232
+ code: 'en',
233
+ name: 'English',
234
+ messages: {
235
+ 'field.title': 'Title',
236
+ 'layoutModule.header': 'Header',
237
+ 'project.contentTypes.article.menu': 'Articles',
238
+ },
239
+ },
240
+ extendManagerLanguagePack(esManagerLocalePack, {
241
+ 'field.title': 'Título',
242
+ 'layoutModule.header': 'Cabecera',
243
+ 'project.contentTypes.article.menu': 'Artículos',
244
+ }),
245
+ ]
246
+ ```
247
+
248
+ Then set `menu.title` or `menu.category` to that arbitrary key. Project keys are
249
+ resolved at runtime but remain outside the static manager catalog.
250
+
251
+ Field labels use the dynamic `field.<fieldName>` namespace. A content-type field
252
+ named `title`, for example, automatically resolves `field.title` in edit forms
253
+ and list columns without adding it to `ManagerMessageKey`.
254
+
255
+ Layout module labels follow `layoutModule.<layoutKey>`. For example, the
256
+ `header` slot automatically resolves `layoutModule.header` in its tab and
257
+ configuration panel.
258
+
259
+ ## Event Logs
260
+
261
+ Settings → Logs displays the persistent Rakun event stream through the native
262
+ `manager.logs.list` operation. The screen supports filters, cursor pagination,
263
+ and structured event details. Both the settings card and the operation require
264
+ the `system.eventLog.read` permission, which can be assigned from Settings →
265
+ User Roles.
266
+
267
+ ## Manager Plugins
268
+
269
+ Manager plugins run inside the normal providers and can add dashboard routes,
270
+ sidebar items, and custom field editors:
271
+
272
+ ```tsx
273
+ import {
274
+ defineRakunManagerPlugin,
275
+ ManagerBrowserApp,
276
+ } from '@rakun-kit/manager-react'
277
+
278
+ const analyticsManagerPlugin = defineRakunManagerPlugin({
279
+ id: '@acme/rakun-analytics',
280
+ routes: [{
281
+ id: 'dashboard',
282
+ path: '/analytics',
283
+ component: AnalyticsScreen,
284
+ permissions: ['plugin.analytics.view'],
285
+ }],
286
+ sidebar: [{
287
+ id: 'analytics',
288
+ title: 'Analytics',
289
+ routeId: 'dashboard',
290
+ position: 'primary',
291
+ group: 'Plugins',
292
+ }],
293
+ fieldEditors: {
294
+ '@acme/rakun-analytics.query': QueryEditor,
295
+ },
296
+ })
297
+
298
+ <ManagerBrowserApp plugins={[analyticsManagerPlugin]} {...props} />
299
+ ```
300
+
301
+ Use `ManagerFieldEditorProps`, `ManagerFieldEditorRef`, and
302
+ `useManagerFieldValue` from `@rakun-kit/manager-react/plugins` when implementing
303
+ field editors. Next.js applications should import plugin objects inside a
304
+ `'use client'` wrapper around `RakunManagerClientPage`; `RakunManagerPage` accepts
305
+ that wrapper through `managerComponent`.
306
+
307
+ ### Extending the RichText editor
308
+
309
+ Manager plugins can register Lexical nodes and React plugins for every
310
+ `RichText` field, including fields rendered inside relations, blocks, and
311
+ modules:
312
+
313
+ ```tsx
314
+ 'use client'
315
+
316
+ import { useLexicalComposerContext } from '@lexical/react/LexicalComposerContext'
317
+ import {
318
+ defineRakunManagerPlugin,
319
+ type ManagerRichTextPluginProps,
320
+ } from '@rakun-kit/manager-react/plugins'
321
+ import { MentionNode } from './MentionNode'
322
+
323
+ const MentionsPlugin = ({ id }: ManagerRichTextPluginProps) => {
324
+ const [editor] = useLexicalComposerContext()
325
+
326
+ // Register commands and listeners on `editor` here.
327
+ return null
328
+ }
329
+
330
+ export const mentionsManagerPlugin = defineRakunManagerPlugin({
331
+ id: '@acme/rakun-mentions',
332
+ richText: {
333
+ nodes: [MentionNode],
334
+ plugins: [
335
+ {
336
+ id: '@acme/rakun-mentions.plugin',
337
+ component: MentionsPlugin,
338
+ placement: 'editor',
339
+ },
340
+ ],
341
+ },
342
+ })
343
+ ```
344
+
345
+ Lexical plugin components receive `ManagerRichTextPluginProps` (the field id,
346
+ configuration, current content type, and related field metadata) and render
347
+ inside `LexicalComposer`, so they can use the normal Lexical React hooks.
348
+ Supported placements are `toolbar`, `block-format`, `editor` (the default),
349
+ `actions-start`, and `actions-end`. `block-format` components render inside the
350
+ manager's block selector and can use `ManagerRichTextBlockFormatItem` from
351
+ `@rakun-kit/manager-react/rich-text`. Contributions keep declaration order
352
+ unless an explicit `order` is provided. Node types and plugin ids must be unique;
353
+ conflicts report both plugin owners. Node replacements use Lexical's standard
354
+ `LexicalNodeReplacement` configuration.
355
+
356
+ ## Exports
357
+
358
+ - `@rakun-kit/manager-react`: manager app, providers, clients, navigation, router, layout, media, and state helpers.
359
+ - `@rakun-kit/manager-react/client/http`: HTTP manager client.
360
+ - `@rakun-kit/manager-react/client/request`: transport-agnostic manager client.
361
+ - `@rakun-kit/manager-react/client/trpc`: tRPC proxy client adapter.
362
+ - `@rakun-kit/manager-react/app/runtime-app`: `ManagerRuntimeApp`, `ManagerBrowserApp`.
363
+ - `@rakun-kit/manager-react/state/navigation`: navigation helpers and provider.
364
+ - `@rakun-kit/manager-react/link`: link component provider.
365
+ - `@rakun-kit/manager-react/i18n`: locale runtime, catalog, and locale types.
366
+ - `@rakun-kit/manager-react/styles.css`: bundled manager styles.
367
+
368
+ ## Build
369
+
370
+ ```sh
371
+ bun run build --workspace @rakun-kit/manager-react
372
+ ```
@@ -31,6 +31,16 @@ const isActiveHref = (href, pathname, basePath) => {
31
31
  return currentPath === itemPath || currentPath.startsWith(`${itemPath}/`);
32
32
  };
33
33
  const getDefaultSecondaryNavItems = (basePath, t) => [
34
+ {
35
+ title: t('sidebar.seo'),
36
+ url: (0, navigation_1.getManagerPathHref)('/seo', { basePath }),
37
+ icon: lucide_react_1.SearchCheck,
38
+ permissions: [
39
+ 'content.SeoSettings.readAny',
40
+ 'content.SeoSettings.own',
41
+ ],
42
+ permissionMode: 'any',
43
+ },
34
44
  {
35
45
  title: t('sidebar.mediaLibrary'),
36
46
  url: (0, navigation_1.getManagerPathHref)('/media', { basePath }),