@fiduswriter/document 0.1.0-alpha.3 → 0.1.0-alpha.5

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 (582) hide show
  1. package/README.md +22 -1
  2. package/dist/bibliography/common.d.ts +10 -0
  3. package/dist/bibliography/common.d.ts.map +1 -0
  4. package/dist/bibliography/common.js +86 -0
  5. package/dist/bibliography/common.js.map +1 -0
  6. package/dist/bibliography/csl_bib.d.ts +3 -0
  7. package/dist/bibliography/csl_bib.d.ts.map +1 -0
  8. package/dist/bibliography/csl_bib.js +131 -0
  9. package/dist/bibliography/csl_bib.js.map +1 -0
  10. package/dist/citations/citeproc_sys.d.ts +12 -0
  11. package/dist/citations/citeproc_sys.d.ts.map +1 -0
  12. package/dist/citations/citeproc_sys.js +48 -0
  13. package/dist/citations/citeproc_sys.js.map +1 -0
  14. package/dist/citations/format.d.ts +40 -0
  15. package/dist/citations/format.d.ts.map +1 -0
  16. package/dist/citations/format.js +186 -0
  17. package/dist/citations/format.js.map +1 -0
  18. package/dist/editor/e2ee/encryptor.d.ts +123 -0
  19. package/dist/editor/e2ee/encryptor.d.ts.map +1 -0
  20. package/dist/editor/e2ee/encryptor.js +201 -0
  21. package/dist/editor/e2ee/encryptor.js.map +1 -0
  22. package/dist/exporter/docx/citations.d.ts +31 -0
  23. package/dist/exporter/docx/citations.d.ts.map +1 -0
  24. package/dist/exporter/docx/citations.js +171 -0
  25. package/dist/exporter/docx/citations.js.map +1 -0
  26. package/dist/exporter/docx/comments.d.ts +22 -0
  27. package/dist/exporter/docx/comments.d.ts.map +1 -0
  28. package/dist/exporter/docx/comments.js +170 -0
  29. package/dist/exporter/docx/comments.js.map +1 -0
  30. package/dist/exporter/docx/footnotes.d.ts +47 -0
  31. package/dist/exporter/docx/footnotes.d.ts.map +1 -0
  32. package/dist/exporter/docx/footnotes.js +216 -0
  33. package/dist/exporter/docx/footnotes.js.map +1 -0
  34. package/dist/exporter/docx/images.d.ts +25 -0
  35. package/dist/exporter/docx/images.d.ts.map +1 -0
  36. package/dist/exporter/docx/images.js +101 -0
  37. package/dist/exporter/docx/images.js.map +1 -0
  38. package/dist/exporter/docx/index.d.ts +16 -0
  39. package/dist/exporter/docx/index.d.ts.map +1 -0
  40. package/dist/exporter/docx/index.js +115 -0
  41. package/dist/exporter/docx/index.js.map +1 -0
  42. package/dist/exporter/docx/lists.d.ts +38 -0
  43. package/dist/exporter/docx/lists.d.ts.map +1 -0
  44. package/dist/exporter/docx/lists.js +276 -0
  45. package/dist/exporter/docx/lists.js.map +1 -0
  46. package/dist/exporter/docx/math.d.ts +13 -0
  47. package/dist/exporter/docx/math.d.ts.map +1 -0
  48. package/dist/exporter/docx/math.js +59 -0
  49. package/dist/exporter/docx/math.js.map +1 -0
  50. package/dist/exporter/docx/metadata.d.ts +17 -0
  51. package/dist/exporter/docx/metadata.d.ts.map +1 -0
  52. package/dist/exporter/docx/metadata.js +272 -0
  53. package/dist/exporter/docx/metadata.js.map +1 -0
  54. package/dist/exporter/docx/rels.d.ts +27 -0
  55. package/dist/exporter/docx/rels.d.ts.map +1 -0
  56. package/dist/exporter/docx/rels.js +183 -0
  57. package/dist/exporter/docx/rels.js.map +1 -0
  58. package/dist/exporter/docx/render.d.ts +22 -0
  59. package/dist/exporter/docx/render.d.ts.map +1 -0
  60. package/dist/exporter/docx/render.js +780 -0
  61. package/dist/exporter/docx/render.js.map +1 -0
  62. package/dist/exporter/docx/richtext.d.ts +25 -0
  63. package/dist/exporter/docx/richtext.d.ts.map +1 -0
  64. package/dist/exporter/docx/richtext.js +1070 -0
  65. package/dist/exporter/docx/richtext.js.map +1 -0
  66. package/dist/exporter/docx/tables.d.ts +16 -0
  67. package/dist/exporter/docx/tables.d.ts.map +1 -0
  68. package/dist/exporter/docx/tables.js +115 -0
  69. package/dist/exporter/docx/tables.js.map +1 -0
  70. package/dist/exporter/docx/tools.d.ts +4 -0
  71. package/dist/exporter/docx/tools.d.ts.map +1 -0
  72. package/dist/exporter/docx/tools.js +48 -0
  73. package/dist/exporter/docx/tools.js.map +1 -0
  74. package/dist/exporter/epub/index.d.ts +19 -0
  75. package/dist/exporter/epub/index.d.ts.map +1 -0
  76. package/dist/exporter/epub/index.js +109 -0
  77. package/dist/exporter/epub/index.js.map +1 -0
  78. package/dist/exporter/epub/templates.d.ts +63 -0
  79. package/dist/exporter/epub/templates.d.ts.map +1 -0
  80. package/dist/exporter/epub/templates.js +95 -0
  81. package/dist/exporter/epub/templates.js.map +1 -0
  82. package/dist/exporter/epub/tools.d.ts +13 -0
  83. package/dist/exporter/epub/tools.d.ts.map +1 -0
  84. package/{src → dist}/exporter/epub/tools.js +32 -46
  85. package/dist/exporter/epub/tools.js.map +1 -0
  86. package/dist/exporter/html/citations.d.ts +29 -0
  87. package/dist/exporter/html/citations.d.ts.map +1 -0
  88. package/dist/exporter/html/citations.js +110 -0
  89. package/dist/exporter/html/citations.js.map +1 -0
  90. package/dist/exporter/html/convert.d.ts +50 -0
  91. package/dist/exporter/html/convert.d.ts.map +1 -0
  92. package/dist/exporter/html/convert.js +750 -0
  93. package/dist/exporter/html/convert.js.map +1 -0
  94. package/dist/exporter/html/index.d.ts +64 -0
  95. package/dist/exporter/html/index.d.ts.map +1 -0
  96. package/dist/exporter/html/index.js +154 -0
  97. package/dist/exporter/html/index.js.map +1 -0
  98. package/dist/exporter/html/templates.d.ts +24 -0
  99. package/dist/exporter/html/templates.d.ts.map +1 -0
  100. package/dist/exporter/html/templates.js +21 -0
  101. package/dist/exporter/html/templates.js.map +1 -0
  102. package/dist/exporter/html/tools.d.ts +2 -0
  103. package/dist/exporter/html/tools.d.ts.map +1 -0
  104. package/dist/exporter/html/tools.js +49 -0
  105. package/dist/exporter/html/tools.js.map +1 -0
  106. package/dist/exporter/jats/bibliography.d.ts +3 -0
  107. package/dist/exporter/jats/bibliography.d.ts.map +1 -0
  108. package/dist/exporter/jats/bibliography.js +158 -0
  109. package/dist/exporter/jats/bibliography.js.map +1 -0
  110. package/dist/exporter/jats/citations.d.ts +16 -0
  111. package/dist/exporter/jats/citations.d.ts.map +1 -0
  112. package/dist/exporter/jats/citations.js +105 -0
  113. package/dist/exporter/jats/citations.js.map +1 -0
  114. package/dist/exporter/jats/convert.d.ts +41 -0
  115. package/dist/exporter/jats/convert.d.ts.map +1 -0
  116. package/dist/exporter/jats/convert.js +816 -0
  117. package/dist/exporter/jats/convert.js.map +1 -0
  118. package/dist/exporter/jats/index.d.ts +25 -0
  119. package/dist/exporter/jats/index.d.ts.map +1 -0
  120. package/dist/exporter/jats/index.js +82 -0
  121. package/dist/exporter/jats/index.js.map +1 -0
  122. package/dist/exporter/jats/templates.d.ts +18 -0
  123. package/dist/exporter/jats/templates.d.ts.map +1 -0
  124. package/dist/exporter/jats/templates.js +25 -0
  125. package/dist/exporter/jats/templates.js.map +1 -0
  126. package/dist/exporter/jats/text.d.ts +4 -0
  127. package/dist/exporter/jats/text.d.ts.map +1 -0
  128. package/dist/exporter/jats/text.js +72 -0
  129. package/dist/exporter/jats/text.js.map +1 -0
  130. package/dist/exporter/latex/convert.d.ts +24 -0
  131. package/dist/exporter/latex/convert.d.ts.map +1 -0
  132. package/dist/exporter/latex/convert.js +881 -0
  133. package/dist/exporter/latex/convert.js.map +1 -0
  134. package/dist/exporter/latex/escape_latex.d.ts +2 -0
  135. package/dist/exporter/latex/escape_latex.d.ts.map +1 -0
  136. package/dist/exporter/latex/escape_latex.js +20 -0
  137. package/dist/exporter/latex/escape_latex.js.map +1 -0
  138. package/dist/exporter/latex/index.d.ts +24 -0
  139. package/dist/exporter/latex/index.d.ts.map +1 -0
  140. package/dist/exporter/latex/index.js +67 -0
  141. package/dist/exporter/latex/index.js.map +1 -0
  142. package/dist/exporter/latex/readme.d.ts +2 -0
  143. package/dist/exporter/latex/readme.d.ts.map +1 -0
  144. package/dist/exporter/latex/readme.js +23 -0
  145. package/dist/exporter/latex/readme.js.map +1 -0
  146. package/dist/exporter/native/copy.d.ts +30 -0
  147. package/dist/exporter/native/copy.d.ts.map +1 -0
  148. package/dist/exporter/native/copy.js +151 -0
  149. package/dist/exporter/native/copy.js.map +1 -0
  150. package/dist/exporter/native/file.d.ts +12 -0
  151. package/dist/exporter/native/file.d.ts.map +1 -0
  152. package/dist/exporter/native/file.js +38 -0
  153. package/dist/exporter/native/file.js.map +1 -0
  154. package/dist/exporter/native/index.d.ts +5 -0
  155. package/dist/exporter/native/index.d.ts.map +1 -0
  156. package/dist/exporter/native/index.js +5 -0
  157. package/dist/exporter/native/index.js.map +1 -0
  158. package/dist/exporter/native/revision.d.ts +18 -0
  159. package/dist/exporter/native/revision.d.ts.map +1 -0
  160. package/dist/exporter/native/revision.js +39 -0
  161. package/dist/exporter/native/revision.js.map +1 -0
  162. package/dist/exporter/native/shrink.d.ts +36 -0
  163. package/dist/exporter/native/shrink.d.ts.map +1 -0
  164. package/dist/exporter/native/shrink.js +124 -0
  165. package/dist/exporter/native/shrink.js.map +1 -0
  166. package/dist/exporter/native/zip.d.ts +25 -0
  167. package/dist/exporter/native/zip.d.ts.map +1 -0
  168. package/dist/exporter/native/zip.js +56 -0
  169. package/dist/exporter/native/zip.js.map +1 -0
  170. package/dist/exporter/odt/citations.d.ts +21 -0
  171. package/dist/exporter/odt/citations.d.ts.map +1 -0
  172. package/dist/exporter/odt/citations.js +104 -0
  173. package/dist/exporter/odt/citations.js.map +1 -0
  174. package/dist/exporter/odt/footnotes.d.ts +31 -0
  175. package/dist/exporter/odt/footnotes.d.ts.map +1 -0
  176. package/dist/exporter/odt/footnotes.js +129 -0
  177. package/dist/exporter/odt/footnotes.js.map +1 -0
  178. package/dist/exporter/odt/images.d.ts +25 -0
  179. package/dist/exporter/odt/images.d.ts.map +1 -0
  180. package/dist/exporter/odt/images.js +106 -0
  181. package/dist/exporter/odt/images.js.map +1 -0
  182. package/dist/exporter/odt/index.d.ts +17 -0
  183. package/dist/exporter/odt/index.d.ts.map +1 -0
  184. package/dist/exporter/odt/index.js +108 -0
  185. package/dist/exporter/odt/index.js.map +1 -0
  186. package/dist/exporter/odt/math.d.ts +15 -0
  187. package/dist/exporter/odt/math.d.ts.map +1 -0
  188. package/dist/exporter/odt/math.js +71 -0
  189. package/dist/exporter/odt/math.js.map +1 -0
  190. package/dist/exporter/odt/metadata.d.ts +18 -0
  191. package/dist/exporter/odt/metadata.d.ts.map +1 -0
  192. package/dist/exporter/odt/metadata.js +224 -0
  193. package/dist/exporter/odt/metadata.js.map +1 -0
  194. package/dist/exporter/odt/render.d.ts +26 -0
  195. package/dist/exporter/odt/render.d.ts.map +1 -0
  196. package/dist/exporter/odt/render.js +651 -0
  197. package/dist/exporter/odt/render.js.map +1 -0
  198. package/dist/exporter/odt/richtext.d.ts +22 -0
  199. package/dist/exporter/odt/richtext.d.ts.map +1 -0
  200. package/dist/exporter/odt/richtext.js +743 -0
  201. package/dist/exporter/odt/richtext.js.map +1 -0
  202. package/dist/exporter/odt/styles.d.ts +41 -0
  203. package/dist/exporter/odt/styles.d.ts.map +1 -0
  204. package/dist/exporter/odt/styles.js +370 -0
  205. package/dist/exporter/odt/styles.js.map +1 -0
  206. package/dist/exporter/odt/track.d.ts +18 -0
  207. package/dist/exporter/odt/track.d.ts.map +1 -0
  208. package/dist/exporter/odt/track.js +66 -0
  209. package/dist/exporter/odt/track.js.map +1 -0
  210. package/dist/exporter/pandoc/citations.d.ts +23 -0
  211. package/dist/exporter/pandoc/citations.d.ts.map +1 -0
  212. package/dist/exporter/pandoc/citations.js +99 -0
  213. package/dist/exporter/pandoc/citations.js.map +1 -0
  214. package/dist/exporter/pandoc/convert.d.ts +19 -0
  215. package/dist/exporter/pandoc/convert.d.ts.map +1 -0
  216. package/dist/exporter/pandoc/convert.js +886 -0
  217. package/dist/exporter/pandoc/convert.js.map +1 -0
  218. package/dist/exporter/pandoc/index.d.ts +25 -0
  219. package/dist/exporter/pandoc/index.d.ts.map +1 -0
  220. package/dist/exporter/pandoc/index.js +79 -0
  221. package/dist/exporter/pandoc/index.js.map +1 -0
  222. package/dist/exporter/pandoc/readme.d.ts +2 -0
  223. package/dist/exporter/pandoc/readme.d.ts.map +1 -0
  224. package/dist/exporter/pandoc/readme.js +8 -0
  225. package/dist/exporter/pandoc/readme.js.map +1 -0
  226. package/dist/exporter/pandoc/tools.d.ts +22 -0
  227. package/dist/exporter/pandoc/tools.d.ts.map +1 -0
  228. package/dist/exporter/pandoc/tools.js +52 -0
  229. package/dist/exporter/pandoc/tools.js.map +1 -0
  230. package/dist/exporter/print/index.d.ts +20 -0
  231. package/dist/exporter/print/index.d.ts.map +1 -0
  232. package/dist/exporter/print/index.js +142 -0
  233. package/dist/exporter/print/index.js.map +1 -0
  234. package/dist/exporter/tools/doc_content.d.ts +6 -0
  235. package/dist/exporter/tools/doc_content.d.ts.map +1 -0
  236. package/dist/exporter/tools/doc_content.js +130 -0
  237. package/dist/exporter/tools/doc_content.js.map +1 -0
  238. package/dist/exporter/tools/file.d.ts +2 -0
  239. package/dist/exporter/tools/file.d.ts.map +1 -0
  240. package/dist/exporter/tools/file.js +10 -0
  241. package/dist/exporter/tools/file.js.map +1 -0
  242. package/dist/exporter/tools/json.d.ts +7 -0
  243. package/dist/exporter/tools/json.d.ts.map +1 -0
  244. package/dist/exporter/tools/json.js +82 -0
  245. package/dist/exporter/tools/json.js.map +1 -0
  246. package/dist/exporter/tools/svg.d.ts +8 -0
  247. package/dist/exporter/tools/svg.d.ts.map +1 -0
  248. package/dist/exporter/tools/svg.js +26 -0
  249. package/dist/exporter/tools/svg.js.map +1 -0
  250. package/dist/exporter/tools/xml.d.ts +42 -0
  251. package/dist/exporter/tools/xml.d.ts.map +1 -0
  252. package/dist/exporter/tools/xml.js +467 -0
  253. package/dist/exporter/tools/xml.js.map +1 -0
  254. package/dist/exporter/tools/xml_zip.d.ts +21 -0
  255. package/dist/exporter/tools/xml_zip.d.ts.map +1 -0
  256. package/dist/exporter/tools/xml_zip.js +92 -0
  257. package/dist/exporter/tools/xml_zip.js.map +1 -0
  258. package/dist/exporter/tools/zip.d.ts +35 -0
  259. package/dist/exporter/tools/zip.d.ts.map +1 -0
  260. package/dist/exporter/tools/zip.js +78 -0
  261. package/dist/exporter/tools/zip.js.map +1 -0
  262. package/dist/exporter/tools/zotero_csl.d.ts +23 -0
  263. package/dist/exporter/tools/zotero_csl.d.ts.map +1 -0
  264. package/dist/exporter/tools/zotero_csl.js +78 -0
  265. package/dist/exporter/tools/zotero_csl.js.map +1 -0
  266. package/dist/importer/citations.d.ts +28 -0
  267. package/dist/importer/citations.d.ts.map +1 -0
  268. package/dist/importer/citations.js +68 -0
  269. package/dist/importer/citations.js.map +1 -0
  270. package/dist/importer/docx/citations.d.ts +43 -0
  271. package/dist/importer/docx/citations.d.ts.map +1 -0
  272. package/dist/importer/docx/citations.js +81 -0
  273. package/dist/importer/docx/citations.js.map +1 -0
  274. package/dist/importer/docx/convert.d.ts +150 -0
  275. package/dist/importer/docx/convert.d.ts.map +1 -0
  276. package/dist/importer/docx/convert.js +1243 -0
  277. package/dist/importer/docx/convert.js.map +1 -0
  278. package/dist/importer/docx/helpers.d.ts +2 -0
  279. package/dist/importer/docx/helpers.d.ts.map +1 -0
  280. package/dist/importer/docx/helpers.js +10 -0
  281. package/dist/importer/docx/helpers.js.map +1 -0
  282. package/dist/importer/docx/index.d.ts +27 -0
  283. package/dist/importer/docx/index.d.ts.map +1 -0
  284. package/dist/importer/docx/index.js +77 -0
  285. package/dist/importer/docx/index.js.map +1 -0
  286. package/dist/importer/docx/omml2mathml.d.ts +6 -0
  287. package/dist/importer/docx/omml2mathml.d.ts.map +1 -0
  288. package/dist/importer/docx/omml2mathml.js +1146 -0
  289. package/dist/importer/docx/omml2mathml.js.map +1 -0
  290. package/dist/importer/docx/parse.d.ts +96 -0
  291. package/dist/importer/docx/parse.d.ts.map +1 -0
  292. package/dist/importer/docx/parse.js +681 -0
  293. package/dist/importer/docx/parse.js.map +1 -0
  294. package/dist/importer/native/extract_template.d.ts +6 -0
  295. package/dist/importer/native/extract_template.d.ts.map +1 -0
  296. package/dist/importer/native/extract_template.js +80 -0
  297. package/dist/importer/native/extract_template.js.map +1 -0
  298. package/dist/importer/native/file.d.ts +37 -0
  299. package/dist/importer/native/file.d.ts.map +1 -0
  300. package/dist/importer/native/file.js +162 -0
  301. package/dist/importer/native/file.js.map +1 -0
  302. package/dist/importer/native/get_images.d.ts +21 -0
  303. package/dist/importer/native/get_images.d.ts.map +1 -0
  304. package/dist/importer/native/get_images.js +58 -0
  305. package/dist/importer/native/get_images.js.map +1 -0
  306. package/dist/importer/native/importer.d.ts +41 -0
  307. package/dist/importer/native/importer.d.ts.map +1 -0
  308. package/dist/importer/native/importer.js +170 -0
  309. package/dist/importer/native/importer.js.map +1 -0
  310. package/dist/importer/native/index.d.ts +7 -0
  311. package/dist/importer/native/index.d.ts.map +1 -0
  312. package/dist/importer/native/index.js +7 -0
  313. package/dist/importer/native/index.js.map +1 -0
  314. package/dist/importer/native/update.d.ts +7 -0
  315. package/dist/importer/native/update.d.ts.map +1 -0
  316. package/dist/importer/native/update.js +27 -0
  317. package/dist/importer/native/update.js.map +1 -0
  318. package/dist/importer/native/update_template.d.ts +12 -0
  319. package/dist/importer/native/update_template.d.ts.map +1 -0
  320. package/dist/importer/native/update_template.js +19 -0
  321. package/dist/importer/native/update_template.js.map +1 -0
  322. package/dist/importer/odt/citations.d.ts +27 -0
  323. package/dist/importer/odt/citations.d.ts.map +1 -0
  324. package/dist/importer/odt/citations.js +57 -0
  325. package/dist/importer/odt/citations.js.map +1 -0
  326. package/dist/importer/odt/convert.d.ts +146 -0
  327. package/dist/importer/odt/convert.d.ts.map +1 -0
  328. package/dist/importer/odt/convert.js +1530 -0
  329. package/dist/importer/odt/convert.js.map +1 -0
  330. package/dist/importer/odt/index.d.ts +30 -0
  331. package/dist/importer/odt/index.d.ts.map +1 -0
  332. package/dist/importer/odt/index.js +124 -0
  333. package/dist/importer/odt/index.js.map +1 -0
  334. package/dist/importer/pandoc/convert.d.ts +32 -0
  335. package/dist/importer/pandoc/convert.d.ts.map +1 -0
  336. package/dist/importer/pandoc/convert.js +790 -0
  337. package/dist/importer/pandoc/convert.js.map +1 -0
  338. package/dist/importer/pandoc/helpers.d.ts +5 -0
  339. package/dist/importer/pandoc/helpers.d.ts.map +1 -0
  340. package/dist/importer/pandoc/helpers.js +73 -0
  341. package/dist/importer/pandoc/helpers.js.map +1 -0
  342. package/dist/importer/pandoc/index.d.ts +31 -0
  343. package/dist/importer/pandoc/index.d.ts.map +1 -0
  344. package/dist/importer/pandoc/index.js +114 -0
  345. package/dist/importer/pandoc/index.js.map +1 -0
  346. package/dist/importer/registry.d.ts +21 -0
  347. package/dist/importer/registry.d.ts.map +1 -0
  348. package/dist/importer/registry.js +41 -0
  349. package/dist/importer/registry.js.map +1 -0
  350. package/dist/importer/zip_analyzer.d.ts +31 -0
  351. package/dist/importer/zip_analyzer.d.ts.map +1 -0
  352. package/dist/importer/zip_analyzer.js +89 -0
  353. package/dist/importer/zip_analyzer.js.map +1 -0
  354. package/dist/index.d.ts +2 -0
  355. package/dist/index.d.ts.map +1 -0
  356. package/dist/index.js +2 -0
  357. package/dist/index.js.map +1 -0
  358. package/dist/mathlive/opf_includes.d.ts +2 -0
  359. package/dist/mathlive/opf_includes.d.ts.map +1 -0
  360. package/dist/mathlive/opf_includes.js +25 -0
  361. package/dist/mathlive/opf_includes.js.map +1 -0
  362. package/dist/schema/common/annotate.d.ts +47 -0
  363. package/dist/schema/common/annotate.d.ts.map +1 -0
  364. package/dist/schema/common/annotate.js +75 -0
  365. package/dist/schema/common/annotate.js.map +1 -0
  366. package/dist/schema/common/base.d.ts +91 -0
  367. package/dist/schema/common/base.d.ts.map +1 -0
  368. package/dist/schema/common/base.js +109 -0
  369. package/dist/schema/common/base.js.map +1 -0
  370. package/dist/schema/common/citation.d.ts +30 -0
  371. package/dist/schema/common/citation.d.ts.map +1 -0
  372. package/dist/schema/common/citation.js +61 -0
  373. package/dist/schema/common/citation.js.map +1 -0
  374. package/dist/schema/common/equation.d.ts +17 -0
  375. package/dist/schema/common/equation.d.ts.map +1 -0
  376. package/dist/schema/common/equation.js +32 -0
  377. package/dist/schema/common/equation.js.map +1 -0
  378. package/dist/schema/common/figure.d.ts +87 -0
  379. package/dist/schema/common/figure.d.ts.map +1 -0
  380. package/dist/schema/common/figure.js +178 -0
  381. package/dist/schema/common/figure.js.map +1 -0
  382. package/dist/schema/common/heading.d.ts +9 -0
  383. package/dist/schema/common/heading.d.ts.map +1 -0
  384. package/dist/schema/common/heading.js +41 -0
  385. package/dist/schema/common/heading.js.map +1 -0
  386. package/dist/schema/common/index.d.ts +11 -0
  387. package/dist/schema/common/index.d.ts.map +1 -0
  388. package/dist/schema/common/index.js +11 -0
  389. package/dist/schema/common/index.js.map +1 -0
  390. package/dist/schema/common/list.d.ts +63 -0
  391. package/dist/schema/common/list.d.ts.map +1 -0
  392. package/dist/schema/common/list.js +92 -0
  393. package/dist/schema/common/list.js.map +1 -0
  394. package/dist/schema/common/reference.d.ts +70 -0
  395. package/dist/schema/common/reference.d.ts.map +1 -0
  396. package/dist/schema/common/reference.js +97 -0
  397. package/dist/schema/common/reference.js.map +1 -0
  398. package/dist/schema/common/table.d.ts +76 -0
  399. package/dist/schema/common/table.d.ts.map +1 -0
  400. package/dist/schema/common/table.js +86 -0
  401. package/dist/schema/common/table.js.map +1 -0
  402. package/dist/schema/common/track.d.ts +117 -0
  403. package/dist/schema/common/track.d.ts.map +1 -0
  404. package/{src → dist}/schema/common/track.js +44 -49
  405. package/dist/schema/common/track.js.map +1 -0
  406. package/dist/schema/const.d.ts +3 -0
  407. package/dist/schema/const.d.ts.map +1 -0
  408. package/{src → dist}/schema/const.js +3 -3
  409. package/dist/schema/const.js.map +1 -0
  410. package/dist/schema/convert.d.ts +3 -0
  411. package/dist/schema/convert.d.ts.map +1 -0
  412. package/dist/schema/convert.js +1215 -0
  413. package/dist/schema/convert.js.map +1 -0
  414. package/dist/schema/document/content.d.ts +110 -0
  415. package/dist/schema/document/content.d.ts.map +1 -0
  416. package/dist/schema/document/content.js +177 -0
  417. package/dist/schema/document/content.js.map +1 -0
  418. package/dist/schema/document/index.d.ts +795 -0
  419. package/dist/schema/document/index.d.ts.map +1 -0
  420. package/dist/schema/document/index.js +68 -0
  421. package/dist/schema/document/index.js.map +1 -0
  422. package/dist/schema/document/structure.d.ts +164 -0
  423. package/dist/schema/document/structure.d.ts.map +1 -0
  424. package/dist/schema/document/structure.js +445 -0
  425. package/dist/schema/document/structure.js.map +1 -0
  426. package/dist/schema/export.d.ts +7 -0
  427. package/dist/schema/export.d.ts.map +1 -0
  428. package/dist/schema/export.js +17 -0
  429. package/dist/schema/export.js.map +1 -0
  430. package/dist/schema/footnotes.d.ts +454 -0
  431. package/dist/schema/footnotes.d.ts.map +1 -0
  432. package/dist/schema/footnotes.js +90 -0
  433. package/dist/schema/footnotes.js.map +1 -0
  434. package/dist/schema/footnotes_convert.d.ts +5 -0
  435. package/dist/schema/footnotes_convert.d.ts.map +1 -0
  436. package/dist/schema/footnotes_convert.js +30 -0
  437. package/dist/schema/footnotes_convert.js.map +1 -0
  438. package/dist/schema/i18n.d.ts +55 -0
  439. package/dist/schema/i18n.d.ts.map +1 -0
  440. package/{src → dist}/schema/i18n.js +14 -23
  441. package/dist/schema/i18n.js.map +1 -0
  442. package/dist/schema/index.d.ts +6 -0
  443. package/dist/schema/index.d.ts.map +1 -0
  444. package/dist/schema/index.js +6 -0
  445. package/dist/schema/index.js.map +1 -0
  446. package/dist/schema/mini_json.d.ts +4 -0
  447. package/dist/schema/mini_json.d.ts.map +1 -0
  448. package/{src → dist}/schema/mini_json.js +19 -28
  449. package/dist/schema/mini_json.js.map +1 -0
  450. package/dist/schema/text.d.ts +3 -0
  451. package/dist/schema/text.d.ts.map +1 -0
  452. package/dist/schema/text.js +23 -0
  453. package/dist/schema/text.js.map +1 -0
  454. package/dist/types.d.ts +281 -0
  455. package/dist/types.d.ts.map +1 -0
  456. package/dist/types.js +9 -0
  457. package/dist/types.js.map +1 -0
  458. package/package.json +51 -16
  459. package/scripts/export-schema.js +1 -1
  460. package/src/bibliography/{common.js → common.ts} +15 -12
  461. package/src/bibliography/{csl_bib.js → csl_bib.ts} +16 -15
  462. package/src/citations/{citeproc_sys.js → citeproc_sys.ts} +26 -6
  463. package/src/citations/{format.js → format.ts} +80 -24
  464. package/src/editor/e2ee/{encryptor.js → encryptor.ts} +76 -44
  465. package/src/exporter/docx/{citations.js → citations.ts} +51 -23
  466. package/src/exporter/docx/{comments.js → comments.ts} +69 -26
  467. package/src/exporter/docx/{footnotes.js → footnotes.ts} +81 -42
  468. package/src/exporter/docx/images.ts +128 -0
  469. package/src/exporter/docx/{index.js → index.ts} +48 -25
  470. package/src/exporter/docx/{lists.js → lists.ts} +89 -46
  471. package/src/exporter/docx/{math.js → math.ts} +29 -9
  472. package/src/exporter/docx/{metadata.js → metadata.ts} +78 -42
  473. package/src/exporter/docx/{rels.js → rels.ts} +71 -50
  474. package/src/exporter/docx/{render.js → render.ts} +124 -87
  475. package/src/exporter/docx/{richtext.js → richtext.ts} +107 -84
  476. package/src/exporter/docx/{tables.js → tables.ts} +33 -23
  477. package/src/exporter/docx/{tools.js → tools.ts} +4 -3
  478. package/src/exporter/epub/{index.js → index.ts} +44 -15
  479. package/src/exporter/epub/{templates.js → templates.ts} +71 -7
  480. package/src/exporter/epub/tools.ts +102 -0
  481. package/src/exporter/html/{citations.js → citations.ts} +79 -31
  482. package/src/exporter/html/{convert.js → convert.ts} +118 -71
  483. package/src/exporter/html/{index.js → index.ts} +63 -29
  484. package/src/exporter/html/{templates.js → templates.ts} +22 -2
  485. package/src/exporter/html/{tools.js → tools.ts} +9 -6
  486. package/src/exporter/jats/bibliography.ts +199 -0
  487. package/src/exporter/jats/{citations.js → citations.ts} +56 -20
  488. package/src/exporter/jats/{convert.js → convert.ts} +72 -53
  489. package/src/exporter/jats/index.ts +132 -0
  490. package/src/exporter/jats/{templates.js → templates.ts} +19 -3
  491. package/src/exporter/jats/{text.js → text.ts} +8 -6
  492. package/src/exporter/latex/{convert.js → convert.ts} +160 -125
  493. package/src/exporter/latex/{escape_latex.js → escape_latex.ts} +1 -1
  494. package/src/exporter/latex/{index.js → index.ts} +27 -12
  495. package/src/exporter/latex/{readme.js → readme.ts} +2 -2
  496. package/src/exporter/native/copy.ts +231 -0
  497. package/src/exporter/native/file.ts +65 -0
  498. package/src/exporter/native/index.ts +4 -0
  499. package/src/exporter/native/revision.ts +76 -0
  500. package/src/exporter/native/{shrink.js → shrink.ts} +64 -29
  501. package/src/exporter/native/zip.ts +85 -0
  502. package/src/exporter/odt/{citations.js → citations.ts} +35 -15
  503. package/src/exporter/odt/{footnotes.js → footnotes.ts} +53 -30
  504. package/src/exporter/odt/images.ts +135 -0
  505. package/src/exporter/odt/{index.js → index.ts} +49 -27
  506. package/src/exporter/odt/{math.js → math.ts} +38 -9
  507. package/src/exporter/odt/{metadata.js → metadata.ts} +54 -29
  508. package/src/exporter/odt/{render.js → render.ts} +89 -60
  509. package/src/exporter/odt/{richtext.js → richtext.ts} +102 -72
  510. package/src/exporter/odt/{styles.js → styles.ts} +98 -66
  511. package/src/exporter/odt/{track.js → track.ts} +22 -6
  512. package/src/exporter/pandoc/{citations.js → citations.ts} +31 -15
  513. package/src/exporter/pandoc/{convert.js → convert.ts} +98 -79
  514. package/src/exporter/pandoc/{index.js → index.ts} +36 -13
  515. package/src/exporter/pandoc/{readme.js → readme.ts} +0 -1
  516. package/src/exporter/pandoc/{tools.js → tools.ts} +28 -5
  517. package/src/exporter/print/{index.js → index.ts} +38 -19
  518. package/src/exporter/tools/{doc_content.js → doc_content.ts} +34 -24
  519. package/src/exporter/tools/{file.js → file.ts} +1 -1
  520. package/src/exporter/tools/{json.js → json.ts} +30 -19
  521. package/src/exporter/tools/{svg.js → svg.ts} +9 -3
  522. package/src/exporter/tools/{xml.js → xml.ts} +187 -138
  523. package/src/exporter/tools/{xml_zip.js → xml_zip.ts} +19 -11
  524. package/src/exporter/tools/{zip.js → zip.ts} +35 -11
  525. package/src/exporter/tools/{zotero_csl.js → zotero_csl.ts} +35 -18
  526. package/src/global.d.ts +13 -0
  527. package/src/importer/citations.ts +116 -0
  528. package/src/importer/docx/{citations.js → citations.ts} +22 -37
  529. package/src/importer/docx/{convert.js → convert.ts} +176 -141
  530. package/src/importer/docx/{helpers.js → helpers.ts} +1 -1
  531. package/src/importer/docx/index.ts +124 -0
  532. package/src/importer/docx/{omml2mathml.js → omml2mathml.ts} +154 -176
  533. package/src/importer/docx/{parse.js → parse.ts} +103 -81
  534. package/src/importer/native/extract_template.ts +83 -0
  535. package/src/importer/native/file.ts +282 -0
  536. package/src/importer/native/get_images.ts +82 -0
  537. package/src/importer/native/importer.ts +244 -0
  538. package/src/importer/native/index.ts +6 -0
  539. package/src/importer/native/{update.js → update.ts} +13 -5
  540. package/src/importer/native/update_template.ts +32 -0
  541. package/src/importer/odt/{citations.js → citations.ts} +17 -29
  542. package/src/importer/odt/{convert.js → convert.ts} +261 -237
  543. package/src/importer/odt/index.ts +202 -0
  544. package/src/importer/pandoc/{convert.js → convert.ts} +116 -94
  545. package/src/importer/pandoc/{helpers.js → helpers.ts} +24 -12
  546. package/src/importer/pandoc/index.ts +171 -0
  547. package/src/importer/registry.ts +69 -0
  548. package/src/importer/{zip_analyzer.js → zip_analyzer.ts} +44 -18
  549. package/src/mathlive/{opf_includes.js → opf_includes.ts} +1 -1
  550. package/src/modules.d.ts +40 -0
  551. package/src/schema/common/{annotate.js → annotate.ts} +10 -8
  552. package/src/schema/common/{base.js → base.ts} +12 -10
  553. package/src/schema/common/{citation.js → citation.ts} +17 -8
  554. package/src/schema/common/{equation.js → equation.ts} +6 -4
  555. package/src/schema/common/{figure.js → figure.ts} +43 -23
  556. package/src/schema/common/{heading.js → heading.ts} +7 -5
  557. package/src/schema/common/{list.js → list.ts} +15 -13
  558. package/src/schema/common/{reference.js → reference.ts} +14 -12
  559. package/src/schema/common/{table.js → table.ts} +16 -14
  560. package/src/schema/common/track.ts +201 -0
  561. package/src/schema/const.ts +58 -0
  562. package/src/schema/{convert.js → convert.ts} +6 -2
  563. package/src/schema/document/{content.js → content.ts} +22 -20
  564. package/src/schema/document/{structure.js → structure.ts} +15 -9
  565. package/src/schema/{export.js → export.ts} +4 -2
  566. package/src/schema/{footnotes.js → footnotes.ts} +11 -8
  567. package/src/schema/{footnotes_convert.js → footnotes_convert.ts} +11 -8
  568. package/src/schema/i18n.ts +601 -0
  569. package/src/schema/mini_json.ts +60 -0
  570. package/src/schema/{text.js → text.ts} +6 -2
  571. package/src/types.ts +314 -0
  572. package/jest.config.js +0 -24
  573. package/src/exporter/docx/images.js +0 -101
  574. package/src/exporter/jats/bibliography.js +0 -183
  575. package/src/exporter/jats/index.js +0 -92
  576. package/src/exporter/odt/images.js +0 -115
  577. package/src/importer/citations.js +0 -129
  578. package/src/importer/native/get_images.js +0 -76
  579. /package/src/{index.js → index.ts} +0 -0
  580. /package/src/schema/common/{index.js → index.ts} +0 -0
  581. /package/src/schema/document/{index.js → index.ts} +0 -0
  582. /package/src/schema/{index.js → index.ts} +0 -0
@@ -49,8 +49,7 @@ export const BIBLIOGRAPHY_HEADERS = {
49
49
  ta: "நூற்பட்டியல்",
50
50
  tl: "Bibliograpiya",
51
51
  uk: "Бібліографія"
52
- }
53
-
52
+ };
54
53
  const FIGURE = {
55
54
  "af-ZA": "Figuur",
56
55
  "sq-AL": "figurë",
@@ -102,8 +101,7 @@ const FIGURE = {
102
101
  ta: "படம்",
103
102
  tl: "Figure",
104
103
  uk: "Малюнок"
105
- }
106
-
104
+ };
107
105
  const EQUATION = {
108
106
  "af-ZA": "Vergelyking",
109
107
  "sq-AL": "Ekuacioni",
@@ -155,8 +153,7 @@ const EQUATION = {
155
153
  ta: "சமன்பாடு",
156
154
  tl: "Equation",
157
155
  uk: "Pівняння"
158
- }
159
-
156
+ };
160
157
  const TABLE = {
161
158
  "af-ZA": "Tabel",
162
159
  "sq-AL": "tabelë",
@@ -208,8 +205,7 @@ const TABLE = {
208
205
  ta: "மேசை",
209
206
  tl: "Table",
210
207
  uk: "Таблиця"
211
- }
212
-
208
+ };
213
209
  const PHOTO = {
214
210
  "af-ZA": "Foto",
215
211
  "sq-AL": "Foto",
@@ -261,8 +257,7 @@ const PHOTO = {
261
257
  ta: "புகைப்பட",
262
258
  tl: "Larawan",
263
259
  uk: "Фото"
264
- }
265
-
260
+ };
266
261
  const LISTING = {
267
262
  "af-ZA": "Lys",
268
263
  "sq-AL": "Listë",
@@ -314,8 +309,7 @@ const LISTING = {
314
309
  ta: "பட்டியல்",
315
310
  tl: "Listahan",
316
311
  uk: "Лістинг"
317
- }
318
-
312
+ };
319
313
  const EXAMPLE = {
320
314
  "af-ZA": "Voorbeeld",
321
315
  "sq-AL": "Shembull",
@@ -367,8 +361,7 @@ const EXAMPLE = {
367
361
  ta: "உதாரணம்",
368
362
  tl: "Halimbawa",
369
363
  uk: "Приклад"
370
- }
371
-
364
+ };
372
365
  const SNIPPET = {
373
366
  "af-ZA": "Snipper",
374
367
  "sq-AL": "Fragment",
@@ -420,8 +413,7 @@ const SNIPPET = {
420
413
  ta: "துணுக்கு",
421
414
  tl: "Snippet",
422
415
  uk: "Фрагмент"
423
- }
424
-
416
+ };
425
417
  const TUTORIAL = {
426
418
  "af-ZA": "Tutoriaal",
427
419
  "sq-AL": "Udhëzues",
@@ -473,8 +465,7 @@ const TUTORIAL = {
473
465
  ta: "பயிற்சி",
474
466
  tl: "Tutorial",
475
467
  uk: "Посібник"
476
- }
477
-
468
+ };
478
469
  const EXERCISE = {
479
470
  "af-ZA": "Oefening",
480
471
  "sq-AL": "Ushtrim",
@@ -526,8 +517,7 @@ const EXERCISE = {
526
517
  ta: "பயிற்சி",
527
518
  tl: "Ehersisyo",
528
519
  uk: "Вправа"
529
- }
530
-
520
+ };
531
521
  const EXERCISE_SOLUTION = {
532
522
  "af-ZA": "Oplossing",
533
523
  "sq-AL": "Zgjidhje",
@@ -579,8 +569,7 @@ const EXERCISE_SOLUTION = {
579
569
  ta: "தீர்வு",
580
570
  tl: "Solusyon",
581
571
  uk: "Розв'язок"
582
- }
583
-
572
+ };
584
573
  export const CATS = {
585
574
  figure: FIGURE,
586
575
  equation: EQUATION,
@@ -592,4 +581,6 @@ export const CATS = {
592
581
  tutorial: TUTORIAL,
593
582
  exercise: EXERCISE,
594
583
  exercise_solution: EXERCISE_SOLUTION
595
- }
584
+ };
585
+ export const getCat = (category, language) => CATS[category]?.[language] || CATS[category]?.["en-US"] || category;
586
+ //# sourceMappingURL=i18n.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i18n.js","sourceRoot":"","sources":["../../src/schema/i18n.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAChC,OAAO,EAAE,cAAc;IACvB,OAAO,EAAE,aAAa;IACtB,EAAE,EAAE,eAAe;IACnB,GAAG,EAAE,cAAc;IACnB,EAAE,EAAE,cAAc;IAClB,EAAE,EAAE,cAAc;IAClB,EAAE,EAAE,cAAc;IAClB,EAAE,EAAE,cAAc;IAClB,gBAAgB,EAAE,cAAc;IAChC,OAAO,EAAE,MAAM;IACf,EAAE,EAAE,aAAa;IACjB,EAAE,EAAE,cAAc;IAClB,OAAO,EAAE,cAAc;IACvB,OAAO,EAAE,cAAc;IACvB,OAAO,EAAE,cAAc;IACvB,OAAO,EAAE,cAAc;IACvB,OAAO,EAAE,cAAc;IACvB,OAAO,EAAE,cAAc;IACvB,EAAE,EAAE,cAAc;IAClB,EAAE,EAAE,eAAe;IACnB,EAAE,EAAE,cAAc;IAClB,OAAO,EAAE,sBAAsB;IAC/B,OAAO,EAAE,sBAAsB;IAC/B,OAAO,EAAE,sBAAsB;IAC/B,EAAE,EAAE,cAAc;IAClB,EAAE,EAAE,aAAa;IACjB,EAAE,EAAE,UAAU;IACd,EAAE,EAAE,cAAc;IAClB,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,aAAa;IACjB,EAAE,EAAE,eAAe;IACnB,EAAE,EAAE,aAAa;IACjB,OAAO,EAAE,aAA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;IAClB,OAAO,EAAE,SAAS;IAClB,EAAE,EAAE,SAAS;IACb,EAAE,EAAE,SAAS;IACb,EAAE,EAAE,OAAO;IACX,UAAU,EAAE,QAAQ;IACpB,UAAU,EAAE,SAAS;IACrB,EAAE,EAAE,UAAU;IACd,EAAE,EAAE,SAAS;IACb,EAAE,EAAE,UAAU;IACd,EAAE,EAAE,SAAS;IACb,EAAE,EAAE,QAAQ;IACZ,EAAE,EAAE,UAAU;IACd,EAAE,EAAE,WAAW;CAClB,CAAA;AAED,MAAM,CAAC,MAAM,IAAI,GAGb;IACA,MAAM,EAAE,MAAM;IACd,QAAQ,EAAE,QAAQ;IAClB,KAAK,EAAE,KAAK;IACZ,KAAK,EAAE,KAAK;IACZ,OAAO,EAAE,OAAO;IAChB,OAAO,EAAE,OAAO;IAChB,OAAO,EAAE,OAAO;IAChB,QAAQ,EAAE,QAAQ;IAClB,QAAQ,EAAE,QAAQ;IAClB,iBAAiB,EAAE,iBAAiB;CACvC,CAAA;AAED,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,QAAgB,EAAE,QAAgB,EAAU,EAAE,CACjE,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,QAAQ,CAAC,IAAI,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,OAAO,CAAC,IAAI,QAAQ,CAAA"}
@@ -0,0 +1,6 @@
1
+ /** The current Fidus Writer document version.
2
+ * The importer will not import from a higher version and the exporter
3
+ * will include this number in all exports.
4
+ */
5
+ export declare const FW_DOCUMENT_VERSION = "3.6";
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schema/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,mBAAmB,QAAQ,CAAA"}
@@ -0,0 +1,6 @@
1
+ /** The current Fidus Writer document version.
2
+ * The importer will not import from a higher version and the exporter
3
+ * will include this number in all exports.
4
+ */
5
+ export const FW_DOCUMENT_VERSION = "3.6";
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/schema/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,KAAK,CAAA"}
@@ -0,0 +1,4 @@
1
+ import type { Node, Schema } from "prosemirror-model";
2
+ export declare function toMiniJSON(node: Node): Record<string, unknown>;
3
+ export declare function toFullJSON(miniJson: Record<string, unknown>, schema: Schema): Record<string, unknown>;
4
+ //# sourceMappingURL=mini_json.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mini_json.d.ts","sourceRoot":"","sources":["../../src/schema/mini_json.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAO,IAAI,EAAE,MAAM,EAAC,MAAM,mBAAmB,CAAA;AAEzD,wBAAgB,UAAU,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CA+B9D;AAoBD,wBAAgB,UAAU,CAAC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAKrG"}
@@ -1,61 +1,52 @@
1
- import deepEqual from "fast-deep-equal"
2
-
1
+ import deepEqual from "fast-deep-equal";
3
2
  export function toMiniJSON(node) {
4
3
  // Similar to the ProseMirror internal toJSON function,
5
4
  // but leaving out attributes that have default values and dealing with
6
5
  // attributes that are objects.
7
6
  // Adapted from https://github.com/ProseMirror/prosemirror-model/blob/6d970507cd0da48653d3b72f2731a71a144a364b/src/node.js#L340-L351
8
- const obj = {type: node.type.name}
7
+ const obj = { type: node.type.name };
9
8
  for (const attr in node.attrs) {
10
9
  if (!deepEqual(node.type.attrs[attr].default, node.attrs[attr])) {
11
10
  if (!obj.attrs) {
12
- obj.attrs = {}
11
+ obj.attrs = {};
13
12
  }
14
- obj.attrs[attr] = ["string", "number", "boolean"].includes(
15
- typeof node.attrs[attr]
16
- )
13
+ ;
14
+ obj.attrs[attr] = ["string", "number", "boolean"].includes(typeof node.attrs[attr])
17
15
  ? node.attrs[attr]
18
- : JSON.parse(JSON.stringify(node.attrs[attr]))
16
+ : JSON.parse(JSON.stringify(node.attrs[attr]));
19
17
  }
20
18
  }
21
19
  if (node.content.size) {
22
- obj.content = node.content.content.map(childNode =>
23
- toMiniJSON(childNode)
24
- )
20
+ obj.content = node.content.content.map(childNode => toMiniJSON(childNode));
25
21
  }
26
-
27
22
  if (node.marks.length) {
28
- obj.marks = node.marks.map(mark => toMiniMarkJSON(mark))
23
+ obj.marks = node.marks.map(mark => toMiniMarkJSON(mark));
29
24
  }
30
-
31
25
  if (node.text) {
32
- obj.text = node.text
26
+ obj.text = node.text;
33
27
  }
34
-
35
- return obj
28
+ return obj;
36
29
  }
37
-
38
30
  function toMiniMarkJSON(mark) {
39
31
  // Adapted from https://github.com/ProseMirror/prosemirror-model/blob/6d970507cd0da48653d3b72f2731a71a144a364b/src/mark.js#L76-L83
40
- const obj = {type: mark.type.name}
32
+ const obj = { type: mark.type.name };
41
33
  for (const attr in mark.attrs) {
42
34
  if (!deepEqual(mark.type.attrs[attr].default, mark.attrs[attr])) {
43
35
  if (!obj.attrs) {
44
- obj.attrs = {}
36
+ obj.attrs = {};
45
37
  }
46
- obj.attrs[attr] = ["string", "number", "boolean"].includes(
47
- typeof mark.attrs[attr]
48
- )
38
+ ;
39
+ obj.attrs[attr] = ["string", "number", "boolean"].includes(typeof mark.attrs[attr])
49
40
  ? mark.attrs[attr]
50
- : JSON.parse(JSON.stringify(mark.attrs[attr]))
41
+ : JSON.parse(JSON.stringify(mark.attrs[attr]));
51
42
  }
52
43
  }
53
- return obj
44
+ return obj;
54
45
  }
55
-
56
46
  export function toFullJSON(miniJson, schema) {
57
47
  if (!miniJson.type) {
58
- miniJson.type = "doc"
48
+ miniJson.type = "doc";
59
49
  }
60
- return schema.nodeFromJSON(miniJson).toJSON()
50
+ return schema.nodeFromJSON(miniJson).toJSON();
61
51
  }
52
+ //# sourceMappingURL=mini_json.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mini_json.js","sourceRoot":"","sources":["../../src/schema/mini_json.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,iBAAiB,CAAA;AAGvC,MAAM,UAAU,UAAU,CAAC,IAAU;IACjC,uDAAuD;IACvD,uEAAuE;IACvE,+BAA+B;IAC/B,oIAAoI;IACpI,MAAM,GAAG,GAA4B,EAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,IAAI,EAAC,CAAA;IAC3D,KAAK,MAAM,IAAI,IAAI,IAAI,CAAC,KAAK,EAAE,CAAC;QAC5B,IAAI,CAAC,SAAS,CAAE,IAAI,CAAC,IAAY,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC;YACvE,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,CAAC;gBACb,GAAG,CAAC,KAAK,GAAG,EAAE,CAAA;YAClB,CAAC;YACD,CAAC;YAAC,GAAG,CAAC,KAAiC,CAAC,IAAI,CAAC,GAAG,CAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,CAAC,CAAC,QAAQ,CACpF,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAC1B;gBACG,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC;gBAClB,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;QACtD,CAAC;IACL,CAAC;IACD,IAAI,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;QACpB,GAAG,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,EAAE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d,CAAC;AAED,MAAM,UAAU,UAAU,CAAC,QAAiC,EAAE,MAAc;IACxE,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;QACjB,QAAQ,CAAC,IAAI,GAAG,KAAK,CAAA;IACzB,CAAC;IACD,OAAO,MAAM,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC,MAAM,EAAE,CAAA;AACjD,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { Node } from "prosemirror-model";
2
+ export declare function getNonDeletedTextContent(topNode: Node): string;
3
+ //# sourceMappingURL=text.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../src/schema/text.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,mBAAmB,CAAA;AAI3C,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,IAAI,GAAG,MAAM,CAqB9D"}
@@ -0,0 +1,23 @@
1
+ export function getNonDeletedTextContent(topNode) {
2
+ let text = "";
3
+ topNode.descendants(node => {
4
+ if (node.marks.find(mark => mark.type.name === "deletion") ||
5
+ (node.attrs &&
6
+ (node.attrs.track?.find((track) => track.type === "deletion") ||
7
+ node.attrs.hidden))) {
8
+ return;
9
+ }
10
+ else if (node.isBlock) {
11
+ text += "\n";
12
+ }
13
+ else if (node.isText) {
14
+ text += node.text;
15
+ }
16
+ });
17
+ return text
18
+ .replace(/(^\s*)|(\s*$)/gi, "")
19
+ .replace(/[ ]{2,}/gi, " ")
20
+ .replace(/\n /, "\n")
21
+ .replace(/\n{2,}/gi, "\n");
22
+ }
23
+ //# sourceMappingURL=text.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text.js","sourceRoot":"","sources":["../../src/schema/text.ts"],"names":[],"mappings":"AAIA,MAAM,UAAU,wBAAwB,CAAC,OAAa;IAClD,IAAI,IAAI,GAAG,EAAE,CAAA;IACb,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE;QACvB,IACI,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,KAAK,UAAU,CAAC;YACtD,CAAC,IAAI,CAAC,KAAK;gBACP,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC,KAAY,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,KAAK,UAAU,CAAC;oBAChE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,EAC7B,CAAC;YACC,OAAM;QACV,CAAC;aAAM,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC;YACtB,IAAI,IAAI,IAAI,CAAA;QAChB,CAAC;aAAM,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC;YACrB,IAAI,IAAI,IAAI,CAAC,IAAI,CAAA;QACrB,CAAC;IACL,CAAC,CAAC,CAAA;IACF,OAAO,IAAI;SACN,OAAO,CAAC,iBAAiB,EAAE,EAAE,CAAC;SAC9B,OAAO,CAAC,WAAW,EAAE,GAAG,CAAC;SACzB,OAAO,CAAC,KAAK,EAAE,IAAI,CAAC;SACpB,OAAO,CAAC,UAAU,EAAE,IAAI,CAAC,CAAA;AAClC,CAAC"}
@@ -0,0 +1,281 @@
1
+ /**
2
+ * Core types shared across the @fiduswriter/document package.
3
+ *
4
+ * These types describe the JSON-shaped document tree that Fidus Writer stores
5
+ * and exchanges with its importers/exporters. They intentionally mirror the
6
+ * ProseMirror schema while staying serialisable.
7
+ */
8
+ /** A generic JSON value. */
9
+ export type JSONValue = string | number | boolean | null | JSONValue[] | {
10
+ [key: string]: JSONValue;
11
+ };
12
+ /** Attributes that every Fidus node may carry. */
13
+ export interface NodeAttrs {
14
+ [key: string]: unknown;
15
+ id?: string;
16
+ track?: Track[];
17
+ hidden?: boolean;
18
+ }
19
+ /** A tracked change entry attached to a node or mark. */
20
+ export interface Track {
21
+ type: "insertion" | "deletion" | "block_change";
22
+ user: number;
23
+ username: string;
24
+ date: number;
25
+ approved?: boolean;
26
+ before?: FidusNode;
27
+ }
28
+ /** A Fidus document mark (inline formatting or annotation). */
29
+ export interface FidusMark {
30
+ type: string;
31
+ attrs?: NodeAttrs;
32
+ }
33
+ /** A node in the Fidus document tree. */
34
+ export interface FidusNode {
35
+ type: string;
36
+ attrs?: NodeAttrs;
37
+ content?: FidusNode[];
38
+ marks?: FidusMark[];
39
+ text?: string;
40
+ }
41
+ /** Top-level document settings stored on the `doc` node. */
42
+ export interface DocSettings {
43
+ documentstyle?: string;
44
+ tracked?: boolean;
45
+ citationstyle?: string;
46
+ citationstyles?: string[];
47
+ language?: string;
48
+ languages?: string[];
49
+ papersize?: string;
50
+ papersizes?: string[];
51
+ footnote_marks?: string[];
52
+ footnote_elements?: string[];
53
+ bibliography_header?: FidusNode;
54
+ metadata?: Record<string, JSONValue>;
55
+ [key: string]: unknown;
56
+ }
57
+ /** The root Fidus document node. */
58
+ export interface FidusDoc {
59
+ type: "doc";
60
+ attrs?: DocSettings;
61
+ content: FidusNode[];
62
+ }
63
+ /** A fully populated document object passed to exporters. */
64
+ export interface ExportDoc {
65
+ id: string | number;
66
+ title: string;
67
+ path?: string;
68
+ content: FidusNode;
69
+ settings: DocSettings;
70
+ comments?: Record<string, CommentData>;
71
+ version?: string;
72
+ }
73
+ /** A document contributor extracted from a contributors_part node. */
74
+ export interface Contributor {
75
+ firstname?: string;
76
+ lastname?: string;
77
+ institution?: string;
78
+ role?: string;
79
+ email?: string;
80
+ id_type?: string;
81
+ id_value?: string;
82
+ [key: string]: unknown;
83
+ }
84
+ /** Metadata bundle assembled by exporters and passed to metadata handlers. */
85
+ export interface ExportMetadata {
86
+ title: string;
87
+ authors: Contributor[];
88
+ contributors: Contributor[];
89
+ keywords: string[];
90
+ language?: string;
91
+ citationStyle?: string;
92
+ }
93
+ /** A user reference passed to importers. */
94
+ export interface User {
95
+ id: number;
96
+ name?: string;
97
+ avatar?: string;
98
+ username?: string;
99
+ }
100
+ /** A single comment thread. */
101
+ export interface CommentData {
102
+ id?: number;
103
+ user: number;
104
+ username: string;
105
+ date: number;
106
+ resolved?: boolean;
107
+ comment: FidusNode[];
108
+ answers?: Array<{
109
+ id?: string;
110
+ user: number;
111
+ username: string;
112
+ date: number;
113
+ answer: FidusNode[];
114
+ }>;
115
+ }
116
+ /** A bibliographic database entry (format depends on the CSL engine). */
117
+ export interface BibDBEntry {
118
+ entry_key?: string;
119
+ bib_type?: string;
120
+ fields?: Record<string, JSONValue>;
121
+ [key: string]: JSONValue | undefined;
122
+ }
123
+ /** Flat map of bibliography entries keyed by internal ID. */
124
+ export type BibDBEntries = Record<string, BibDBEntry>;
125
+ /** Bibliography database wrapper used by importers/exporters. */
126
+ export interface BibDB {
127
+ db: BibDBEntries;
128
+ getDB?: () => Promise<void>;
129
+ }
130
+ /** An entry in the image database. */
131
+ export interface ImageDBEntry {
132
+ id: number;
133
+ title?: string;
134
+ file_type?: string;
135
+ image?: string | ArrayBuffer | Blob;
136
+ copyright?: Record<string, JSONValue>;
137
+ [key: string]: unknown;
138
+ }
139
+ /** Flat map of image entries keyed by internal ID. */
140
+ export type ImageDBEntries = Record<string, ImageDBEntry>;
141
+ /** Image database wrapper used by importers/exporters. */
142
+ export interface ImageDB {
143
+ db: ImageDBEntries;
144
+ }
145
+ /** A parsed CSL/CSL-M stylesheet node. */
146
+ export interface CSLStyleNode {
147
+ name: string;
148
+ attrs?: Record<string, unknown>;
149
+ children?: CSLStyleNode[];
150
+ }
151
+ /** A parsed CSL/CSL-M stylesheet. */
152
+ export interface CSLStyle {
153
+ children: CSLStyleNode[];
154
+ }
155
+ /** A CSL/CSL-M stylesheet reference / engine provider. */
156
+ export interface CSL {
157
+ citationType?: string;
158
+ getStyle?: (styleId: string) => Promise<CSLStyle>;
159
+ getEngine?: (sys: unknown, styleId: string, lang: string) => Promise<CiteprocInstance>;
160
+ getEngineSync?: (sys: unknown, styleId: string, lang: string) => CiteprocInstance | undefined;
161
+ }
162
+ /** A minimal citeproc-js engine interface. */
163
+ export interface CiteprocInstance {
164
+ updateItems: (ids: string[]) => void;
165
+ appendCitationCluster: (citation: unknown, flag?: boolean) => Array<[number, string]>;
166
+ makeCitationCluster: (items: unknown[]) => string;
167
+ cslXml: {
168
+ dataObj: {
169
+ attrs: {
170
+ class: string;
171
+ };
172
+ };
173
+ };
174
+ citation: {
175
+ opt: {
176
+ layout_delimiter?: string;
177
+ };
178
+ };
179
+ makeBibliography: () => BibliographyResult;
180
+ sys?: unknown;
181
+ }
182
+ /** citeproc-js makeBibliography() result tuple. */
183
+ export interface BibliographyResult extends Array<unknown> {
184
+ 0: {
185
+ entry_ids: string[];
186
+ bibstart: string;
187
+ bibend: string;
188
+ entryspacing: number;
189
+ linespacing: number;
190
+ hangingindent?: boolean;
191
+ maxoffset: number;
192
+ "second-field-align"?: "margin" | "flush";
193
+ };
194
+ 1: string[];
195
+ }
196
+ /** Common constructor options for exporters. */
197
+ export interface ExporterOptions {
198
+ doc: ExportDoc;
199
+ templateUrl?: string;
200
+ bibDB?: BibDB;
201
+ imageDB?: ImageDB;
202
+ csl?: CSL;
203
+ }
204
+ /** JSON representation of a DOM node used by the native exporter. */
205
+ export interface NativeDomNode {
206
+ t?: string;
207
+ co?: string;
208
+ nn?: string;
209
+ a?: Array<[string, string]>;
210
+ c?: NativeDomNode[];
211
+ }
212
+ /** A document template extracted from document content. */
213
+ export interface Template {
214
+ content: FidusNode;
215
+ exportTemplates: Array<Record<string, JSONValue>>;
216
+ documentStyles: Array<Record<string, JSONValue>>;
217
+ files?: Array<{
218
+ filename: string;
219
+ content: Blob | ArrayBuffer | string;
220
+ }>;
221
+ }
222
+ /** Files bundled with a document template. */
223
+ export interface TemplateFiles {
224
+ textFiles: Array<{
225
+ filename: string;
226
+ contents: string;
227
+ }>;
228
+ httpFiles: Array<{
229
+ url: string;
230
+ filename: string;
231
+ }>;
232
+ }
233
+ /** Backend callbacks used by the generic NativeImporter. */
234
+ export interface NativeImporterBackend {
235
+ createDoc: (template: Template, importId: string | number | null, requestedPath: string, e2eeOptions: E2EEOptions | null, files: Record<string, File[]>) => Promise<{
236
+ id: number;
237
+ path: string;
238
+ e2ee?: boolean;
239
+ }>;
240
+ saveImages: (images: ImageDB, docId: number, e2eeOptions: E2EEOptions | null) => Promise<Record<number | string, number>>;
241
+ saveDocument: (saveData: Record<string, unknown>, e2eeOptions: E2EEOptions | null) => Promise<{
242
+ added: number;
243
+ updated: number;
244
+ }>;
245
+ extractTemplate?: (doc: FidusNode) => Template;
246
+ decryptBufferToBase64?: (base64: string, key: CryptoKey) => Promise<string>;
247
+ encryptImage?: (file: Blob, key: CryptoKey) => Promise<Blob>;
248
+ encryptObject?: (obj: unknown, key: CryptoKey) => Promise<unknown>;
249
+ encrypt?: (text: string, key: CryptoKey) => Promise<unknown>;
250
+ storeKeyInSession?: (docId: number, key: CryptoKey) => void;
251
+ }
252
+ /** E2EE options used during import/export/copy. */
253
+ export interface E2EEOptions {
254
+ enabled?: boolean;
255
+ key?: CryptoKey;
256
+ sourceKey?: CryptoKey;
257
+ targetE2EE?: boolean;
258
+ targetPassword?: string;
259
+ salt?: string;
260
+ iterations?: number;
261
+ }
262
+ /** Callback that uploads a native revision blob. */
263
+ export type UploadRevision = (blob: Blob, doc: Record<string, unknown>) => unknown;
264
+ /** E2EE helper object used by SaveCopy. */
265
+ export interface SaveCopyE2EE {
266
+ decryptObject: (encrypted: unknown, key: CryptoKey) => Promise<unknown>;
267
+ encryptObject: (obj: unknown, key: CryptoKey) => Promise<unknown>;
268
+ encrypt: (text: string, key: CryptoKey) => Promise<unknown>;
269
+ encryptImage: (file: Blob, key: CryptoKey) => Promise<Blob>;
270
+ generateSalt: () => Uint8Array;
271
+ deriveKey: (password: string, salt: Uint8Array, iterations: number) => Promise<CryptoKey>;
272
+ }
273
+ /** Callback used by SaveCopy to import a copied document. */
274
+ export type ImportDocument = (doc: Record<string, unknown>, bibDB: BibDB, imageDB: ImageDB, httpIncludes: Array<{
275
+ url: string;
276
+ filename: string;
277
+ }>, options: Record<string, unknown>) => Promise<{
278
+ doc: Record<string, unknown>;
279
+ docInfo: Record<string, unknown>;
280
+ }>;
281
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,4BAA4B;AAC5B,MAAM,MAAM,SAAS,GACf,MAAM,GACN,MAAM,GACN,OAAO,GACP,IAAI,GACJ,SAAS,EAAE,GACX;IAAC,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAA;CAAC,CAAA;AAEhC,kDAAkD;AAClD,MAAM,WAAW,SAAS;IACtB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;IACtB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,KAAK,CAAC,EAAE,KAAK,EAAE,CAAA;IACf,MAAM,CAAC,EAAE,OAAO,CAAA;CACnB;AAED,yDAAyD;AACzD,MAAM,WAAW,KAAK;IAClB,IAAI,EAAE,WAAW,GAAG,UAAU,GAAG,cAAc,CAAA;IAC/C,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,MAAM,CAAA;IAChB,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,MAAM,CAAC,EAAE,SAAS,CAAA;CACrB;AAED,+DAA+D;AAC/D,MAAM,WAAW,SAAS;IACtB,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,CAAC,EAAE,SAAS,CAAA;CACpB;AAED,yCAAyC;AACzC,MAAM,WAAW,SAAS;IACtB,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,OAAO,CAAC,EAAE,SAAS,EAAE,CAAA;IACrB,KAAK,CAAC,EAAE,SAAS,EAAE,CAAA;IACnB,IAAI,CAAC,EAAE,MAAM,CAAA;CAChB;AAED,4DAA4D;AAC5D,MAAM,WAAW,WAAW;IACxB,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,OAAO,EAAE,OAAO,EAChB,YAAY,EAAE,KAAK,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAC,CAAC,EACpD,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAC/B,OAAO,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAAC,CAAC,CAAA"}
package/dist/types.js ADDED
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Core types shared across the @fiduswriter/document package.
3
+ *
4
+ * These types describe the JSON-shaped document tree that Fidus Writer stores
5
+ * and exchanges with its importers/exporters. They intentionally mirror the
6
+ * ProseMirror schema while staying serialisable.
7
+ */
8
+ export {};
9
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}