@docvyu/sdk 0.0.6 → 0.1.3
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 +47 -32
- package/dist/cdn/docvyu.js +1813 -1976
- package/dist/cdn/docvyu.min.js +4 -7
- package/dist/cjs/DocvyuEditor-BOTw6i4d.js +1 -0
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/react/index.js +1 -1
- package/dist/esm/DocvyuEditor-CDLqMpaq.js +1 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/react/index.js +1 -1
- package/dist/types/app/DocvyuApp.d.ts +187 -0
- package/dist/types/app/index.d.ts +0 -2
- package/dist/types/core/DocvyuEditor.d.ts +402 -57
- package/dist/types/core/index.d.ts +1 -1
- package/dist/types/i18n/types.d.ts +128 -0
- package/dist/wasm/docvyu_core.d.ts +8 -182
- package/dist/wasm/docvyu_core.js +1 -1
- package/dist/wasm/docvyu_core_bg.wasm +0 -0
- package/dist/wasm/docvyu_core_bg.wasm.d.ts +0 -56
- package/package.json +5 -2
- package/wasm/docvyu_core.d.ts +8 -182
- package/wasm/docvyu_core.js +1297 -200
- package/wasm/docvyu_core_bg.wasm +0 -0
- package/wasm/docvyu_core_bg.wasm.d.ts +0 -56
- package/dist/cjs/DocvyuEditor-CwMF2qhs.js +0 -1
- package/dist/esm/DocvyuEditor-CCAFPhSl.js +0 -1
- package/dist/types/app/DocvyuApp.test.d.ts +0 -1
- package/dist/types/app/styles.d.ts +0 -10
- package/dist/types/app/template.d.ts +0 -9
- package/dist/types/core/DocvyuEditor.test.d.ts +0 -4
- package/dist/types/i18n/I18nManager.test.d.ts +0 -4
- package/dist/types/license/LicenseManager.test.d.ts +0 -4
- package/dist/wasm/docuweave_core.d.ts +0 -207
- package/dist/wasm/docuweave_core.js +0 -988
- package/dist/wasm/docuweave_core_bg.wasm +0 -0
- package/dist/wasm/docuweave_core_bg.wasm.d.ts +0 -59
package/README.md
CHANGED
|
@@ -4,14 +4,28 @@ Universal DOCX editor SDK for any frontend framework. Built with WebAssembly for
|
|
|
4
4
|
|
|
5
5
|
## Features
|
|
6
6
|
|
|
7
|
-
-
|
|
8
|
-
-
|
|
9
|
-
-
|
|
10
|
-
-
|
|
11
|
-
-
|
|
12
|
-
-
|
|
13
|
-
-
|
|
14
|
-
-
|
|
7
|
+
- **High Performance** - Powered by Rust/WebAssembly
|
|
8
|
+
- **Full DOCX Support** - Load, edit, and save Word documents (ECMA-376)
|
|
9
|
+
- **Rich Formatting** - Bold, italic, underline, strikethrough, fonts, colors, alignment
|
|
10
|
+
- **Lists & Numbering** - Bullets, numbered, outline lists with 11 formats and multi-level support
|
|
11
|
+
- **Paragraph Styles** - Normal, Heading 1-6, custom styles
|
|
12
|
+
- **Tables** - Insert and render tables
|
|
13
|
+
- **Images** - Insert, resize, scale, drag, wrap modes
|
|
14
|
+
- **Undo/Redo** - Full operation history
|
|
15
|
+
- **Copy/Paste** - Ctrl+C/V support
|
|
16
|
+
- **Find & Replace** - Search with navigation and batch replace
|
|
17
|
+
- **Comments** - Insert and view document comments
|
|
18
|
+
- **Columns** - 1, 2, or 3 column layouts
|
|
19
|
+
- **Page Layout** - Margins, page sizes, orientation, section breaks
|
|
20
|
+
- **Track Changes** - Accept/reject revisions
|
|
21
|
+
- **Bookmarks & TOC** - Insert bookmarks, generate table of contents
|
|
22
|
+
- **Page Fields** - Page numbers, page X of Y
|
|
23
|
+
- **Document Properties** - Title, author, word count
|
|
24
|
+
- **Headers & Footers** - Basic editing support
|
|
25
|
+
- **Page Settings** - 5 page sizes, zoom (10%-500%), ruler units (cm/in)
|
|
26
|
+
- **Multi-language** - English, Spanish, Portuguese
|
|
27
|
+
- **Universal** - Works with vanilla JS, React, Vue, Angular, etc.
|
|
28
|
+
- **Plug & Play** - Complete editor UI with ribbon toolbar
|
|
15
29
|
|
|
16
30
|
## Installation
|
|
17
31
|
|
|
@@ -69,9 +83,12 @@ The easiest way - just include the CDN files and go:
|
|
|
69
83
|
That's it! You get a complete Word-like document editor with:
|
|
70
84
|
- Title bar with save/open buttons
|
|
71
85
|
- Ribbon with tabs (Home, Insert, Layout, View)
|
|
72
|
-
- Full formatting toolbar (fonts, sizes, colors, alignment)
|
|
86
|
+
- Full formatting toolbar (fonts, sizes, colors, alignment, lists, styles)
|
|
87
|
+
- Tables, images, comments, bookmarks
|
|
88
|
+
- Undo/redo, find & replace, copy/paste
|
|
89
|
+
- Multi-column layout and page orientation
|
|
73
90
|
- Document canvas with WYSIWYG editing
|
|
74
|
-
- Status bar with zoom controls and language selector
|
|
91
|
+
- Status bar with zoom controls, page count, and language selector
|
|
75
92
|
|
|
76
93
|
### React
|
|
77
94
|
|
|
@@ -197,28 +214,26 @@ await app.init();
|
|
|
197
214
|
| `setLocale(locale)` | Change UI language |
|
|
198
215
|
| `destroy()` | Clean up resources |
|
|
199
216
|
|
|
200
|
-
###
|
|
201
|
-
|
|
202
|
-
|
|
|
203
|
-
|
|
204
|
-
| `setBold
|
|
205
|
-
|
|
|
206
|
-
| `
|
|
207
|
-
|
|
|
208
|
-
|
|
|
209
|
-
|
|
|
210
|
-
|
|
|
211
|
-
| `
|
|
212
|
-
|
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
|
217
|
-
|
|
218
|
-
|
|
|
219
|
-
| `
|
|
220
|
-
| `setZoom(level)` | Set zoom level (e.g., 1.5 for 150%) |
|
|
221
|
-
| `getZoom()` | Get current zoom level |
|
|
217
|
+
### Editor Methods (via `getEditor()`)
|
|
218
|
+
|
|
219
|
+
| Category | Methods |
|
|
220
|
+
|----------|---------|
|
|
221
|
+
| Format | `setBold`, `setItalic`, `setUnderline`, `setStrikethrough`, `setFontSize`, `setFontFamily`, `setFontColor` |
|
|
222
|
+
| Paragraph | `setAlignment`, `applyParagraphStyle`, `removeParagraphStyle` |
|
|
223
|
+
| Lists | `setBulletList`, `setNumberedList`, `setOutlineList`, `applyNumbering`, `removeNumbering`, `increaseListLevel`, `decreaseListLevel` |
|
|
224
|
+
| Tables | `insertTable(rows, cols)` |
|
|
225
|
+
| Images | `insertImage`, `resizeImage`, `scaleImage`, `setImageWrapMode` |
|
|
226
|
+
| Clipboard | `copyText`, `cutText`, `pasteText` |
|
|
227
|
+
| Undo/Redo | `undo`, `redo`, `canUndo`, `canRedo` |
|
|
228
|
+
| Search | `find`, `findNext`, `findPrevious`, `replaceCurrent`, `replaceAll`, `clearSearch` |
|
|
229
|
+
| Comments | `insertComment`, `getCommentCount`, `getCommentText` |
|
|
230
|
+
| Zoom | `zoomIn`, `zoomOut`, `setZoom`, `getZoom` |
|
|
231
|
+
| Page | `setPageSize`, `setPageOrientation`, `setColumnCount`, `setMargins` |
|
|
232
|
+
| Sections | `insertSectionBreak` |
|
|
233
|
+
| Bookmarks | `insertBookmark`, `selectBookmark`, `getBookmarkNames` |
|
|
234
|
+
| TOC | `generateTocJson`, `navigateToTocEntry` |
|
|
235
|
+
| Properties | `getDocumentTitle`, `setDocumentTitle`, `calculateWordCount` |
|
|
236
|
+
| Header/Footer | `insertHeader`, `insertFooter`, `enterHeaderEditing`, `enterFooterEditing` |
|
|
222
237
|
|
|
223
238
|
## License Tiers
|
|
224
239
|
|