wordinweb 0.3.7 → 0.3.8
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 +11 -0
- package/dist/{chunk-ULPL55MT.js → chunk-H54TYQLD.js} +11886 -25308
- package/dist/chunk-H54TYQLD.js.map +1 -0
- package/dist/chunk-LBXLKYTZ.js +26255 -0
- package/dist/chunk-LBXLKYTZ.js.map +1 -0
- package/dist/collab.d.ts +3 -2
- package/dist/collab.js +15 -13
- package/dist/collab.js.map +1 -1
- package/dist/docx-only-D3pk2pRD.d.ts +2944 -0
- package/dist/docx-only.d.ts +1 -0
- package/dist/docx-only.js +12 -0
- package/dist/docx-only.js.map +1 -0
- package/dist/{index-Ch_Ayax5.d.ts → index-CEqxQ0p-.d.ts} +20 -2734
- package/dist/index.d.ts +2 -1
- package/dist/index.js +6 -4
- package/dist/{wmf-53LMIKNI.js → wmf-BE2MGNAA.js} +5 -2
- package/dist/wmf-BE2MGNAA.js.map +1 -0
- package/package.json +5 -1
- package/dist/chunk-ULPL55MT.js.map +0 -1
- package/dist/wmf-53LMIKNI.js.map +0 -1
package/README.md
CHANGED
|
@@ -46,6 +46,17 @@ export function Preview() {
|
|
|
46
46
|
|
|
47
47
|
`source` accepts a URL string, `ArrayBuffer`, `Uint8Array`, `Blob`, or `File` — so a drag-and-drop or `<input type="file">` handler can pass its bytes straight through.
|
|
48
48
|
|
|
49
|
+
### DOCX-only parser and renderer
|
|
50
|
+
|
|
51
|
+
For a custom browser viewer that accepts `.docx` files, use the smaller entry:
|
|
52
|
+
|
|
53
|
+
```ts
|
|
54
|
+
import { DocxDocument, layoutDocumentAsync, renderToDom } from "wordinweb/docx-only";
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
This entry loads ZIP-based DOCX packages, including Strict Open XML. The main
|
|
58
|
+
`wordinweb` entry also includes the binary Word converters for `.doc` and older formats.
|
|
59
|
+
|
|
49
60
|
### Editable (with the toolbar)
|
|
50
61
|
|
|
51
62
|
The editor exposes its commands through an imperative `api` handed to `onReady`. Pair it with the bundled `<DocxToolbar />` for a word-processor UI, or drive the `api` yourself.
|