@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/index.js CHANGED
@@ -2406,8 +2406,8 @@ function PdfView({ bytes, t, language, worker, rights, host, documentId, onSaved
2406
2406
 
2407
2407
  // src/DocumentOverlay.tsx
2408
2408
  import { jsx as jsx5, jsxs as jsxs5 } from "react/jsx-runtime";
2409
- var TextEditor = lazy(() => import("./TextEditor-OTGUXXRU.js"));
2410
- var SheetView = lazy(() => import("./SheetView-CIHVWANF.js"));
2409
+ var TextEditor = lazy(() => import("./TextEditor-SPEVB5HX.js"));
2410
+ var SheetView = lazy(() => import("./SheetView-G3YWPH5V.js"));
2411
2411
  var icons = { docx: FileText, markdown: FileType, pdf: Files, sheet: FileSpreadsheet, slides: Presentation };
2412
2412
  var read = { view: true, comment: false, edit: false };
2413
2413
  var quiet = () => {
@@ -2815,7 +2815,7 @@ async function make(host, doc) {
2815
2815
  if (doc.kind === "docx") {
2816
2816
  const { renderAsync } = await import("docx-preview");
2817
2817
  const box = document.createElement("div");
2818
- await renderAsync(bytes, box, void 0, { inWrapper: false, ignoreLastRenderedPageBreak: true });
2818
+ await renderAsync(bytes, box, void 0, { inWrapper: false, ignoreLastRenderedPageBreak: true, renderAltChunks: false });
2819
2819
  return { text: [...box.querySelectorAll("p, h1, h2, h3, li")].map((node) => node.textContent?.trim()).filter(Boolean).join("\n").slice(0, 800) };
2820
2820
  }
2821
2821
  const pdfjs = await import("pdfjs-dist");
@@ -2886,8 +2886,8 @@ function Thumb({ host, item, label }) {
2886
2886
 
2887
2887
  // src/DocumentsWorkspace.tsx
2888
2888
  import { Fragment as Fragment7, jsx as jsx8, jsxs as jsxs8 } from "react/jsx-runtime";
2889
- var TextEditor2 = lazy2(() => import("./TextEditor-OTGUXXRU.js"));
2890
- var SheetView2 = lazy2(() => import("./SheetView-CIHVWANF.js"));
2889
+ var TextEditor2 = lazy2(() => import("./TextEditor-SPEVB5HX.js"));
2890
+ var SheetView2 = lazy2(() => import("./SheetView-G3YWPH5V.js"));
2891
2891
  var icons2 = { docx: FileText2, markdown: FileType2, pdf: Files2, sheet: FileSpreadsheet2, slides: Presentation2 };
2892
2892
  function DocumentsWorkspace({ host, language = "en", theme = "light", place, onPlace, start, end, aside, actions }) {
2893
2893
  const t = texts[language];
@@ -3408,8 +3408,8 @@ function DocumentsWorkspace({ host, language = "en", theme = "light", place, onP
3408
3408
  import { lazy as lazy3, Suspense as Suspense3, useRef as useRef7, useState as useState9 } from "react";
3409
3409
  import { Ban as Ban2, Download as Download3, Eye as Eye2, FileDown as FileDown2, FileSpreadsheet as FileSpreadsheet3, FileText as FileText3, FileType as FileType3, Files as Files3, Lock as Lock2, Presentation as Presentation3, UserRound } from "lucide-react";
3410
3410
  import { Fragment as Fragment8, jsx as jsx9, jsxs as jsxs9 } from "react/jsx-runtime";
3411
- var TextEditor3 = lazy3(() => import("./TextEditor-OTGUXXRU.js"));
3412
- var SheetView3 = lazy3(() => import("./SheetView-CIHVWANF.js"));
3411
+ var TextEditor3 = lazy3(() => import("./TextEditor-SPEVB5HX.js"));
3412
+ var SheetView3 = lazy3(() => import("./SheetView-G3YWPH5V.js"));
3413
3413
  var icons3 = { docx: FileText3, markdown: FileType3, pdf: Files3, sheet: FileSpreadsheet3, slides: Presentation3 };
3414
3414
  var GuestRefused = class extends Error {
3415
3415
  constructor(reason, file = "", sharedBy = "") {