@extend-ai/react-docx 0.7.0 → 0.7.2
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/README.md +4 -2
- package/dist/{chunk-P3B3Q7Y6.js → chunk-P3MKA55V.js} +3 -3
- package/dist/{chunk-2SXGXGWO.js → chunk-WKBPLHUA.js} +8 -2
- package/dist/{chunk-2SXGXGWO.js.map → chunk-WKBPLHUA.js.map} +1 -1
- package/dist/{chunk-QOXSE6WY.js → chunk-XBI2PYTU.js} +2 -2
- package/dist/docx-import-worker.cjs +19 -1
- package/dist/docx-import-worker.cjs.map +1 -1
- package/dist/docx-import-worker.js +8 -3
- package/dist/docx-import-worker.js.map +1 -1
- package/dist/index.cjs +499 -142
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -7
- package/dist/index.d.ts +5 -7
- package/dist/index.js +494 -146
- package/dist/index.js.map +1 -1
- package/dist/{src-PJYTN6DB.js → src-2FP7IUE6.js} +3 -3
- package/dist/{src-NDPFDRVM.js → src-VN4V5N3K.js} +3 -3
- package/package.json +1 -1
- /package/dist/{chunk-P3B3Q7Y6.js.map → chunk-P3MKA55V.js.map} +0 -0
- /package/dist/{chunk-QOXSE6WY.js.map → chunk-XBI2PYTU.js.map} +0 -0
- /package/dist/{src-NDPFDRVM.js.map → src-2FP7IUE6.js.map} +0 -0
- /package/dist/{src-PJYTN6DB.js.map → src-VN4V5N3K.js.map} +0 -0
package/dist/index.d.cts
CHANGED
|
@@ -20,13 +20,7 @@ interface InitOutput {
|
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
type WasmSource = InitInput;
|
|
23
|
-
|
|
24
|
-
* Override where the `docx_wasm_bg.wasm` binary is loaded from (URL, Response,
|
|
25
|
-
* bytes, or a compiled module). Must be called before the first operation that
|
|
26
|
-
* touches WASM; by default the binary shipped alongside this package is used.
|
|
27
|
-
*/
|
|
28
|
-
declare function setWasmSource(source: WasmSource): void;
|
|
29
|
-
declare function initWasm(source?: WasmSource): Promise<InitOutput>;
|
|
23
|
+
declare function initWasm$1(source?: WasmSource): Promise<InitOutput>;
|
|
30
24
|
interface WasmOoxmlPart {
|
|
31
25
|
name: string;
|
|
32
26
|
content: string;
|
|
@@ -623,6 +617,7 @@ type DocxImageDropTarget = ParagraphLocation & {
|
|
|
623
617
|
type DocxTrackedChangeKind = "insertion" | "deletion" | "move-from" | "move-to" | "format-change" | "paragraph-format-change";
|
|
624
618
|
interface DocxTrackedChange {
|
|
625
619
|
id: string;
|
|
620
|
+
inlineAnchorId?: string;
|
|
626
621
|
kind: DocxTrackedChangeKind;
|
|
627
622
|
author?: string;
|
|
628
623
|
date?: string;
|
|
@@ -1690,6 +1685,9 @@ declare function modelToDocumentXml(model: DocModel, basePackage?: OoxmlPackage)
|
|
|
1690
1685
|
declare function serializeDocModel(model: DocModel, basePackage?: OoxmlPackage): Promise<OoxmlPackage>;
|
|
1691
1686
|
declare function serializeDocx(model: DocModel, basePackage?: OoxmlPackage): Promise<ArrayBuffer>;
|
|
1692
1687
|
|
|
1688
|
+
declare function setWasmSource(source: WasmSource): void;
|
|
1689
|
+
declare function initWasm(source?: WasmSource): ReturnType<typeof initWasm$1>;
|
|
1690
|
+
|
|
1693
1691
|
interface ReactDocxViewerProps {
|
|
1694
1692
|
/**
|
|
1695
1693
|
* Raw `.docx` file contents to parse and render.
|
package/dist/index.d.ts
CHANGED
|
@@ -20,13 +20,7 @@ interface InitOutput {
|
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
type WasmSource = InitInput;
|
|
23
|
-
|
|
24
|
-
* Override where the `docx_wasm_bg.wasm` binary is loaded from (URL, Response,
|
|
25
|
-
* bytes, or a compiled module). Must be called before the first operation that
|
|
26
|
-
* touches WASM; by default the binary shipped alongside this package is used.
|
|
27
|
-
*/
|
|
28
|
-
declare function setWasmSource(source: WasmSource): void;
|
|
29
|
-
declare function initWasm(source?: WasmSource): Promise<InitOutput>;
|
|
23
|
+
declare function initWasm$1(source?: WasmSource): Promise<InitOutput>;
|
|
30
24
|
interface WasmOoxmlPart {
|
|
31
25
|
name: string;
|
|
32
26
|
content: string;
|
|
@@ -623,6 +617,7 @@ type DocxImageDropTarget = ParagraphLocation & {
|
|
|
623
617
|
type DocxTrackedChangeKind = "insertion" | "deletion" | "move-from" | "move-to" | "format-change" | "paragraph-format-change";
|
|
624
618
|
interface DocxTrackedChange {
|
|
625
619
|
id: string;
|
|
620
|
+
inlineAnchorId?: string;
|
|
626
621
|
kind: DocxTrackedChangeKind;
|
|
627
622
|
author?: string;
|
|
628
623
|
date?: string;
|
|
@@ -1690,6 +1685,9 @@ declare function modelToDocumentXml(model: DocModel, basePackage?: OoxmlPackage)
|
|
|
1690
1685
|
declare function serializeDocModel(model: DocModel, basePackage?: OoxmlPackage): Promise<OoxmlPackage>;
|
|
1691
1686
|
declare function serializeDocx(model: DocModel, basePackage?: OoxmlPackage): Promise<ArrayBuffer>;
|
|
1692
1687
|
|
|
1688
|
+
declare function setWasmSource(source: WasmSource): void;
|
|
1689
|
+
declare function initWasm(source?: WasmSource): ReturnType<typeof initWasm$1>;
|
|
1690
|
+
|
|
1693
1691
|
interface ReactDocxViewerProps {
|
|
1694
1692
|
/**
|
|
1695
1693
|
* Raw `.docx` file contents to parse and render.
|