@w100n/documents 0.12.0 → 0.12.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/dist/collab.js CHANGED
@@ -11,7 +11,7 @@ import {
11
11
  pending,
12
12
  save,
13
13
  seed
14
- } from "./chunk-EEYBFQAJ.js";
14
+ } from "./chunk-UWASFTDF.js";
15
15
  import "./chunk-BKUFGMEA.js";
16
16
  import "./chunk-ISOOUYLI.js";
17
17
  export {
package/dist/index.cjs CHANGED
@@ -3155,7 +3155,7 @@ function DocxView({ bytes, onOutline, failed }) {
3155
3155
  const watch = new ResizeObserver(fit);
3156
3156
  root.replaceChildren();
3157
3157
  setError(false);
3158
- import("docx-preview").then(({ renderAsync }) => renderAsync(bytes, root, void 0, { inWrapper: true, className: "w100n-docx", ignoreLastRenderedPageBreak: true })).then(() => {
3158
+ import("docx-preview").then(({ renderAsync }) => renderAsync(bytes, root, void 0, { inWrapper: true, className: "w100n-docx", ignoreLastRenderedPageBreak: true, renderAltChunks: false })).then(() => {
3159
3159
  if (!live) return;
3160
3160
  width = Math.max(0, ...[...root.querySelectorAll("section.w100n-docx")].map((page) => page.offsetWidth));
3161
3161
  fit();
@@ -3764,7 +3764,7 @@ var init_extensions = __esm({
3764
3764
  var version;
3765
3765
  var init_package = __esm({
3766
3766
  "package.json"() {
3767
- version = "0.12.0";
3767
+ version = "0.12.1";
3768
3768
  }
3769
3769
  });
3770
3770
 
@@ -11608,7 +11608,7 @@ async function make(host, doc) {
11608
11608
  if (doc.kind === "docx") {
11609
11609
  const { renderAsync } = await import("docx-preview");
11610
11610
  const box2 = document.createElement("div");
11611
- await renderAsync(bytes, box2, void 0, { inWrapper: false, ignoreLastRenderedPageBreak: true });
11611
+ await renderAsync(bytes, box2, void 0, { inWrapper: false, ignoreLastRenderedPageBreak: true, renderAltChunks: false });
11612
11612
  return { text: [...box2.querySelectorAll("p, h1, h2, h3, li")].map((node) => node.textContent?.trim()).filter(Boolean).join("\n").slice(0, 800) };
11613
11613
  }
11614
11614
  const pdfjs = await import("pdfjs-dist");