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.
- package/CHANGELOG.md +52 -0
- package/README.md +82 -3
- package/dist/api/editor.d.ts +191 -6
- package/dist/api/editor.js +780 -37
- package/dist/api/index.d.ts +4 -1
- package/dist/api/index.js +1 -0
- package/dist/api/objects.d.ts +202 -0
- package/dist/api/objects.js +574 -0
- package/dist/api/revisions.js +13 -2
- package/dist/api/tables.d.ts +60 -0
- package/dist/api/tables.js +138 -0
- package/dist/charts/index.d.ts +4 -1
- package/dist/charts/index.js +3 -1
- package/dist/charts/model.d.ts +4 -0
- package/dist/charts/model.js +3 -2
- package/dist/charts/workbook.d.ts +29 -0
- package/dist/charts/workbook.js +203 -0
- package/dist/charts/write.d.ts +91 -0
- package/dist/charts/write.js +559 -0
- package/dist/opc/constants.d.ts +4 -0
- package/dist/opc/constants.js +4 -0
- package/dist/render/activity.d.ts +58 -2
- package/dist/render/activity.js +500 -47
- package/dist/render/index.d.ts +1 -1
- package/dist/render/index.js +1 -1
- package/dist/render/viewer.js +2 -0
- package/package.json +1 -1
package/dist/render/index.d.ts
CHANGED
|
@@ -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';
|
package/dist/render/index.js
CHANGED
|
@@ -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';
|
package/dist/render/viewer.js
CHANGED
|
@@ -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.
|
|
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",
|