docrev 0.11.0 → 0.11.1

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/types/index.d.ts CHANGED
@@ -482,16 +482,22 @@ export function isWordDocument(filePath: string): boolean;
482
482
  // TrackChanges (lib/trackchanges.js)
483
483
  // ============================================
484
484
 
485
- export interface TrackChangeMarker {
486
- type: 'insert' | 'delete';
487
- start: number;
488
- end: number;
489
- content: string;
490
- }
491
-
492
- export function prepareForTrackChanges(text: string): { text: string; markers: TrackChangeMarker[] };
493
- export function applyTrackChangesToDocx(docxPath: string, markers: TrackChangeMarker[], author?: string): Promise<void>;
494
- export function buildWithTrackChanges(markdownPath: string, outputPath: string, options?: object): Promise<{ success: boolean; message: string }>;
485
+ export interface NativeTrackChangeStats {
486
+ insertions: number;
487
+ deletions: number;
488
+ substitutions: number;
489
+ }
490
+
491
+ export function criticToNativeTrackChanges(
492
+ text: string,
493
+ options?: { author?: string; date?: string }
494
+ ): { text: string; stats: NativeTrackChangeStats };
495
+ export function enableTrackRevisions(docxPath: string): void;
496
+ export function buildWithTrackChanges(
497
+ markdownPath: string,
498
+ outputPath: string,
499
+ options?: { author?: string; date?: string }
500
+ ): Promise<{ success: boolean; message: string; stats?: NativeTrackChangeStats }>;
495
501
 
496
502
  // ============================================
497
503
  // Spelling (lib/spelling.js)