docxkeun 0.2.0 → 0.4.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.
@@ -14,4 +14,4 @@ export { ToolbarController, FormatToolbar, type ToolbarOptions } from './toolbar
14
14
  export { InlineEditing, type CaretFormat, type EditStory, type EditingOptions, type Caret } from './editing.js';
15
15
  export { htmlToParagraphs, type PastedParagraph, type PastedRun } from './clipboard.js';
16
16
  export { selectionInfoFor, describeSelection, type SelectionInfo, type SelectedParagraph, type TextSpot } from '../api/selection.js';
17
- export { AiActivity, diffParagraphs, diffText, type ParagraphDiff, type ParagraphChange, type ParagraphSnapshot, type ActivityOptions } from './activity.js';
17
+ export { AiActivity, ACTIVITY_STYLES, diffParagraphs, diffText, type ActivityStyle, type ParagraphDiff, type ParagraphChange, type ParagraphSnapshot, type ActivityOptions } from './activity.js';
@@ -13,4 +13,4 @@ export { ToolbarController, FormatToolbar } from './toolbar.js';
13
13
  export { InlineEditing } from './editing.js';
14
14
  export { htmlToParagraphs } from './clipboard.js';
15
15
  export { selectionInfoFor, describeSelection } from '../api/selection.js';
16
- export { AiActivity, diffParagraphs, diffText } from './activity.js';
16
+ export { AiActivity, ACTIVITY_STYLES, diffParagraphs, diffText } from './activity.js';
@@ -455,6 +455,8 @@ export class DocxViewer {
455
455
  });
456
456
  this.root.scrollTop = scrollRatio * this.root.scrollHeight;
457
457
  this.commentsCtl.rowsBuilt();
458
+ // The AI's marks and effects sit at page positions: follow the new rows (zoom, column width).
459
+ this.activityLayer?.rowsBuilt();
458
460
  }
459
461
  onIntersect(entries) {
460
462
  for (const entry of entries) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "docxkeun",
3
- "version": "0.2.0",
3
+ "version": "0.4.0",
4
4
  "description": "Read, render, edit and convert .docx files in the browser with zero runtime dependencies: a DOCX viewer and editor (toolbar, comments, tracked changes, undo), a DOCX-to-PDF converter, and live effects for AI edits.",
5
5
  "author": "Kevin Jeremia (https://github.com/kevinkjs)",
6
6
  "license": "MIT",