@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.
Files changed (35) hide show
  1. package/README.md +47 -32
  2. package/dist/cdn/docvyu.js +1813 -1976
  3. package/dist/cdn/docvyu.min.js +4 -7
  4. package/dist/cjs/DocvyuEditor-BOTw6i4d.js +1 -0
  5. package/dist/cjs/index.js +1 -1
  6. package/dist/cjs/react/index.js +1 -1
  7. package/dist/esm/DocvyuEditor-CDLqMpaq.js +1 -0
  8. package/dist/esm/index.js +1 -1
  9. package/dist/esm/react/index.js +1 -1
  10. package/dist/types/app/DocvyuApp.d.ts +187 -0
  11. package/dist/types/app/index.d.ts +0 -2
  12. package/dist/types/core/DocvyuEditor.d.ts +402 -57
  13. package/dist/types/core/index.d.ts +1 -1
  14. package/dist/types/i18n/types.d.ts +128 -0
  15. package/dist/wasm/docvyu_core.d.ts +8 -182
  16. package/dist/wasm/docvyu_core.js +1 -1
  17. package/dist/wasm/docvyu_core_bg.wasm +0 -0
  18. package/dist/wasm/docvyu_core_bg.wasm.d.ts +0 -56
  19. package/package.json +5 -2
  20. package/wasm/docvyu_core.d.ts +8 -182
  21. package/wasm/docvyu_core.js +1297 -200
  22. package/wasm/docvyu_core_bg.wasm +0 -0
  23. package/wasm/docvyu_core_bg.wasm.d.ts +0 -56
  24. package/dist/cjs/DocvyuEditor-CwMF2qhs.js +0 -1
  25. package/dist/esm/DocvyuEditor-CCAFPhSl.js +0 -1
  26. package/dist/types/app/DocvyuApp.test.d.ts +0 -1
  27. package/dist/types/app/styles.d.ts +0 -10
  28. package/dist/types/app/template.d.ts +0 -9
  29. package/dist/types/core/DocvyuEditor.test.d.ts +0 -4
  30. package/dist/types/i18n/I18nManager.test.d.ts +0 -4
  31. package/dist/types/license/LicenseManager.test.d.ts +0 -4
  32. package/dist/wasm/docuweave_core.d.ts +0 -207
  33. package/dist/wasm/docuweave_core.js +0 -988
  34. package/dist/wasm/docuweave_core_bg.wasm +0 -0
  35. 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
- - 🚀 **High Performance** - Powered by Rust/WebAssembly
8
- - 📄 **Full DOCX Support** - Load, edit, and save Word documents
9
- - 🎨 **Rich Formatting** - Bold, italic, underline, fonts, colors, alignment
10
- - 📝 **Lists Support** - Bullets and numbered lists with multiple formats
11
- - 📐 **Page Settings** - Margins, page sizes, zoom
12
- - 🌐 **Multi-language** - English, Spanish, Portuguese
13
- - 🔌 **Universal** - Works with vanilla JS, React, Vue, Angular, etc.
14
- - 🎁 **Plug & Play** - Complete editor UI ready to use
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
- ### Formatting Methods
201
-
202
- | Method | Description |
203
- |--------|-------------|
204
- | `setBold(enable)` | Toggle bold |
205
- | `setItalic(enable)` | Toggle italic |
206
- | `setUnderline(enable)` | Toggle underline |
207
- | `setFontSize(size)` | Set font size (e.g., 12, 14, 16) |
208
- | `setFontFamily(family)` | Set font family (e.g., 'Arial') |
209
- | `setFontColor(color)` | Set font color (e.g., '#ff0000') |
210
- | `setAlignment(align)` | Set alignment ('left', 'center', 'right', 'justify') |
211
- | `setBulletList(enable)` | Toggle bullet list |
212
- | `setNumberedList(enable)` | Toggle numbered list |
213
-
214
- ### Zoom Methods
215
-
216
- | Method | Description |
217
- |--------|-------------|
218
- | `zoomIn()` | Increase zoom |
219
- | `zoomOut()` | Decrease zoom |
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