@rakun-kit/manager-react 1.5.10 → 1.6.0
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.
- package/README.md +348 -295
- package/dist/cjs/components/app-sidebar.js +10 -0
- package/dist/cjs/components/app-sidebar.js.map +1 -1
- package/dist/cjs/components/media/MediaLibrary.js +10 -1
- package/dist/cjs/components/media/MediaLibrary.js.map +1 -1
- package/dist/cjs/components/media/contexts/MediaLibraryContext.js +1 -1
- package/dist/cjs/components/media/contexts/MediaLibraryContext.js.map +1 -1
- package/dist/cjs/components/media/previews/MediaContextMenuContent.js +68 -15
- package/dist/cjs/components/media/previews/MediaContextMenuContent.js.map +1 -1
- package/dist/cjs/components/media/previews/Previews.js +89 -35
- package/dist/cjs/components/media/previews/Previews.js.map +1 -1
- package/dist/cjs/components/media/previews/context/MediaPreviewContext.js.map +1 -1
- package/dist/cjs/components/media/previews/dialogs/ExpandedPreviewDialog.js +7 -10
- package/dist/cjs/components/media/previews/dialogs/ExpandedPreviewDialog.js.map +1 -1
- package/dist/cjs/components/media/previews/hooks/useMediaPreviewRenderer.js +3 -1
- package/dist/cjs/components/media/previews/hooks/useMediaPreviewRenderer.js.map +1 -1
- package/dist/cjs/components/media/previews/toolbar/PreviewsToolbar.js +16 -9
- package/dist/cjs/components/media/previews/toolbar/PreviewsToolbar.js.map +1 -1
- package/dist/cjs/components/media/previews/utils/mediaDownload.js +54 -0
- package/dist/cjs/components/media/previews/utils/mediaDownload.js.map +1 -0
- package/dist/cjs/components/media/previews/views/PreviewsListView.js +1 -1
- package/dist/cjs/components/media/previews/views/PreviewsListView.js.map +1 -1
- package/dist/cjs/components/rakun-logo.js +4 -9
- package/dist/cjs/components/rakun-logo.js.map +1 -1
- package/dist/cjs/components/ui/context-menu.js +1 -1
- package/dist/cjs/components/ui/context-menu.js.map +1 -1
- package/dist/cjs/i18n/catalog.js +343 -9
- package/dist/cjs/i18n/catalog.js.map +1 -1
- package/dist/cjs/lib/media.js +1 -0
- package/dist/cjs/lib/media.js.map +1 -1
- package/dist/cjs/media.js +45 -0
- package/dist/cjs/media.js.map +1 -1
- package/dist/cjs/router/dashboard/[contentType]/[edit]/ContentTypeEdit.js +15 -4
- package/dist/cjs/router/dashboard/[contentType]/[edit]/ContentTypeEdit.js.map +1 -1
- package/dist/cjs/router/dashboard/[contentType]/[edit]/_components/ContentCommentsDrawer.js +11 -6
- package/dist/cjs/router/dashboard/[contentType]/[edit]/_components/ContentCommentsDrawer.js.map +1 -1
- package/dist/cjs/router/dashboard/[contentType]/[edit]/_components/EditTabPanels.js +2 -1
- package/dist/cjs/router/dashboard/[contentType]/[edit]/_components/EditTabPanels.js.map +1 -1
- package/dist/cjs/router/dashboard/[contentType]/[edit]/_components/EditToolbar.js +2 -1
- package/dist/cjs/router/dashboard/[contentType]/[edit]/_components/EditToolbar.js.map +1 -1
- package/dist/cjs/router/dashboard/[contentType]/[edit]/_components/PreviewPanel.js +1 -1
- package/dist/cjs/router/dashboard/[contentType]/[edit]/_components/PreviewPanel.js.map +1 -1
- package/dist/cjs/router/dashboard/[contentType]/[edit]/_components/SeoTabContent.js +290 -0
- package/dist/cjs/router/dashboard/[contentType]/[edit]/_components/SeoTabContent.js.map +1 -0
- package/dist/cjs/router/dashboard/[contentType]/[edit]/_components/seo-analysis.js +88 -0
- package/dist/cjs/router/dashboard/[contentType]/[edit]/_components/seo-analysis.js.map +1 -0
- package/dist/cjs/router/dashboard/[contentType]/[edit]/_context/EditPageContext.js +1 -1
- package/dist/cjs/router/dashboard/[contentType]/[edit]/_context/EditPageContext.js.map +1 -1
- package/dist/cjs/router/dashboard/[contentType]/[edit]/_fields/ContentReferenceField/ContentReferenceMultiSelectUI.js +15 -2
- package/dist/cjs/router/dashboard/[contentType]/[edit]/_fields/ContentReferenceField/ContentReferenceMultiSelectUI.js.map +1 -1
- package/dist/cjs/router/dashboard/[contentType]/[edit]/_fields/DynamicDataControl.js +222 -232
- package/dist/cjs/router/dashboard/[contentType]/[edit]/_fields/DynamicDataControl.js.map +1 -1
- package/dist/cjs/router/dashboard/[contentType]/[edit]/_fields/FileField/index.js +20 -1
- package/dist/cjs/router/dashboard/[contentType]/[edit]/_fields/FileField/index.js.map +1 -1
- package/dist/cjs/router/dashboard/[contentType]/[edit]/_fields/LinkField/LinkUI.js +27 -21
- package/dist/cjs/router/dashboard/[contentType]/[edit]/_fields/LinkField/LinkUI.js.map +1 -1
- package/dist/cjs/router/dashboard/[contentType]/[edit]/_fields/LinkField/index.js.map +1 -1
- package/dist/cjs/router/dashboard/[contentType]/[edit]/_fields/LinkField/linkValue.js +25 -0
- package/dist/cjs/router/dashboard/[contentType]/[edit]/_fields/LinkField/linkValue.js.map +1 -0
- package/dist/cjs/router/dashboard/[contentType]/[edit]/_fields/ListField/IteratorModulePicker.js +10 -1
- package/dist/cjs/router/dashboard/[contentType]/[edit]/_fields/ListField/IteratorModulePicker.js.map +1 -1
- package/dist/cjs/router/dashboard/[contentType]/[edit]/_fields/ListField/SimpleListUI.js +38 -11
- package/dist/cjs/router/dashboard/[contentType]/[edit]/_fields/ListField/SimpleListUI.js.map +1 -1
- package/dist/cjs/router/dashboard/[contentType]/[edit]/_fields/MenuField/MenuUI.js +135 -0
- package/dist/cjs/router/dashboard/[contentType]/[edit]/_fields/MenuField/MenuUI.js.map +1 -0
- package/dist/cjs/router/dashboard/[contentType]/[edit]/_fields/MenuField/index.js +10 -0
- package/dist/cjs/router/dashboard/[contentType]/[edit]/_fields/MenuField/index.js.map +1 -0
- package/dist/cjs/router/dashboard/[contentType]/[edit]/_fields/MenuField/menuTree.js +113 -0
- package/dist/cjs/router/dashboard/[contentType]/[edit]/_fields/MenuField/menuTree.js.map +1 -0
- package/dist/cjs/router/dashboard/[contentType]/[edit]/_fields/Select/MultiSelectUI.js +15 -2
- package/dist/cjs/router/dashboard/[contentType]/[edit]/_fields/Select/MultiSelectUI.js.map +1 -1
- package/dist/cjs/router/dashboard/[contentType]/[edit]/_fields/shared/ItemLimitStatus.js +22 -0
- package/dist/cjs/router/dashboard/[contentType]/[edit]/_fields/shared/ItemLimitStatus.js.map +1 -0
- package/dist/cjs/router/dashboard/[contentType]/[edit]/_fields/shared/index.js.map +1 -1
- package/dist/cjs/router/dashboard/[contentType]/[edit]/_hooks/useContentDocumentActions.js +1 -0
- package/dist/cjs/router/dashboard/[contentType]/[edit]/_hooks/useContentDocumentActions.js.map +1 -1
- package/dist/cjs/router/dashboard/[contentType]/[edit]/_hooks/useContentPreview.js +198 -0
- package/dist/cjs/router/dashboard/[contentType]/[edit]/_hooks/useContentPreview.js.map +1 -1
- package/dist/cjs/router/dashboard/[contentType]/[edit]/edit.js +10 -1
- package/dist/cjs/router/dashboard/[contentType]/[edit]/edit.js.map +1 -1
- package/dist/cjs/router/dashboard/debugging/api-routes/ApiTest.js +2 -2
- package/dist/cjs/router/dashboard/debugging/api-routes/ApiTest.js.map +1 -1
- package/dist/cjs/router/dashboard/debugging/api-routes/JsonViewer.js +17 -0
- package/dist/cjs/router/dashboard/debugging/api-routes/JsonViewer.js.map +1 -0
- package/dist/cjs/router/dashboard/debugging/api-routes/SchemaViewer.js +40 -26
- package/dist/cjs/router/dashboard/debugging/api-routes/SchemaViewer.js.map +1 -1
- package/dist/cjs/router/dashboard/debugging/api-routes/test.js +6 -5
- package/dist/cjs/router/dashboard/debugging/api-routes/test.js.map +1 -1
- package/dist/cjs/router/dashboard/seo/index.js +6 -0
- package/dist/cjs/router/dashboard/seo/index.js.map +1 -0
- package/dist/cjs/router/dashboard/seo/screen.js +219 -0
- package/dist/cjs/router/dashboard/seo/screen.js.map +1 -0
- package/dist/cjs/router/dashboard/seo/site-analysis.js +153 -0
- package/dist/cjs/router/dashboard/seo/site-analysis.js.map +1 -0
- package/dist/cjs/router/shared/route-list.js +10 -2
- package/dist/cjs/router/shared/route-list.js.map +1 -1
- package/dist/docs/index.md +283 -194
- package/dist/esm/components/app-sidebar.d.ts.map +1 -1
- package/dist/esm/components/app-sidebar.js +11 -1
- package/dist/esm/components/app-sidebar.js.map +1 -1
- package/dist/esm/components/media/MediaLibrary.d.ts.map +1 -1
- package/dist/esm/components/media/MediaLibrary.js +11 -2
- package/dist/esm/components/media/MediaLibrary.js.map +1 -1
- package/dist/esm/components/media/contexts/MediaLibraryContext.d.ts +2 -0
- package/dist/esm/components/media/contexts/MediaLibraryContext.d.ts.map +1 -1
- package/dist/esm/components/media/contexts/MediaLibraryContext.js +1 -1
- package/dist/esm/components/media/contexts/MediaLibraryContext.js.map +1 -1
- package/dist/esm/components/media/previews/MediaContextMenuContent.d.ts.map +1 -1
- package/dist/esm/components/media/previews/MediaContextMenuContent.js +70 -17
- package/dist/esm/components/media/previews/MediaContextMenuContent.js.map +1 -1
- package/dist/esm/components/media/previews/Previews.d.ts.map +1 -1
- package/dist/esm/components/media/previews/Previews.js +90 -36
- package/dist/esm/components/media/previews/Previews.js.map +1 -1
- package/dist/esm/components/media/previews/context/MediaPreviewContext.d.ts +2 -0
- package/dist/esm/components/media/previews/context/MediaPreviewContext.d.ts.map +1 -1
- package/dist/esm/components/media/previews/context/MediaPreviewContext.js.map +1 -1
- package/dist/esm/components/media/previews/dialogs/ExpandedPreviewDialog.d.ts.map +1 -1
- package/dist/esm/components/media/previews/dialogs/ExpandedPreviewDialog.js +7 -10
- package/dist/esm/components/media/previews/dialogs/ExpandedPreviewDialog.js.map +1 -1
- package/dist/esm/components/media/previews/hooks/useMediaPreviewRenderer.d.ts.map +1 -1
- package/dist/esm/components/media/previews/hooks/useMediaPreviewRenderer.js +3 -1
- package/dist/esm/components/media/previews/hooks/useMediaPreviewRenderer.js.map +1 -1
- package/dist/esm/components/media/previews/toolbar/PreviewsToolbar.d.ts +4 -1
- package/dist/esm/components/media/previews/toolbar/PreviewsToolbar.d.ts.map +1 -1
- package/dist/esm/components/media/previews/toolbar/PreviewsToolbar.js +17 -10
- package/dist/esm/components/media/previews/toolbar/PreviewsToolbar.js.map +1 -1
- package/dist/esm/components/media/previews/utils/mediaDownload.d.ts +13 -0
- package/dist/esm/components/media/previews/utils/mediaDownload.d.ts.map +1 -0
- package/dist/esm/components/media/previews/utils/mediaDownload.js +49 -0
- package/dist/esm/components/media/previews/utils/mediaDownload.js.map +1 -0
- package/dist/esm/components/media/previews/views/PreviewsListView.js +1 -1
- package/dist/esm/components/media/previews/views/PreviewsListView.js.map +1 -1
- package/dist/esm/components/rakun-logo.d.ts +1 -5
- package/dist/esm/components/rakun-logo.d.ts.map +1 -1
- package/dist/esm/components/rakun-logo.js +1 -6
- package/dist/esm/components/rakun-logo.js.map +1 -1
- package/dist/esm/components/ui/context-menu.js +1 -1
- package/dist/esm/components/ui/context-menu.js.map +1 -1
- package/dist/esm/i18n/catalog.d.ts +564 -9
- package/dist/esm/i18n/catalog.d.ts.map +1 -1
- package/dist/esm/i18n/catalog.js +327 -7
- package/dist/esm/i18n/catalog.js.map +1 -1
- package/dist/esm/lib/media.d.ts +8 -0
- package/dist/esm/lib/media.d.ts.map +1 -1
- package/dist/esm/lib/media.js +1 -0
- package/dist/esm/lib/media.js.map +1 -1
- package/dist/esm/media.d.ts +19 -1
- package/dist/esm/media.d.ts.map +1 -1
- package/dist/esm/media.js +44 -0
- package/dist/esm/media.js.map +1 -1
- package/dist/esm/router/dashboard/[contentType]/[edit]/ContentTypeEdit.d.ts.map +1 -1
- package/dist/esm/router/dashboard/[contentType]/[edit]/ContentTypeEdit.js +18 -7
- package/dist/esm/router/dashboard/[contentType]/[edit]/ContentTypeEdit.js.map +1 -1
- package/dist/esm/router/dashboard/[contentType]/[edit]/_components/EditTabPanels.d.ts.map +1 -1
- package/dist/esm/router/dashboard/[contentType]/[edit]/_components/EditTabPanels.js +2 -1
- package/dist/esm/router/dashboard/[contentType]/[edit]/_components/EditTabPanels.js.map +1 -1
- package/dist/esm/router/dashboard/[contentType]/[edit]/_components/EditToolbar.d.ts.map +1 -1
- package/dist/esm/router/dashboard/[contentType]/[edit]/_components/EditToolbar.js +2 -1
- package/dist/esm/router/dashboard/[contentType]/[edit]/_components/EditToolbar.js.map +1 -1
- package/dist/esm/router/dashboard/[contentType]/[edit]/_components/PreviewPanel.d.ts.map +1 -1
- package/dist/esm/router/dashboard/[contentType]/[edit]/_components/PreviewPanel.js +1 -1
- package/dist/esm/router/dashboard/[contentType]/[edit]/_components/PreviewPanel.js.map +1 -1
- package/dist/esm/router/dashboard/[contentType]/[edit]/_components/SeoTabContent.d.ts +2 -0
- package/dist/esm/router/dashboard/[contentType]/[edit]/_components/SeoTabContent.d.ts.map +1 -0
- package/dist/esm/router/dashboard/[contentType]/[edit]/_components/SeoTabContent.js +283 -0
- package/dist/esm/router/dashboard/[contentType]/[edit]/_components/SeoTabContent.js.map +1 -0
- package/dist/esm/router/dashboard/[contentType]/[edit]/_components/seo-analysis.d.ts +10 -0
- package/dist/esm/router/dashboard/[contentType]/[edit]/_components/seo-analysis.d.ts.map +1 -0
- package/dist/esm/router/dashboard/[contentType]/[edit]/_components/seo-analysis.js +83 -0
- package/dist/esm/router/dashboard/[contentType]/[edit]/_components/seo-analysis.js.map +1 -0
- package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/ContentReferenceField/ContentReferenceMultiSelectUI.d.ts.map +1 -1
- package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/ContentReferenceField/ContentReferenceMultiSelectUI.js +15 -2
- package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/ContentReferenceField/ContentReferenceMultiSelectUI.js.map +1 -1
- package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/DynamicDataControl.d.ts +6 -2
- package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/DynamicDataControl.d.ts.map +1 -1
- package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/DynamicDataControl.js +221 -234
- package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/DynamicDataControl.js.map +1 -1
- package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/FileField/index.d.ts.map +1 -1
- package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/FileField/index.js +20 -1
- package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/FileField/index.js.map +1 -1
- package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/LinkField/LinkUI.d.ts.map +1 -1
- package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/LinkField/LinkUI.js +16 -19
- package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/LinkField/LinkUI.js.map +1 -1
- package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/LinkField/index.d.ts +2 -0
- package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/LinkField/index.d.ts.map +1 -1
- package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/LinkField/index.js.map +1 -1
- package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/LinkField/linkValue.d.ts +4 -0
- package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/LinkField/linkValue.d.ts.map +1 -0
- package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/LinkField/linkValue.js +21 -0
- package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/LinkField/linkValue.js.map +1 -0
- package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/ListField/IteratorModulePicker.d.ts.map +1 -1
- package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/ListField/IteratorModulePicker.js +11 -2
- package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/ListField/IteratorModulePicker.js.map +1 -1
- package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/ListField/SimpleListUI.d.ts.map +1 -1
- package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/ListField/SimpleListUI.js +38 -11
- package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/ListField/SimpleListUI.js.map +1 -1
- package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/MenuField/MenuUI.d.ts +4 -0
- package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/MenuField/MenuUI.d.ts.map +1 -0
- package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/MenuField/MenuUI.js +130 -0
- package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/MenuField/MenuUI.js.map +1 -0
- package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/MenuField/index.d.ts +14 -0
- package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/MenuField/index.d.ts.map +1 -0
- package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/MenuField/index.js +5 -0
- package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/MenuField/index.js.map +1 -0
- package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/MenuField/menuTree.d.ts +23 -0
- package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/MenuField/menuTree.d.ts.map +1 -0
- package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/MenuField/menuTree.js +103 -0
- package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/MenuField/menuTree.js.map +1 -0
- package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/Select/MultiSelectUI.d.ts.map +1 -1
- package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/Select/MultiSelectUI.js +15 -2
- package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/Select/MultiSelectUI.js.map +1 -1
- package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/shared/ItemLimitStatus.d.ts +6 -0
- package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/shared/ItemLimitStatus.d.ts.map +1 -0
- package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/shared/ItemLimitStatus.js +18 -0
- package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/shared/ItemLimitStatus.js.map +1 -0
- package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/shared/index.d.ts +2 -1
- package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/shared/index.d.ts.map +1 -1
- package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/shared/index.js.map +1 -1
- package/dist/esm/router/dashboard/[contentType]/[edit]/_hooks/useContentPreview.d.ts +43 -0
- package/dist/esm/router/dashboard/[contentType]/[edit]/_hooks/useContentPreview.d.ts.map +1 -1
- package/dist/esm/router/dashboard/[contentType]/[edit]/_hooks/useContentPreview.js +198 -0
- package/dist/esm/router/dashboard/[contentType]/[edit]/_hooks/useContentPreview.js.map +1 -1
- package/dist/esm/router/dashboard/[contentType]/[edit]/edit.d.ts.map +1 -1
- package/dist/esm/router/dashboard/[contentType]/[edit]/edit.js +10 -1
- package/dist/esm/router/dashboard/[contentType]/[edit]/edit.js.map +1 -1
- package/dist/esm/router/dashboard/debugging/api-routes/ApiTest.d.ts.map +1 -1
- package/dist/esm/router/dashboard/debugging/api-routes/ApiTest.js +2 -2
- package/dist/esm/router/dashboard/debugging/api-routes/ApiTest.js.map +1 -1
- package/dist/esm/router/dashboard/debugging/api-routes/JsonViewer.d.ts +5 -0
- package/dist/esm/router/dashboard/debugging/api-routes/JsonViewer.d.ts.map +1 -0
- package/dist/esm/router/dashboard/debugging/api-routes/JsonViewer.js +14 -0
- package/dist/esm/router/dashboard/debugging/api-routes/JsonViewer.js.map +1 -0
- package/dist/esm/router/dashboard/debugging/api-routes/SchemaViewer.d.ts.map +1 -1
- package/dist/esm/router/dashboard/debugging/api-routes/SchemaViewer.js +42 -28
- package/dist/esm/router/dashboard/debugging/api-routes/SchemaViewer.js.map +1 -1
- package/dist/esm/router/dashboard/debugging/api-routes/test.d.ts.map +1 -1
- package/dist/esm/router/dashboard/debugging/api-routes/test.js +6 -5
- package/dist/esm/router/dashboard/debugging/api-routes/test.js.map +1 -1
- package/dist/esm/router/dashboard/seo/index.d.ts +2 -0
- package/dist/esm/router/dashboard/seo/index.d.ts.map +1 -0
- package/dist/esm/router/dashboard/seo/index.js +2 -0
- package/dist/esm/router/dashboard/seo/index.js.map +1 -0
- package/dist/esm/router/dashboard/seo/screen.d.ts +6 -0
- package/dist/esm/router/dashboard/seo/screen.d.ts.map +1 -0
- package/dist/esm/router/dashboard/seo/screen.js +212 -0
- package/dist/esm/router/dashboard/seo/screen.js.map +1 -0
- package/dist/esm/router/dashboard/seo/site-analysis.d.ts +40 -0
- package/dist/esm/router/dashboard/seo/site-analysis.d.ts.map +1 -0
- package/dist/esm/router/dashboard/seo/site-analysis.js +148 -0
- package/dist/esm/router/dashboard/seo/site-analysis.js.map +1 -0
- package/dist/esm/router/shared/route-definitions.d.ts +4 -2
- package/dist/esm/router/shared/route-definitions.d.ts.map +1 -1
- package/dist/esm/router/shared/route-list.d.ts +1 -1
- package/dist/esm/router/shared/route-list.d.ts.map +1 -1
- package/dist/esm/router/shared/route-list.js +8 -0
- package/dist/esm/router/shared/route-list.js.map +1 -1
- package/dist/esm/router/shared/types.d.ts +2 -0
- package/dist/esm/router/shared/types.d.ts.map +1 -1
- package/dist/styles.css +237 -6
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- 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.
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
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,204 @@ 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, highlights duplicates and incomplete custom Open Graph data,
|
|
185
|
+
and stores every run so its score can be followed over time. Access and report
|
|
186
|
+
creation reuse the `SeoSettings` read and own permissions. Evolution snapshots
|
|
187
|
+
and recent page reports are fetched and displayed in bounded, paginated groups.
|
|
188
|
+
|
|
136
189
|
## 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
|
-
```
|
|
190
|
+
|
|
191
|
+
Import the package stylesheet once:
|
|
192
|
+
|
|
193
|
+
```ts
|
|
194
|
+
import "@rakun-kit/manager-react/styles.css";
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
## Manager languages
|
|
198
|
+
|
|
199
|
+
English and the locale runtime are built into this package. Extra translations
|
|
200
|
+
ship from a separate package:
|
|
201
|
+
|
|
202
|
+
```sh
|
|
203
|
+
bun add @rakun-kit/manager-locales
|
|
204
|
+
# or: npm install @rakun-kit/manager-locales
|
|
205
|
+
```
|
|
206
|
+
|
|
207
|
+
Import only the locale needed by the server bootstrap:
|
|
208
|
+
|
|
209
|
+
```ts
|
|
210
|
+
import { esManagerLocalePack } from '@rakun-kit/manager-locales/es'
|
|
211
|
+
|
|
212
|
+
rakunBootstrap({
|
|
213
|
+
// ...
|
|
214
|
+
managerLanguages: [esManagerLocalePack],
|
|
215
|
+
})
|
|
216
|
+
```
|
|
217
|
+
|
|
218
|
+
Each language has an independent subpath, so application bundlers only include
|
|
219
|
+
the locales explicitly imported by the host.
|
|
220
|
+
|
|
221
|
+
Content-type titles and categories can use project-defined message keys without
|
|
222
|
+
adding them to the built-in `ManagerMessageKey` union. Add an English partial
|
|
223
|
+
pack and extend installed locales through `managerLanguages`:
|
|
224
|
+
|
|
225
|
+
```ts
|
|
226
|
+
import { extendManagerLanguagePack } from '@rakun-kit/core/contracts'
|
|
227
|
+
import { esManagerLocalePack } from '@rakun-kit/manager-locales/es'
|
|
228
|
+
|
|
229
|
+
const managerLanguages = [
|
|
230
|
+
{
|
|
231
|
+
code: 'en',
|
|
232
|
+
name: 'English',
|
|
233
|
+
messages: {
|
|
234
|
+
'field.title': 'Title',
|
|
235
|
+
'layoutModule.header': 'Header',
|
|
236
|
+
'project.contentTypes.article.menu': 'Articles',
|
|
237
|
+
},
|
|
238
|
+
},
|
|
239
|
+
extendManagerLanguagePack(esManagerLocalePack, {
|
|
240
|
+
'field.title': 'Título',
|
|
241
|
+
'layoutModule.header': 'Cabecera',
|
|
242
|
+
'project.contentTypes.article.menu': 'Artículos',
|
|
243
|
+
}),
|
|
244
|
+
]
|
|
245
|
+
```
|
|
246
|
+
|
|
247
|
+
Then set `menu.title` or `menu.category` to that arbitrary key. Project keys are
|
|
248
|
+
resolved at runtime but remain outside the static manager catalog.
|
|
249
|
+
|
|
250
|
+
Field labels use the dynamic `field.<fieldName>` namespace. A content-type field
|
|
251
|
+
named `title`, for example, automatically resolves `field.title` in edit forms
|
|
252
|
+
and list columns without adding it to `ManagerMessageKey`.
|
|
253
|
+
|
|
254
|
+
Layout module labels follow `layoutModule.<layoutKey>`. For example, the
|
|
255
|
+
`header` slot automatically resolves `layoutModule.header` in its tab and
|
|
256
|
+
configuration panel.
|
|
257
|
+
|
|
258
|
+
## Event Logs
|
|
259
|
+
|
|
260
|
+
Settings → Logs displays the persistent Rakun event stream through the native
|
|
261
|
+
`manager.logs.list` operation. The screen supports filters, cursor pagination,
|
|
262
|
+
and structured event details. Both the settings card and the operation require
|
|
263
|
+
the `system.eventLog.read` permission, which can be assigned from Settings →
|
|
264
|
+
User Roles.
|
|
265
|
+
|
|
266
|
+
## Manager Plugins
|
|
267
|
+
|
|
268
|
+
Manager plugins run inside the normal providers and can add dashboard routes,
|
|
269
|
+
sidebar items, and custom field editors:
|
|
270
|
+
|
|
271
|
+
```tsx
|
|
272
|
+
import {
|
|
273
|
+
defineRakunManagerPlugin,
|
|
274
|
+
ManagerBrowserApp,
|
|
275
|
+
} from '@rakun-kit/manager-react'
|
|
276
|
+
|
|
277
|
+
const analyticsManagerPlugin = defineRakunManagerPlugin({
|
|
278
|
+
id: '@acme/rakun-analytics',
|
|
279
|
+
routes: [{
|
|
280
|
+
id: 'dashboard',
|
|
281
|
+
path: '/analytics',
|
|
282
|
+
component: AnalyticsScreen,
|
|
283
|
+
permissions: ['plugin.analytics.view'],
|
|
284
|
+
}],
|
|
285
|
+
sidebar: [{
|
|
286
|
+
id: 'analytics',
|
|
287
|
+
title: 'Analytics',
|
|
288
|
+
routeId: 'dashboard',
|
|
289
|
+
position: 'primary',
|
|
290
|
+
group: 'Plugins',
|
|
291
|
+
}],
|
|
292
|
+
fieldEditors: {
|
|
293
|
+
'@acme/rakun-analytics.query': QueryEditor,
|
|
294
|
+
},
|
|
295
|
+
})
|
|
296
|
+
|
|
297
|
+
<ManagerBrowserApp plugins={[analyticsManagerPlugin]} {...props} />
|
|
298
|
+
```
|
|
299
|
+
|
|
300
|
+
Use `ManagerFieldEditorProps`, `ManagerFieldEditorRef`, and
|
|
301
|
+
`useManagerFieldValue` from `@rakun-kit/manager-react/plugins` when implementing
|
|
302
|
+
field editors. Next.js applications should import plugin objects inside a
|
|
303
|
+
`'use client'` wrapper around `RakunManagerClientPage`; `RakunManagerPage` accepts
|
|
304
|
+
that wrapper through `managerComponent`.
|
|
305
|
+
|
|
306
|
+
### Extending the RichText editor
|
|
307
|
+
|
|
308
|
+
Manager plugins can register Lexical nodes and React plugins for every
|
|
309
|
+
`RichText` field, including fields rendered inside relations, blocks, and
|
|
310
|
+
modules:
|
|
311
|
+
|
|
312
|
+
```tsx
|
|
313
|
+
'use client'
|
|
314
|
+
|
|
315
|
+
import { useLexicalComposerContext } from '@lexical/react/LexicalComposerContext'
|
|
316
|
+
import {
|
|
317
|
+
defineRakunManagerPlugin,
|
|
318
|
+
type ManagerRichTextPluginProps,
|
|
319
|
+
} from '@rakun-kit/manager-react/plugins'
|
|
320
|
+
import { MentionNode } from './MentionNode'
|
|
321
|
+
|
|
322
|
+
const MentionsPlugin = ({ id }: ManagerRichTextPluginProps) => {
|
|
323
|
+
const [editor] = useLexicalComposerContext()
|
|
324
|
+
|
|
325
|
+
// Register commands and listeners on `editor` here.
|
|
326
|
+
return null
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
export const mentionsManagerPlugin = defineRakunManagerPlugin({
|
|
330
|
+
id: '@acme/rakun-mentions',
|
|
331
|
+
richText: {
|
|
332
|
+
nodes: [MentionNode],
|
|
333
|
+
plugins: [
|
|
334
|
+
{
|
|
335
|
+
id: '@acme/rakun-mentions.plugin',
|
|
336
|
+
component: MentionsPlugin,
|
|
337
|
+
placement: 'editor',
|
|
338
|
+
},
|
|
339
|
+
],
|
|
340
|
+
},
|
|
341
|
+
})
|
|
342
|
+
```
|
|
343
|
+
|
|
344
|
+
Lexical plugin components receive `ManagerRichTextPluginProps` (the field id,
|
|
345
|
+
configuration, current content type, and related field metadata) and render
|
|
346
|
+
inside `LexicalComposer`, so they can use the normal Lexical React hooks.
|
|
347
|
+
Supported placements are `toolbar`, `block-format`, `editor` (the default),
|
|
348
|
+
`actions-start`, and `actions-end`. `block-format` components render inside the
|
|
349
|
+
manager's block selector and can use `ManagerRichTextBlockFormatItem` from
|
|
350
|
+
`@rakun-kit/manager-react/rich-text`. Contributions keep declaration order
|
|
351
|
+
unless an explicit `order` is provided. Node types and plugin ids must be unique;
|
|
352
|
+
conflicts report both plugin owners. Node replacements use Lexical's standard
|
|
353
|
+
`LexicalNodeReplacement` configuration.
|
|
354
|
+
|
|
355
|
+
## Exports
|
|
356
|
+
|
|
357
|
+
- `@rakun-kit/manager-react`: manager app, providers, clients, navigation, router, layout, media, and state helpers.
|
|
358
|
+
- `@rakun-kit/manager-react/client/http`: HTTP manager client.
|
|
359
|
+
- `@rakun-kit/manager-react/client/request`: transport-agnostic manager client.
|
|
360
|
+
- `@rakun-kit/manager-react/client/trpc`: tRPC proxy client adapter.
|
|
361
|
+
- `@rakun-kit/manager-react/app/runtime-app`: `ManagerRuntimeApp`, `ManagerBrowserApp`.
|
|
362
|
+
- `@rakun-kit/manager-react/state/navigation`: navigation helpers and provider.
|
|
363
|
+
- `@rakun-kit/manager-react/link`: link component provider.
|
|
364
|
+
- `@rakun-kit/manager-react/i18n`: locale runtime, catalog, and locale types.
|
|
365
|
+
- `@rakun-kit/manager-react/styles.css`: bundled manager styles.
|
|
366
|
+
|
|
367
|
+
## Build
|
|
368
|
+
|
|
369
|
+
```sh
|
|
370
|
+
bun run build --workspace @rakun-kit/manager-react
|
|
371
|
+
```
|
|
@@ -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 }),
|