@rakun-kit/manager-react 1.5.8 → 1.5.9

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 (40) hide show
  1. package/README.md +300 -296
  2. package/dist/cjs/components/editor/themes/editor-theme.css +91 -91
  3. package/dist/cjs/components/ui/sortable.js +4 -4
  4. package/dist/cjs/router/dashboard/[contentType]/[edit]/ContentTypeEdit.js +6 -2
  5. package/dist/cjs/router/dashboard/[contentType]/[edit]/ContentTypeEdit.js.map +1 -1
  6. package/dist/cjs/router/dashboard/[contentType]/[edit]/_components/EditTabPanels.js +1 -1
  7. package/dist/cjs/router/dashboard/[contentType]/[edit]/_components/EditTabPanels.js.map +1 -1
  8. package/dist/cjs/router/dashboard/[contentType]/[edit]/_fields/RelationField/NewRelation.js +1 -1
  9. package/dist/cjs/router/dashboard/[contentType]/[edit]/_fields/RelationField/NewRelation.js.map +1 -1
  10. package/dist/cjs/router/dashboard/[contentType]/[edit]/_fields/RelationField/index.js.map +1 -1
  11. package/dist/cjs/router/dashboard/[contentType]/[edit]/_fields/seoBindings.js +36 -0
  12. package/dist/cjs/router/dashboard/[contentType]/[edit]/_fields/seoBindings.js.map +1 -0
  13. package/dist/cjs/state/theme-script.js +12 -12
  14. package/dist/docs/index.md +197 -191
  15. package/dist/esm/components/editor/themes/editor-theme.css +91 -91
  16. package/dist/esm/components/ui/sortable.js +4 -4
  17. package/dist/esm/i18n/useTranslations.d.ts.map +1 -1
  18. package/dist/esm/router/dashboard/[contentType]/[edit]/ContentTypeEdit.d.ts +2 -0
  19. package/dist/esm/router/dashboard/[contentType]/[edit]/ContentTypeEdit.d.ts.map +1 -1
  20. package/dist/esm/router/dashboard/[contentType]/[edit]/ContentTypeEdit.js +6 -2
  21. package/dist/esm/router/dashboard/[contentType]/[edit]/ContentTypeEdit.js.map +1 -1
  22. package/dist/esm/router/dashboard/[contentType]/[edit]/_components/EditTabPanels.d.ts.map +1 -1
  23. package/dist/esm/router/dashboard/[contentType]/[edit]/_components/EditTabPanels.js +1 -1
  24. package/dist/esm/router/dashboard/[contentType]/[edit]/_components/EditTabPanels.js.map +1 -1
  25. package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/RelationField/NewRelation.d.ts.map +1 -1
  26. package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/RelationField/NewRelation.js +1 -1
  27. package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/RelationField/NewRelation.js.map +1 -1
  28. package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/RelationField/index.d.ts +1 -0
  29. package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/RelationField/index.d.ts.map +1 -1
  30. package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/RelationField/index.js.map +1 -1
  31. package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/seoBindings.d.ts +6 -0
  32. package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/seoBindings.d.ts.map +1 -0
  33. package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/seoBindings.js +32 -0
  34. package/dist/esm/router/dashboard/[contentType]/[edit]/_fields/seoBindings.js.map +1 -0
  35. package/dist/esm/router/dashboard/[contentType]/[edit]/_hooks/useRouteLayoutData.d.ts.map +1 -1
  36. package/dist/esm/state/theme-script.js +12 -12
  37. package/dist/styles.css +7 -7
  38. package/dist/styles.css.d.ts +3 -3
  39. package/dist/tsconfig.build.tsbuildinfo +1 -1
  40. package/package.json +217 -217
package/README.md CHANGED
@@ -1,298 +1,302 @@
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. 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
114
114
  that nested editor resolve against the parent source item.
115
115
 
116
- ## Styles
117
-
118
- Import the package stylesheet once:
119
-
120
- ```ts
121
- import "@rakun-kit/manager-react/styles.css";
122
- ```
123
-
124
- ## Manager languages
125
-
126
- English and the locale runtime are built into this package. Extra translations
127
- ship from a separate package:
128
-
129
- ```sh
130
- bun add @rakun-kit/manager-locales
131
- # or: npm install @rakun-kit/manager-locales
132
- ```
133
-
134
- Import only the locale needed by the server bootstrap:
135
-
136
- ```ts
137
- import { esManagerLocalePack } from '@rakun-kit/manager-locales/es'
138
-
139
- rakunBootstrap({
140
- // ...
141
- managerLanguages: [esManagerLocalePack],
142
- })
143
- ```
144
-
145
- Each language has an independent subpath, so application bundlers only include
146
- the locales explicitly imported by the host.
147
-
148
- Content-type titles and categories can use project-defined message keys without
149
- adding them to the built-in `ManagerMessageKey` union. Add an English partial
150
- pack and extend installed locales through `managerLanguages`:
151
-
152
- ```ts
153
- import { extendManagerLanguagePack } from '@rakun-kit/core/contracts'
154
- import { esManagerLocalePack } from '@rakun-kit/manager-locales/es'
155
-
156
- const managerLanguages = [
157
- {
158
- code: 'en',
159
- name: 'English',
160
- messages: {
161
- 'field.title': 'Title',
162
- 'layoutModule.header': 'Header',
163
- 'project.contentTypes.article.menu': 'Articles',
164
- },
165
- },
166
- extendManagerLanguagePack(esManagerLocalePack, {
167
- 'field.title': 'Título',
168
- 'layoutModule.header': 'Cabecera',
169
- 'project.contentTypes.article.menu': 'Artículos',
170
- }),
171
- ]
172
- ```
173
-
174
- Then set `menu.title` or `menu.category` to that arbitrary key. Project keys are
175
- resolved at runtime but remain outside the static manager catalog.
176
-
177
- Field labels use the dynamic `field.<fieldName>` namespace. A content-type field
178
- named `title`, for example, automatically resolves `field.title` in edit forms
179
- and list columns without adding it to `ManagerMessageKey`.
180
-
181
- Layout module labels follow `layoutModule.<layoutKey>`. For example, the
182
- `header` slot automatically resolves `layoutModule.header` in its tab and
183
- configuration panel.
184
-
185
- ## Event Logs
186
-
187
- Settings → Logs displays the persistent Rakun event stream through the native
188
- `manager.logs.list` operation. The screen supports filters, cursor pagination,
189
- and structured event details. Both the settings card and the operation require
190
- the `system.eventLog.read` permission, which can be assigned from Settings →
191
- User Roles.
192
-
193
- ## Manager Plugins
194
-
195
- Manager plugins run inside the normal providers and can add dashboard routes,
196
- sidebar items, and custom field editors:
197
-
198
- ```tsx
199
- import {
200
- defineRakunManagerPlugin,
201
- ManagerBrowserApp,
202
- } from '@rakun-kit/manager-react'
203
-
204
- const analyticsManagerPlugin = defineRakunManagerPlugin({
205
- id: '@acme/rakun-analytics',
206
- routes: [{
207
- id: 'dashboard',
208
- path: '/analytics',
209
- component: AnalyticsScreen,
210
- permissions: ['plugin.analytics.view'],
211
- }],
212
- sidebar: [{
213
- id: 'analytics',
214
- title: 'Analytics',
215
- routeId: 'dashboard',
216
- position: 'primary',
217
- group: 'Plugins',
218
- }],
219
- fieldEditors: {
220
- '@acme/rakun-analytics.query': QueryEditor,
221
- },
222
- })
223
-
224
- <ManagerBrowserApp plugins={[analyticsManagerPlugin]} {...props} />
225
- ```
226
-
227
- Use `ManagerFieldEditorProps`, `ManagerFieldEditorRef`, and
228
- `useManagerFieldValue` from `@rakun-kit/manager-react/plugins` when implementing
229
- field editors. Next.js applications should import plugin objects inside a
230
- `'use client'` wrapper around `RakunManagerClientPage`; `RakunManagerPage` accepts
231
- that wrapper through `managerComponent`.
232
-
233
- ### Extending the RichText editor
234
-
235
- Manager plugins can register Lexical nodes and React plugins for every
236
- `RichText` field, including fields rendered inside relations, blocks, and
237
- modules:
238
-
239
- ```tsx
240
- 'use client'
241
-
242
- import { useLexicalComposerContext } from '@lexical/react/LexicalComposerContext'
243
- import {
244
- defineRakunManagerPlugin,
245
- type ManagerRichTextPluginProps,
246
- } from '@rakun-kit/manager-react/plugins'
247
- import { MentionNode } from './MentionNode'
248
-
249
- const MentionsPlugin = ({ id }: ManagerRichTextPluginProps) => {
250
- const [editor] = useLexicalComposerContext()
251
-
252
- // Register commands and listeners on `editor` here.
253
- return null
254
- }
255
-
256
- export const mentionsManagerPlugin = defineRakunManagerPlugin({
257
- id: '@acme/rakun-mentions',
258
- richText: {
259
- nodes: [MentionNode],
260
- plugins: [
261
- {
262
- id: '@acme/rakun-mentions.plugin',
263
- component: MentionsPlugin,
264
- placement: 'editor',
265
- },
266
- ],
267
- },
268
- })
269
- ```
270
-
271
- Lexical plugin components receive `ManagerRichTextPluginProps` (the field id,
272
- configuration, current content type, and related field metadata) and render
273
- inside `LexicalComposer`, so they can use the normal Lexical React hooks.
274
- Supported placements are `toolbar`, `block-format`, `editor` (the default),
275
- `actions-start`, and `actions-end`. `block-format` components render inside the
276
- manager's block selector and can use `ManagerRichTextBlockFormatItem` from
277
- `@rakun-kit/manager-react/rich-text`. Contributions keep declaration order
278
- unless an explicit `order` is provided. Node types and plugin ids must be unique;
279
- conflicts report both plugin owners. Node replacements use Lexical's standard
280
- `LexicalNodeReplacement` configuration.
281
-
282
- ## Exports
283
-
284
- - `@rakun-kit/manager-react`: manager app, providers, clients, navigation, router, layout, media, and state helpers.
285
- - `@rakun-kit/manager-react/client/http`: HTTP manager client.
286
- - `@rakun-kit/manager-react/client/request`: transport-agnostic manager client.
287
- - `@rakun-kit/manager-react/client/trpc`: tRPC proxy client adapter.
288
- - `@rakun-kit/manager-react/app/runtime-app`: `ManagerRuntimeApp`, `ManagerBrowserApp`.
289
- - `@rakun-kit/manager-react/state/navigation`: navigation helpers and provider.
290
- - `@rakun-kit/manager-react/link`: link component provider.
291
- - `@rakun-kit/manager-react/i18n`: locale runtime, catalog, and locale types.
292
- - `@rakun-kit/manager-react/styles.css`: bundled manager styles.
293
-
294
- ## Build
295
-
296
- ```sh
297
- bun run build --workspace @rakun-kit/manager-react
298
- ```
116
+ SEO field mappings can use compatible fields from the full current document.
117
+ New documents also honor core string-field `.seo('<seoField>')` configuration
118
+ as an editable initial dynamic data binding.
119
+
120
+ ## Styles
121
+
122
+ Import the package stylesheet once:
123
+
124
+ ```ts
125
+ import "@rakun-kit/manager-react/styles.css";
126
+ ```
127
+
128
+ ## Manager languages
129
+
130
+ English and the locale runtime are built into this package. Extra translations
131
+ ship from a separate package:
132
+
133
+ ```sh
134
+ bun add @rakun-kit/manager-locales
135
+ # or: npm install @rakun-kit/manager-locales
136
+ ```
137
+
138
+ Import only the locale needed by the server bootstrap:
139
+
140
+ ```ts
141
+ import { esManagerLocalePack } from '@rakun-kit/manager-locales/es'
142
+
143
+ rakunBootstrap({
144
+ // ...
145
+ managerLanguages: [esManagerLocalePack],
146
+ })
147
+ ```
148
+
149
+ Each language has an independent subpath, so application bundlers only include
150
+ the locales explicitly imported by the host.
151
+
152
+ Content-type titles and categories can use project-defined message keys without
153
+ adding them to the built-in `ManagerMessageKey` union. Add an English partial
154
+ pack and extend installed locales through `managerLanguages`:
155
+
156
+ ```ts
157
+ import { extendManagerLanguagePack } from '@rakun-kit/core/contracts'
158
+ import { esManagerLocalePack } from '@rakun-kit/manager-locales/es'
159
+
160
+ const managerLanguages = [
161
+ {
162
+ code: 'en',
163
+ name: 'English',
164
+ messages: {
165
+ 'field.title': 'Title',
166
+ 'layoutModule.header': 'Header',
167
+ 'project.contentTypes.article.menu': 'Articles',
168
+ },
169
+ },
170
+ extendManagerLanguagePack(esManagerLocalePack, {
171
+ 'field.title': 'Título',
172
+ 'layoutModule.header': 'Cabecera',
173
+ 'project.contentTypes.article.menu': 'Artículos',
174
+ }),
175
+ ]
176
+ ```
177
+
178
+ Then set `menu.title` or `menu.category` to that arbitrary key. Project keys are
179
+ resolved at runtime but remain outside the static manager catalog.
180
+
181
+ Field labels use the dynamic `field.<fieldName>` namespace. A content-type field
182
+ named `title`, for example, automatically resolves `field.title` in edit forms
183
+ and list columns without adding it to `ManagerMessageKey`.
184
+
185
+ Layout module labels follow `layoutModule.<layoutKey>`. For example, the
186
+ `header` slot automatically resolves `layoutModule.header` in its tab and
187
+ configuration panel.
188
+
189
+ ## Event Logs
190
+
191
+ Settings → Logs displays the persistent Rakun event stream through the native
192
+ `manager.logs.list` operation. The screen supports filters, cursor pagination,
193
+ and structured event details. Both the settings card and the operation require
194
+ the `system.eventLog.read` permission, which can be assigned from Settings →
195
+ User Roles.
196
+
197
+ ## Manager Plugins
198
+
199
+ Manager plugins run inside the normal providers and can add dashboard routes,
200
+ sidebar items, and custom field editors:
201
+
202
+ ```tsx
203
+ import {
204
+ defineRakunManagerPlugin,
205
+ ManagerBrowserApp,
206
+ } from '@rakun-kit/manager-react'
207
+
208
+ const analyticsManagerPlugin = defineRakunManagerPlugin({
209
+ id: '@acme/rakun-analytics',
210
+ routes: [{
211
+ id: 'dashboard',
212
+ path: '/analytics',
213
+ component: AnalyticsScreen,
214
+ permissions: ['plugin.analytics.view'],
215
+ }],
216
+ sidebar: [{
217
+ id: 'analytics',
218
+ title: 'Analytics',
219
+ routeId: 'dashboard',
220
+ position: 'primary',
221
+ group: 'Plugins',
222
+ }],
223
+ fieldEditors: {
224
+ '@acme/rakun-analytics.query': QueryEditor,
225
+ },
226
+ })
227
+
228
+ <ManagerBrowserApp plugins={[analyticsManagerPlugin]} {...props} />
229
+ ```
230
+
231
+ Use `ManagerFieldEditorProps`, `ManagerFieldEditorRef`, and
232
+ `useManagerFieldValue` from `@rakun-kit/manager-react/plugins` when implementing
233
+ field editors. Next.js applications should import plugin objects inside a
234
+ `'use client'` wrapper around `RakunManagerClientPage`; `RakunManagerPage` accepts
235
+ that wrapper through `managerComponent`.
236
+
237
+ ### Extending the RichText editor
238
+
239
+ Manager plugins can register Lexical nodes and React plugins for every
240
+ `RichText` field, including fields rendered inside relations, blocks, and
241
+ modules:
242
+
243
+ ```tsx
244
+ 'use client'
245
+
246
+ import { useLexicalComposerContext } from '@lexical/react/LexicalComposerContext'
247
+ import {
248
+ defineRakunManagerPlugin,
249
+ type ManagerRichTextPluginProps,
250
+ } from '@rakun-kit/manager-react/plugins'
251
+ import { MentionNode } from './MentionNode'
252
+
253
+ const MentionsPlugin = ({ id }: ManagerRichTextPluginProps) => {
254
+ const [editor] = useLexicalComposerContext()
255
+
256
+ // Register commands and listeners on `editor` here.
257
+ return null
258
+ }
259
+
260
+ export const mentionsManagerPlugin = defineRakunManagerPlugin({
261
+ id: '@acme/rakun-mentions',
262
+ richText: {
263
+ nodes: [MentionNode],
264
+ plugins: [
265
+ {
266
+ id: '@acme/rakun-mentions.plugin',
267
+ component: MentionsPlugin,
268
+ placement: 'editor',
269
+ },
270
+ ],
271
+ },
272
+ })
273
+ ```
274
+
275
+ Lexical plugin components receive `ManagerRichTextPluginProps` (the field id,
276
+ configuration, current content type, and related field metadata) and render
277
+ inside `LexicalComposer`, so they can use the normal Lexical React hooks.
278
+ Supported placements are `toolbar`, `block-format`, `editor` (the default),
279
+ `actions-start`, and `actions-end`. `block-format` components render inside the
280
+ manager's block selector and can use `ManagerRichTextBlockFormatItem` from
281
+ `@rakun-kit/manager-react/rich-text`. Contributions keep declaration order
282
+ unless an explicit `order` is provided. Node types and plugin ids must be unique;
283
+ conflicts report both plugin owners. Node replacements use Lexical's standard
284
+ `LexicalNodeReplacement` configuration.
285
+
286
+ ## Exports
287
+
288
+ - `@rakun-kit/manager-react`: manager app, providers, clients, navigation, router, layout, media, and state helpers.
289
+ - `@rakun-kit/manager-react/client/http`: HTTP manager client.
290
+ - `@rakun-kit/manager-react/client/request`: transport-agnostic manager client.
291
+ - `@rakun-kit/manager-react/client/trpc`: tRPC proxy client adapter.
292
+ - `@rakun-kit/manager-react/app/runtime-app`: `ManagerRuntimeApp`, `ManagerBrowserApp`.
293
+ - `@rakun-kit/manager-react/state/navigation`: navigation helpers and provider.
294
+ - `@rakun-kit/manager-react/link`: link component provider.
295
+ - `@rakun-kit/manager-react/i18n`: locale runtime, catalog, and locale types.
296
+ - `@rakun-kit/manager-react/styles.css`: bundled manager styles.
297
+
298
+ ## Build
299
+
300
+ ```sh
301
+ bun run build --workspace @rakun-kit/manager-react
302
+ ```