@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.
- package/README.md +22 -1
- package/dist/bibliography/common.d.ts +10 -0
- package/dist/bibliography/common.d.ts.map +1 -0
- package/dist/bibliography/common.js +86 -0
- package/dist/bibliography/common.js.map +1 -0
- package/dist/bibliography/csl_bib.d.ts +3 -0
- package/dist/bibliography/csl_bib.d.ts.map +1 -0
- package/dist/bibliography/csl_bib.js +131 -0
- package/dist/bibliography/csl_bib.js.map +1 -0
- package/dist/citations/citeproc_sys.d.ts +12 -0
- package/dist/citations/citeproc_sys.d.ts.map +1 -0
- package/dist/citations/citeproc_sys.js +48 -0
- package/dist/citations/citeproc_sys.js.map +1 -0
- package/dist/citations/format.d.ts +40 -0
- package/dist/citations/format.d.ts.map +1 -0
- package/dist/citations/format.js +186 -0
- package/dist/citations/format.js.map +1 -0
- package/dist/editor/e2ee/encryptor.d.ts +123 -0
- package/dist/editor/e2ee/encryptor.d.ts.map +1 -0
- package/dist/editor/e2ee/encryptor.js +201 -0
- package/dist/editor/e2ee/encryptor.js.map +1 -0
- package/dist/exporter/docx/citations.d.ts +31 -0
- package/dist/exporter/docx/citations.d.ts.map +1 -0
- package/dist/exporter/docx/citations.js +171 -0
- package/dist/exporter/docx/citations.js.map +1 -0
- package/dist/exporter/docx/comments.d.ts +22 -0
- package/dist/exporter/docx/comments.d.ts.map +1 -0
- package/dist/exporter/docx/comments.js +170 -0
- package/dist/exporter/docx/comments.js.map +1 -0
- package/dist/exporter/docx/footnotes.d.ts +47 -0
- package/dist/exporter/docx/footnotes.d.ts.map +1 -0
- package/dist/exporter/docx/footnotes.js +216 -0
- package/dist/exporter/docx/footnotes.js.map +1 -0
- package/dist/exporter/docx/images.d.ts +25 -0
- package/dist/exporter/docx/images.d.ts.map +1 -0
- package/dist/exporter/docx/images.js +101 -0
- package/dist/exporter/docx/images.js.map +1 -0
- package/dist/exporter/docx/index.d.ts +16 -0
- package/dist/exporter/docx/index.d.ts.map +1 -0
- package/dist/exporter/docx/index.js +115 -0
- package/dist/exporter/docx/index.js.map +1 -0
- package/dist/exporter/docx/lists.d.ts +38 -0
- package/dist/exporter/docx/lists.d.ts.map +1 -0
- package/dist/exporter/docx/lists.js +276 -0
- package/dist/exporter/docx/lists.js.map +1 -0
- package/dist/exporter/docx/math.d.ts +13 -0
- package/dist/exporter/docx/math.d.ts.map +1 -0
- package/dist/exporter/docx/math.js +59 -0
- package/dist/exporter/docx/math.js.map +1 -0
- package/dist/exporter/docx/metadata.d.ts +17 -0
- package/dist/exporter/docx/metadata.d.ts.map +1 -0
- package/dist/exporter/docx/metadata.js +272 -0
- package/dist/exporter/docx/metadata.js.map +1 -0
- package/dist/exporter/docx/rels.d.ts +27 -0
- package/dist/exporter/docx/rels.d.ts.map +1 -0
- package/dist/exporter/docx/rels.js +183 -0
- package/dist/exporter/docx/rels.js.map +1 -0
- package/dist/exporter/docx/render.d.ts +22 -0
- package/dist/exporter/docx/render.d.ts.map +1 -0
- package/dist/exporter/docx/render.js +780 -0
- package/dist/exporter/docx/render.js.map +1 -0
- package/dist/exporter/docx/richtext.d.ts +25 -0
- package/dist/exporter/docx/richtext.d.ts.map +1 -0
- package/dist/exporter/docx/richtext.js +1070 -0
- package/dist/exporter/docx/richtext.js.map +1 -0
- package/dist/exporter/docx/tables.d.ts +16 -0
- package/dist/exporter/docx/tables.d.ts.map +1 -0
- package/dist/exporter/docx/tables.js +115 -0
- package/dist/exporter/docx/tables.js.map +1 -0
- package/dist/exporter/docx/tools.d.ts +4 -0
- package/dist/exporter/docx/tools.d.ts.map +1 -0
- package/dist/exporter/docx/tools.js +48 -0
- package/dist/exporter/docx/tools.js.map +1 -0
- package/dist/exporter/epub/index.d.ts +19 -0
- package/dist/exporter/epub/index.d.ts.map +1 -0
- package/dist/exporter/epub/index.js +109 -0
- package/dist/exporter/epub/index.js.map +1 -0
- package/dist/exporter/epub/templates.d.ts +63 -0
- package/dist/exporter/epub/templates.d.ts.map +1 -0
- package/dist/exporter/epub/templates.js +95 -0
- package/dist/exporter/epub/templates.js.map +1 -0
- package/dist/exporter/epub/tools.d.ts +13 -0
- package/dist/exporter/epub/tools.d.ts.map +1 -0
- package/{src → dist}/exporter/epub/tools.js +32 -46
- package/dist/exporter/epub/tools.js.map +1 -0
- package/dist/exporter/html/citations.d.ts +29 -0
- package/dist/exporter/html/citations.d.ts.map +1 -0
- package/dist/exporter/html/citations.js +110 -0
- package/dist/exporter/html/citations.js.map +1 -0
- package/dist/exporter/html/convert.d.ts +50 -0
- package/dist/exporter/html/convert.d.ts.map +1 -0
- package/dist/exporter/html/convert.js +750 -0
- package/dist/exporter/html/convert.js.map +1 -0
- package/dist/exporter/html/index.d.ts +64 -0
- package/dist/exporter/html/index.d.ts.map +1 -0
- package/dist/exporter/html/index.js +154 -0
- package/dist/exporter/html/index.js.map +1 -0
- package/dist/exporter/html/templates.d.ts +24 -0
- package/dist/exporter/html/templates.d.ts.map +1 -0
- package/dist/exporter/html/templates.js +21 -0
- package/dist/exporter/html/templates.js.map +1 -0
- package/dist/exporter/html/tools.d.ts +2 -0
- package/dist/exporter/html/tools.d.ts.map +1 -0
- package/dist/exporter/html/tools.js +49 -0
- package/dist/exporter/html/tools.js.map +1 -0
- package/dist/exporter/jats/bibliography.d.ts +3 -0
- package/dist/exporter/jats/bibliography.d.ts.map +1 -0
- package/dist/exporter/jats/bibliography.js +158 -0
- package/dist/exporter/jats/bibliography.js.map +1 -0
- package/dist/exporter/jats/citations.d.ts +16 -0
- package/dist/exporter/jats/citations.d.ts.map +1 -0
- package/dist/exporter/jats/citations.js +105 -0
- package/dist/exporter/jats/citations.js.map +1 -0
- package/dist/exporter/jats/convert.d.ts +41 -0
- package/dist/exporter/jats/convert.d.ts.map +1 -0
- package/dist/exporter/jats/convert.js +816 -0
- package/dist/exporter/jats/convert.js.map +1 -0
- package/dist/exporter/jats/index.d.ts +25 -0
- package/dist/exporter/jats/index.d.ts.map +1 -0
- package/dist/exporter/jats/index.js +82 -0
- package/dist/exporter/jats/index.js.map +1 -0
- package/dist/exporter/jats/templates.d.ts +18 -0
- package/dist/exporter/jats/templates.d.ts.map +1 -0
- package/dist/exporter/jats/templates.js +25 -0
- package/dist/exporter/jats/templates.js.map +1 -0
- package/dist/exporter/jats/text.d.ts +4 -0
- package/dist/exporter/jats/text.d.ts.map +1 -0
- package/dist/exporter/jats/text.js +72 -0
- package/dist/exporter/jats/text.js.map +1 -0
- package/dist/exporter/latex/convert.d.ts +24 -0
- package/dist/exporter/latex/convert.d.ts.map +1 -0
- package/dist/exporter/latex/convert.js +881 -0
- package/dist/exporter/latex/convert.js.map +1 -0
- package/dist/exporter/latex/escape_latex.d.ts +2 -0
- package/dist/exporter/latex/escape_latex.d.ts.map +1 -0
- package/dist/exporter/latex/escape_latex.js +20 -0
- package/dist/exporter/latex/escape_latex.js.map +1 -0
- package/dist/exporter/latex/index.d.ts +24 -0
- package/dist/exporter/latex/index.d.ts.map +1 -0
- package/dist/exporter/latex/index.js +67 -0
- package/dist/exporter/latex/index.js.map +1 -0
- package/dist/exporter/latex/readme.d.ts +2 -0
- package/dist/exporter/latex/readme.d.ts.map +1 -0
- package/dist/exporter/latex/readme.js +23 -0
- package/dist/exporter/latex/readme.js.map +1 -0
- package/dist/exporter/native/copy.d.ts +30 -0
- package/dist/exporter/native/copy.d.ts.map +1 -0
- package/dist/exporter/native/copy.js +151 -0
- package/dist/exporter/native/copy.js.map +1 -0
- package/dist/exporter/native/file.d.ts +12 -0
- package/dist/exporter/native/file.d.ts.map +1 -0
- package/dist/exporter/native/file.js +38 -0
- package/dist/exporter/native/file.js.map +1 -0
- package/dist/exporter/native/index.d.ts +5 -0
- package/dist/exporter/native/index.d.ts.map +1 -0
- package/dist/exporter/native/index.js +5 -0
- package/dist/exporter/native/index.js.map +1 -0
- package/dist/exporter/native/revision.d.ts +18 -0
- package/dist/exporter/native/revision.d.ts.map +1 -0
- package/dist/exporter/native/revision.js +39 -0
- package/dist/exporter/native/revision.js.map +1 -0
- package/dist/exporter/native/shrink.d.ts +36 -0
- package/dist/exporter/native/shrink.d.ts.map +1 -0
- package/dist/exporter/native/shrink.js +124 -0
- package/dist/exporter/native/shrink.js.map +1 -0
- package/dist/exporter/native/zip.d.ts +25 -0
- package/dist/exporter/native/zip.d.ts.map +1 -0
- package/dist/exporter/native/zip.js +56 -0
- package/dist/exporter/native/zip.js.map +1 -0
- package/dist/exporter/odt/citations.d.ts +21 -0
- package/dist/exporter/odt/citations.d.ts.map +1 -0
- package/dist/exporter/odt/citations.js +104 -0
- package/dist/exporter/odt/citations.js.map +1 -0
- package/dist/exporter/odt/footnotes.d.ts +31 -0
- package/dist/exporter/odt/footnotes.d.ts.map +1 -0
- package/dist/exporter/odt/footnotes.js +129 -0
- package/dist/exporter/odt/footnotes.js.map +1 -0
- package/dist/exporter/odt/images.d.ts +25 -0
- package/dist/exporter/odt/images.d.ts.map +1 -0
- package/dist/exporter/odt/images.js +106 -0
- package/dist/exporter/odt/images.js.map +1 -0
- package/dist/exporter/odt/index.d.ts +17 -0
- package/dist/exporter/odt/index.d.ts.map +1 -0
- package/dist/exporter/odt/index.js +108 -0
- package/dist/exporter/odt/index.js.map +1 -0
- package/dist/exporter/odt/math.d.ts +15 -0
- package/dist/exporter/odt/math.d.ts.map +1 -0
- package/dist/exporter/odt/math.js +71 -0
- package/dist/exporter/odt/math.js.map +1 -0
- package/dist/exporter/odt/metadata.d.ts +18 -0
- package/dist/exporter/odt/metadata.d.ts.map +1 -0
- package/dist/exporter/odt/metadata.js +224 -0
- package/dist/exporter/odt/metadata.js.map +1 -0
- package/dist/exporter/odt/render.d.ts +26 -0
- package/dist/exporter/odt/render.d.ts.map +1 -0
- package/dist/exporter/odt/render.js +651 -0
- package/dist/exporter/odt/render.js.map +1 -0
- package/dist/exporter/odt/richtext.d.ts +22 -0
- package/dist/exporter/odt/richtext.d.ts.map +1 -0
- package/dist/exporter/odt/richtext.js +743 -0
- package/dist/exporter/odt/richtext.js.map +1 -0
- package/dist/exporter/odt/styles.d.ts +41 -0
- package/dist/exporter/odt/styles.d.ts.map +1 -0
- package/dist/exporter/odt/styles.js +370 -0
- package/dist/exporter/odt/styles.js.map +1 -0
- package/dist/exporter/odt/track.d.ts +18 -0
- package/dist/exporter/odt/track.d.ts.map +1 -0
- package/dist/exporter/odt/track.js +66 -0
- package/dist/exporter/odt/track.js.map +1 -0
- package/dist/exporter/pandoc/citations.d.ts +23 -0
- package/dist/exporter/pandoc/citations.d.ts.map +1 -0
- package/dist/exporter/pandoc/citations.js +99 -0
- package/dist/exporter/pandoc/citations.js.map +1 -0
- package/dist/exporter/pandoc/convert.d.ts +19 -0
- package/dist/exporter/pandoc/convert.d.ts.map +1 -0
- package/dist/exporter/pandoc/convert.js +886 -0
- package/dist/exporter/pandoc/convert.js.map +1 -0
- package/dist/exporter/pandoc/index.d.ts +25 -0
- package/dist/exporter/pandoc/index.d.ts.map +1 -0
- package/dist/exporter/pandoc/index.js +79 -0
- package/dist/exporter/pandoc/index.js.map +1 -0
- package/dist/exporter/pandoc/readme.d.ts +2 -0
- package/dist/exporter/pandoc/readme.d.ts.map +1 -0
- package/dist/exporter/pandoc/readme.js +8 -0
- package/dist/exporter/pandoc/readme.js.map +1 -0
- package/dist/exporter/pandoc/tools.d.ts +22 -0
- package/dist/exporter/pandoc/tools.d.ts.map +1 -0
- package/dist/exporter/pandoc/tools.js +52 -0
- package/dist/exporter/pandoc/tools.js.map +1 -0
- package/dist/exporter/print/index.d.ts +20 -0
- package/dist/exporter/print/index.d.ts.map +1 -0
- package/dist/exporter/print/index.js +142 -0
- package/dist/exporter/print/index.js.map +1 -0
- package/dist/exporter/tools/doc_content.d.ts +6 -0
- package/dist/exporter/tools/doc_content.d.ts.map +1 -0
- package/dist/exporter/tools/doc_content.js +130 -0
- package/dist/exporter/tools/doc_content.js.map +1 -0
- package/dist/exporter/tools/file.d.ts +2 -0
- package/dist/exporter/tools/file.d.ts.map +1 -0
- package/dist/exporter/tools/file.js +10 -0
- package/dist/exporter/tools/file.js.map +1 -0
- package/dist/exporter/tools/json.d.ts +7 -0
- package/dist/exporter/tools/json.d.ts.map +1 -0
- package/dist/exporter/tools/json.js +82 -0
- package/dist/exporter/tools/json.js.map +1 -0
- package/dist/exporter/tools/svg.d.ts +8 -0
- package/dist/exporter/tools/svg.d.ts.map +1 -0
- package/dist/exporter/tools/svg.js +26 -0
- package/dist/exporter/tools/svg.js.map +1 -0
- package/dist/exporter/tools/xml.d.ts +42 -0
- package/dist/exporter/tools/xml.d.ts.map +1 -0
- package/dist/exporter/tools/xml.js +467 -0
- package/dist/exporter/tools/xml.js.map +1 -0
- package/dist/exporter/tools/xml_zip.d.ts +21 -0
- package/dist/exporter/tools/xml_zip.d.ts.map +1 -0
- package/dist/exporter/tools/xml_zip.js +92 -0
- package/dist/exporter/tools/xml_zip.js.map +1 -0
- package/dist/exporter/tools/zip.d.ts +35 -0
- package/dist/exporter/tools/zip.d.ts.map +1 -0
- package/dist/exporter/tools/zip.js +78 -0
- package/dist/exporter/tools/zip.js.map +1 -0
- package/dist/exporter/tools/zotero_csl.d.ts +23 -0
- package/dist/exporter/tools/zotero_csl.d.ts.map +1 -0
- package/dist/exporter/tools/zotero_csl.js +78 -0
- package/dist/exporter/tools/zotero_csl.js.map +1 -0
- package/dist/importer/citations.d.ts +28 -0
- package/dist/importer/citations.d.ts.map +1 -0
- package/dist/importer/citations.js +68 -0
- package/dist/importer/citations.js.map +1 -0
- package/dist/importer/docx/citations.d.ts +43 -0
- package/dist/importer/docx/citations.d.ts.map +1 -0
- package/dist/importer/docx/citations.js +81 -0
- package/dist/importer/docx/citations.js.map +1 -0
- package/dist/importer/docx/convert.d.ts +150 -0
- package/dist/importer/docx/convert.d.ts.map +1 -0
- package/dist/importer/docx/convert.js +1243 -0
- package/dist/importer/docx/convert.js.map +1 -0
- package/dist/importer/docx/helpers.d.ts +2 -0
- package/dist/importer/docx/helpers.d.ts.map +1 -0
- package/dist/importer/docx/helpers.js +10 -0
- package/dist/importer/docx/helpers.js.map +1 -0
- package/dist/importer/docx/index.d.ts +27 -0
- package/dist/importer/docx/index.d.ts.map +1 -0
- package/dist/importer/docx/index.js +77 -0
- package/dist/importer/docx/index.js.map +1 -0
- package/dist/importer/docx/omml2mathml.d.ts +6 -0
- package/dist/importer/docx/omml2mathml.d.ts.map +1 -0
- package/dist/importer/docx/omml2mathml.js +1146 -0
- package/dist/importer/docx/omml2mathml.js.map +1 -0
- package/dist/importer/docx/parse.d.ts +96 -0
- package/dist/importer/docx/parse.d.ts.map +1 -0
- package/dist/importer/docx/parse.js +681 -0
- package/dist/importer/docx/parse.js.map +1 -0
- package/dist/importer/native/extract_template.d.ts +6 -0
- package/dist/importer/native/extract_template.d.ts.map +1 -0
- package/dist/importer/native/extract_template.js +80 -0
- package/dist/importer/native/extract_template.js.map +1 -0
- package/dist/importer/native/file.d.ts +37 -0
- package/dist/importer/native/file.d.ts.map +1 -0
- package/dist/importer/native/file.js +162 -0
- package/dist/importer/native/file.js.map +1 -0
- package/dist/importer/native/get_images.d.ts +21 -0
- package/dist/importer/native/get_images.d.ts.map +1 -0
- package/dist/importer/native/get_images.js +58 -0
- package/dist/importer/native/get_images.js.map +1 -0
- package/dist/importer/native/importer.d.ts +41 -0
- package/dist/importer/native/importer.d.ts.map +1 -0
- package/dist/importer/native/importer.js +170 -0
- package/dist/importer/native/importer.js.map +1 -0
- package/dist/importer/native/index.d.ts +7 -0
- package/dist/importer/native/index.d.ts.map +1 -0
- package/dist/importer/native/index.js +7 -0
- package/dist/importer/native/index.js.map +1 -0
- package/dist/importer/native/update.d.ts +7 -0
- package/dist/importer/native/update.d.ts.map +1 -0
- package/dist/importer/native/update.js +27 -0
- package/dist/importer/native/update.js.map +1 -0
- package/dist/importer/native/update_template.d.ts +12 -0
- package/dist/importer/native/update_template.d.ts.map +1 -0
- package/dist/importer/native/update_template.js +19 -0
- package/dist/importer/native/update_template.js.map +1 -0
- package/dist/importer/odt/citations.d.ts +27 -0
- package/dist/importer/odt/citations.d.ts.map +1 -0
- package/dist/importer/odt/citations.js +57 -0
- package/dist/importer/odt/citations.js.map +1 -0
- package/dist/importer/odt/convert.d.ts +146 -0
- package/dist/importer/odt/convert.d.ts.map +1 -0
- package/dist/importer/odt/convert.js +1530 -0
- package/dist/importer/odt/convert.js.map +1 -0
- package/dist/importer/odt/index.d.ts +30 -0
- package/dist/importer/odt/index.d.ts.map +1 -0
- package/dist/importer/odt/index.js +124 -0
- package/dist/importer/odt/index.js.map +1 -0
- package/dist/importer/pandoc/convert.d.ts +32 -0
- package/dist/importer/pandoc/convert.d.ts.map +1 -0
- package/dist/importer/pandoc/convert.js +790 -0
- package/dist/importer/pandoc/convert.js.map +1 -0
- package/dist/importer/pandoc/helpers.d.ts +5 -0
- package/dist/importer/pandoc/helpers.d.ts.map +1 -0
- package/dist/importer/pandoc/helpers.js +73 -0
- package/dist/importer/pandoc/helpers.js.map +1 -0
- package/dist/importer/pandoc/index.d.ts +31 -0
- package/dist/importer/pandoc/index.d.ts.map +1 -0
- package/dist/importer/pandoc/index.js +114 -0
- package/dist/importer/pandoc/index.js.map +1 -0
- package/dist/importer/registry.d.ts +21 -0
- package/dist/importer/registry.d.ts.map +1 -0
- package/dist/importer/registry.js +41 -0
- package/dist/importer/registry.js.map +1 -0
- package/dist/importer/zip_analyzer.d.ts +31 -0
- package/dist/importer/zip_analyzer.d.ts.map +1 -0
- package/dist/importer/zip_analyzer.js +89 -0
- package/dist/importer/zip_analyzer.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/dist/mathlive/opf_includes.d.ts +2 -0
- package/dist/mathlive/opf_includes.d.ts.map +1 -0
- package/dist/mathlive/opf_includes.js +25 -0
- package/dist/mathlive/opf_includes.js.map +1 -0
- package/dist/schema/common/annotate.d.ts +47 -0
- package/dist/schema/common/annotate.d.ts.map +1 -0
- package/dist/schema/common/annotate.js +75 -0
- package/dist/schema/common/annotate.js.map +1 -0
- package/dist/schema/common/base.d.ts +91 -0
- package/dist/schema/common/base.d.ts.map +1 -0
- package/dist/schema/common/base.js +109 -0
- package/dist/schema/common/base.js.map +1 -0
- package/dist/schema/common/citation.d.ts +30 -0
- package/dist/schema/common/citation.d.ts.map +1 -0
- package/dist/schema/common/citation.js +61 -0
- package/dist/schema/common/citation.js.map +1 -0
- package/dist/schema/common/equation.d.ts +17 -0
- package/dist/schema/common/equation.d.ts.map +1 -0
- package/dist/schema/common/equation.js +32 -0
- package/dist/schema/common/equation.js.map +1 -0
- package/dist/schema/common/figure.d.ts +87 -0
- package/dist/schema/common/figure.d.ts.map +1 -0
- package/dist/schema/common/figure.js +178 -0
- package/dist/schema/common/figure.js.map +1 -0
- package/dist/schema/common/heading.d.ts +9 -0
- package/dist/schema/common/heading.d.ts.map +1 -0
- package/dist/schema/common/heading.js +41 -0
- package/dist/schema/common/heading.js.map +1 -0
- package/dist/schema/common/index.d.ts +11 -0
- package/dist/schema/common/index.d.ts.map +1 -0
- package/dist/schema/common/index.js +11 -0
- package/dist/schema/common/index.js.map +1 -0
- package/dist/schema/common/list.d.ts +63 -0
- package/dist/schema/common/list.d.ts.map +1 -0
- package/dist/schema/common/list.js +92 -0
- package/dist/schema/common/list.js.map +1 -0
- package/dist/schema/common/reference.d.ts +70 -0
- package/dist/schema/common/reference.d.ts.map +1 -0
- package/dist/schema/common/reference.js +97 -0
- package/dist/schema/common/reference.js.map +1 -0
- package/dist/schema/common/table.d.ts +76 -0
- package/dist/schema/common/table.d.ts.map +1 -0
- package/dist/schema/common/table.js +86 -0
- package/dist/schema/common/table.js.map +1 -0
- package/dist/schema/common/track.d.ts +117 -0
- package/dist/schema/common/track.d.ts.map +1 -0
- package/{src → dist}/schema/common/track.js +44 -49
- package/dist/schema/common/track.js.map +1 -0
- package/dist/schema/const.d.ts +3 -0
- package/dist/schema/const.d.ts.map +1 -0
- package/{src → dist}/schema/const.js +3 -3
- package/dist/schema/const.js.map +1 -0
- package/dist/schema/convert.d.ts +3 -0
- package/dist/schema/convert.d.ts.map +1 -0
- package/dist/schema/convert.js +1215 -0
- package/dist/schema/convert.js.map +1 -0
- package/dist/schema/document/content.d.ts +110 -0
- package/dist/schema/document/content.d.ts.map +1 -0
- package/dist/schema/document/content.js +177 -0
- package/dist/schema/document/content.js.map +1 -0
- package/dist/schema/document/index.d.ts +795 -0
- package/dist/schema/document/index.d.ts.map +1 -0
- package/dist/schema/document/index.js +68 -0
- package/dist/schema/document/index.js.map +1 -0
- package/dist/schema/document/structure.d.ts +164 -0
- package/dist/schema/document/structure.d.ts.map +1 -0
- package/dist/schema/document/structure.js +445 -0
- package/dist/schema/document/structure.js.map +1 -0
- package/dist/schema/export.d.ts +7 -0
- package/dist/schema/export.d.ts.map +1 -0
- package/dist/schema/export.js +17 -0
- package/dist/schema/export.js.map +1 -0
- package/dist/schema/footnotes.d.ts +454 -0
- package/dist/schema/footnotes.d.ts.map +1 -0
- package/dist/schema/footnotes.js +90 -0
- package/dist/schema/footnotes.js.map +1 -0
- package/dist/schema/footnotes_convert.d.ts +5 -0
- package/dist/schema/footnotes_convert.d.ts.map +1 -0
- package/dist/schema/footnotes_convert.js +30 -0
- package/dist/schema/footnotes_convert.js.map +1 -0
- package/dist/schema/i18n.d.ts +55 -0
- package/dist/schema/i18n.d.ts.map +1 -0
- package/{src → dist}/schema/i18n.js +14 -23
- package/dist/schema/i18n.js.map +1 -0
- package/dist/schema/index.d.ts +6 -0
- package/dist/schema/index.d.ts.map +1 -0
- package/dist/schema/index.js +6 -0
- package/dist/schema/index.js.map +1 -0
- package/dist/schema/mini_json.d.ts +4 -0
- package/dist/schema/mini_json.d.ts.map +1 -0
- package/{src → dist}/schema/mini_json.js +19 -28
- package/dist/schema/mini_json.js.map +1 -0
- package/dist/schema/text.d.ts +3 -0
- package/dist/schema/text.d.ts.map +1 -0
- package/dist/schema/text.js +23 -0
- package/dist/schema/text.js.map +1 -0
- package/dist/types.d.ts +281 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +9 -0
- package/dist/types.js.map +1 -0
- package/package.json +51 -16
- package/scripts/export-schema.js +1 -1
- package/src/bibliography/{common.js → common.ts} +15 -12
- package/src/bibliography/{csl_bib.js → csl_bib.ts} +16 -15
- package/src/citations/{citeproc_sys.js → citeproc_sys.ts} +26 -6
- package/src/citations/{format.js → format.ts} +80 -24
- package/src/editor/e2ee/{encryptor.js → encryptor.ts} +76 -44
- package/src/exporter/docx/{citations.js → citations.ts} +51 -23
- package/src/exporter/docx/{comments.js → comments.ts} +69 -26
- package/src/exporter/docx/{footnotes.js → footnotes.ts} +81 -42
- package/src/exporter/docx/images.ts +128 -0
- package/src/exporter/docx/{index.js → index.ts} +48 -25
- package/src/exporter/docx/{lists.js → lists.ts} +89 -46
- package/src/exporter/docx/{math.js → math.ts} +29 -9
- package/src/exporter/docx/{metadata.js → metadata.ts} +78 -42
- package/src/exporter/docx/{rels.js → rels.ts} +71 -50
- package/src/exporter/docx/{render.js → render.ts} +124 -87
- package/src/exporter/docx/{richtext.js → richtext.ts} +107 -84
- package/src/exporter/docx/{tables.js → tables.ts} +33 -23
- package/src/exporter/docx/{tools.js → tools.ts} +4 -3
- package/src/exporter/epub/{index.js → index.ts} +44 -15
- package/src/exporter/epub/{templates.js → templates.ts} +71 -7
- package/src/exporter/epub/tools.ts +102 -0
- package/src/exporter/html/{citations.js → citations.ts} +79 -31
- package/src/exporter/html/{convert.js → convert.ts} +118 -71
- package/src/exporter/html/{index.js → index.ts} +63 -29
- package/src/exporter/html/{templates.js → templates.ts} +22 -2
- package/src/exporter/html/{tools.js → tools.ts} +9 -6
- package/src/exporter/jats/bibliography.ts +199 -0
- package/src/exporter/jats/{citations.js → citations.ts} +56 -20
- package/src/exporter/jats/{convert.js → convert.ts} +72 -53
- package/src/exporter/jats/index.ts +132 -0
- package/src/exporter/jats/{templates.js → templates.ts} +19 -3
- package/src/exporter/jats/{text.js → text.ts} +8 -6
- package/src/exporter/latex/{convert.js → convert.ts} +160 -125
- package/src/exporter/latex/{escape_latex.js → escape_latex.ts} +1 -1
- package/src/exporter/latex/{index.js → index.ts} +27 -12
- package/src/exporter/latex/{readme.js → readme.ts} +2 -2
- package/src/exporter/native/copy.ts +231 -0
- package/src/exporter/native/file.ts +65 -0
- package/src/exporter/native/index.ts +4 -0
- package/src/exporter/native/revision.ts +76 -0
- package/src/exporter/native/{shrink.js → shrink.ts} +64 -29
- package/src/exporter/native/zip.ts +85 -0
- package/src/exporter/odt/{citations.js → citations.ts} +35 -15
- package/src/exporter/odt/{footnotes.js → footnotes.ts} +53 -30
- package/src/exporter/odt/images.ts +135 -0
- package/src/exporter/odt/{index.js → index.ts} +49 -27
- package/src/exporter/odt/{math.js → math.ts} +38 -9
- package/src/exporter/odt/{metadata.js → metadata.ts} +54 -29
- package/src/exporter/odt/{render.js → render.ts} +89 -60
- package/src/exporter/odt/{richtext.js → richtext.ts} +102 -72
- package/src/exporter/odt/{styles.js → styles.ts} +98 -66
- package/src/exporter/odt/{track.js → track.ts} +22 -6
- package/src/exporter/pandoc/{citations.js → citations.ts} +31 -15
- package/src/exporter/pandoc/{convert.js → convert.ts} +98 -79
- package/src/exporter/pandoc/{index.js → index.ts} +36 -13
- package/src/exporter/pandoc/{readme.js → readme.ts} +0 -1
- package/src/exporter/pandoc/{tools.js → tools.ts} +28 -5
- package/src/exporter/print/{index.js → index.ts} +38 -19
- package/src/exporter/tools/{doc_content.js → doc_content.ts} +34 -24
- package/src/exporter/tools/{file.js → file.ts} +1 -1
- package/src/exporter/tools/{json.js → json.ts} +30 -19
- package/src/exporter/tools/{svg.js → svg.ts} +9 -3
- package/src/exporter/tools/{xml.js → xml.ts} +187 -138
- package/src/exporter/tools/{xml_zip.js → xml_zip.ts} +19 -11
- package/src/exporter/tools/{zip.js → zip.ts} +35 -11
- package/src/exporter/tools/{zotero_csl.js → zotero_csl.ts} +35 -18
- package/src/global.d.ts +13 -0
- package/src/importer/citations.ts +116 -0
- package/src/importer/docx/{citations.js → citations.ts} +22 -37
- package/src/importer/docx/{convert.js → convert.ts} +176 -141
- package/src/importer/docx/{helpers.js → helpers.ts} +1 -1
- package/src/importer/docx/index.ts +124 -0
- package/src/importer/docx/{omml2mathml.js → omml2mathml.ts} +154 -176
- package/src/importer/docx/{parse.js → parse.ts} +103 -81
- package/src/importer/native/extract_template.ts +83 -0
- package/src/importer/native/file.ts +282 -0
- package/src/importer/native/get_images.ts +82 -0
- package/src/importer/native/importer.ts +244 -0
- package/src/importer/native/index.ts +6 -0
- package/src/importer/native/{update.js → update.ts} +13 -5
- package/src/importer/native/update_template.ts +32 -0
- package/src/importer/odt/{citations.js → citations.ts} +17 -29
- package/src/importer/odt/{convert.js → convert.ts} +261 -237
- package/src/importer/odt/index.ts +202 -0
- package/src/importer/pandoc/{convert.js → convert.ts} +116 -94
- package/src/importer/pandoc/{helpers.js → helpers.ts} +24 -12
- package/src/importer/pandoc/index.ts +171 -0
- package/src/importer/registry.ts +69 -0
- package/src/importer/{zip_analyzer.js → zip_analyzer.ts} +44 -18
- package/src/mathlive/{opf_includes.js → opf_includes.ts} +1 -1
- package/src/modules.d.ts +40 -0
- package/src/schema/common/{annotate.js → annotate.ts} +10 -8
- package/src/schema/common/{base.js → base.ts} +12 -10
- package/src/schema/common/{citation.js → citation.ts} +17 -8
- package/src/schema/common/{equation.js → equation.ts} +6 -4
- package/src/schema/common/{figure.js → figure.ts} +43 -23
- package/src/schema/common/{heading.js → heading.ts} +7 -5
- package/src/schema/common/{list.js → list.ts} +15 -13
- package/src/schema/common/{reference.js → reference.ts} +14 -12
- package/src/schema/common/{table.js → table.ts} +16 -14
- package/src/schema/common/track.ts +201 -0
- package/src/schema/const.ts +58 -0
- package/src/schema/{convert.js → convert.ts} +6 -2
- package/src/schema/document/{content.js → content.ts} +22 -20
- package/src/schema/document/{structure.js → structure.ts} +15 -9
- package/src/schema/{export.js → export.ts} +4 -2
- package/src/schema/{footnotes.js → footnotes.ts} +11 -8
- package/src/schema/{footnotes_convert.js → footnotes_convert.ts} +11 -8
- package/src/schema/i18n.ts +601 -0
- package/src/schema/mini_json.ts +60 -0
- package/src/schema/{text.js → text.ts} +6 -2
- package/src/types.ts +314 -0
- package/jest.config.js +0 -24
- package/src/exporter/docx/images.js +0 -101
- package/src/exporter/jats/bibliography.js +0 -183
- package/src/exporter/jats/index.js +0 -92
- package/src/exporter/odt/images.js +0 -115
- package/src/importer/citations.js +0 -129
- package/src/importer/native/get_images.js +0 -76
- /package/src/{index.js → index.ts} +0 -0
- /package/src/schema/common/{index.js → index.ts} +0 -0
- /package/src/schema/document/{index.js → index.ts} +0 -0
- /package/src/schema/{index.js → index.ts} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"export.d.ts","sourceRoot":"","sources":["../../src/schema/export.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,qBAAqB,CAAA;AAE7C,qBAAa,YAAY;IACrB,MAAM,EAAE,OAAO,SAAS,CAAA;;IAMxB,IAAI,IAAI,MAAM;CAajB"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { docSchema } from "./document/index.js";
|
|
2
|
+
export class SchemaExport {
|
|
3
|
+
schema;
|
|
4
|
+
constructor() {
|
|
5
|
+
this.schema = docSchema;
|
|
6
|
+
}
|
|
7
|
+
init() {
|
|
8
|
+
const spec = {
|
|
9
|
+
nodes: {},
|
|
10
|
+
marks: {}
|
|
11
|
+
};
|
|
12
|
+
this.schema.spec.nodes.forEach((key, value) => (spec.nodes[key] = value));
|
|
13
|
+
this.schema.spec.marks.forEach((key, value) => (spec.marks[key] = value));
|
|
14
|
+
return JSON.stringify(spec);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=export.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"export.js","sourceRoot":"","sources":["../../src/schema/export.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,qBAAqB,CAAA;AAE7C,MAAM,OAAO,YAAY;IACrB,MAAM,CAAkB;IAExB;QACI,IAAI,CAAC,MAAM,GAAG,SAAS,CAAA;IAC3B,CAAC;IAED,IAAI;QACA,MAAM,IAAI,GAAqE;YAC3E,KAAK,EAAE,EAAE;YACT,KAAK,EAAE,EAAE;SACZ,CAAA;QACD,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAC1B,CAAC,GAAG,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC,CAC5C,CAAA;QACD,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAC1B,CAAC,GAAG,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC,CAC5C,CAAA;QACD,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAA;IAC/B,CAAC;CACJ"}
|
|
@@ -0,0 +1,454 @@
|
|
|
1
|
+
import OrderedMap from "orderedmap";
|
|
2
|
+
import type { Node, NodeSpec } from "prosemirror-model";
|
|
3
|
+
import { Schema } from "prosemirror-model";
|
|
4
|
+
export declare const fnSchema: Schema<keyof OrderedMap<NodeSpec | {
|
|
5
|
+
group: string;
|
|
6
|
+
content: string;
|
|
7
|
+
attrs: {
|
|
8
|
+
track: {
|
|
9
|
+
default: never[];
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
parseDOM: {
|
|
13
|
+
tag: string;
|
|
14
|
+
getAttrs(dom: HTMLElement): {
|
|
15
|
+
track: import("./common/track.js").Track[];
|
|
16
|
+
};
|
|
17
|
+
}[];
|
|
18
|
+
toDOM(node: Node): [string, {
|
|
19
|
+
"data-track": string;
|
|
20
|
+
} | {
|
|
21
|
+
"data-track"?: undefined;
|
|
22
|
+
}, number];
|
|
23
|
+
} | {
|
|
24
|
+
content: string;
|
|
25
|
+
group: string;
|
|
26
|
+
attrs: {
|
|
27
|
+
track: {
|
|
28
|
+
default: never[];
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
marks: string;
|
|
32
|
+
defining: true;
|
|
33
|
+
parseDOM: {
|
|
34
|
+
tag: string;
|
|
35
|
+
getAttrs(dom: HTMLElement): {
|
|
36
|
+
track: import("./common/track.js").Track[];
|
|
37
|
+
};
|
|
38
|
+
}[];
|
|
39
|
+
toDOM(node: Node): [string, {
|
|
40
|
+
"data-track": string;
|
|
41
|
+
} | {
|
|
42
|
+
"data-track"?: undefined;
|
|
43
|
+
}, number];
|
|
44
|
+
} | {
|
|
45
|
+
group: string;
|
|
46
|
+
attrs: {
|
|
47
|
+
track: {
|
|
48
|
+
default: never[];
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
parseDOM: {
|
|
52
|
+
tag: string;
|
|
53
|
+
getAttrs(dom: HTMLElement): {
|
|
54
|
+
track: import("./common/track.js").Track[];
|
|
55
|
+
};
|
|
56
|
+
}[];
|
|
57
|
+
toDOM(node: Node): [string, {
|
|
58
|
+
"data-track": string;
|
|
59
|
+
} | {
|
|
60
|
+
"data-track"?: undefined;
|
|
61
|
+
}];
|
|
62
|
+
} | {
|
|
63
|
+
inline: true;
|
|
64
|
+
group: string;
|
|
65
|
+
attrs: {
|
|
66
|
+
format: {
|
|
67
|
+
default: string;
|
|
68
|
+
};
|
|
69
|
+
references: {
|
|
70
|
+
default: never[];
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
parseDOM: {
|
|
74
|
+
tag: string;
|
|
75
|
+
getAttrs(dom: HTMLElement): {
|
|
76
|
+
format: string;
|
|
77
|
+
references: import("./common/citation.js").CitationReference[];
|
|
78
|
+
};
|
|
79
|
+
}[];
|
|
80
|
+
toDOM(node: Node): [string, {
|
|
81
|
+
class: string;
|
|
82
|
+
"data-format": any;
|
|
83
|
+
"data-references": string;
|
|
84
|
+
}];
|
|
85
|
+
} | {
|
|
86
|
+
inline: true;
|
|
87
|
+
group: string;
|
|
88
|
+
attrs: {
|
|
89
|
+
equation: {
|
|
90
|
+
default: string;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
parseDOM: {
|
|
94
|
+
tag: string;
|
|
95
|
+
getAttrs(dom: HTMLElement): {
|
|
96
|
+
equation: string;
|
|
97
|
+
};
|
|
98
|
+
}[];
|
|
99
|
+
toDOM(node: Node): HTMLSpanElement;
|
|
100
|
+
} | {
|
|
101
|
+
inline: false;
|
|
102
|
+
allowGapCursor: boolean;
|
|
103
|
+
selectable: true;
|
|
104
|
+
group: string;
|
|
105
|
+
attrs: {
|
|
106
|
+
category: {
|
|
107
|
+
default: string;
|
|
108
|
+
};
|
|
109
|
+
caption: {
|
|
110
|
+
default: boolean;
|
|
111
|
+
};
|
|
112
|
+
id: {
|
|
113
|
+
default: boolean;
|
|
114
|
+
};
|
|
115
|
+
track: {
|
|
116
|
+
default: never[];
|
|
117
|
+
};
|
|
118
|
+
aligned: {
|
|
119
|
+
default: string;
|
|
120
|
+
};
|
|
121
|
+
width: {
|
|
122
|
+
default: string;
|
|
123
|
+
};
|
|
124
|
+
};
|
|
125
|
+
content: string;
|
|
126
|
+
parseDOM: {
|
|
127
|
+
tag: string;
|
|
128
|
+
getAttrs(dom: HTMLElement): {
|
|
129
|
+
category: string | undefined;
|
|
130
|
+
caption: boolean;
|
|
131
|
+
id: string | boolean;
|
|
132
|
+
track: import("./common/track.js").Track[];
|
|
133
|
+
aligned: string | undefined;
|
|
134
|
+
width: string | undefined;
|
|
135
|
+
diff: string | undefined;
|
|
136
|
+
};
|
|
137
|
+
}[];
|
|
138
|
+
toDOM(node: Node): [string, Record<string, unknown>, number];
|
|
139
|
+
} | {
|
|
140
|
+
selectable: false;
|
|
141
|
+
draggable: false;
|
|
142
|
+
attrs: {
|
|
143
|
+
image: {
|
|
144
|
+
default: boolean;
|
|
145
|
+
};
|
|
146
|
+
};
|
|
147
|
+
parseDOM: {
|
|
148
|
+
tag: string;
|
|
149
|
+
getAttrs(dom: HTMLElement): {
|
|
150
|
+
image: number | boolean;
|
|
151
|
+
};
|
|
152
|
+
}[];
|
|
153
|
+
toDOM(node: Node): HTMLImageElement;
|
|
154
|
+
} | {
|
|
155
|
+
selectable: false;
|
|
156
|
+
draggable: false;
|
|
157
|
+
attrs: {
|
|
158
|
+
equation: {
|
|
159
|
+
default: boolean;
|
|
160
|
+
};
|
|
161
|
+
};
|
|
162
|
+
parseDOM: {
|
|
163
|
+
tag: string;
|
|
164
|
+
getAttrs(dom: HTMLElement): {
|
|
165
|
+
equation: string | undefined;
|
|
166
|
+
};
|
|
167
|
+
}[];
|
|
168
|
+
toDOM(node: Node): HTMLDivElement;
|
|
169
|
+
} | {
|
|
170
|
+
isolating: true;
|
|
171
|
+
defining: true;
|
|
172
|
+
content: string;
|
|
173
|
+
parseDOM: {
|
|
174
|
+
tag: string;
|
|
175
|
+
}[];
|
|
176
|
+
toDOM(): [string, (string | {
|
|
177
|
+
class: string;
|
|
178
|
+
})[], (string | number | {
|
|
179
|
+
class: string;
|
|
180
|
+
})[]];
|
|
181
|
+
} | {
|
|
182
|
+
group: string;
|
|
183
|
+
content: string;
|
|
184
|
+
attrs: {
|
|
185
|
+
id: {
|
|
186
|
+
default: boolean;
|
|
187
|
+
};
|
|
188
|
+
order: {
|
|
189
|
+
default: number;
|
|
190
|
+
};
|
|
191
|
+
track: {
|
|
192
|
+
default: never[];
|
|
193
|
+
};
|
|
194
|
+
};
|
|
195
|
+
parseDOM: {
|
|
196
|
+
tag: string;
|
|
197
|
+
getAttrs(dom: HTMLElement): {
|
|
198
|
+
id: string | boolean;
|
|
199
|
+
order: number;
|
|
200
|
+
track: import("./common/track.js").Track[];
|
|
201
|
+
};
|
|
202
|
+
}[];
|
|
203
|
+
toDOM(node: Node): [string, Record<string, unknown>, number];
|
|
204
|
+
} | {
|
|
205
|
+
group: string;
|
|
206
|
+
content: string;
|
|
207
|
+
attrs: {
|
|
208
|
+
id: {
|
|
209
|
+
default: boolean;
|
|
210
|
+
};
|
|
211
|
+
track: {
|
|
212
|
+
default: never[];
|
|
213
|
+
};
|
|
214
|
+
};
|
|
215
|
+
parseDOM: {
|
|
216
|
+
tag: string;
|
|
217
|
+
getAttrs(dom: HTMLElement): {
|
|
218
|
+
id: string | boolean;
|
|
219
|
+
track: import("./common/track.js").Track[];
|
|
220
|
+
};
|
|
221
|
+
}[];
|
|
222
|
+
toDOM(node: Node): [string, Record<string, unknown>, number];
|
|
223
|
+
} | {
|
|
224
|
+
content: string;
|
|
225
|
+
marks: string;
|
|
226
|
+
attrs: {
|
|
227
|
+
track: {
|
|
228
|
+
default: never[];
|
|
229
|
+
};
|
|
230
|
+
};
|
|
231
|
+
parseDOM: {
|
|
232
|
+
tag: string;
|
|
233
|
+
getAttrs(dom: HTMLElement): {
|
|
234
|
+
track: import("./common/track.js").Track[];
|
|
235
|
+
};
|
|
236
|
+
}[];
|
|
237
|
+
toDOM(node: Node): [string, Record<string, unknown>, number];
|
|
238
|
+
defining: true;
|
|
239
|
+
} | {
|
|
240
|
+
inline: true;
|
|
241
|
+
group: string;
|
|
242
|
+
attrs: {
|
|
243
|
+
id: {
|
|
244
|
+
default: boolean;
|
|
245
|
+
};
|
|
246
|
+
title: {
|
|
247
|
+
default: null;
|
|
248
|
+
};
|
|
249
|
+
};
|
|
250
|
+
parseDOM: {
|
|
251
|
+
tag: string;
|
|
252
|
+
getAttrs(dom: HTMLElement): {
|
|
253
|
+
id: string | boolean;
|
|
254
|
+
title: string | null;
|
|
255
|
+
};
|
|
256
|
+
}[];
|
|
257
|
+
toDOM(node: Node): [string, {
|
|
258
|
+
class: string;
|
|
259
|
+
"data-id": any;
|
|
260
|
+
"data-title": any;
|
|
261
|
+
}, any];
|
|
262
|
+
}>, keyof OrderedMap<import("prosemirror-model").MarkSpec | {
|
|
263
|
+
attrs: {
|
|
264
|
+
type: {
|
|
265
|
+
default: string;
|
|
266
|
+
};
|
|
267
|
+
key: {
|
|
268
|
+
default: string;
|
|
269
|
+
};
|
|
270
|
+
value: {
|
|
271
|
+
default: string;
|
|
272
|
+
};
|
|
273
|
+
};
|
|
274
|
+
inclusive: false;
|
|
275
|
+
excludes: string;
|
|
276
|
+
group: string;
|
|
277
|
+
parseDOM: {
|
|
278
|
+
tag: string;
|
|
279
|
+
getAttrs(dom: HTMLElement): {
|
|
280
|
+
type: string;
|
|
281
|
+
key: string;
|
|
282
|
+
value: string;
|
|
283
|
+
};
|
|
284
|
+
}[];
|
|
285
|
+
toDOM(node: import("prosemirror-model").Mark): [string, Record<string, unknown>];
|
|
286
|
+
} | {
|
|
287
|
+
attrs: {
|
|
288
|
+
id: {
|
|
289
|
+
default: boolean;
|
|
290
|
+
};
|
|
291
|
+
};
|
|
292
|
+
inclusive: false;
|
|
293
|
+
excludes: string;
|
|
294
|
+
group: string;
|
|
295
|
+
parseDOM: {
|
|
296
|
+
tag: string;
|
|
297
|
+
getAttrs(dom: HTMLElement): {
|
|
298
|
+
id: number;
|
|
299
|
+
};
|
|
300
|
+
}[];
|
|
301
|
+
toDOM(node: import("prosemirror-model").Mark): [string, {
|
|
302
|
+
class: string;
|
|
303
|
+
"data-id": any;
|
|
304
|
+
}];
|
|
305
|
+
} | {
|
|
306
|
+
attrs: {
|
|
307
|
+
user: {
|
|
308
|
+
default: number;
|
|
309
|
+
};
|
|
310
|
+
username: {
|
|
311
|
+
default: string;
|
|
312
|
+
};
|
|
313
|
+
date: {
|
|
314
|
+
default: number;
|
|
315
|
+
};
|
|
316
|
+
};
|
|
317
|
+
inclusive: false;
|
|
318
|
+
group: string;
|
|
319
|
+
parseDOM: {
|
|
320
|
+
tag: string;
|
|
321
|
+
getAttrs(dom: HTMLElement): {
|
|
322
|
+
user: number;
|
|
323
|
+
username: string;
|
|
324
|
+
date: number;
|
|
325
|
+
};
|
|
326
|
+
}[];
|
|
327
|
+
toDOM(node: import("prosemirror-model").Mark): [string, {
|
|
328
|
+
class: string;
|
|
329
|
+
"data-user": any;
|
|
330
|
+
"data-username": any;
|
|
331
|
+
"data-date": any;
|
|
332
|
+
}];
|
|
333
|
+
} | {
|
|
334
|
+
attrs: {
|
|
335
|
+
user: {
|
|
336
|
+
default: number;
|
|
337
|
+
};
|
|
338
|
+
username: {
|
|
339
|
+
default: string;
|
|
340
|
+
};
|
|
341
|
+
date: {
|
|
342
|
+
default: number;
|
|
343
|
+
};
|
|
344
|
+
before: {
|
|
345
|
+
default: never[];
|
|
346
|
+
};
|
|
347
|
+
after: {
|
|
348
|
+
default: never[];
|
|
349
|
+
};
|
|
350
|
+
};
|
|
351
|
+
inclusive: false;
|
|
352
|
+
group: string;
|
|
353
|
+
parseDOM: {
|
|
354
|
+
tag: string;
|
|
355
|
+
getAttrs(dom: HTMLElement): {
|
|
356
|
+
user: number;
|
|
357
|
+
username: string;
|
|
358
|
+
date: number;
|
|
359
|
+
before: string[];
|
|
360
|
+
after: string[];
|
|
361
|
+
};
|
|
362
|
+
}[];
|
|
363
|
+
toDOM(node: import("prosemirror-model").Mark): [string, {
|
|
364
|
+
class: string;
|
|
365
|
+
"data-user": any;
|
|
366
|
+
"data-username": any;
|
|
367
|
+
"data-date": any;
|
|
368
|
+
"data-before": string;
|
|
369
|
+
"data-after": string;
|
|
370
|
+
}];
|
|
371
|
+
} | {
|
|
372
|
+
attrs: {
|
|
373
|
+
user: {
|
|
374
|
+
default: number;
|
|
375
|
+
};
|
|
376
|
+
username: {
|
|
377
|
+
default: string;
|
|
378
|
+
};
|
|
379
|
+
date: {
|
|
380
|
+
default: number;
|
|
381
|
+
};
|
|
382
|
+
approved: {
|
|
383
|
+
default: boolean;
|
|
384
|
+
};
|
|
385
|
+
};
|
|
386
|
+
inclusive: false;
|
|
387
|
+
group: string;
|
|
388
|
+
parseDOM: {
|
|
389
|
+
tag: string;
|
|
390
|
+
getAttrs(dom: HTMLElement): {
|
|
391
|
+
user: number;
|
|
392
|
+
username: string;
|
|
393
|
+
date: number;
|
|
394
|
+
inline: boolean;
|
|
395
|
+
approved: boolean;
|
|
396
|
+
};
|
|
397
|
+
}[];
|
|
398
|
+
toDOM(node: import("prosemirror-model").Mark): [string, {
|
|
399
|
+
class: string;
|
|
400
|
+
"data-user": any;
|
|
401
|
+
"data-username": any;
|
|
402
|
+
"data-date": any;
|
|
403
|
+
}];
|
|
404
|
+
} | {
|
|
405
|
+
parseDOM: {
|
|
406
|
+
tag: string;
|
|
407
|
+
}[];
|
|
408
|
+
toDOM(): [string, {
|
|
409
|
+
class: string;
|
|
410
|
+
}, number];
|
|
411
|
+
} | {
|
|
412
|
+
attrs: {
|
|
413
|
+
href: {};
|
|
414
|
+
title: {
|
|
415
|
+
default: string;
|
|
416
|
+
};
|
|
417
|
+
};
|
|
418
|
+
inclusive: false;
|
|
419
|
+
parseDOM: {
|
|
420
|
+
tag: string;
|
|
421
|
+
getAttrs(dom: HTMLElement): {
|
|
422
|
+
href: string;
|
|
423
|
+
title: string;
|
|
424
|
+
};
|
|
425
|
+
}[];
|
|
426
|
+
toDOM(node: import("prosemirror-model").Mark): [string, {
|
|
427
|
+
href: any;
|
|
428
|
+
title: any;
|
|
429
|
+
class?: undefined;
|
|
430
|
+
} | {
|
|
431
|
+
href: any;
|
|
432
|
+
title: string;
|
|
433
|
+
class: string;
|
|
434
|
+
}, number];
|
|
435
|
+
} | {
|
|
436
|
+
attrs: {
|
|
437
|
+
id: {
|
|
438
|
+
default: boolean;
|
|
439
|
+
};
|
|
440
|
+
};
|
|
441
|
+
inclusive: false;
|
|
442
|
+
group: string;
|
|
443
|
+
parseDOM: {
|
|
444
|
+
tag: string;
|
|
445
|
+
getAttrs(dom: HTMLElement): {
|
|
446
|
+
id: string | boolean;
|
|
447
|
+
};
|
|
448
|
+
}[];
|
|
449
|
+
toDOM(node: import("prosemirror-model").Mark): [string, {
|
|
450
|
+
class: string;
|
|
451
|
+
"data-id": any;
|
|
452
|
+
}];
|
|
453
|
+
}>>;
|
|
454
|
+
//# sourceMappingURL=footnotes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"footnotes.d.ts","sourceRoot":"","sources":["../../src/schema/footnotes.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,KAAK,EAAC,IAAI,EAAE,QAAQ,EAAC,MAAM,mBAAmB,CAAA;AACrD,OAAO,EAAC,MAAM,EAAC,MAAM,mBAAmB,CAAA;AA8HxC,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAmB,CAAA"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import OrderedMap from "orderedmap";
|
|
2
|
+
import { Schema } from "prosemirror-model";
|
|
3
|
+
import { marks, nodes } from "prosemirror-schema-basic";
|
|
4
|
+
import { tableNodes } from "prosemirror-tables";
|
|
5
|
+
import { anchor, annotation_tag, blockquote, bullet_list, citation, comment, cross_reference, deletion, equation, figure, figure_caption, figure_equation, format_change, heading1, heading2, heading3, heading4, heading5, heading6, horizontal_rule, image, insertion, link, list_item, ordered_list, paragraph, underline } from "./common/index.js";
|
|
6
|
+
const footnotecontainer = {
|
|
7
|
+
group: "part",
|
|
8
|
+
selectable: false,
|
|
9
|
+
content: "(block|table_block)+",
|
|
10
|
+
marks: "annotation",
|
|
11
|
+
parseDOM: [{ tag: "div.footnote-container" }],
|
|
12
|
+
toDOM(_node) {
|
|
13
|
+
return ["div", { class: "footnote-container" }, 0];
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
const doc = {
|
|
17
|
+
content: "part*",
|
|
18
|
+
selectable: false
|
|
19
|
+
};
|
|
20
|
+
const spec = {
|
|
21
|
+
nodes: OrderedMap.from({
|
|
22
|
+
doc,
|
|
23
|
+
footnotecontainer,
|
|
24
|
+
paragraph,
|
|
25
|
+
heading1,
|
|
26
|
+
heading2,
|
|
27
|
+
heading3,
|
|
28
|
+
heading4,
|
|
29
|
+
heading5,
|
|
30
|
+
heading6,
|
|
31
|
+
blockquote,
|
|
32
|
+
horizontal_rule,
|
|
33
|
+
figure,
|
|
34
|
+
image,
|
|
35
|
+
figure_equation,
|
|
36
|
+
figure_caption,
|
|
37
|
+
text: nodes.text,
|
|
38
|
+
hard_break: nodes.hard_break,
|
|
39
|
+
citation,
|
|
40
|
+
equation,
|
|
41
|
+
cross_reference,
|
|
42
|
+
ordered_list,
|
|
43
|
+
bullet_list,
|
|
44
|
+
list_item
|
|
45
|
+
}),
|
|
46
|
+
marks: OrderedMap.from({
|
|
47
|
+
em: marks.em,
|
|
48
|
+
strong: marks.strong,
|
|
49
|
+
link,
|
|
50
|
+
underline,
|
|
51
|
+
anchor,
|
|
52
|
+
comment,
|
|
53
|
+
annotation_tag,
|
|
54
|
+
deletion,
|
|
55
|
+
insertion,
|
|
56
|
+
format_change
|
|
57
|
+
})
|
|
58
|
+
};
|
|
59
|
+
spec.nodes = spec.nodes.append(tableNodes({
|
|
60
|
+
tableGroup: "table_block",
|
|
61
|
+
cellContent: "block+",
|
|
62
|
+
cellAttributes: {}
|
|
63
|
+
}));
|
|
64
|
+
const tableSpec = spec.nodes.get("table") || {};
|
|
65
|
+
spec.nodes = spec.nodes.update("table", Object.assign({}, tableSpec, {
|
|
66
|
+
attrs: {
|
|
67
|
+
track: { default: [] }
|
|
68
|
+
},
|
|
69
|
+
parseDOM: [
|
|
70
|
+
{
|
|
71
|
+
tag: "table",
|
|
72
|
+
getAttrs(dom) {
|
|
73
|
+
return {
|
|
74
|
+
track: dom.dataset.track
|
|
75
|
+
? JSON.parse(dom.dataset.track)
|
|
76
|
+
: []
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
],
|
|
81
|
+
toDOM(node) {
|
|
82
|
+
const attrs = {};
|
|
83
|
+
if (node.attrs.track.length) {
|
|
84
|
+
attrs["data-track"] = JSON.stringify(node.attrs.track);
|
|
85
|
+
}
|
|
86
|
+
return ["table", attrs, ["tbody", 0]];
|
|
87
|
+
}
|
|
88
|
+
}));
|
|
89
|
+
export const fnSchema = new Schema(spec);
|
|
90
|
+
//# sourceMappingURL=footnotes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"footnotes.js","sourceRoot":"","sources":["../../src/schema/footnotes.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Node } from "prosemirror-model";
|
|
2
|
+
export declare const htmlToFnNode: (content: string) => unknown[];
|
|
3
|
+
export declare const fnNodeToPmNode: (fnContents: unknown[]) => Node;
|
|
4
|
+
export declare const fnNodeToHtml: (jsonString: unknown[]) => string;
|
|
5
|
+
//# sourceMappingURL=footnotes_convert.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"footnotes_convert.d.ts","sourceRoot":"","sources":["../../src/schema/footnotes_convert.ts"],"names":[],"mappings":"AAAA,OAAO,EAA2B,IAAI,EAAC,MAAM,mBAAmB,CAAA;AAKhE,eAAO,MAAM,YAAY,GAAI,SAAS,MAAM,KAAG,OAAO,EAarD,CAAA;AAED,eAAO,MAAM,cAAc,GAAI,YAAY,OAAO,EAAE,KAAG,IAMtD,CAAA;AAED,eAAO,MAAM,YAAY,GAAI,YAAY,OAAO,EAAE,KAAG,MAKpD,CAAA"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { DOMParser, DOMSerializer, Node } from "prosemirror-model";
|
|
2
|
+
import { fnSchema } from "./footnotes.js";
|
|
3
|
+
// Convert the footnote HTML stored with the marker to a PM node representation of the footnote.
|
|
4
|
+
export const htmlToFnNode = (content) => {
|
|
5
|
+
const footnoteDOM = document.createElement("div");
|
|
6
|
+
footnoteDOM.classList.add("footnote-container");
|
|
7
|
+
footnoteDOM.innerHTML = content;
|
|
8
|
+
const node = DOMParser.fromSchema(fnSchema).parse(footnoteDOM, {
|
|
9
|
+
preserveWhitespace: true,
|
|
10
|
+
topNode: false
|
|
11
|
+
});
|
|
12
|
+
const firstChild = node.firstChild;
|
|
13
|
+
if (!firstChild) {
|
|
14
|
+
return [];
|
|
15
|
+
}
|
|
16
|
+
return firstChild.toJSON().content;
|
|
17
|
+
};
|
|
18
|
+
export const fnNodeToPmNode = (fnContents) => {
|
|
19
|
+
const footnote = {
|
|
20
|
+
type: "footnotecontainer",
|
|
21
|
+
content: fnContents
|
|
22
|
+
};
|
|
23
|
+
return Node.fromJSON(fnSchema, footnote);
|
|
24
|
+
};
|
|
25
|
+
export const fnNodeToHtml = (jsonString) => {
|
|
26
|
+
const pmNode = fnNodeToPmNode(jsonString), serializer = DOMSerializer.fromSchema(fnSchema);
|
|
27
|
+
const dom = serializer.serializeNode(pmNode);
|
|
28
|
+
return dom instanceof HTMLElement ? dom.innerHTML : "";
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=footnotes_convert.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"footnotes_convert.js","sourceRoot":"","sources":["../../src/schema/footnotes_convert.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,aAAa,EAAE,IAAI,EAAC,MAAM,mBAAmB,CAAA;AAEhE,OAAO,EAAC,QAAQ,EAAC,MAAM,gBAAgB,CAAA;AAEvC,gGAAgG;AAChG,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,OAAe,EAAa,EAAE;IACvD,MAAM,WAAW,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAA;IACjD,WAAW,CAAC,SAAS,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAA;IAC/C,WAAW,CAAC,SAAS,GAAG,OAAO,CAAA;IAC/B,MAAM,IAAI,GAAG,SAAS,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,KAAK,CAAC,WAAW,EAAE;QAC3D,kBAAkB,EAAE,IAAI;QACxB,OAAO,EAAE,KAAwB;KACpC,CAAC,CAAA;IACF,MAAM,UAAU,GAAG,IAAI,CAAC,UAAU,CAAA;IAClC,IAAI,CAAC,UAAU,EAAE,CAAC;QACd,OAAO,EAAE,CAAA;IACb,CAAC;IACD,OAAO,UAAU,CAAC,MAAM,EAAE,CAAC,OAAO,CAAA;AACtC,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,UAAqB,EAAQ,EAAE;IAC1D,MAAM,QAAQ,GAAG;QACb,IAAI,EAAE,mBAAmB;QACzB,OAAO,EAAE,UAAU;KACtB,CAAA;IACD,OAAO,IAAI,CAAC,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAA;AAC5C,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,UAAqB,EAAU,EAAE;IAC1D,MAAM,MAAM,GAAG,cAAc,CAAC,UAAU,CAAC,EACrC,UAAU,GAAG,aAAa,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAA;IACnD,MAAM,GAAG,GAAG,UAAU,CAAC,aAAa,CAAC,MAAM,CAAC,CAAA;IAC5C,OAAO,GAAG,YAAY,WAAW,CAAC,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAA;AAC1D,CAAC,CAAA"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
export declare const BIBLIOGRAPHY_HEADERS: {
|
|
2
|
+
"af-ZA": string;
|
|
3
|
+
"sq-AL": string;
|
|
4
|
+
ar: string;
|
|
5
|
+
ast: string;
|
|
6
|
+
be: string;
|
|
7
|
+
br: string;
|
|
8
|
+
bg: string;
|
|
9
|
+
ca: string;
|
|
10
|
+
"ca-ES-Valencia": string;
|
|
11
|
+
"zh-CN": string;
|
|
12
|
+
da: string;
|
|
13
|
+
nl: string;
|
|
14
|
+
"en-AU": string;
|
|
15
|
+
"en-CA": string;
|
|
16
|
+
"en-NZ": string;
|
|
17
|
+
"en-ZA": string;
|
|
18
|
+
"en-GB": string;
|
|
19
|
+
"en-US": string;
|
|
20
|
+
eo: string;
|
|
21
|
+
fr: string;
|
|
22
|
+
gl: string;
|
|
23
|
+
"de-DE": string;
|
|
24
|
+
"de-AU": string;
|
|
25
|
+
"de-CH": string;
|
|
26
|
+
el: string;
|
|
27
|
+
he: string;
|
|
28
|
+
is: string;
|
|
29
|
+
it: string;
|
|
30
|
+
ja: string;
|
|
31
|
+
km: string;
|
|
32
|
+
lt: string;
|
|
33
|
+
ml: string;
|
|
34
|
+
"nb-NO": string;
|
|
35
|
+
"nn-NO": string;
|
|
36
|
+
fa: string;
|
|
37
|
+
pl: string;
|
|
38
|
+
"pt-BR": string;
|
|
39
|
+
"pt-PT": string;
|
|
40
|
+
ro: string;
|
|
41
|
+
ru: string;
|
|
42
|
+
tr: string;
|
|
43
|
+
"sr-SP-Cy": string;
|
|
44
|
+
"sr-SP-Lt": string;
|
|
45
|
+
sk: string;
|
|
46
|
+
sl: string;
|
|
47
|
+
es: string;
|
|
48
|
+
sv: string;
|
|
49
|
+
ta: string;
|
|
50
|
+
tl: string;
|
|
51
|
+
uk: string;
|
|
52
|
+
};
|
|
53
|
+
export declare const CATS: Record<string, Record<string, string>>;
|
|
54
|
+
export declare const getCat: (category: string, language: string) => string;
|
|
55
|
+
//# sourceMappingURL=i18n.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../../src/schema/i18n.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmDhC,CAAA;AAohBD,eAAO,MAAM,IAAI,EAAE,MAAM,CACrB,MAAM,EACN,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAYzB,CAAA;AAED,eAAO,MAAM,MAAM,GAAI,UAAU,MAAM,EAAE,UAAU,MAAM,KAAG,MACW,CAAA"}
|