wordinweb 0.3.5 → 0.3.7
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/dist/{chunk-QU3LB5BC.js → chunk-ULPL55MT.js} +1030 -202
- package/dist/chunk-ULPL55MT.js.map +1 -0
- package/dist/collab.d.ts +2 -2
- package/dist/collab.js +1 -1
- package/dist/{index-BunX2duN.d.ts → index-Ch_Ayax5.d.ts} +42 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-QU3LB5BC.js.map +0 -1
package/dist/collab.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import { X as XmlElement, D as DocxDocument, C as ClientMessage, S as ServerMessage, P as PresencePosition, R as RosterEntry, a as ParticipantProfile, I as Intent, b as IdSidecar, L as LineageHead, T as ToolbarFeature, c as ToolbarMode, d as DocxViewApi, M as MissingFont, W as WriteStatus, U as UndoOutcome } from './index-
|
|
3
|
-
export { e as bytesToB64, f as deriveEpochKeys, g as docKeyFromFragment, m as mintDocKey, s as sealCheckpoint, h as stretchShareCode } from './index-
|
|
2
|
+
import { X as XmlElement, D as DocxDocument, C as ClientMessage, S as ServerMessage, P as PresencePosition, R as RosterEntry, a as ParticipantProfile, I as Intent, b as IdSidecar, L as LineageHead, T as ToolbarFeature, c as ToolbarMode, d as DocxViewApi, M as MissingFont, W as WriteStatus, U as UndoOutcome } from './index-Ch_Ayax5.js';
|
|
3
|
+
export { e as bytesToB64, f as deriveEpochKeys, g as docKeyFromFragment, m as mintDocKey, s as sealCheckpoint, h as stretchShareCode } from './index-Ch_Ayax5.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* How much of the document an applied intent disturbed — the input to
|
package/dist/collab.js
CHANGED
|
@@ -944,6 +944,11 @@ interface Paragraph {
|
|
|
944
944
|
/** Final revision view: the paragraph mark AND all content are tracked
|
|
945
945
|
* deletions — the paragraph does not exist (no line, no numbering). */
|
|
946
946
|
revisionHidden?: boolean;
|
|
947
|
+
/** Markup view: the paragraph mark itself is a tracked insertion or
|
|
948
|
+
* deletion (a suggested line break, or a suggested merge). Layout draws it
|
|
949
|
+
* as a pilcrow in the revision's colors after the paragraph's content; it is
|
|
950
|
+
* not text, so find, word count and the like never see it. */
|
|
951
|
+
markRevision?: "ins" | "del";
|
|
947
952
|
/** Source w:p element. */
|
|
948
953
|
src?: XmlElement;
|
|
949
954
|
}
|
|
@@ -1267,6 +1272,8 @@ declare class Package {
|
|
|
1267
1272
|
private files;
|
|
1268
1273
|
constructor(data: Uint8Array);
|
|
1269
1274
|
static from(data: ArrayBuffer | Uint8Array): Package;
|
|
1275
|
+
/** A package over an already-unzipped entry map (DocxDocument.clone). */
|
|
1276
|
+
static fromFiles(files: Record<string, Uint8Array>): Package;
|
|
1270
1277
|
has(name: string): boolean;
|
|
1271
1278
|
binary(name: string): Uint8Array | undefined;
|
|
1272
1279
|
text(name: string): string | undefined;
|
|
@@ -1852,6 +1859,8 @@ declare class DocxDocument {
|
|
|
1852
1859
|
/** The header part roots, in package order. A watermark is authored into
|
|
1853
1860
|
* every one of them: Word paints it on every page, and a document with a
|
|
1854
1861
|
* first-page or even-page header has more than one header part. */
|
|
1862
|
+
/** The root of the header or footer part at `target`, if this document has one. */
|
|
1863
|
+
headerFooterRoot(target: string): XmlElement | undefined;
|
|
1855
1864
|
headerRoots(): XmlElement[];
|
|
1856
1865
|
/** The footer part roots, in package order — headerRoots' counterpart, for
|
|
1857
1866
|
* operations that walk both bands (the page-number gallery's removal
|
|
@@ -1904,6 +1913,13 @@ declare class DocxDocument {
|
|
|
1904
1913
|
private journalSetAttr;
|
|
1905
1914
|
private normalizePercentageTableGrids;
|
|
1906
1915
|
save(): Uint8Array;
|
|
1916
|
+
/**
|
|
1917
|
+
* An independent copy: what `DocxDocument.load(doc.save())` gives, without
|
|
1918
|
+
* zipping the package and unzipping it again. compareDocuments starts from a
|
|
1919
|
+
* copy of the revised document, and the round trip through the zip was a
|
|
1920
|
+
* third of its time on a document that had not changed at all.
|
|
1921
|
+
*/
|
|
1922
|
+
clone(): DocxDocument;
|
|
1907
1923
|
saveAsync(): Promise<Uint8Array>;
|
|
1908
1924
|
private buildPackage;
|
|
1909
1925
|
private buildPackageFiles;
|
|
@@ -1944,9 +1960,31 @@ declare class DocxDocument {
|
|
|
1944
1960
|
*/
|
|
1945
1961
|
private ensureRelsRoot;
|
|
1946
1962
|
/** Register an external hyperlink relationship and return its rId. */
|
|
1947
|
-
|
|
1963
|
+
/**
|
|
1964
|
+
* Copy the part that `source`'s main-document relationship `relId` points
|
|
1965
|
+
* at into this package, with every part it references in turn (a chart's
|
|
1966
|
+
* embedded workbook, SmartArt's layout, style and colour parts) and their
|
|
1967
|
+
* content types, and add a relationship to it. Returns the new
|
|
1968
|
+
* relationship id, or null when the source has no such internal part.
|
|
1969
|
+
*
|
|
1970
|
+
* compareDocuments needs this for struck content: a removed picture keeps
|
|
1971
|
+
* its w:drawing, and without its image part the result's reject-all
|
|
1972
|
+
* brought the picture back as an empty frame.
|
|
1973
|
+
*/
|
|
1974
|
+
adoptRelFrom(source: DocxDocument, relId: string, scope?: {
|
|
1975
|
+
from?: string | null;
|
|
1976
|
+
into?: string | null;
|
|
1977
|
+
}): string | null;
|
|
1978
|
+
/** Give a part copied from `source` the content type it had there. */
|
|
1979
|
+
private adoptContentType;
|
|
1980
|
+
addHyperlinkRel(url: string, ownerPart?: string | null): string;
|
|
1948
1981
|
/** Retarget an existing external relationship (hyperlink href edit). */
|
|
1949
1982
|
setRelTarget(relId: string, url: string): boolean;
|
|
1983
|
+
/** The relationships owned by `part` (a header or footer part), or by the
|
|
1984
|
+
* document part when null; a header or footer gets a rels root on demand. */
|
|
1985
|
+
private relsOwnerOf;
|
|
1986
|
+
/** The relationships of `part` (a header or footer), or of the document part. */
|
|
1987
|
+
relationshipsOf(part?: string | null): Relationships;
|
|
1950
1988
|
/** The relationships of the part that holds `source`: a header or footer
|
|
1951
1989
|
* part when the element is inside one, else the document part. */
|
|
1952
1990
|
private imageRelsOwner;
|
|
@@ -4013,7 +4051,9 @@ interface CompareNote {
|
|
|
4013
4051
|
/** The documents share no paragraph at all; one paragraph mark goes untracked. */
|
|
4014
4052
|
| "no-common-paragraph"
|
|
4015
4053
|
/** Original-only content referencing a relationship the result does not have. */
|
|
4016
|
-
| "unresolved-relationship"
|
|
4054
|
+
| "unresolved-relationship"
|
|
4055
|
+
/** An input held tracked changes; it was compared as if they were accepted. */
|
|
4056
|
+
| "existing-revisions-accepted";
|
|
4017
4057
|
detail: string;
|
|
4018
4058
|
}
|
|
4019
4059
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import 'react';
|
|
2
|
-
export { A as AgentDocumentViewBinding, i as COLLAB_IMAGE_EXTS, j as CompareResult, k as CompareWithFileOptions, l as CoverPageContent, D as DocxDocument, n as DocxToolbar, o as DocxToolbarProps, p as DocxView, d as DocxViewApi, q as DocxViewProps, r as DrawingTool, E as EncodedCaret, H as HostShortcutSection, t as INSERT_COMMANDS, u as ImageInsertResult, v as InsertCommandSpec, w as LineNumberingPatch, x as MergeRecord, N as NUMBERING_PRESETS, y as NumberingPresetId, z as PageLayoutPatch, B as ParagraphAlignment, F as RASTER_IMAGE_ACCEPT, G as RunFormatPatch, J as ScreenshotInsertResult, K as SelectionFormat, O as ShapePreset, T as ToolbarFeature, Q as ToolbarMenuSelect, V as ToolbarMenuSelectOption, Y as ToolbarMenuSelectProps, c as ToolbarMode, Z as WireRange, _ as compareWithFile, $ as comparedName, a0 as downloadDocx, a1 as layoutDocument, a2 as pickAndCompare, a3 as pickDocx, a4 as printPages, a5 as renderForPrint, a6 as renderToDom, a7 as useAgentDocumentSession } from './index-
|
|
2
|
+
export { A as AgentDocumentViewBinding, i as COLLAB_IMAGE_EXTS, j as CompareResult, k as CompareWithFileOptions, l as CoverPageContent, D as DocxDocument, n as DocxToolbar, o as DocxToolbarProps, p as DocxView, d as DocxViewApi, q as DocxViewProps, r as DrawingTool, E as EncodedCaret, H as HostShortcutSection, t as INSERT_COMMANDS, u as ImageInsertResult, v as InsertCommandSpec, w as LineNumberingPatch, x as MergeRecord, N as NUMBERING_PRESETS, y as NumberingPresetId, z as PageLayoutPatch, B as ParagraphAlignment, F as RASTER_IMAGE_ACCEPT, G as RunFormatPatch, J as ScreenshotInsertResult, K as SelectionFormat, O as ShapePreset, T as ToolbarFeature, Q as ToolbarMenuSelect, V as ToolbarMenuSelectOption, Y as ToolbarMenuSelectProps, c as ToolbarMode, Z as WireRange, _ as compareWithFile, $ as comparedName, a0 as downloadDocx, a1 as layoutDocument, a2 as pickAndCompare, a3 as pickDocx, a4 as printPages, a5 as renderForPrint, a6 as renderToDom, a7 as useAgentDocumentSession } from './index-Ch_Ayax5.js';
|
package/dist/index.js
CHANGED