@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/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.