@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/{SheetView-CIHVWANF.js → SheetView-G3YWPH5V.js} +3 -3
- package/dist/{TextEditor-OTGUXXRU.js → TextEditor-SPEVB5HX.js} +4 -4
- package/dist/{TextEditor-OTGUXXRU.js.map → TextEditor-SPEVB5HX.js.map} +1 -1
- package/dist/{chunk-RI7SQZIW.js → chunk-5NT5ALOF.js} +2 -2
- package/dist/{chunk-EEYBFQAJ.js → chunk-UWASFTDF.js} +2 -2
- package/dist/chunk-UWASFTDF.js.map +1 -0
- package/dist/collab.cjs +1 -1
- package/dist/collab.cjs.map +1 -1
- package/dist/collab.js +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +0 -3
- package/dist/index.css.map +1 -1
- package/dist/index.js +7 -7
- package/dist/index.js.map +1 -1
- package/package.json +7 -3
- package/dist/chunk-EEYBFQAJ.js.map +0 -1
- /package/dist/{SheetView-CIHVWANF.js.map → SheetView-G3YWPH5V.js.map} +0 -0
- /package/dist/{chunk-RI7SQZIW.js.map → chunk-5NT5ALOF.js.map} +0 -0
package/dist/collab.js
CHANGED
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.
|
|
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");
|