proskomma-core 0.9.7 → 0.9.12

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 (300) hide show
  1. package/.eslintrc.json +79 -0
  2. package/.gitattributes +2 -0
  3. package/babel.config.js +18 -0
  4. package/docs/_config.yml +1 -0
  5. package/docs/index.md +3 -0
  6. package/docs/pk_edit_0_9.odt +0 -0
  7. package/docs/pk_edit_0_9.pdf +0 -0
  8. package/docs/proskomma_101_slideshow.odp +0 -0
  9. package/docs/proskomma_101_slideshow.pdf +0 -0
  10. package/docs/proskomma_edit_html.png +0 -0
  11. package/docs/proskomma_edit_html.svg +451 -0
  12. package/docs/proskomma_edit_reference.png +0 -0
  13. package/docs/proskomma_edit_reference.svg +349 -0
  14. package/docs/repo_logo.png +0 -0
  15. package/esm/package.json +3 -0
  16. package/esm/wrapper.mjs +5 -0
  17. package/index.js +6 -0
  18. package/package.json +19 -17
  19. package/src/graph/index.cjs +201 -0
  20. package/src/graph/lib/do_cv.cjs +249 -0
  21. package/src/graph/lib/dump.cjs +40 -0
  22. package/src/graph/lib/remake_blocks.cjs +57 -0
  23. package/src/graph/lib/sequence_chars.cjs +84 -0
  24. package/src/graph/lib/sort.cjs +39 -0
  25. package/src/graph/lib/tribos.cjs +97 -0
  26. package/src/graph/lib/tribos_expression.cjs +556 -0
  27. package/src/graph/lib/tribos_ohm_UNUSED.cjs +37 -0
  28. package/src/graph/lib/tribos_step.cjs +434 -0
  29. package/src/graph/mutations/add.cjs +91 -0
  30. package/src/graph/mutations/delete.cjs +61 -0
  31. package/src/graph/mutations/index.cjs +54 -0
  32. package/src/graph/mutations/rehash.cjs +17 -0
  33. package/src/graph/mutations/tags.cjs +120 -0
  34. package/src/graph/mutations/update.cjs +210 -0
  35. package/src/graph/mutations/versification.cjs +96 -0
  36. package/src/graph/queries/block.cjs +228 -0
  37. package/src/graph/queries/cIndex.cjs +87 -0
  38. package/src/graph/queries/cell.cjs +42 -0
  39. package/src/graph/queries/cv.cjs +19 -0
  40. package/src/graph/queries/cvBook.cjs +16 -0
  41. package/src/graph/queries/cvChapter.cjs +16 -0
  42. package/src/graph/queries/cvIndex.cjs +47 -0
  43. package/src/graph/queries/cvNavigation.cjs +116 -0
  44. package/src/graph/queries/cvVerseElement.cjs +84 -0
  45. package/src/graph/queries/cvVerses.cjs +14 -0
  46. package/src/graph/queries/doc_set.cjs +220 -0
  47. package/src/graph/queries/document.cjs +555 -0
  48. package/src/graph/queries/idParts.cjs +30 -0
  49. package/src/graph/queries/index.cjs +151 -0
  50. package/src/graph/queries/inputBlockSpec.cjs +17 -0
  51. package/src/graph/queries/inputItemObject.cjs +12 -0
  52. package/src/graph/queries/input_att_spec.cjs +14 -0
  53. package/src/graph/queries/input_key_matches.cjs +11 -0
  54. package/src/graph/queries/input_key_value.cjs +11 -0
  55. package/src/graph/queries/input_key_values.cjs +11 -0
  56. package/src/graph/queries/input_selector_spec.cjs +19 -0
  57. package/src/graph/queries/item.cjs +71 -0
  58. package/src/graph/queries/itemGroup.cjs +75 -0
  59. package/src/graph/queries/key_value.cjs +18 -0
  60. package/src/graph/queries/kv_entry.cjs +21 -0
  61. package/src/graph/queries/kv_sequence.cjs +151 -0
  62. package/src/graph/queries/node.cjs +44 -0
  63. package/src/graph/queries/orig.cjs +11 -0
  64. package/src/graph/queries/regex_index.cjs +18 -0
  65. package/src/graph/queries/row_equals_spec.cjs +11 -0
  66. package/src/graph/queries/row_match_spec.cjs +11 -0
  67. package/src/graph/queries/selector_spec.cjs +29 -0
  68. package/src/graph/queries/sequence.cjs +314 -0
  69. package/src/graph/queries/table_sequence.cjs +192 -0
  70. package/src/graph/queries/tree_sequence.cjs +58 -0
  71. package/src/graph/queries/verseNumber.cjs +44 -0
  72. package/src/graph/queries/verseRange.cjs +11 -0
  73. package/src/graph/queries/versification.cjs +25 -0
  74. package/src/index.cjs +583 -0
  75. package/src/model/doc_set.cjs +389 -0
  76. package/src/model/doc_set_helpers/block.cjs +232 -0
  77. package/src/model/doc_set_helpers/enum.cjs +87 -0
  78. package/src/model/doc_set_helpers/item.cjs +198 -0
  79. package/src/model/doc_set_helpers/rehash.cjs +53 -0
  80. package/src/model/doc_set_helpers/selectors.cjs +58 -0
  81. package/src/model/doc_set_helpers/serialize.cjs +22 -0
  82. package/src/model/doc_set_helpers/unsuccinctify.cjs +288 -0
  83. package/src/model/doc_set_helpers/update.cjs +290 -0
  84. package/src/model/document.cjs +369 -0
  85. package/src/model/document_helpers/blocks.cjs +135 -0
  86. package/src/model/document_helpers/chapter_verse.cjs +291 -0
  87. package/src/model/document_helpers/pre_enums.cjs +67 -0
  88. package/src/model/document_helpers/sequences.cjs +205 -0
  89. package/src/model/document_helpers/serialize_succinct.cjs +55 -0
  90. package/src/model/document_helpers/succinct_filter.cjs +102 -0
  91. package/src/model/versifications/eng_vrs.cjs +455 -0
  92. package/src/model/versifications/index.cjs +38 -0
  93. package/src/model/versifications/lxx_vrs.cjs +950 -0
  94. package/src/model/versifications/org_vrs.cjs +155 -0
  95. package/src/model/versifications/rsc_vrs.cjs +342 -0
  96. package/src/model/versifications/rso_vrs.cjs +541 -0
  97. package/src/model/versifications/vul_vrs.cjs +835 -0
  98. package/src/parser/index.cjs +506 -0
  99. package/src/parser/lexers/index.cjs +11 -0
  100. package/src/parser/lexers/lexingRegexes.cjs +45 -0
  101. package/src/parser/lexers/nodes.cjs +123 -0
  102. package/src/parser/lexers/object_for_fragment.cjs +123 -0
  103. package/src/parser/lexers/tsv.cjs +45 -0
  104. package/src/parser/lexers/usfm.cjs +17 -0
  105. package/src/parser/lexers/usx/index.cjs +7 -0
  106. package/src/parser/lexers/usx/usx_lexer.cjs +321 -0
  107. package/src/parser/lib/tokenize.cjs +37 -0
  108. package/src/parser/model/index.cjs +637 -0
  109. package/src/parser/parser_specs.cjs +781 -0
  110. package/src/pipelines/perf2x/index.cjs +7 -0
  111. package/src/pipelines/perf2x/perf2PkJsonPipeline.json +41 -0
  112. package/src/pipelines/perf2x/perf2usfmPipeline.json +65 -0
  113. package/src/transforms/calculateUsfmChapterPositions.cjs +106 -0
  114. package/src/transforms/index.cjs +9 -0
  115. package/src/transforms/perf2PkJson.cjs +534 -0
  116. package/src/transforms/perf2usfm.cjs +294 -0
  117. package/src/util/byteArray.cjs +251 -0
  118. package/src/util/canons.cjs +117 -0
  119. package/src/util/enums.cjs +41 -0
  120. package/src/util/generateId.cjs +6 -0
  121. package/src/util/graftDefs.cjs +15 -0
  122. package/src/util/index.cjs +29 -0
  123. package/src/util/inspectSuccinct.cjs +59 -0
  124. package/src/util/itemDefs.cjs +33 -0
  125. package/src/util/parserConstantDefs.cjs +30 -0
  126. package/src/util/scopeDefs.cjs +173 -0
  127. package/src/util/scriptlike/blocksSpec.cjs +192 -0
  128. package/src/util/scriptlike/dodson_lexicon.xsl +19 -0
  129. package/src/util/scriptlike/dodson_lexicon_to_entries.cjs +85 -0
  130. package/src/util/scriptlike/open_scriptures_hebrew_lexicon.xsl +28 -0
  131. package/src/util/scriptlike/open_scriptures_hebrew_lexicon_to_entries.cjs +85 -0
  132. package/src/util/succinct.cjs +159 -0
  133. package/src/util/tags.cjs +28 -0
  134. package/src/util/tokenDefs.cjs +27 -0
  135. package/src/util/versification.cjs +364 -0
  136. package/test/code/main/bad.cjs +79 -0
  137. package/test/code/main/basics.cjs +534 -0
  138. package/test/code/main/block.cjs +586 -0
  139. package/test/code/main/block_scope_numbers.cjs +31 -0
  140. package/test/code/main/blocks_with_atts.cjs +150 -0
  141. package/test/code/main/blocks_with_cv.cjs +250 -0
  142. package/test/code/main/break.cjs +73 -0
  143. package/test/code/main/checksum.cjs +36 -0
  144. package/test/code/main/cl_global.cjs +35 -0
  145. package/test/code/main/class_for_fragment.cjs +18 -0
  146. package/test/code/main/clean_usfm.cjs +46 -0
  147. package/test/code/main/cp_vp.cjs +158 -0
  148. package/test/code/main/custom.cjs +124 -0
  149. package/test/code/main/cv.cjs +249 -0
  150. package/test/code/main/cvMatching.cjs +155 -0
  151. package/test/code/main/cv_indexes.cjs +189 -0
  152. package/test/code/main/cv_navigation.cjs +124 -0
  153. package/test/code/main/document.cjs +382 -0
  154. package/test/code/main/empty_blocks.cjs +71 -0
  155. package/test/code/main/entries.cjs +402 -0
  156. package/test/code/main/export_lexing_regexes.cjs +19 -0
  157. package/test/code/main/fig.cjs +67 -0
  158. package/test/code/main/filter.cjs +222 -0
  159. package/test/code/main/glossary.cjs +36 -0
  160. package/test/code/main/graft_headings.cjs +36 -0
  161. package/test/code/main/graft_introduction.cjs +96 -0
  162. package/test/code/main/graft_note.cjs +104 -0
  163. package/test/code/main/graft_rems.cjs +34 -0
  164. package/test/code/main/graft_sidebars.cjs +62 -0
  165. package/test/code/main/graft_title.cjs +36 -0
  166. package/test/code/main/hello.cjs +105 -0
  167. package/test/code/main/import_document.cjs +22 -0
  168. package/test/code/main/import_usfm_int.cjs +48 -0
  169. package/test/code/main/item_groups.cjs +133 -0
  170. package/test/code/main/items_with_cv.cjs +311 -0
  171. package/test/code/main/milestone_attributes.cjs +163 -0
  172. package/test/code/main/mixed_sequence_documents.cjs +137 -0
  173. package/test/code/main/mixed_sequences.cjs +217 -0
  174. package/test/code/main/modify_sequence.cjs +29 -0
  175. package/test/code/main/multiple_chapters.cjs +58 -0
  176. package/test/code/main/multiple_content.cjs +105 -0
  177. package/test/code/main/mutate_add.cjs +180 -0
  178. package/test/code/main/mutate_delete.cjs +236 -0
  179. package/test/code/main/mutate_rehash.cjs +68 -0
  180. package/test/code/main/mutate_tags.cjs +90 -0
  181. package/test/code/main/mutate_update.cjs +538 -0
  182. package/test/code/main/selectors.cjs +289 -0
  183. package/test/code/main/sequence.cjs +361 -0
  184. package/test/code/main/serialize.cjs +104 -0
  185. package/test/code/main/spans.cjs +51 -0
  186. package/test/code/main/split_long_tokens.cjs +30 -0
  187. package/test/code/main/standard_vrs.cjs +76 -0
  188. package/test/code/main/subclass.cjs +25 -0
  189. package/test/code/main/table.cjs +119 -0
  190. package/test/code/main/tags.cjs +248 -0
  191. package/test/code/main/token_alignment.cjs +84 -0
  192. package/test/code/main/trees.cjs +211 -0
  193. package/test/code/main/tribos.cjs +865 -0
  194. package/test/code/main/tsv.cjs +385 -0
  195. package/test/code/main/usx_ref.cjs +65 -0
  196. package/test/code/main/verse_mapping.cjs +252 -0
  197. package/test/code/main/verse_range.cjs +31 -0
  198. package/test/code/main/word_likes.cjs +41 -0
  199. package/test/code/utils/byte_array.cjs +271 -0
  200. package/test/code/utils/canons.cjs +20 -0
  201. package/test/code/utils/generate_id.cjs +17 -0
  202. package/test/code/utils/graft_defs.cjs +16 -0
  203. package/test/code/utils/inspect.cjs +130 -0
  204. package/test/code/utils/items.cjs +56 -0
  205. package/test/code/utils/push_succinct.cjs +69 -0
  206. package/test/code/utils/scope_defs.cjs +79 -0
  207. package/test/code/utils/serialize.cjs +28 -0
  208. package/test/code/utils/splice.cjs +67 -0
  209. package/test/code/utils/tags.cjs +69 -0
  210. package/test/code/utils/versification.cjs +249 -0
  211. package/test/lib/load.js +110 -0
  212. package/test/skipped_code/diff.js +53 -0
  213. package/test/test_data/inputBlockSpec/dodson.json +1654 -0
  214. package/test/test_data/inputBlockSpec/kv.json +326 -0
  215. package/test/test_data/inputBlockSpec/mk1.json +1019 -0
  216. package/test/test_data/inputBlockSpec/table.json +170 -0
  217. package/test/test_data/tree/genealogy.json +55 -0
  218. package/test/test_data/tree/jude.json +15965 -0
  219. package/test/test_data/tsv/en_tn_66-JUD.tsv +75 -0
  220. package/test/test_data/tsv/twl_JUD.tsv +144 -0
  221. package/test/test_data/usfm/1pe_webbe.usfm +13 -0
  222. package/test/test_data/usfm/66-JUD-ust.usfm +1089 -0
  223. package/test/test_data/usfm/78-GALspavbl.usfm +10 -0
  224. package/test/test_data/usfm/add_test.usfm +15 -0
  225. package/test/test_data/usfm/backslash.usfm +4 -0
  226. package/test/test_data/usfm/cl.usfm +14 -0
  227. package/test/test_data/usfm/cp_vp.usfm +8 -0
  228. package/test/test_data/usfm/custom.usfm +13 -0
  229. package/test/test_data/usfm/en_ust_oba.usfm +875 -0
  230. package/test/test_data/usfm/en_ust_psa_1.usfm +20 -0
  231. package/test/test_data/usfm/fig.usfm +3 -0
  232. package/test/test_data/usfm/filter.usfm +7 -0
  233. package/test/test_data/usfm/footnote.usfm +11 -0
  234. package/test/test_data/usfm/frt.usfm +4 -0
  235. package/test/test_data/usfm/headings.usfm +7 -0
  236. package/test/test_data/usfm/hello.usfm +8 -0
  237. package/test/test_data/usfm/int.usfm +7 -0
  238. package/test/test_data/usfm/milestone_attributes.usfm +7 -0
  239. package/test/test_data/usfm/milestone_attributes_default.usfm +7 -0
  240. package/test/test_data/usfm/no_break_space.usfm +4 -0
  241. package/test/test_data/usfm/no_mt.usfm +6 -0
  242. package/test/test_data/usfm/rems.usfm +6 -0
  243. package/test/test_data/usfm/section_intros.usfm +26 -0
  244. package/test/test_data/usfm/sidebars.usfm +25 -0
  245. package/test/test_data/usfm/slash_in_att.usfm +6 -0
  246. package/test/test_data/usfm/soft_line_break.usfm +4 -0
  247. package/test/test_data/usfm/spans.usfm +5 -0
  248. package/test/test_data/usfm/split_long_tokens.usfm +6 -0
  249. package/test/test_data/usfm/table.usfm +18 -0
  250. package/test/test_data/usfm/table_at_end.usfm +11 -0
  251. package/test/test_data/usfm/table_in_intro.usfm +22 -0
  252. package/test/test_data/usfm/table_no_end_cells.usfm +18 -0
  253. package/test/test_data/usfm/tit_kitchen_sink.usfm +73 -0
  254. package/test/test_data/usfm/titus_template.usfm +58 -0
  255. package/test/test_data/usfm/ugnt_3jn.usfm +265 -0
  256. package/test/test_data/usfm/ult_3jn.usfm +335 -0
  257. package/test/test_data/usfm/unknown.usfm +5 -0
  258. package/test/test_data/usfm/ust_psa.usfm +29 -0
  259. package/test/test_data/usfm/ust_psa_verse_ranges.usfm +24 -0
  260. package/test/test_data/usfm/ust_psa_with_ts.usfm +29 -0
  261. package/test/test_data/usfm/verse_breaks_in_blocks.usfm +20 -0
  262. package/test/test_data/usfm/verse_range.usfm +7 -0
  263. package/test/test_data/usfm/web_ecc.usfm +391 -0
  264. package/test/test_data/usfm/web_psa51.usfm +71 -0
  265. package/test/test_data/usfm/whitespace.usfm +12 -0
  266. package/test/test_data/usfm/xref.usfm +11 -0
  267. package/test/test_data/usx/bad_element.usx +2 -0
  268. package/test/test_data/usx/cp_vp.usx +12 -0
  269. package/test/test_data/usx/diff1.usx +59 -0
  270. package/test/test_data/usx/diff2.usx +74 -0
  271. package/test/test_data/usx/douay_rheims_ecc.usx +58 -0
  272. package/test/test_data/usx/douay_rheims_psa.usx +5366 -0
  273. package/test/test_data/usx/douay_rheims_psa_40_60.usx +666 -0
  274. package/test/test_data/usx/douay_rheims_rut.usx +26 -0
  275. package/test/test_data/usx/esg3.usx +47 -0
  276. package/test/test_data/usx/fig.usx +6 -0
  277. package/test/test_data/usx/milestone_attributes.usx +11 -0
  278. package/test/test_data/usx/not_nfc18_glo.usx +9 -0
  279. package/test/test_data/usx/not_nfc18_phm.usx +24 -0
  280. package/test/test_data/usx/opt_break.usx +10 -0
  281. package/test/test_data/usx/sidebars.usx +29 -0
  282. package/test/test_data/usx/table.usx +23 -0
  283. package/test/test_data/usx/web_psa.usx +8489 -0
  284. package/test/test_data/usx/web_psa150.usx +33 -0
  285. package/test/test_data/usx/web_psa_40_60.usx +1079 -0
  286. package/test/test_data/usx/web_rut.usx +95 -0
  287. package/test/test_data/usx/web_rut_1.usx +17 -0
  288. package/test/test_data/utils/douay_rheims.vrs +520 -0
  289. package/test/test_data/utils/douay_rheims_PSA.usx +5366 -0
  290. package/test/test_data/utils/serialize_example.json +91 -0
  291. package/test/test_data/utils/truncated_versification.vrs +29 -0
  292. package/test/test_data/utils/web_rut_items.json +2977 -0
  293. package/test/test_data/utils/webbe.vrs +395 -0
  294. package/test/test_data/utils/webbe_PSA.usx +8489 -0
  295. package/test/test_data/vrs/douay_rheims.vrs +520 -0
  296. package/test/test_data/vrs/truncated_versification.vrs +27 -0
  297. package/test/test_data/vrs/webbe.vrs +397 -0
  298. package/webpack.prod.js +50 -0
  299. package/dist/index.js +0 -8
  300. package/dist/index.js.LICENSE.txt +0 -23
@@ -0,0 +1,349 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <!-- Created with Inkscape (http://www.inkscape.org/) -->
3
+
4
+ <svg
5
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
6
+ xmlns:cc="http://creativecommons.org/ns#"
7
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
8
+ xmlns:svg="http://www.w3.org/2000/svg"
9
+ xmlns="http://www.w3.org/2000/svg"
10
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
11
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
12
+ width="210mm"
13
+ height="297mm"
14
+ viewBox="0 0 210 297"
15
+ version="1.1"
16
+ id="svg8"
17
+ inkscape:version="0.92.5 (2060ec1f9f, 2020-04-08)"
18
+ sodipodi:docname="proskomma_edit_reference.svg"
19
+ inkscape:export-filename="/home/mark/repos/proskomma-js/docs/proskomma_edit_reference.png"
20
+ inkscape:export-xdpi="205.25253"
21
+ inkscape:export-ydpi="205.25253">
22
+ <defs
23
+ id="defs2">
24
+ <marker
25
+ inkscape:stockid="Arrow2Send"
26
+ orient="auto"
27
+ refY="0.0"
28
+ refX="0.0"
29
+ id="Arrow2Send"
30
+ style="overflow:visible;"
31
+ inkscape:isstock="true">
32
+ <path
33
+ id="path1006"
34
+ style="fill-rule:evenodd;stroke-width:0.625;stroke-linejoin:round;stroke:#000000;stroke-opacity:1;fill:#000000;fill-opacity:1"
35
+ d="M 8.7185878,4.0337352 L -2.2072895,0.016013256 L 8.7185884,-4.0017078 C 6.9730900,-1.6296469 6.9831476,1.6157441 8.7185878,4.0337352 z "
36
+ transform="scale(0.3) rotate(180) translate(-2.3,0)" />
37
+ </marker>
38
+ <marker
39
+ inkscape:stockid="Arrow2Send"
40
+ orient="auto"
41
+ refY="0"
42
+ refX="0"
43
+ id="Arrow2Send-3"
44
+ style="overflow:visible"
45
+ inkscape:isstock="true">
46
+ <path
47
+ inkscape:connector-curvature="0"
48
+ id="path1006-5"
49
+ style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:0.625;stroke-linejoin:round;stroke-opacity:1"
50
+ d="M 8.7185878,4.0337352 -2.2072895,0.01601326 8.7185884,-4.0017078 c -1.7454984,2.3720609 -1.7354408,5.6174519 -6e-7,8.035443 z"
51
+ transform="matrix(-0.3,0,0,-0.3,0.69,0)" />
52
+ </marker>
53
+ <marker
54
+ inkscape:stockid="Arrow2Send"
55
+ orient="auto"
56
+ refY="0"
57
+ refX="0"
58
+ id="Arrow2Send-2"
59
+ style="overflow:visible"
60
+ inkscape:isstock="true">
61
+ <path
62
+ inkscape:connector-curvature="0"
63
+ id="path1006-9"
64
+ style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:0.625;stroke-linejoin:round;stroke-opacity:1"
65
+ d="M 8.7185878,4.0337352 -2.2072895,0.01601326 8.7185884,-4.0017078 c -1.7454984,2.3720609 -1.7354408,5.6174519 -6e-7,8.035443 z"
66
+ transform="matrix(-0.3,0,0,-0.3,0.69,0)" />
67
+ </marker>
68
+ <marker
69
+ inkscape:stockid="Arrow2Send"
70
+ orient="auto"
71
+ refY="0"
72
+ refX="0"
73
+ id="Arrow2Send-27"
74
+ style="overflow:visible"
75
+ inkscape:isstock="true">
76
+ <path
77
+ inkscape:connector-curvature="0"
78
+ id="path1006-0"
79
+ style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:0.625;stroke-linejoin:round;stroke-opacity:1"
80
+ d="M 8.7185878,4.0337352 -2.2072895,0.01601326 8.7185884,-4.0017078 c -1.7454984,2.3720609 -1.7354408,5.6174519 -6e-7,8.035443 z"
81
+ transform="matrix(-0.3,0,0,-0.3,0.69,0)" />
82
+ </marker>
83
+ <marker
84
+ inkscape:stockid="Arrow2Send"
85
+ orient="auto"
86
+ refY="0"
87
+ refX="0"
88
+ id="Arrow2Send-3-9"
89
+ style="overflow:visible"
90
+ inkscape:isstock="true">
91
+ <path
92
+ inkscape:connector-curvature="0"
93
+ id="path1006-5-3"
94
+ style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:0.625;stroke-linejoin:round;stroke-opacity:1"
95
+ d="M 8.7185878,4.0337352 -2.2072895,0.01601326 8.7185884,-4.0017078 c -1.7454984,2.3720609 -1.7354408,5.6174519 -6e-7,8.035443 z"
96
+ transform="matrix(-0.3,0,0,-0.3,0.69,0)" />
97
+ </marker>
98
+ </defs>
99
+ <sodipodi:namedview
100
+ id="base"
101
+ pagecolor="#ffffff"
102
+ bordercolor="#666666"
103
+ borderopacity="1.0"
104
+ inkscape:pageopacity="0.0"
105
+ inkscape:pageshadow="2"
106
+ inkscape:zoom="0.71539352"
107
+ inkscape:cx="164.89565"
108
+ inkscape:cy="554.28571"
109
+ inkscape:document-units="mm"
110
+ inkscape:current-layer="layer1"
111
+ showgrid="true"
112
+ inkscape:window-width="1200"
113
+ inkscape:window-height="1788"
114
+ inkscape:window-x="0"
115
+ inkscape:window-y="27"
116
+ inkscape:window-maximized="1">
117
+ <inkscape:grid
118
+ type="xygrid"
119
+ id="grid815" />
120
+ </sodipodi:namedview>
121
+ <metadata
122
+ id="metadata5">
123
+ <rdf:RDF>
124
+ <cc:Work
125
+ rdf:about="">
126
+ <dc:format>image/svg+xml</dc:format>
127
+ <dc:type
128
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
129
+ <dc:title />
130
+ </cc:Work>
131
+ </rdf:RDF>
132
+ </metadata>
133
+ <g
134
+ inkscape:label="Layer 1"
135
+ inkscape:groupmode="layer"
136
+ id="layer1">
137
+ <text
138
+ xml:space="preserve"
139
+ style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:4.23333311px;line-height:1.25;font-family:sans-serif;-inkscape-font-specification:'sans-serif Bold';letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.26458332"
140
+ x="104.30371"
141
+ y="11.25"
142
+ id="text842"><tspan
143
+ sodipodi:role="line"
144
+ id="tspan840"
145
+ x="26.458332"
146
+ y="11.25"
147
+ style="font-size:9.87777805px;stroke-width:0.26458332;text-anchor:middle;text-align:center">Proskomma Edit</tspan><tspan
148
+ sodipodi:role="line"
149
+ x="26.458332"
150
+ y="23.597223"
151
+ style="font-size:9.87777805px;stroke-width:0.26458332;text-anchor:middle;text-align:center;-inkscape-font-specification:'sans-serif Italic';font-family:sans-serif;font-weight:normal;font-style:italic;font-stretch:normal;font-variant:normal"
152
+ id="tspan945">(Reference Implementation)</tspan></text>
153
+ <g
154
+ id="g955"
155
+ transform="translate(5.2452087e-6,1.305143e-5)">
156
+ <rect
157
+ y="73.780556"
158
+ x="5.2916665"
159
+ height="37.041668"
160
+ width="201.08333"
161
+ id="rect817-6"
162
+ style="opacity:1;fill:#d5e5ff;fill-opacity:1;stroke:#000000;stroke-width:0.3818813;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
163
+ <text
164
+ id="text846"
165
+ y="89.09848"
166
+ x="9.6303825"
167
+ style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:12.69999981px;line-height:1.25;font-family:sans-serif;-inkscape-font-specification:'sans-serif Bold';letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.26458332"
168
+ xml:space="preserve"><tspan
169
+ style="font-size:12.69999981px;stroke-width:0.26458332"
170
+ y="89.09848"
171
+ x="9.6303825"
172
+ id="tspan844"
173
+ sodipodi:role="line">PERF-Based Editor UI</tspan><tspan
174
+ id="tspan947"
175
+ style="font-size:12.69999981px;stroke-width:0.26458332"
176
+ y="104.97348"
177
+ x="9.6303825"
178
+ sodipodi:role="line">in React</tspan></text>
179
+ <text
180
+ id="text868"
181
+ y="95.387505"
182
+ x="176.25394"
183
+ style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:8.46666622px;line-height:1.25;font-family:sans-serif;-inkscape-font-specification:'sans-serif Bold';letter-spacing:0px;word-spacing:0px;fill:#dee3db;fill-opacity:1;stroke:#1f241c;stroke-width:0.26458332"
184
+ xml:space="preserve"><tspan
185
+ style="font-size:8.46666622px;fill:#dee3db;stroke:#1f241c;stroke-width:0.26458332"
186
+ y="95.387505"
187
+ x="176.25394"
188
+ id="tspan866"
189
+ sodipodi:role="line">VIEW</tspan></text>
190
+ </g>
191
+ <g
192
+ id="g962"
193
+ transform="translate(5.2452087e-6,10.550144)">
194
+ <rect
195
+ y="153.31183"
196
+ x="5.2916665"
197
+ height="37.041668"
198
+ width="201.08333"
199
+ id="rect817-6-7"
200
+ style="opacity:1;fill:#80b3ff;fill-opacity:1;stroke:#000000;stroke-width:0.3818813;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
201
+ <text
202
+ id="text893"
203
+ y="174.91466"
204
+ x="142.3914"
205
+ style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:8.46666622px;line-height:1.25;font-family:sans-serif;-inkscape-font-specification:'sans-serif Bold';letter-spacing:0px;word-spacing:0px;fill:#dee3db;fill-opacity:1;stroke:#1f241c;stroke-width:0.26458332"
206
+ xml:space="preserve"><tspan
207
+ style="font-size:8.46666622px;fill:#dee3db;stroke:#1f241c;stroke-width:0.26458332"
208
+ y="174.91466"
209
+ x="142.3914"
210
+ id="tspan891"
211
+ sodipodi:role="line">VIEWMODEL</tspan></text>
212
+ <text
213
+ id="text901"
214
+ y="176.65718"
215
+ x="9.5311642"
216
+ style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:12.69999981px;line-height:1.25;font-family:sans-serif;-inkscape-font-specification:'sans-serif Bold';letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.26458332"
217
+ xml:space="preserve"><tspan
218
+ style="font-size:12.69999981px;stroke-width:0.26458332"
219
+ y="176.65718"
220
+ x="9.5311642"
221
+ id="tspan899"
222
+ sodipodi:role="line">MkPERF</tspan></text>
223
+ </g>
224
+ <text
225
+ xml:space="preserve"
226
+ style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:5.64444447px;line-height:1.25;font-family:sans-serif;-inkscape-font-specification:'sans-serif Bold';text-align:start;letter-spacing:0px;word-spacing:0px;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.26458332"
227
+ x="117.26357"
228
+ y="130.09624"
229
+ id="text919"><tspan
230
+ sodipodi:role="line"
231
+ id="tspan917"
232
+ x="117.26357"
233
+ y="130.09624"
234
+ style="font-size:5.64444447px;text-align:start;text-anchor:start;stroke-width:0.26458332">createBlock()</tspan><tspan
235
+ sodipodi:role="line"
236
+ x="117.26357"
237
+ y="137.15179"
238
+ style="font-size:5.64444447px;text-align:start;text-anchor:start;stroke-width:0.26458332"
239
+ id="tspan921">updateBlock()</tspan><tspan
240
+ sodipodi:role="line"
241
+ x="117.26357"
242
+ y="144.20735"
243
+ style="font-size:5.64444447px;text-align:start;text-anchor:start;stroke-width:0.26458332"
244
+ id="tspan923">deleteBlock()</tspan></text>
245
+ <text
246
+ xml:space="preserve"
247
+ style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:5.64444447px;line-height:1.25;font-family:sans-serif;-inkscape-font-specification:'sans-serif Bold';letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.26458332"
248
+ x="45.292473"
249
+ y="137.0266"
250
+ id="text927"><tspan
251
+ sodipodi:role="line"
252
+ id="tspan925"
253
+ x="45.292473"
254
+ y="137.0266"
255
+ style="font-size:5.64444447px;stroke-width:0.26458332">readSequence()</tspan></text>
256
+ <text
257
+ xml:space="preserve"
258
+ style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:5.64444447px;line-height:1.25;font-family:sans-serif;-inkscape-font-specification:'sans-serif Bold';text-align:center;letter-spacing:0px;word-spacing:0px;text-anchor:middle;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.26458332"
259
+ x="138.34756"
260
+ y="221.4373"
261
+ id="text931"><tspan
262
+ sodipodi:role="line"
263
+ id="tspan929"
264
+ x="138.34756"
265
+ y="221.4373"
266
+ style="font-size:5.64444447px;text-align:center;text-anchor:middle;stroke-width:0.26458332">submitToPk()</tspan><tspan
267
+ sodipodi:role="line"
268
+ x="138.34756"
269
+ y="228.49286"
270
+ style="font-size:5.64444447px;text-align:center;text-anchor:middle;stroke-width:0.26458332"
271
+ id="tspan933">(GQL Mutation)</tspan></text>
272
+ <text
273
+ xml:space="preserve"
274
+ style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:5.64444447px;line-height:1.25;font-family:sans-serif;-inkscape-font-specification:'sans-serif Bold';text-align:center;letter-spacing:0px;word-spacing:0px;text-anchor:middle;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.26458332"
275
+ x="72.635262"
276
+ y="221.32343"
277
+ id="text937"><tspan
278
+ sodipodi:role="line"
279
+ id="tspan935"
280
+ x="72.635262"
281
+ y="221.32343"
282
+ style="font-size:5.64444447px;text-align:center;text-anchor:middle;stroke-width:0.26458332">fetchFromPk()</tspan><tspan
283
+ sodipodi:role="line"
284
+ x="72.635262"
285
+ y="228.37898"
286
+ style="font-size:5.64444447px;text-align:center;text-anchor:middle;stroke-width:0.26458332"
287
+ id="tspan939">(GQL Query)</tspan></text>
288
+ <g
289
+ id="g969">
290
+ <rect
291
+ y="253.94339"
292
+ x="5.2916718"
293
+ height="37.041668"
294
+ width="201.08333"
295
+ id="rect817-6-5"
296
+ style="opacity:1;fill:#2a7fff;fill-opacity:1;stroke:#000000;stroke-width:0.3818813;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
297
+ <text
298
+ id="text897"
299
+ y="275.5462"
300
+ x="167.21677"
301
+ style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:8.46666622px;line-height:1.25;font-family:sans-serif;-inkscape-font-specification:'sans-serif Bold';letter-spacing:0px;word-spacing:0px;fill:#dee3db;fill-opacity:1;stroke:#1f241c;stroke-width:0.26458332"
302
+ xml:space="preserve"><tspan
303
+ style="font-size:8.46666622px;fill:#dee3db;stroke:#1f241c;stroke-width:0.26458332"
304
+ y="275.5462"
305
+ x="167.21677"
306
+ id="tspan895"
307
+ sodipodi:role="line">MODEL</tspan></text>
308
+ <text
309
+ id="text943"
310
+ y="277.19882"
311
+ x="9.5311642"
312
+ style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:12.69999981px;line-height:1.25;font-family:sans-serif;-inkscape-font-specification:'sans-serif Bold';letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.26458332"
313
+ xml:space="preserve"><tspan
314
+ style="font-size:12.69999981px;stroke-width:0.26458332"
315
+ y="277.19882"
316
+ x="9.5311642"
317
+ id="tspan941"
318
+ sodipodi:role="line">Proskomma Core</tspan></text>
319
+ </g>
320
+ <g
321
+ id="g1396"
322
+ transform="translate(23.283335,3.1838529)">
323
+ <path
324
+ inkscape:connector-curvature="0"
325
+ id="path971"
326
+ d="M 79.374999,148.83333 V 122.375"
327
+ style="fill:none;stroke:#000000;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;marker-end:url(#Arrow2Send)" />
328
+ <path
329
+ inkscape:connector-curvature="0"
330
+ id="path971-6"
331
+ d="m 85.725002,119.48316 v 26.45833"
332
+ style="fill:none;stroke:#000000;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;marker-end:url(#Arrow2Send-3)" />
333
+ </g>
334
+ <g
335
+ transform="translate(23.283335,93.265273)"
336
+ id="g1396-6">
337
+ <path
338
+ inkscape:connector-curvature="0"
339
+ id="path971-0"
340
+ d="M 79.374999,148.83333 V 122.375"
341
+ style="fill:none;stroke:#000000;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;marker-end:url(#Arrow2Send-27)" />
342
+ <path
343
+ inkscape:connector-curvature="0"
344
+ id="path971-6-6"
345
+ d="m 85.725002,119.48316 v 26.45833"
346
+ style="fill:none;stroke:#000000;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;marker-end:url(#Arrow2Send-3-9)" />
347
+ </g>
348
+ </g>
349
+ </svg>
Binary file
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "module"
3
+ }
@@ -0,0 +1,5 @@
1
+ import cjsModule from '../index.js';
2
+ // Proskomma, lexingRegexes, blocksSpecUtils
3
+ export const Proskomma = cjsModule.Proskomma;
4
+ export const lexingRegexes = cjsModule.lexingRegexes;
5
+ export const blocksSpecUtils = cjsModule.blocksSpecUtils;
package/index.js ADDED
@@ -0,0 +1,6 @@
1
+ const { Proskomma, lexingRegexes } = require('./src/index.cjs');
2
+ const blocksSpecUtils = require('./src/util/scriptlike/blocksSpec.cjs');
3
+
4
+ export default {
5
+ Proskomma, lexingRegexes, blocksSpecUtils,
6
+ };
package/package.json CHANGED
@@ -1,20 +1,23 @@
1
1
  {
2
2
  "name": "proskomma-core",
3
- "version": "0.9.7",
3
+ "version": "0.9.12",
4
4
  "description": "A Scripture Runtime Engine",
5
- "main": "dist/index.js",
6
- "files": [
7
- "dist/*"
8
- ],
5
+ "main": "esm/wrapper.mjs",
6
+ "exports": {
7
+ "require": "./index.js",
8
+ "import": "./esm/wrapper.mjs"
9
+ },
9
10
  "scripts": {
10
- "test": "bash -c \"tape -r @babel/register test/code/*.cjs | node_modules/tap-summary/bin/cmd.js\"",
11
- "testUtils": "bash -c \"tape -r @babel/register test/code/utils/code/*.cjs | node_modules/tap-summary/bin/cmd.js\"",
12
- "rawTest": "tape -r @babel/register test/code/*.cjs",
13
- "oneTest": "tape -r @babel/register test/code/$TESTSCRIPT.cjs",
14
- "coverage": "node_modules/nyc/bin/nyc.js tape -r @babel/register test/code/*.cjs",
11
+ "test": "export PKSRC=dist && npm run build && bash -c \"tape -r @babel/register test/code/*.cjs | node_modules/tap-summary/bin/cmd.js\"",
12
+ "srcTest": "bash -c \"tape test/code/main/*.cjs test/code/utils/*.cjs | node_modules/tap-summary/bin/cmd.js\"",
13
+ "rawTest": "export PKSRC=dist && npm run build && bash -c \"tape -r @babel/register test/code/*.cjs\"",
14
+ "oneTest": "bash -c \"tape -r @babel/register test/code/$TESTSCRIPT.cjs\"",
15
+ "oneSrcTest": "export PKSRC=src && bash -c \"tape -r @babel/register test/code/$TESTSCRIPT.cjs\"",
16
+ "coverage": "node_modules/nyc/bin/nyc.js bash -c \"tape -r @babel/register test/code/*.cjs\"",
15
17
  "build": "rm -fr dist && webpack --mode production --config webpack.prod.js",
16
- "prepublishOnly": "rm -fr dist && npm run build",
17
- "serialize": "tape -r @babel/register test/code/serialize.cjs"
18
+ "serialize": "tape -r @babel/register test/code/serialize.cjs",
19
+ "rawSrcTest": "export PKSRC=src && bash -c \"tape test/code/main/*.cjs\"",
20
+ "testUtils": "bash -c \"tape test/code/utils/*.cjs\""
18
21
  },
19
22
  "repository": {
20
23
  "type": "git",
@@ -25,7 +28,8 @@
25
28
  "USX",
26
29
  "Scripture",
27
30
  "parser",
28
- "lexer"
31
+ "lexer",
32
+ "Proskomma"
29
33
  ],
30
34
  "author": "Mark Howe",
31
35
  "license": "MIT",
@@ -50,11 +54,9 @@
50
54
  "exceljs": "^4.3.0",
51
55
  "fs-extra": "^11.1.0",
52
56
  "graphql": "^v16.6.0",
53
- "jsonschema": "^1.4.1",
54
57
  "node-polyfill-webpack-plugin": "^2.0.1",
55
58
  "path-browserify": "^1.0.1",
56
- "pipeline-handler": "2.2.2",
57
- "proskomma-json-tools": "^0.5.12",
59
+ "proskomma-json-tools": "^0.6.5",
58
60
  "pure-uuid": "^1.6.2",
59
61
  "sax": "^1.2.4",
60
62
  "stream": "0.0.2",
@@ -76,7 +78,7 @@
76
78
  "eslint-plugin-jsdoc": "^39.3.6",
77
79
  "eslint-plugin-prettier": "^v4.2.1",
78
80
  "nyc": "^15.1.0",
79
- "path": "0.12.7",
81
+ "path": "^0.12.7",
80
82
  "prettier": "^2.7.1",
81
83
  "process": "^0.11.10",
82
84
  "tap-summary": "^4.0.0",
@@ -0,0 +1,201 @@
1
+ const {
2
+ keyValueSchemaString,
3
+ keyValueResolvers,
4
+ } = require('./queries/key_value.cjs');
5
+ const {
6
+ cvSchemaString,
7
+ cvResolvers,
8
+ } = require('./queries/cv.cjs');
9
+ const {
10
+ idPartsSchemaString,
11
+ idPartsResolvers,
12
+ } = require('./queries/idParts.cjs');
13
+ const { inputAttSpecSchemaString } = require('./queries/input_att_spec.cjs');
14
+ const { keyMatchesSchemaString } = require('./queries/input_key_matches.cjs');
15
+ const { inputKeyValueSchemaString } = require('./queries/input_key_value.cjs');
16
+ const { keyValuesSchemaString } = require('./queries/input_key_values.cjs');
17
+ const { inputItemObjectSchemaString } = require('./queries/inputItemObject.cjs');
18
+ const {
19
+ itemSchemaString,
20
+ itemResolvers,
21
+ } = require('./queries/item.cjs');
22
+ const {
23
+ itemGroupSchemaString,
24
+ itemGroupResolvers,
25
+ } = require('./queries/itemGroup.cjs');
26
+ const {
27
+ kvEntrySchemaString,
28
+ kvEntryResolvers,
29
+ } = require('./queries/kv_entry.cjs');
30
+ const {
31
+ regexIndexSchemaString,
32
+ regexIndexResolvers,
33
+ } = require('./queries/regex_index.cjs');
34
+ const { rowEqualsSpecSchemaString } = require('./queries/row_equals_spec.cjs');
35
+ const { rowMatchSpecSchemaString } = require('./queries/row_match_spec.cjs');
36
+ const { verseRangeSchemaString } = require('./queries/verseRange.cjs');
37
+ const { origSchemaString } = require('./queries/orig.cjs');
38
+ const {
39
+ verseNumberSchemaString,
40
+ verseNumberResolvers,
41
+ } = require('./queries/verseNumber.cjs');
42
+ const {
43
+ cellSchemaString,
44
+ cellResolvers,
45
+ } = require('./queries/cell.cjs');
46
+ const {
47
+ cIndexSchemaString,
48
+ cIndexResolvers,
49
+ } = require('./queries/cIndex.cjs');
50
+ const {
51
+ cvVerseElementSchemaString,
52
+ cvVerseElementResolvers,
53
+ } = require('./queries/cvVerseElement.cjs');
54
+ const {
55
+ cvVersesSchemaString,
56
+ cvVersesResolvers,
57
+ } = require('./queries/cvVerses.cjs');
58
+ const {
59
+ cvIndexSchemaString,
60
+ cvIndexResolvers,
61
+ } = require('./queries/cvIndex.cjs');
62
+ const {
63
+ cvNavigationSchemaString,
64
+ cvNavigationResolvers,
65
+ } = require('./queries/cvNavigation.cjs');
66
+ const { inputBlockSpecSchemaString } = require('./queries/inputBlockSpec.cjs');
67
+ const {
68
+ nodeSchemaString,
69
+ nodeResolvers,
70
+ } = require('./queries/node.cjs');
71
+ const {
72
+ kvSequenceSchemaString,
73
+ kvSequenceResolvers,
74
+ } = require('./queries/kv_sequence.cjs');
75
+ const {
76
+ tableSequenceSchemaString,
77
+ tableSequenceResolvers,
78
+ } = require('./queries/table_sequence.cjs');
79
+ const {
80
+ treeSequenceSchemaString,
81
+ treeSequenceResolvers,
82
+ } = require('./queries/tree_sequence.cjs');
83
+ const {
84
+ blockSchemaString,
85
+ blockResolvers,
86
+ } = require('./queries/block.cjs');
87
+ const {
88
+ sequenceSchemaString,
89
+ sequenceResolvers,
90
+ } = require('./queries/sequence.cjs');
91
+ const {
92
+ documentSchemaString,
93
+ documentResolvers,
94
+ } = require('./queries/document.cjs');
95
+ const {
96
+ docSetSchemaString,
97
+ docSetResolvers,
98
+ } = require('./queries/doc_set.cjs');
99
+ const {
100
+ querySchemaString,
101
+ queryResolvers,
102
+ } = require('./queries/index.cjs');
103
+ const {
104
+ selectorSpecSchemaString,
105
+ selectorSpecResolvers,
106
+ } = require('./queries/selector_spec.cjs');
107
+ const { inputSelectorSpecSchemaString } = require('./queries/input_selector_spec.cjs');
108
+ const {
109
+ mutationsSchemaString,
110
+ mutationsResolvers,
111
+ } = require('./mutations/index.cjs');
112
+ const {
113
+ versificationSchemaString,
114
+ versificationResolvers,
115
+ } = require('./queries/versification.cjs');
116
+ const {
117
+ cvBookSchemaString,
118
+ cvBookResolvers,
119
+ } = require('./queries/cvBook.cjs');
120
+ const {
121
+ cvChapterSchemaString,
122
+ cvChapterResolvers,
123
+ } = require('./queries/cvChapter.cjs');
124
+
125
+ const typeDefs = `
126
+ ${querySchemaString}
127
+ ${mutationsSchemaString}
128
+ ${keyValueSchemaString}
129
+ ${cvSchemaString}
130
+ ${idPartsSchemaString}
131
+ ${inputAttSpecSchemaString}
132
+ ${keyMatchesSchemaString}
133
+ ${inputKeyValueSchemaString}
134
+ ${keyValuesSchemaString}
135
+ ${inputItemObjectSchemaString}
136
+ ${itemSchemaString}
137
+ ${itemGroupSchemaString}
138
+ ${kvEntrySchemaString}
139
+ ${regexIndexSchemaString}
140
+ ${rowEqualsSpecSchemaString}
141
+ ${rowMatchSpecSchemaString}
142
+ ${verseRangeSchemaString}
143
+ ${origSchemaString}
144
+ ${verseNumberSchemaString}
145
+ ${cellSchemaString}
146
+ ${cIndexSchemaString}
147
+ ${cvVerseElementSchemaString}
148
+ ${cvVersesSchemaString}
149
+ ${cvIndexSchemaString}
150
+ ${cvNavigationSchemaString}
151
+ ${inputBlockSpecSchemaString}
152
+ ${nodeSchemaString}
153
+ ${kvSequenceSchemaString}
154
+ ${tableSequenceSchemaString}
155
+ ${treeSequenceSchemaString}
156
+ ${blockSchemaString}
157
+ ${sequenceSchemaString}
158
+ ${documentSchemaString}
159
+ ${docSetSchemaString}
160
+ ${selectorSpecSchemaString}
161
+ ${inputSelectorSpecSchemaString}
162
+ ${versificationSchemaString}
163
+ ${cvBookSchemaString}
164
+ ${cvChapterSchemaString}
165
+ `;
166
+
167
+ const resolvers = {
168
+ Mutation: mutationsResolvers,
169
+ Query: queryResolvers,
170
+ KeyValue: keyValueResolvers,
171
+ cv: cvResolvers,
172
+ idParts: idPartsResolvers,
173
+ Item: itemResolvers,
174
+ ItemGroup: itemGroupResolvers,
175
+ kvEntry: kvEntryResolvers,
176
+ regexIndex: regexIndexResolvers,
177
+ verseNumber: verseNumberResolvers,
178
+ cell: cellResolvers,
179
+ cIndex: cIndexResolvers,
180
+ cvVerseElement: cvVerseElementResolvers,
181
+ cvVerses: cvVersesResolvers,
182
+ cvIndex: cvIndexResolvers,
183
+ cvNavigation: cvNavigationResolvers,
184
+ node: nodeResolvers,
185
+ kvSequence: kvSequenceResolvers,
186
+ tableSequence: tableSequenceResolvers,
187
+ treeSequence: treeSequenceResolvers,
188
+ Block: blockResolvers,
189
+ Sequence: sequenceResolvers,
190
+ Document: documentResolvers,
191
+ DocSet: docSetResolvers,
192
+ selectorSpec: selectorSpecResolvers,
193
+ versification: versificationResolvers,
194
+ cvBook: cvBookResolvers,
195
+ cvChapter: cvChapterResolvers,
196
+ };
197
+
198
+ module.exports = {
199
+ typeDefs,
200
+ resolvers,
201
+ };