@docen/docx 0.3.0

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 (58) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +156 -0
  3. package/dist/converters/docx.d.mts +110 -0
  4. package/dist/converters/docx.mjs +624 -0
  5. package/dist/converters/html.d.mts +14 -0
  6. package/dist/converters/html.mjs +18 -0
  7. package/dist/converters/markdown.d.mts +13 -0
  8. package/dist/converters/markdown.mjs +18 -0
  9. package/dist/converters/patch.d.mts +53 -0
  10. package/dist/converters/patch.mjs +37 -0
  11. package/dist/converters/prepare.d.mts +51 -0
  12. package/dist/converters/prepare.mjs +76 -0
  13. package/dist/core-CFIQVRfx.mjs +88 -0
  14. package/dist/core-omBKMRtl.d.mts +34 -0
  15. package/dist/core.d.mts +2 -0
  16. package/dist/core.mjs +2 -0
  17. package/dist/editor.d.mts +21 -0
  18. package/dist/editor.mjs +20 -0
  19. package/dist/extensions/extensions.d.mts +12 -0
  20. package/dist/extensions/extensions.mjs +12 -0
  21. package/dist/extensions/heading.d.mts +2 -0
  22. package/dist/extensions/heading.mjs +145 -0
  23. package/dist/extensions/image.d.mts +2 -0
  24. package/dist/extensions/image.mjs +201 -0
  25. package/dist/extensions/index.d.mts +2 -0
  26. package/dist/extensions/index.mjs +2 -0
  27. package/dist/extensions/paragraph.d.mts +2 -0
  28. package/dist/extensions/paragraph.mjs +116 -0
  29. package/dist/extensions/strike.d.mts +2 -0
  30. package/dist/extensions/strike.mjs +50 -0
  31. package/dist/extensions/table-cell.d.mts +2 -0
  32. package/dist/extensions/table-cell.mjs +112 -0
  33. package/dist/extensions/table-header.d.mts +2 -0
  34. package/dist/extensions/table-header.mjs +112 -0
  35. package/dist/extensions/table-row.d.mts +2 -0
  36. package/dist/extensions/table-row.mjs +84 -0
  37. package/dist/extensions/table.d.mts +2 -0
  38. package/dist/extensions/table.mjs +134 -0
  39. package/dist/extensions/text-style.d.mts +2 -0
  40. package/dist/extensions/text-style.mjs +134 -0
  41. package/dist/extensions/tiptap.d.mts +2 -0
  42. package/dist/extensions/tiptap.mjs +33 -0
  43. package/dist/extensions/types.d.mts +30 -0
  44. package/dist/extensions/utils.d.mts +49 -0
  45. package/dist/extensions/utils.mjs +289 -0
  46. package/dist/heading-BvqBD2zX.d.mts +8 -0
  47. package/dist/image-Ge1y6uam.d.mts +47 -0
  48. package/dist/index.d.mts +213 -0
  49. package/dist/index.mjs +8 -0
  50. package/dist/paragraph-fhEXtAN2.d.mts +16 -0
  51. package/dist/strike-BgWGvjKr.d.mts +33 -0
  52. package/dist/table-BFkfeRp9.d.mts +9 -0
  53. package/dist/table-cell-D_FV4D2h.d.mts +8 -0
  54. package/dist/table-header-KGQ2aEkP.d.mts +8 -0
  55. package/dist/table-row-kgzYkZlW.d.mts +9 -0
  56. package/dist/text-style-BHdtXkMb.d.mts +8 -0
  57. package/dist/tiptap-TErPjuNJ.d.mts +33 -0
  58. package/package.json +106 -0
@@ -0,0 +1,33 @@
1
+ import { Document } from "@tiptap/extension-document";
2
+ import { Text } from "@tiptap/extension-text";
3
+ import { Paragraph } from "@tiptap/extension-paragraph";
4
+ import { Heading } from "@tiptap/extension-heading";
5
+ import { Blockquote } from "@tiptap/extension-blockquote";
6
+ import { HorizontalRule } from "@tiptap/extension-horizontal-rule";
7
+ import { CodeBlockLowlight } from "@tiptap/extension-code-block-lowlight";
8
+ import { BulletList } from "@tiptap/extension-bullet-list";
9
+ import { OrderedList } from "@tiptap/extension-ordered-list";
10
+ import { ListItem } from "@tiptap/extension-list-item";
11
+ import { TaskList } from "@tiptap/extension-task-list";
12
+ import { TaskItem } from "@tiptap/extension-task-item";
13
+ import { Table, TableCell, TableHeader, TableRow } from "@tiptap/extension-table";
14
+ import { Image } from "@tiptap/extension-image";
15
+ import { HardBreak } from "@tiptap/extension-hard-break";
16
+ import { Details, DetailsContent, DetailsSummary } from "@tiptap/extension-details";
17
+ import { Emoji } from "@tiptap/extension-emoji";
18
+ import { Mention } from "@tiptap/extension-mention";
19
+ import { Mathematics } from "@tiptap/extension-mathematics";
20
+ import { Bold } from "@tiptap/extension-bold";
21
+ import { Italic } from "@tiptap/extension-italic";
22
+ import { Underline } from "@tiptap/extension-underline";
23
+ import { Strike } from "@tiptap/extension-strike";
24
+ import { Code } from "@tiptap/extension-code";
25
+ import { Link } from "@tiptap/extension-link";
26
+ import { Highlight } from "@tiptap/extension-highlight";
27
+ import { Subscript } from "@tiptap/extension-subscript";
28
+ import { Superscript } from "@tiptap/extension-superscript";
29
+ import { TextStyle } from "@tiptap/extension-text-style";
30
+ import { TextAlign } from "@tiptap/extension-text-align";
31
+ import { Dropcursor, Gapcursor, TrailingNode, UndoRedo } from "@tiptap/extensions";
32
+ import { ListKeymap } from "@tiptap/extension-list";
33
+ export { TableCell as A, UndoRedo as B, Mention as C, Subscript as D, Strike as E, Text as F, TextAlign as I, TextStyle as L, TableRow as M, TaskItem as N, Superscript as O, TaskList as P, TrailingNode as R, Mathematics as S, Paragraph as T, Image as _, CodeBlockLowlight as a, ListItem as b, DetailsSummary as c, Emoji as d, Gapcursor as f, HorizontalRule as g, Highlight as h, Code as i, TableHeader as j, Table as k, Document as l, Heading as m, Bold as n, Details as o, HardBreak as p, BulletList as r, DetailsContent as s, Blockquote as t, Dropcursor as u, Italic as v, OrderedList as w, ListKeymap as x, Link as y, Underline as z };
package/package.json ADDED
@@ -0,0 +1,106 @@
1
+ {
2
+ "name": "@docen/docx",
3
+ "version": "0.3.0",
4
+ "description": "DOCX editor and converter powered by @office-open/docx with Tiptap editing layer, supporting bidirectional conversion between DOCX, HTML, and Markdown",
5
+ "keywords": [
6
+ "converter",
7
+ "docen",
8
+ "docx",
9
+ "editor",
10
+ "html",
11
+ "markdown",
12
+ "microsoft-word",
13
+ "office",
14
+ "rich-text",
15
+ "tiptap",
16
+ "typescript",
17
+ "wysiwyg"
18
+ ],
19
+ "homepage": "https://github.com/DemoMacro/docen#readme",
20
+ "bugs": {
21
+ "url": "https://github.com/DemoMacro/docen/issues"
22
+ },
23
+ "license": "MIT",
24
+ "author": {
25
+ "name": "Demo Macro",
26
+ "email": "abc@imst.xyz",
27
+ "url": "https://www.demomacro.com/"
28
+ },
29
+ "repository": {
30
+ "type": "git",
31
+ "url": "git+https://github.com/DemoMacro/docen.git"
32
+ },
33
+ "files": [
34
+ "dist"
35
+ ],
36
+ "type": "module",
37
+ "main": "dist/index.mjs",
38
+ "types": "dist/index.d.mts",
39
+ "exports": {
40
+ ".": {
41
+ "types": "./dist/index.d.mts",
42
+ "import": "./dist/index.mjs"
43
+ },
44
+ "./core": {
45
+ "types": "./dist/core.d.mts",
46
+ "import": "./dist/core.mjs"
47
+ },
48
+ "./editor": {
49
+ "types": "./dist/editor.d.mts",
50
+ "import": "./dist/editor.mjs"
51
+ },
52
+ "./converters/*": {
53
+ "types": "./dist/converters/*.d.mts",
54
+ "import": "./dist/converters/*.mjs"
55
+ },
56
+ "./extensions/*": {
57
+ "types": "./dist/extensions/*.d.mts",
58
+ "import": "./dist/extensions/*.mjs"
59
+ }
60
+ },
61
+ "dependencies": {
62
+ "@office-open/docx": "0.9.2",
63
+ "@tiptap/core": "3.22.5",
64
+ "@tiptap/extension-blockquote": "3.22.5",
65
+ "@tiptap/extension-bold": "3.22.5",
66
+ "@tiptap/extension-bullet-list": "3.22.5",
67
+ "@tiptap/extension-code": "3.22.5",
68
+ "@tiptap/extension-code-block": "3.22.5",
69
+ "@tiptap/extension-code-block-lowlight": "3.22.5",
70
+ "@tiptap/extension-details": "3.22.5",
71
+ "@tiptap/extension-document": "3.22.5",
72
+ "@tiptap/extension-emoji": "3.22.5",
73
+ "@tiptap/extension-hard-break": "3.22.5",
74
+ "@tiptap/extension-heading": "3.22.5",
75
+ "@tiptap/extension-highlight": "3.22.5",
76
+ "@tiptap/extension-horizontal-rule": "3.22.5",
77
+ "@tiptap/extension-image": "3.22.5",
78
+ "@tiptap/extension-italic": "3.22.5",
79
+ "@tiptap/extension-link": "3.22.5",
80
+ "@tiptap/extension-list": "3.22.5",
81
+ "@tiptap/extension-list-item": "3.22.5",
82
+ "@tiptap/extension-mathematics": "3.22.5",
83
+ "@tiptap/extension-mention": "3.22.5",
84
+ "@tiptap/extension-ordered-list": "3.22.5",
85
+ "@tiptap/extension-paragraph": "3.22.5",
86
+ "@tiptap/extension-strike": "3.22.5",
87
+ "@tiptap/extension-subscript": "3.22.5",
88
+ "@tiptap/extension-superscript": "3.22.5",
89
+ "@tiptap/extension-table": "3.22.5",
90
+ "@tiptap/extension-task-item": "3.22.5",
91
+ "@tiptap/extension-task-list": "3.22.5",
92
+ "@tiptap/extension-text": "3.22.5",
93
+ "@tiptap/extension-text-align": "3.22.5",
94
+ "@tiptap/extension-text-style": "3.22.5",
95
+ "@tiptap/extension-underline": "3.22.5",
96
+ "@tiptap/extensions": "3.22.5",
97
+ "@tiptap/html": "3.22.5",
98
+ "@tiptap/markdown": "3.22.5",
99
+ "@tiptap/pm": "3.22.5",
100
+ "@tiptap/suggestion": "3.22.5",
101
+ "lowlight": "3.3.0"
102
+ },
103
+ "scripts": {
104
+ "build": "vp pack"
105
+ }
106
+ }