@docx-editor.dev/vue 2.35.0-canary.20261104032723.sha-43c2012 → 2.35.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.
@@ -2,30 +2,35 @@
2
2
 
3
3
  # Accept or reject without scrolling
4
4
 
5
- When your own list drives the scroll, open an item with `useReview().setActive(key, { reveal: false })`. The caret moves to the item, and the page stays where it is. Then resolve the item with `accept(item)` or `reject(item)`. Review writes such as accept, reject, and comment never scroll the page.
5
+ Resolve a tracked change from your own list with `useReview().accept(item)` or `reject(item)`. Review writes such as accept, reject, and comment never scroll the page, and they need no prior activation.
6
+
7
+ ## Resolve a change without scrolling
8
+
9
+ The following row opens its item without scrolling and resolves it from two buttons:
6
10
 
7
11
  ```vue
8
12
  <script setup lang="ts">
9
13
  import { useReview, type ReviewItemView } from '@docx-editor.dev/pro/vue';
10
14
 
11
15
  defineProps<{ item: ReviewItemView }>();
12
- const { setActive, accept, reject } = useReview();
16
+ const { setActive, accept, reject, lastRefusal } = useReview();
13
17
  </script>
14
18
 
15
19
  <template>
16
- <li @click="setActive(item.key, { reveal: false })">
17
- {{ item.text }}
18
- <button :disabled="item.readOnly" @click.stop="accept(item)">Accept</button>
19
- <button :disabled="item.readOnly" @click.stop="reject(item)">Reject</button>
20
+ <li>
21
+ <button @click="setActive(item.key, { reveal: false })">{{ item.text }}</button>
22
+ <button :disabled="item.readOnly" @click="accept(item)">Accept</button>
23
+ <button :disabled="item.readOnly" @click="reject(item)">Reject</button>
24
+ <p v-if="lastRefusal?.key === item.key" role="alert">{{ lastRefusal.code }}</p>
20
25
  </li>
21
26
  </template>
22
27
  ```
23
28
 
24
- `accept` and `reject` return `false` when the editor refuses the decision, for example in viewing mode. `useReview()` returns `lastRefusal` as a ref, so read `lastRefusal.value?.code` in script, or `lastRefusal?.code` in the template.
29
+ `accept` and `reject` return `false` when the editor refuses the decision, for example in viewing mode. `lastRefusal` holds the item key and the diagnostic code. In Vue it is a ref, so read `lastRefusal.value?.code` in script.
25
30
 
26
- The buttons stop the click from reaching the row, so a decision does not also activate the item.
31
+ ## Activate without scrolling
27
32
 
28
- `reveal` takes `false` or one of four placements:
33
+ `setActive(key, { reveal: false })` moves the caret to the item and keeps the scroll position. `reveal` takes `false` or one of four placements:
29
34
 
30
35
  | Value | Where the item lands |
31
36
  | --- | --- |
@@ -36,23 +41,14 @@ The buttons stop the click from reaching the row, so a decision does not also ac
36
41
 
37
42
  Add `announce: true` to open the packaged balloon or card for the item.
38
43
 
39
- ## Decide in a headless pipeline
40
-
41
- The editing API has no viewport. Load the revisions and call `Revision.accept()` or `Revision.reject()`.
42
-
43
- ```ts
44
- import { DocxEditor } from '@docx-editor.dev/editor-api';
45
-
46
- const runtime = await DocxEditor.createServer(bytes, { author: 'Review bot' });
47
- await runtime.run(async (context) => {
48
- const revisions = context.document.body.revisions;
49
- revisions.load('items/author');
50
- await context.sync();
51
- for (const revision of revisions.items) {
52
- if (revision.author === 'Review bot') revision.accept();
53
- }
54
- await context.sync();
55
- });
56
- const saved = await runtime.save();
57
- runtime.dispose();
58
- ```
44
+ ## Limits
45
+
46
+ - Disable the decision buttons for items where `item.readOnly` is `true`.
47
+ - If the whole row is clickable, stop button clicks from reaching it, so a decision does not also activate the item.
48
+ - Headless pipelines have no viewport. To decide changes on a server, call `Revision.accept()` or `Revision.reject()`. For more information, see [Tracked changes](https://www.docx-editor.dev/docs/2.x/editor-api/revisions).
49
+
50
+ ## See also
51
+
52
+ - [Tracked changes](https://www.docx-editor.dev/docs/2.x/pro/tracked-changes)
53
+ - [Diagnostics](https://www.docx-editor.dev/docs/2.x/guides/diagnostics)
54
+ - [Custom cards in the review rail](./custom-review-cards.md)
@@ -2,50 +2,67 @@
2
2
 
3
3
  # Comment on found text
4
4
 
5
- In a browser host, find the text with `editor.findMatches`, select the first match with `editor.selectMatch`, and then call `useReview().comment`. The comment is written as the editor's `author`, so set `author` on the editor and add `reviewModule()` to its modules. `selectMatch` opens the header, footer, or note that holds the match, so a match in any story works.
5
+ Find text with `editor.findMatches`, select a match with `editor.selectMatch`, and comment with `useReview().comment`. On a server, search with `body.search` and call `Range.insertComment`.
6
+
7
+ ## Comment on a search result
8
+
9
+ The following button comments on the first whole-word match of a term. The editor needs an `author` and `reviewModule()` in its modules.
6
10
 
7
11
  ```vue
8
12
  <script setup lang="ts">
13
+ import { ref } from 'vue';
9
14
  import { useDocxEditor } from '@docx-editor.dev/vue';
10
15
  import { useReview } from '@docx-editor.dev/pro/vue';
11
16
 
12
17
  const props = defineProps<{ term: string }>();
13
18
  const editor = useDocxEditor();
14
- const { comment } = useReview();
19
+ const { comment, lastRefusal } = useReview();
20
+ const status = ref('');
15
21
  function run() {
16
22
  const [match] = editor.value?.findMatches(props.term, { wholeWord: true }) ?? [];
17
- if (match && editor.value?.selectMatch(match).ok) comment(`Define "${props.term}".`);
23
+ if (!match || !editor.value?.selectMatch(match).ok) {
24
+ status.value = 'No match';
25
+ return;
26
+ }
27
+ if (!comment(`Define "${props.term}".`)) status.value = lastRefusal.value?.code ?? 'Refused';
18
28
  }
19
29
  </script>
20
30
 
21
31
  <template>
22
32
  <button @click="run">Comment on {{ term }}</button>
33
+ <span role="status">{{ status }}</span>
23
34
  </template>
24
35
  ```
25
36
 
26
- `comment` returns `false` when the editor refuses the write. `useReview()` returns `lastRefusal` as a ref, so read `lastRefusal.value?.code` in script, or `lastRefusal?.code` in the template.
37
+ Comment only after `selectMatch(match).ok` is `true`. `selectMatch` opens the header, footer, or note that holds the match. `comment` returns `false` when the editor refuses the write, and `lastRefusal` holds the diagnostic code.
27
38
 
28
- ## Comment in a headless pipeline
39
+ ## Comment on a server
29
40
 
30
- On a server or in an agent pipeline, search the body and call `Range.insertComment`. The runtime writes the comment as its `author` option.
41
+ The following example searches the body, not every story, and saves the result:
31
42
 
32
43
  ```ts
33
44
  import { DocxEditor } from '@docx-editor.dev/editor-api';
34
45
 
35
46
  const runtime = await DocxEditor.createServer(bytes, { author: 'Review bot' });
36
- await runtime.run(async (context) => {
37
- const found = context.document.body.search(term, { matchWholeWord: true });
38
- found.load('items');
39
- await context.sync();
40
- found.items[0]?.insertComment(`Define "${term}".`);
41
- await context.sync();
42
- });
43
- const saved = await runtime.save();
44
- runtime.dispose();
47
+ try {
48
+ await runtime.run(async (context) => {
49
+ const found = context.document.body.search(term, { matchWholeWord: true });
50
+ found.load('items');
51
+ await context.sync();
52
+ if (found.items.length === 0) return;
53
+ found.items[0]!.insertComment(`Define "${term}".`);
54
+ await context.sync();
55
+ });
56
+ const saved = await runtime.save();
57
+ } finally {
58
+ runtime.dispose();
59
+ }
45
60
  ```
46
61
 
47
- Both paths save the same comment markup: the same `w:comment` attributes, the same date format, and the same range markers.
62
+ Load the search results before you read them, and end with `await context.sync()` to send the queued comment. The runtime writes the comment as its `author` option.
48
63
 
49
- ## Reply to a thread
64
+ ## See also
50
65
 
51
- To answer an existing comment, call `useReview().reply(item, text)` in a browser host, or `Comment.reply(text)` in the editing API.
66
+ - [Comments](https://www.docx-editor.dev/docs/2.x/pro/comments)
67
+ - [Diagnostics](https://www.docx-editor.dev/docs/2.x/guides/diagnostics)
68
+ - [Replace as a tracked change](./tracked-replacement.md)
@@ -2,9 +2,11 @@
2
2
 
3
3
  # Custom cards in the review rail
4
4
 
5
- To draw your own cards, render `DocxEditorReview` with `preset` set to `false` and put your card component inside it. Your component reads the items from `useReview()`, measures each card, stacks the cards with `useStackedReviewPositions`, and converts positions to pixels with `useReviewRailMetrics()`.
5
+ Render `DocxEditorReview` with `preset` set to `false` and put your card component inside it. The component reads items from `useReview()`, stacks measured cards with `useStackedReviewPositions`, and converts positions to pixels with `useReviewRailMetrics()`.
6
6
 
7
- Measure every card with a `ResizeObserver` and pass the heights in CSS pixels. Without measured heights, each card reserves only `defaultHeight`, and a taller card overlaps the next one.
7
+ ## Render custom cards
8
+
9
+ The following example measures each card with a `ResizeObserver`, stacks the cards, and shows a refused decision:
8
10
 
9
11
  ```vue
10
12
  <!-- MyCards.vue -->
@@ -17,7 +19,7 @@ import {
17
19
  useStackedReviewPositions,
18
20
  } from '@docx-editor.dev/pro/vue';
19
21
 
20
- const { items, selectionAnchorY, accept } = useReview();
22
+ const { items, selectionAnchorY, accept, lastRefusal } = useReview();
21
23
  const { metrics } = useReviewRailMetrics();
22
24
  // Reactive, so a new measurement restacks the cards.
23
25
  const heights = shallowReactive(new Map<string, number>());
@@ -27,19 +29,20 @@ const positions = useStackedReviewPositions(items, heights, () => ({
27
29
  }));
28
30
  const top = (y: number) => `${metrics.value.top + y * metrics.value.scale}px`;
29
31
 
30
- const observed = new Map<string, { el: Element; observer: ResizeObserver }>();
32
+ const observed = new Map<string, { el: HTMLElement; observer: ResizeObserver }>();
31
33
  function measure(key: string, el: unknown) {
34
+ const node = el as HTMLElement | null;
32
35
  const current = observed.get(key);
33
- if (current?.el === el) return;
36
+ if (current?.el === node) return;
34
37
  current?.observer.disconnect();
35
38
  observed.delete(key);
36
- if (!(el instanceof HTMLElement)) {
39
+ if (!node) {
37
40
  heights.delete(key);
38
41
  return;
39
42
  }
40
- const observer = new ResizeObserver(() => heights.set(key, el.offsetHeight));
41
- observer.observe(el);
42
- observed.set(key, { el, observer });
43
+ const observer = new ResizeObserver(() => heights.set(key, node.offsetHeight));
44
+ observer.observe(node);
45
+ observed.set(key, { el: node, observer });
43
46
  }
44
47
  onBeforeUnmount(() => observed.forEach(({ observer }) => observer.disconnect()));
45
48
  </script>
@@ -53,6 +56,7 @@ onBeforeUnmount(() => observed.forEach(({ observer }) => observer.disconnect()))
53
56
  >
54
57
  {{ item.text }}
55
58
  <button v-if="item.kind === 'revision'" @click="accept(item)">Accept</button>
59
+ <p v-if="lastRefusal?.key === item.key">{{ lastRefusal.code }}</p>
56
60
  </div>
57
61
  <DocxEditorReview.Draft :top="metrics.top + (selectionAnchorY ?? 0) * metrics.scale" />
58
62
  </template>
@@ -73,22 +77,43 @@ import MyCards from './MyCards.vue';
73
77
  </template>
74
78
  ```
75
79
 
76
- A plain `Map` is not reactive, so writes to it would not restack the cards. Use `shallowReactive(new Map())`, or a ref that you replace on each change.
80
+ A plain `Map` is not reactive. Use `shallowReactive(new Map())`, or a ref that you replace on each change.
81
+
82
+ `accept` returns `false` when the editor refuses, and `lastRefusal` names the item and the diagnostic code. `DocxEditorReview` already announces each refusal in a live region, so show it in the card as plain text. For a translated sentence, call `useReviewRefusalMessage()`.
83
+
84
+ ## Position cards and drafts
85
+
86
+ Convert a layout position to CSS pixels with `metrics.top + position * metrics.scale`.
87
+
88
+ | Input to `useStackedReviewPositions` | Description |
89
+ | --- | --- |
90
+ | `heights` | Measured card heights in CSS pixels, by item key. A card without a height reserves `defaultHeight`, and a taller card overlaps the next one. |
91
+ | `scale` | `metrics.scale`, CSS pixels per layout point. |
92
+ | `defaultHeight` | The height to reserve before a card is measured. |
93
+
94
+ `DocxEditorReview.Draft` renders only while a comment draft is open. Without `top`, it takes the packaged stack's position, so pass `top` from your own stack. To keep the box clear of your cards, add an entry at `selectionAnchorY` to the list that you stack, in document order.
77
95
 
78
- ## Root parts and card parts
96
+ ## Place review parts
79
97
 
80
- `DocxEditorReview` finds its parts among its own children by element type.
98
+ `DocxEditorReview` finds its parts among its own children by element type. Fragments are transparent in React and Vue.
81
99
 
82
- - **Root parts** are `List`, `Markers`, `AddComment`, `Draft`, and `Balloon`. Put them as direct children of `DocxEditorReview`. Fragments are transparent in React and in Vue. The rail gives these parts geometry that only it can compute, such as the comment button's `top`. A root part inside your own wrapper component is not a part. It renders as ordinary content, without that wiring.
83
- - **Card parts** are `Card`, `Empty`, and the parts inside a card, such as `Author`, `Summary`, `Accept`, and `Reply`. Put them inside `DocxEditorReview.List`.
100
+ | Part | Placement |
101
+ | --- | --- |
102
+ | `List`, `Markers`, `AddComment`, `Balloon` | Direct children of `DocxEditorReview`. Inside your own wrapper, a part renders as plain content without its geometry. |
103
+ | `Draft` | A direct child, or inside your own card component. Inside a custom stack, pass `top` explicitly. |
104
+ | `Card`, `Empty`, and card parts such as `Author`, `Summary`, `Accept`, and `Reply` | Inside `DocxEditorReview.List`. |
84
105
 
85
- With `preset` set to `false`, the rail adds no defaults. Root parts that you pass keep their wiring. Every other child renders as is inside the rail element, where `useReviewRailMetrics()` reads the rail's own measurement.
106
+ With `preset` set to `false`, the rail adds no defaults, but recognized parts keep their wiring. Other children render inside the rail element.
86
107
 
87
- ## Position the compose box
108
+ ## Limits
88
109
 
89
- `DocxEditorReview.Draft` renders only while a comment draft is open. A draft opens from `DocxEditorReview.AddComment` or from the `review.addComment` toolbar control. You can place `Draft` in either of these places:
110
+ - Disconnect each observer when its card unmounts or its item changes.
111
+ - In React, keep the heights map reference-stable. In Vue, keep it reactive.
112
+ - In the compact rail, `metrics.compact` is `true`. Place cards at `metrics.compactCardLeft`; `Draft` does this itself.
113
+ - Keep the column hidden while `metrics.left` is `null`.
90
114
 
91
- - As a direct child of `DocxEditorReview`.
92
- - Inside your own card component, as in the example. It still renders only while the draft is open.
115
+ ## See also
93
116
 
94
- Without `top`, the box sits where the packaged card stack puts it. That position comes from the packaged cards, not yours, so when you render your own cards, pass `top` from your own stack. In the narrow compact rail, the box takes the compact card's `left` in both cases, so it does not overflow the marker strip. The example places the box at the selection's anchor. To keep it clear of your cards, add an entry with the key of your choice and the anchor `selectionAnchorY` to the list that you pass to `useStackedReviewPositions`, in document order.
117
+ - [Review cards](https://www.docx-editor.dev/docs/2.x/customization/review-cards)
118
+ - [Tracked changes](https://www.docx-editor.dev/docs/2.x/pro/tracked-changes)
119
+ - [Accept or reject without scrolling](./accept-reject-without-scrolling.md)
@@ -2,13 +2,18 @@
2
2
 
3
3
  # Highlight ranges
4
4
 
5
- Use `useHighlights(name, source, options)` to mark text as a named set while a component is mounted. A function source runs again after document changes, so the marks follow the text. Highlights are view state. They do not change the document and are not saved.
5
+ Call `useHighlights(name, source, options)` to mark text as a named set while a component is mounted. Highlights are local view state. They do not change the document and are not saved.
6
+
7
+ ## Highlight matching text
8
+
9
+ The following component marks each whole-word match of a list of terms. Style the `glossary-term` class with your own CSS, or omit `className` for the default fill.
6
10
 
7
11
  ```vue
8
12
  <script setup lang="ts">
9
13
  import { useHighlights, type Editor } from '@docx-editor.dev/vue';
10
14
 
11
15
  const props = defineProps<{ terms: readonly string[] }>();
16
+ // A source that reads props or refs runs again when they change.
12
17
  const result = useHighlights(
13
18
  'glossary',
14
19
  (editor: Editor) => editor.findMatches(props.terms, { wholeWord: true }).flat(),
@@ -21,8 +26,24 @@ const result = useHighlights(
21
26
  </template>
22
27
  ```
23
28
 
24
- A function source that reads props or refs runs again when they change.
29
+ A function source runs again after each document change, so the marks follow the text. The set is removed when the component unmounts.
30
+
31
+ ## Configure a highlight set
32
+
33
+ | Argument or field | Description |
34
+ | --- | --- |
35
+ | `name` | The set name. Two sets with the same name replace each other's ranges. |
36
+ | `source` | The ranges, or a function of the editor that returns them. |
37
+ | `options.className` | CSS classes added to every mark of the set. |
38
+ | `options.activeIndex` | The range to show in the active color, such as the current result of your own search list. |
39
+ | `applied` | The number of ranges that resolve and paint. |
40
+
41
+ ## Use highlights outside components
42
+
43
+ Call `watchHighlights(editor, name, source, options)` from `@docx-editor.dev/core/editor` to follow document changes. Call `stop()` on the returned watch to remove the set and stop watching. For a fixed set that does not refresh, call `editor.setHighlights`.
25
44
 
26
- Use a unique `name` for each set. Two calls with the same name replace each other's ranges. Set `activeIndex` in the options to show one range in the active color, for example the current result of your own search list.
45
+ ## See also
27
46
 
28
- Outside a component, call `watchHighlights(editor, name, source, options)` from `@docx-editor.dev/core/editor`, or `editor.setHighlights` for a fixed set.
47
+ - [Highlight text ranges](https://www.docx-editor.dev/docs/2.x/guides/navigation#highlight-text-ranges)
48
+ - [React hooks](https://www.docx-editor.dev/docs/2.x/react/hooks#usehighlights)
49
+ - [Vue composables](https://www.docx-editor.dev/docs/2.x/vue/composables#usehighlights)
package/docs/index.md CHANGED
@@ -1,36 +1,36 @@
1
1
  <!-- Generated from docs/site/content/recipes by scripts/sync-agent-docs.mjs. Edit the source and run `bun run docs:agent`. -->
2
2
 
3
- # Which API for which job
3
+ # Task recipes
4
4
 
5
- The library has two ways to change a document. Each one fits a different host. Choose the path first, then use the symbol for your task.
5
+ Each recipe solves one task with a complete code sample. Choose the API first, then find the symbol for your task.
6
6
 
7
- | Job | Use |
8
- | --- | --- |
9
- | Build a review UI in the browser | The React or Vue adapter hooks, plus the review hooks and `DocxEditorReview` from `@docx-editor.dev/pro/react` or `@docx-editor.dev/pro/vue`. |
10
- | Edit in a headless, server, or agent pipeline | The editing API in `@docx-editor.dev/editor-api`, which follows the Office.js object model. |
7
+ ## Which API for which job
11
8
 
12
- | Task | Browser host (React or Vue) | Headless, server, or agent |
9
+ Use the React or Vue adapter hooks, the review hooks, and `DocxEditorReview` from `@docx-editor.dev/pro/react` or `@docx-editor.dev/pro/vue` to build browser review controls. Use the editing API in `@docx-editor.dev/editor-api` for document automation. It follows the Office.js object model and runs in browser and server hosts.
10
+
11
+ | Task | Browser controls (React or Vue) | Document automation |
13
12
  | --- | --- | --- |
14
13
  | [Comment on found text](./comment-on-found-text.md) | `editor.findMatches`, `editor.selectMatch`, then `useReview().comment` | `body.search`, then `Range.insertComment` |
15
- | Reply to a thread | `useReview().reply(item, text)` | `Comment.reply(text)` |
14
+ | [Reply to a thread](https://www.docx-editor.dev/docs/2.x/pro/comments) | `useReview().reply(item, text)` | `Comment.reply(text)` |
16
15
  | [Record a tracked replacement](./tracked-replacement.md) | Suggesting mode, then `editor.exec({ type: 'replaceMatch', match, text })` | `document.changeTrackingMode = 'TrackMineOnly'`, then `Range.insertText(text, 'Replace')` |
17
- | [Propose an AI rewrite as tracked changes](./propose-rewrite.md) | The same code through `DocxEditor.createBrowser` from `@docx-editor.dev/editor-api/browser` | `prepareRewrite` from `@docx-editor.dev/editor-api/agent` |
16
+ | [Propose an AI rewrite as tracked changes](./propose-rewrite.md) | `prepareRewrite` through `DocxEditor.createBrowser` | `prepareRewrite` from `@docx-editor.dev/editor-api/agent` |
18
17
  | [Accept or reject a change](./accept-reject-without-scrolling.md) | `useReview().accept(item)` or `useReview().reject(item)` | `Revision.accept()` or `Revision.reject()` |
19
- | [Open or reveal a change without scrolling](./accept-reject-without-scrolling.md) | `useReview().setActive(key, { reveal: false })` | Not applicable: no viewport |
18
+ | [Open a change without scrolling](./accept-reject-without-scrolling.md) | `useReview().setActive(key, { reveal: false })` | Not applicable: no viewport |
20
19
  | [Highlight ranges](./highlight-ranges.md) | `useHighlights(name, source, options)` | Not applicable |
21
- | [Custom review rail cards](./custom-review-cards.md) | `DocxEditorReview` with `preset` set to `false`, `useReview().items`, `useStackedReviewPositions`, and `useReviewRailMetrics` | Not applicable |
20
+ | [Custom review rail cards](./custom-review-cards.md) | `DocxEditorReview` with `preset` set to `false`, `useStackedReviewPositions`, and `useReviewRailMetrics` | Not applicable |
22
21
  | Comment-on-selection button | `DocxEditorReview.AddComment` as a direct child of `DocxEditorReview`, or `useEditorCommand('review.addComment')` | Not applicable |
23
- | Page setup and paragraph dialogs from a custom toolbar | `DocxEditor.PageSetupDialog` or `DocxEditor.ParagraphDialog` with `open` and a close handler (`onClose` in React, `@close` in Vue); enable the button from `usePageSetup().isEnabled` or `useParagraphFormat().isEnabled` | `Section.pageSetup`, and `Paragraph` properties such as `alignment` |
22
+ | [Page setup and paragraph dialogs](https://www.docx-editor.dev/docs/2.x/customization/dialogs) | `DocxEditor.PageSetupDialog` or `DocxEditor.ParagraphDialog` | `Section.pageSetup`, and `Paragraph` properties such as `alignment` |
24
23
 
25
- The review hooks need `reviewModule()` from `@docx-editor.dev/pro` in the editor's modules, and an editor `author` for comments and tracked changes. The editing API takes its author from the `author` option of `DocxEditor.createServer`, imported from `@docx-editor.dev/editor-api`, or of `DocxEditor.createBrowser`, imported from `@docx-editor.dev/editor-api/browser`.
24
+ ## Check prerequisites
26
25
 
27
- ## Recipes
26
+ - The review hooks need `reviewModule()` from `@docx-editor.dev/pro` in the editor's modules.
27
+ - Comments and tracked changes need an author: the editor's `author` prop, or the runtime's `author` option.
28
+ - Create a server runtime with `DocxEditor.createServer` from `@docx-editor.dev/editor-api`. Create a browser runtime with `DocxEditor.createBrowser` from `@docx-editor.dev/editor-api/browser`.
29
+ - Review controls stay separate from the Office.js-shaped document model.
30
+ - `@docx-editor.dev/pro` and `@docx-editor.dev/editor-api` require the EigenPal Pro License. For more information, see [Pro features](https://www.docx-editor.dev/docs/2.x/pro).
28
31
 
29
- - [Comment on found text](./comment-on-found-text.md)
30
- - [Replace as a tracked change](./tracked-replacement.md)
31
- - [Propose an AI rewrite as tracked changes](./propose-rewrite.md)
32
- - [Custom cards in the review rail](./custom-review-cards.md)
33
- - [Highlight ranges](./highlight-ranges.md)
34
- - [Accept or reject without scrolling](./accept-reject-without-scrolling.md)
32
+ ## See also
35
33
 
36
- For the full hook reference, see [React hooks](https://www.docx-editor.dev/docs/2.x/react/hooks) and [Vue composables](https://www.docx-editor.dev/docs/2.x/vue/composables). For the editing API, see [Editing API](https://www.docx-editor.dev/docs/2.x/editor-api).
34
+ - [React hooks](https://www.docx-editor.dev/docs/2.x/react/hooks)
35
+ - [Vue composables](https://www.docx-editor.dev/docs/2.x/vue/composables)
36
+ - [Editing API](https://www.docx-editor.dev/docs/2.x/editor-api)