honkit 4.0.8 → 5.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (565) hide show
  1. package/lib/BuildGenerator.d.ts +13 -0
  2. package/lib/BuildGenerator.d.ts.map +1 -0
  3. package/lib/__tests__/__fixtures__/honkit/book.d.ts +7 -0
  4. package/lib/__tests__/__fixtures__/honkit/book.d.ts.map +1 -0
  5. package/lib/__tests__/e2e.test.d.ts +2 -0
  6. package/lib/__tests__/e2e.test.d.ts.map +1 -0
  7. package/lib/__tests__/init.d.ts +2 -0
  8. package/lib/__tests__/init.d.ts.map +1 -0
  9. package/lib/__tests__/satisfies.d.ts +2 -0
  10. package/lib/__tests__/satisfies.d.ts.map +1 -0
  11. package/lib/__tests__/snapshot-asciidoc.d.ts +2 -0
  12. package/lib/__tests__/snapshot-asciidoc.d.ts.map +1 -0
  13. package/lib/__tests__/snapshot-asciidoc.js +48 -0
  14. package/lib/__tests__/snapshot-honkit.d.ts +2 -0
  15. package/lib/__tests__/snapshot-honkit.d.ts.map +1 -0
  16. package/lib/api/decodeConfig.d.ts +10 -0
  17. package/lib/api/decodeConfig.d.ts.map +1 -0
  18. package/lib/api/decodeGlobal.d.ts +11 -0
  19. package/lib/api/decodeGlobal.d.ts.map +1 -0
  20. package/lib/api/decodePage.d.ts +12 -0
  21. package/lib/api/decodePage.d.ts.map +1 -0
  22. package/lib/api/deprecate.d.ts +52 -0
  23. package/lib/api/deprecate.d.ts.map +1 -0
  24. package/lib/api/encodeConfig.d.ts +12 -0
  25. package/lib/api/encodeConfig.d.ts.map +1 -0
  26. package/lib/api/encodeGlobal.d.ts +165 -0
  27. package/lib/api/encodeGlobal.d.ts.map +1 -0
  28. package/lib/api/encodeGlobal.js +11 -9
  29. package/lib/api/encodeNavigation.d.ts +19 -0
  30. package/lib/api/encodeNavigation.d.ts.map +1 -0
  31. package/lib/api/encodePage.d.ts +16 -0
  32. package/lib/api/encodePage.d.ts.map +1 -0
  33. package/lib/api/encodeProgress.d.ts +25 -0
  34. package/lib/api/encodeProgress.d.ts.map +1 -0
  35. package/lib/api/encodeSummary.d.ts +49 -0
  36. package/lib/api/encodeSummary.d.ts.map +1 -0
  37. package/lib/api/index.d.ts +12 -0
  38. package/lib/api/index.d.ts.map +1 -0
  39. package/lib/bin.d.ts +2 -0
  40. package/lib/bin.d.ts.map +1 -0
  41. package/lib/browser.d.ts +60 -0
  42. package/lib/browser.d.ts.map +1 -0
  43. package/lib/cli/build.d.ts +17 -0
  44. package/lib/cli/build.d.ts.map +1 -0
  45. package/lib/cli/buildEbook.d.ts +12 -0
  46. package/lib/cli/buildEbook.d.ts.map +1 -0
  47. package/lib/cli/getBook.d.ts +12 -0
  48. package/lib/cli/getBook.d.ts.map +1 -0
  49. package/lib/cli/getOutputFolder.d.ts +9 -0
  50. package/lib/cli/getOutputFolder.d.ts.map +1 -0
  51. package/lib/cli/index.d.ts +25 -0
  52. package/lib/cli/index.d.ts.map +1 -0
  53. package/lib/cli/init.d.ts +13 -0
  54. package/lib/cli/init.d.ts.map +1 -0
  55. package/lib/cli/options.d.ts +26 -0
  56. package/lib/cli/options.d.ts.map +1 -0
  57. package/lib/cli/parse.d.ts +13 -0
  58. package/lib/cli/parse.d.ts.map +1 -0
  59. package/lib/cli/serve.d.ts +25 -0
  60. package/lib/cli/serve.d.ts.map +1 -0
  61. package/lib/cli/server.d.ts +29 -0
  62. package/lib/cli/server.d.ts.map +1 -0
  63. package/lib/cli/watch.d.ts +10 -0
  64. package/lib/cli/watch.d.ts.map +1 -0
  65. package/lib/constants/__tests__/configSchema.d.ts +2 -0
  66. package/lib/constants/__tests__/configSchema.d.ts.map +1 -0
  67. package/lib/constants/configDefault.d.ts +3 -0
  68. package/lib/constants/configDefault.d.ts.map +1 -0
  69. package/lib/constants/configFiles.d.ts +3 -0
  70. package/lib/constants/configFiles.d.ts.map +1 -0
  71. package/lib/constants/configSchema.d.ts +221 -0
  72. package/lib/constants/configSchema.d.ts.map +1 -0
  73. package/lib/constants/defaultBlocks.d.ts +5 -0
  74. package/lib/constants/defaultBlocks.d.ts.map +1 -0
  75. package/lib/constants/defaultBlocks.js +8 -7
  76. package/lib/constants/defaultFilters.d.ts +4 -0
  77. package/lib/constants/defaultFilters.d.ts.map +1 -0
  78. package/lib/constants/defaultPlugins.d.ts +5 -0
  79. package/lib/constants/defaultPlugins.d.ts.map +1 -0
  80. package/lib/constants/extsAsciidoc.d.ts +3 -0
  81. package/lib/constants/extsAsciidoc.d.ts.map +1 -0
  82. package/lib/constants/extsMarkdown.d.ts +3 -0
  83. package/lib/constants/extsMarkdown.d.ts.map +1 -0
  84. package/lib/constants/ignoreFiles.d.ts +3 -0
  85. package/lib/constants/ignoreFiles.d.ts.map +1 -0
  86. package/lib/constants/pluginAssetsFolder.d.ts +3 -0
  87. package/lib/constants/pluginAssetsFolder.d.ts.map +1 -0
  88. package/lib/constants/pluginHooks.d.ts +3 -0
  89. package/lib/constants/pluginHooks.d.ts.map +1 -0
  90. package/lib/constants/pluginPrefix.d.ts +3 -0
  91. package/lib/constants/pluginPrefix.d.ts.map +1 -0
  92. package/lib/constants/pluginResources.d.ts +4 -0
  93. package/lib/constants/pluginResources.d.ts.map +1 -0
  94. package/lib/constants/templatesFolder.d.ts +3 -0
  95. package/lib/constants/templatesFolder.d.ts.map +1 -0
  96. package/lib/constants/themePrefix.d.ts +3 -0
  97. package/lib/constants/themePrefix.d.ts.map +1 -0
  98. package/lib/fs/__tests__/mock.d.ts +2 -0
  99. package/lib/fs/__tests__/mock.d.ts.map +1 -0
  100. package/lib/fs/mock.d.ts +9 -0
  101. package/lib/fs/mock.d.ts.map +1 -0
  102. package/lib/fs/node.d.ts +3 -0
  103. package/lib/fs/node.d.ts.map +1 -0
  104. package/lib/honkit.d.ts +15 -0
  105. package/lib/honkit.d.ts.map +1 -0
  106. package/lib/index.d.ts +3 -0
  107. package/lib/index.d.ts.map +1 -0
  108. package/lib/init.d.ts +11 -0
  109. package/lib/init.d.ts.map +1 -0
  110. package/lib/json/encodeBook.d.ts +51 -0
  111. package/lib/json/encodeBook.d.ts.map +1 -0
  112. package/lib/json/encodeBookWithPage.d.ts +52 -0
  113. package/lib/json/encodeBookWithPage.d.ts.map +1 -0
  114. package/lib/json/encodeFile.d.ts +13 -0
  115. package/lib/json/encodeFile.d.ts.map +1 -0
  116. package/lib/json/encodeGlossary.d.ts +16 -0
  117. package/lib/json/encodeGlossary.d.ts.map +1 -0
  118. package/lib/json/encodeGlossaryEntry.d.ts +13 -0
  119. package/lib/json/encodeGlossaryEntry.d.ts.map +1 -0
  120. package/lib/json/encodeLanguages.d.ts +16 -0
  121. package/lib/json/encodeLanguages.d.ts.map +1 -0
  122. package/lib/json/encodeOutput.d.ts +51 -0
  123. package/lib/json/encodeOutput.d.ts.map +1 -0
  124. package/lib/json/encodeOutputWithPage.d.ts +52 -0
  125. package/lib/json/encodeOutputWithPage.d.ts.map +1 -0
  126. package/lib/json/encodePage.d.ts +19 -0
  127. package/lib/json/encodePage.d.ts.map +1 -0
  128. package/lib/json/encodeReadme.d.ts +15 -0
  129. package/lib/json/encodeReadme.d.ts.map +1 -0
  130. package/lib/json/encodeSummary.d.ts +16 -0
  131. package/lib/json/encodeSummary.d.ts.map +1 -0
  132. package/lib/json/encodeSummaryArticle.d.ts +19 -0
  133. package/lib/json/encodeSummaryArticle.d.ts.map +1 -0
  134. package/lib/json/encodeSummaryArticleWithCache.d.ts +20 -0
  135. package/lib/json/encodeSummaryArticleWithCache.d.ts.map +1 -0
  136. package/lib/json/encodeSummaryPart.d.ts +12 -0
  137. package/lib/json/encodeSummaryPart.d.ts.map +1 -0
  138. package/lib/json/index.d.ts +24 -0
  139. package/lib/json/index.d.ts.map +1 -0
  140. package/lib/models/__tests__/config.d.ts +2 -0
  141. package/lib/models/__tests__/config.d.ts.map +1 -0
  142. package/lib/models/__tests__/glossary.d.ts +2 -0
  143. package/lib/models/__tests__/glossary.d.ts.map +1 -0
  144. package/lib/models/__tests__/glossaryEntry.d.ts +2 -0
  145. package/lib/models/__tests__/glossaryEntry.d.ts.map +1 -0
  146. package/lib/models/__tests__/page.d.ts +2 -0
  147. package/lib/models/__tests__/page.d.ts.map +1 -0
  148. package/lib/models/__tests__/plugin.d.ts +2 -0
  149. package/lib/models/__tests__/plugin.d.ts.map +1 -0
  150. package/lib/models/__tests__/pluginDependency.d.ts +2 -0
  151. package/lib/models/__tests__/pluginDependency.d.ts.map +1 -0
  152. package/lib/models/__tests__/summary.d.ts +2 -0
  153. package/lib/models/__tests__/summary.d.ts.map +1 -0
  154. package/lib/models/__tests__/summaryArticle.d.ts +2 -0
  155. package/lib/models/__tests__/summaryArticle.d.ts.map +1 -0
  156. package/lib/models/__tests__/summaryPart.d.ts +2 -0
  157. package/lib/models/__tests__/summaryPart.d.ts.map +1 -0
  158. package/lib/models/__tests__/templateBlock.d.ts +2 -0
  159. package/lib/models/__tests__/templateBlock.d.ts.map +1 -0
  160. package/lib/models/__tests__/templateEngine.d.ts +2 -0
  161. package/lib/models/__tests__/templateEngine.d.ts.map +1 -0
  162. package/lib/models/book.d.ts +158 -0
  163. package/lib/models/book.d.ts.map +1 -0
  164. package/lib/models/config.d.ts +82 -0
  165. package/lib/models/config.d.ts.map +1 -0
  166. package/lib/models/file.d.ts +54 -0
  167. package/lib/models/file.d.ts.map +1 -0
  168. package/lib/models/file.js +11 -4
  169. package/lib/models/fs.d.ts +116 -0
  170. package/lib/models/fs.d.ts.map +1 -0
  171. package/lib/models/glossary.d.ts +42 -0
  172. package/lib/models/glossary.d.ts.map +1 -0
  173. package/lib/models/glossary.js +4 -4
  174. package/lib/models/glossaryEntry.d.ts +16 -0
  175. package/lib/models/glossaryEntry.d.ts.map +1 -0
  176. package/lib/models/hash.d.ts +4 -0
  177. package/lib/models/hash.d.ts.map +1 -0
  178. package/lib/models/ignore.d.ts +20 -0
  179. package/lib/models/ignore.d.ts.map +1 -0
  180. package/lib/models/language.d.ts +9 -0
  181. package/lib/models/language.d.ts.map +1 -0
  182. package/lib/models/languages.d.ts +35 -0
  183. package/lib/models/languages.d.ts.map +1 -0
  184. package/lib/models/output.d.ts +53 -0
  185. package/lib/models/output.d.ts.map +1 -0
  186. package/lib/models/page.d.ts +44 -0
  187. package/lib/models/page.d.ts.map +1 -0
  188. package/lib/models/parser.d.ts +44 -0
  189. package/lib/models/parser.d.ts.map +1 -0
  190. package/lib/models/parser.js +14 -14
  191. package/lib/models/plugin.d.ts +69 -0
  192. package/lib/models/plugin.d.ts.map +1 -0
  193. package/lib/models/pluginDependency.d.ts +47 -0
  194. package/lib/models/pluginDependency.d.ts.map +1 -0
  195. package/lib/models/readme.d.ts +21 -0
  196. package/lib/models/readme.d.ts.map +1 -0
  197. package/lib/models/summary.d.ts +83 -0
  198. package/lib/models/summary.d.ts.map +1 -0
  199. package/lib/models/summaryArticle.d.ts +93 -0
  200. package/lib/models/summaryArticle.d.ts.map +1 -0
  201. package/lib/models/summaryPart.d.ts +23 -0
  202. package/lib/models/summaryPart.d.ts.map +1 -0
  203. package/lib/models/templateBlock.d.ts +54 -0
  204. package/lib/models/templateBlock.d.ts.map +1 -0
  205. package/lib/models/templateEngine.d.ts +35 -0
  206. package/lib/models/templateEngine.d.ts.map +1 -0
  207. package/lib/models/templateOutput.d.ts +18 -0
  208. package/lib/models/templateOutput.d.ts.map +1 -0
  209. package/lib/models/templateShortcut.d.ts +28 -0
  210. package/lib/models/templateShortcut.d.ts.map +1 -0
  211. package/lib/models/templateShortcut.js +3 -3
  212. package/lib/modifiers/config/__tests__/addPlugin.d.ts +2 -0
  213. package/lib/modifiers/config/__tests__/addPlugin.d.ts.map +1 -0
  214. package/lib/modifiers/config/__tests__/removePlugin.d.ts +2 -0
  215. package/lib/modifiers/config/__tests__/removePlugin.d.ts.map +1 -0
  216. package/lib/modifiers/config/__tests__/togglePlugin.d.ts +2 -0
  217. package/lib/modifiers/config/__tests__/togglePlugin.d.ts.map +1 -0
  218. package/lib/modifiers/config/addPlugin.d.ts +10 -0
  219. package/lib/modifiers/config/addPlugin.d.ts.map +1 -0
  220. package/lib/modifiers/config/editPlugin.d.ts +10 -0
  221. package/lib/modifiers/config/editPlugin.d.ts.map +1 -0
  222. package/lib/modifiers/config/getPluginConfig.d.ts +9 -0
  223. package/lib/modifiers/config/getPluginConfig.d.ts.map +1 -0
  224. package/lib/modifiers/config/hasPlugin.d.ts +10 -0
  225. package/lib/modifiers/config/hasPlugin.d.ts.map +1 -0
  226. package/lib/modifiers/config/index.d.ts +18 -0
  227. package/lib/modifiers/config/index.d.ts.map +1 -0
  228. package/lib/modifiers/config/isDefaultPlugin.d.ts +9 -0
  229. package/lib/modifiers/config/isDefaultPlugin.d.ts.map +1 -0
  230. package/lib/modifiers/config/removePlugin.d.ts +9 -0
  231. package/lib/modifiers/config/removePlugin.d.ts.map +1 -0
  232. package/lib/modifiers/config/togglePlugin.d.ts +10 -0
  233. package/lib/modifiers/config/togglePlugin.d.ts.map +1 -0
  234. package/lib/modifiers/index.d.ts +25 -0
  235. package/lib/modifiers/index.d.ts.map +1 -0
  236. package/lib/modifiers/summary/__tests__/editPartTitle.d.ts +2 -0
  237. package/lib/modifiers/summary/__tests__/editPartTitle.d.ts.map +1 -0
  238. package/lib/modifiers/summary/__tests__/insertArticle.d.ts +2 -0
  239. package/lib/modifiers/summary/__tests__/insertArticle.d.ts.map +1 -0
  240. package/lib/modifiers/summary/__tests__/insertPart.d.ts +2 -0
  241. package/lib/modifiers/summary/__tests__/insertPart.d.ts.map +1 -0
  242. package/lib/modifiers/summary/__tests__/mergeAtLevel.d.ts +2 -0
  243. package/lib/modifiers/summary/__tests__/mergeAtLevel.d.ts.map +1 -0
  244. package/lib/modifiers/summary/__tests__/moveArticle.d.ts +2 -0
  245. package/lib/modifiers/summary/__tests__/moveArticle.d.ts.map +1 -0
  246. package/lib/modifiers/summary/__tests__/moveArticleAfter.d.ts +2 -0
  247. package/lib/modifiers/summary/__tests__/moveArticleAfter.d.ts.map +1 -0
  248. package/lib/modifiers/summary/__tests__/removeArticle.d.ts +2 -0
  249. package/lib/modifiers/summary/__tests__/removeArticle.d.ts.map +1 -0
  250. package/lib/modifiers/summary/editArticleRef.d.ts +11 -0
  251. package/lib/modifiers/summary/editArticleRef.d.ts.map +1 -0
  252. package/lib/modifiers/summary/editArticleTitle.d.ts +11 -0
  253. package/lib/modifiers/summary/editArticleTitle.d.ts.map +1 -0
  254. package/lib/modifiers/summary/editPartTitle.d.ts +11 -0
  255. package/lib/modifiers/summary/editPartTitle.d.ts.map +1 -0
  256. package/lib/modifiers/summary/index.d.ts +24 -0
  257. package/lib/modifiers/summary/index.d.ts.map +1 -0
  258. package/lib/modifiers/summary/indexArticleLevels.d.ts +10 -0
  259. package/lib/modifiers/summary/indexArticleLevels.d.ts.map +1 -0
  260. package/lib/modifiers/summary/indexLevels.d.ts +9 -0
  261. package/lib/modifiers/summary/indexLevels.d.ts.map +1 -0
  262. package/lib/modifiers/summary/indexPartLevels.d.ts +10 -0
  263. package/lib/modifiers/summary/indexPartLevels.d.ts.map +1 -0
  264. package/lib/modifiers/summary/insertArticle.d.ts +12 -0
  265. package/lib/modifiers/summary/insertArticle.d.ts.map +1 -0
  266. package/lib/modifiers/summary/insertPart.d.ts +13 -0
  267. package/lib/modifiers/summary/insertPart.d.ts.map +1 -0
  268. package/lib/modifiers/summary/mergeAtLevel.d.ts +11 -0
  269. package/lib/modifiers/summary/mergeAtLevel.d.ts.map +1 -0
  270. package/lib/modifiers/summary/moveArticle.d.ts +12 -0
  271. package/lib/modifiers/summary/moveArticle.d.ts.map +1 -0
  272. package/lib/modifiers/summary/moveArticleAfter.d.ts +13 -0
  273. package/lib/modifiers/summary/moveArticleAfter.d.ts.map +1 -0
  274. package/lib/modifiers/summary/removeArticle.d.ts +10 -0
  275. package/lib/modifiers/summary/removeArticle.d.ts.map +1 -0
  276. package/lib/modifiers/summary/removePart.d.ts +10 -0
  277. package/lib/modifiers/summary/removePart.d.ts.map +1 -0
  278. package/lib/modifiers/summary/unshiftArticle.d.ts +10 -0
  279. package/lib/modifiers/summary/unshiftArticle.d.ts.map +1 -0
  280. package/lib/output/Generator.d.ts +14 -0
  281. package/lib/output/Generator.d.ts.map +1 -0
  282. package/lib/output/__tests__/ebook.d.ts +2 -0
  283. package/lib/output/__tests__/ebook.d.ts.map +1 -0
  284. package/lib/output/__tests__/json.d.ts +2 -0
  285. package/lib/output/__tests__/json.d.ts.map +1 -0
  286. package/lib/output/__tests__/plugin-hooks.d.ts +2 -0
  287. package/lib/output/__tests__/plugin-hooks.d.ts.map +1 -0
  288. package/lib/output/__tests__/website.d.ts +2 -0
  289. package/lib/output/__tests__/website.d.ts.map +1 -0
  290. package/lib/output/callHook.d.ts +12 -0
  291. package/lib/output/callHook.d.ts.map +1 -0
  292. package/lib/output/callPageHook.d.ts +11 -0
  293. package/lib/output/callPageHook.d.ts.map +1 -0
  294. package/lib/output/createTemplateEngine.d.ts +11 -0
  295. package/lib/output/createTemplateEngine.d.ts.map +1 -0
  296. package/lib/output/ebook/getConvertOptions.d.ts +9 -0
  297. package/lib/output/ebook/getConvertOptions.d.ts.map +1 -0
  298. package/lib/output/ebook/getCoverPath.d.ts +9 -0
  299. package/lib/output/ebook/getCoverPath.d.ts.map +1 -0
  300. package/lib/output/ebook/getPDFTemplate.d.ts +10 -0
  301. package/lib/output/ebook/getPDFTemplate.d.ts.map +1 -0
  302. package/lib/output/ebook/index.d.ts +3 -0
  303. package/lib/output/ebook/index.d.ts.map +1 -0
  304. package/lib/output/ebook/onFinish.d.ts +9 -0
  305. package/lib/output/ebook/onFinish.d.ts.map +1 -0
  306. package/lib/output/ebook/onPage.d.ts +9 -0
  307. package/lib/output/ebook/onPage.d.ts.map +1 -0
  308. package/lib/output/ebook/options.d.ts +4 -0
  309. package/lib/output/ebook/options.d.ts.map +1 -0
  310. package/lib/output/generateAssets.d.ts +10 -0
  311. package/lib/output/generateAssets.d.ts.map +1 -0
  312. package/lib/output/generateBook.d.ts +32 -0
  313. package/lib/output/generateBook.d.ts.map +1 -0
  314. package/lib/output/generatePage.d.ts +10 -0
  315. package/lib/output/generatePage.d.ts.map +1 -0
  316. package/lib/output/generatePage.js +12 -5
  317. package/lib/output/generatePages.d.ts +10 -0
  318. package/lib/output/generatePages.d.ts.map +1 -0
  319. package/lib/output/getModifiers.d.ts +9 -0
  320. package/lib/output/getModifiers.d.ts.map +1 -0
  321. package/lib/output/helper/fileToOutput.d.ts +10 -0
  322. package/lib/output/helper/fileToOutput.d.ts.map +1 -0
  323. package/lib/output/helper/fileToURL.d.ts +15 -0
  324. package/lib/output/helper/fileToURL.d.ts.map +1 -0
  325. package/lib/output/helper/index.d.ts +3 -0
  326. package/lib/output/helper/index.d.ts.map +1 -0
  327. package/lib/output/helper/resolveFileToURL.d.ts +10 -0
  328. package/lib/output/helper/resolveFileToURL.d.ts.map +1 -0
  329. package/lib/output/helper/writeFile.d.ts +11 -0
  330. package/lib/output/helper/writeFile.d.ts.map +1 -0
  331. package/lib/output/index.d.ts +13 -0
  332. package/lib/output/index.d.ts.map +1 -0
  333. package/lib/output/json/index.d.ts +10 -0
  334. package/lib/output/json/index.d.ts.map +1 -0
  335. package/lib/output/json/onFinish.d.ts +8 -0
  336. package/lib/output/json/onFinish.d.ts.map +1 -0
  337. package/lib/output/json/onPage.d.ts +9 -0
  338. package/lib/output/json/onPage.d.ts.map +1 -0
  339. package/lib/output/json/options.d.ts +4 -0
  340. package/lib/output/json/options.d.ts.map +1 -0
  341. package/lib/output/modifiers/__tests__/addHeadingId.d.ts +2 -0
  342. package/lib/output/modifiers/__tests__/addHeadingId.d.ts.map +1 -0
  343. package/lib/output/modifiers/__tests__/annotateText.d.ts +2 -0
  344. package/lib/output/modifiers/__tests__/annotateText.d.ts.map +1 -0
  345. package/lib/output/modifiers/__tests__/fetchRemoteImages.d.ts +2 -0
  346. package/lib/output/modifiers/__tests__/fetchRemoteImages.d.ts.map +1 -0
  347. package/lib/output/modifiers/__tests__/fetchRemoteImages.js +4 -2
  348. package/lib/output/modifiers/__tests__/highlightCode.d.ts +2 -0
  349. package/lib/output/modifiers/__tests__/highlightCode.d.ts.map +1 -0
  350. package/lib/output/modifiers/__tests__/inlinePng.d.ts +2 -0
  351. package/lib/output/modifiers/__tests__/inlinePng.d.ts.map +1 -0
  352. package/lib/output/modifiers/__tests__/inlineSvg.d.ts +2 -0
  353. package/lib/output/modifiers/__tests__/inlineSvg.d.ts.map +1 -0
  354. package/lib/output/modifiers/__tests__/resolveImages.d.ts +2 -0
  355. package/lib/output/modifiers/__tests__/resolveImages.d.ts.map +1 -0
  356. package/lib/output/modifiers/__tests__/resolveLinks.d.ts +2 -0
  357. package/lib/output/modifiers/__tests__/resolveLinks.d.ts.map +1 -0
  358. package/lib/output/modifiers/__tests__/svgToImg.d.ts +2 -0
  359. package/lib/output/modifiers/__tests__/svgToImg.d.ts.map +1 -0
  360. package/lib/output/modifiers/addHeadingId.d.ts +8 -0
  361. package/lib/output/modifiers/addHeadingId.d.ts.map +1 -0
  362. package/lib/output/modifiers/annotateText.d.ts +10 -0
  363. package/lib/output/modifiers/annotateText.d.ts.map +1 -0
  364. package/lib/output/modifiers/editHTMLElement.d.ts +6 -0
  365. package/lib/output/modifiers/editHTMLElement.d.ts.map +1 -0
  366. package/lib/output/modifiers/fetchRemoteImages.d.ts +7 -0
  367. package/lib/output/modifiers/fetchRemoteImages.d.ts.map +1 -0
  368. package/lib/output/modifiers/highlightCode.d.ts +10 -0
  369. package/lib/output/modifiers/highlightCode.d.ts.map +1 -0
  370. package/lib/output/modifiers/index.d.ts +22 -0
  371. package/lib/output/modifiers/index.d.ts.map +1 -0
  372. package/lib/output/modifiers/inlineAssets.d.ts +8 -0
  373. package/lib/output/modifiers/inlineAssets.d.ts.map +1 -0
  374. package/lib/output/modifiers/inlinePng.d.ts +10 -0
  375. package/lib/output/modifiers/inlinePng.d.ts.map +1 -0
  376. package/lib/output/modifiers/inlineSvg.d.ts +10 -0
  377. package/lib/output/modifiers/inlineSvg.d.ts.map +1 -0
  378. package/lib/output/modifiers/modifyHTML.d.ts +11 -0
  379. package/lib/output/modifiers/modifyHTML.d.ts.map +1 -0
  380. package/lib/output/modifiers/resolveImages.d.ts +10 -0
  381. package/lib/output/modifiers/resolveImages.d.ts.map +1 -0
  382. package/lib/output/modifiers/resolveLinks.d.ts +11 -0
  383. package/lib/output/modifiers/resolveLinks.d.ts.map +1 -0
  384. package/lib/output/modifiers/svgToImg.d.ts +9 -0
  385. package/lib/output/modifiers/svgToImg.d.ts.map +1 -0
  386. package/lib/output/page-cache.d.ts +3 -0
  387. package/lib/output/page-cache.d.ts.map +1 -0
  388. package/lib/output/prepareAssets.d.ts +9 -0
  389. package/lib/output/prepareAssets.d.ts.map +1 -0
  390. package/lib/output/preparePages.d.ts +9 -0
  391. package/lib/output/preparePages.d.ts.map +1 -0
  392. package/lib/output/preparePlugins.d.ts +9 -0
  393. package/lib/output/preparePlugins.d.ts.map +1 -0
  394. package/lib/output/testing/createMock.d.ts +13 -0
  395. package/lib/output/testing/createMock.d.ts.map +1 -0
  396. package/lib/output/testing/generateMock.d.ts +24 -0
  397. package/lib/output/testing/generateMock.d.ts.map +1 -0
  398. package/lib/output/website/__tests__/i18n.d.ts +2 -0
  399. package/lib/output/website/__tests__/i18n.d.ts.map +1 -0
  400. package/lib/output/website/copyPluginAssets.d.ts +11 -0
  401. package/lib/output/website/copyPluginAssets.d.ts.map +1 -0
  402. package/lib/output/website/createTemplateEngine.d.ts +12 -0
  403. package/lib/output/website/createTemplateEngine.d.ts.map +1 -0
  404. package/lib/output/website/index.d.ts +18 -0
  405. package/lib/output/website/index.d.ts.map +1 -0
  406. package/lib/output/website/listSearchPaths.d.ts +9 -0
  407. package/lib/output/website/listSearchPaths.d.ts.map +1 -0
  408. package/lib/output/website/onAsset.d.ts +9 -0
  409. package/lib/output/website/onAsset.d.ts.map +1 -0
  410. package/lib/output/website/onFinish.d.ts +9 -0
  411. package/lib/output/website/onFinish.d.ts.map +1 -0
  412. package/lib/output/website/onInit.d.ts +9 -0
  413. package/lib/output/website/onInit.d.ts.map +1 -0
  414. package/lib/output/website/onPage.d.ts +9 -0
  415. package/lib/output/website/onPage.d.ts.map +1 -0
  416. package/lib/output/website/options.d.ts +4 -0
  417. package/lib/output/website/options.d.ts.map +1 -0
  418. package/lib/output/website/prepareI18n.d.ts +9 -0
  419. package/lib/output/website/prepareI18n.d.ts.map +1 -0
  420. package/lib/output/website/prepareResources.d.ts +9 -0
  421. package/lib/output/website/prepareResources.d.ts.map +1 -0
  422. package/lib/output/website/state.d.ts +10 -0
  423. package/lib/output/website/state.d.ts.map +1 -0
  424. package/lib/parse/__tests__/listAssets.d.ts +2 -0
  425. package/lib/parse/__tests__/listAssets.d.ts.map +1 -0
  426. package/lib/parse/__tests__/parseBook.d.ts +2 -0
  427. package/lib/parse/__tests__/parseBook.d.ts.map +1 -0
  428. package/lib/parse/__tests__/parseGlossary.d.ts +2 -0
  429. package/lib/parse/__tests__/parseGlossary.d.ts.map +1 -0
  430. package/lib/parse/__tests__/parseIgnore.d.ts +2 -0
  431. package/lib/parse/__tests__/parseIgnore.d.ts.map +1 -0
  432. package/lib/parse/__tests__/parsePageFromString.d.ts +2 -0
  433. package/lib/parse/__tests__/parsePageFromString.d.ts.map +1 -0
  434. package/lib/parse/__tests__/parseReadme.d.ts +2 -0
  435. package/lib/parse/__tests__/parseReadme.d.ts.map +1 -0
  436. package/lib/parse/__tests__/parseSummary.d.ts +2 -0
  437. package/lib/parse/__tests__/parseSummary.d.ts.map +1 -0
  438. package/lib/parse/findParsableFile.d.ts +10 -0
  439. package/lib/parse/findParsableFile.d.ts.map +1 -0
  440. package/lib/parse/index.d.ts +28 -0
  441. package/lib/parse/index.d.ts.map +1 -0
  442. package/lib/parse/listAssets.d.ts +11 -0
  443. package/lib/parse/listAssets.d.ts.map +1 -0
  444. package/lib/parse/lookupStructureFile.d.ts +12 -0
  445. package/lib/parse/lookupStructureFile.d.ts.map +1 -0
  446. package/lib/parse/parseBook.d.ts +9 -0
  447. package/lib/parse/parseBook.d.ts.map +1 -0
  448. package/lib/parse/parseConfig.d.ts +9 -0
  449. package/lib/parse/parseConfig.d.ts.map +1 -0
  450. package/lib/parse/parseGlossary.d.ts +9 -0
  451. package/lib/parse/parseGlossary.d.ts.map +1 -0
  452. package/lib/parse/parseIgnore.d.ts +9 -0
  453. package/lib/parse/parseIgnore.d.ts.map +1 -0
  454. package/lib/parse/parseLanguages.d.ts +9 -0
  455. package/lib/parse/parseLanguages.d.ts.map +1 -0
  456. package/lib/parse/parsePage.d.ts +10 -0
  457. package/lib/parse/parsePage.d.ts.map +1 -0
  458. package/lib/parse/parsePageFromString.d.ts +10 -0
  459. package/lib/parse/parsePageFromString.d.ts.map +1 -0
  460. package/lib/parse/parsePagesList.d.ts +9 -0
  461. package/lib/parse/parsePagesList.d.ts.map +1 -0
  462. package/lib/parse/parseReadme.d.ts +9 -0
  463. package/lib/parse/parseReadme.d.ts.map +1 -0
  464. package/lib/parse/parseStructureFile.d.ts +11 -0
  465. package/lib/parse/parseStructureFile.d.ts.map +1 -0
  466. package/lib/parse/parseStructureFile.js +7 -5
  467. package/lib/parse/parseSummary.d.ts +10 -0
  468. package/lib/parse/parseSummary.d.ts.map +1 -0
  469. package/lib/parse/validateConfig.d.ts +10 -0
  470. package/lib/parse/validateConfig.d.ts.map +1 -0
  471. package/lib/parse/walkSummary.d.ts +10 -0
  472. package/lib/parse/walkSummary.d.ts.map +1 -0
  473. package/lib/parsers.d.ts +31 -0
  474. package/lib/parsers.d.ts.map +1 -0
  475. package/lib/parsers.js +5 -5
  476. package/lib/plugins/PluginResolver.d.ts +26 -0
  477. package/lib/plugins/PluginResolver.d.ts.map +1 -0
  478. package/lib/plugins/__tests__/listDependencies.d.ts +2 -0
  479. package/lib/plugins/__tests__/listDependencies.d.ts.map +1 -0
  480. package/lib/plugins/__tests__/sortDependencies.d.ts +2 -0
  481. package/lib/plugins/__tests__/sortDependencies.d.ts.map +1 -0
  482. package/lib/plugins/__tests__/validatePlugin.d.ts +2 -0
  483. package/lib/plugins/__tests__/validatePlugin.d.ts.map +1 -0
  484. package/lib/plugins/index.d.ts +14 -0
  485. package/lib/plugins/index.d.ts.map +1 -0
  486. package/lib/plugins/listBlocks.d.ts +9 -0
  487. package/lib/plugins/listBlocks.d.ts.map +1 -0
  488. package/lib/plugins/listDependencies.d.ts +10 -0
  489. package/lib/plugins/listDependencies.d.ts.map +1 -0
  490. package/lib/plugins/listDepsForBook.d.ts +11 -0
  491. package/lib/plugins/listDepsForBook.d.ts.map +1 -0
  492. package/lib/plugins/listFilters.d.ts +9 -0
  493. package/lib/plugins/listFilters.d.ts.map +1 -0
  494. package/lib/plugins/listResources.d.ts +9 -0
  495. package/lib/plugins/listResources.d.ts.map +1 -0
  496. package/lib/plugins/loadForBook.d.ts +9 -0
  497. package/lib/plugins/loadForBook.d.ts.map +1 -0
  498. package/lib/plugins/loadPlugin.d.ts +11 -0
  499. package/lib/plugins/loadPlugin.d.ts.map +1 -0
  500. package/lib/plugins/package-name-util.d.ts +13 -0
  501. package/lib/plugins/package-name-util.d.ts.map +1 -0
  502. package/lib/plugins/sortDependencies.d.ts +10 -0
  503. package/lib/plugins/sortDependencies.d.ts.map +1 -0
  504. package/lib/plugins/toNames.d.ts +9 -0
  505. package/lib/plugins/toNames.d.ts.map +1 -0
  506. package/lib/plugins/validateConfig.d.ts +11 -0
  507. package/lib/plugins/validateConfig.d.ts.map +1 -0
  508. package/lib/plugins/validatePlugin.d.ts +9 -0
  509. package/lib/plugins/validatePlugin.d.ts.map +1 -0
  510. package/lib/templating/__tests__/conrefsLoader.d.ts +2 -0
  511. package/lib/templating/__tests__/conrefsLoader.d.ts.map +1 -0
  512. package/lib/templating/__tests__/postRender.d.ts +2 -0
  513. package/lib/templating/__tests__/postRender.d.ts.map +1 -0
  514. package/lib/templating/__tests__/replaceShortcuts.d.ts +2 -0
  515. package/lib/templating/__tests__/replaceShortcuts.d.ts.map +1 -0
  516. package/lib/templating/conrefsLoader.d.ts +14 -0
  517. package/lib/templating/conrefsLoader.d.ts.map +1 -0
  518. package/lib/templating/conrefsLoader.js +3 -3
  519. package/lib/templating/index.d.ts +14 -0
  520. package/lib/templating/index.d.ts.map +1 -0
  521. package/lib/templating/listShortcuts.d.ts +11 -0
  522. package/lib/templating/listShortcuts.d.ts.map +1 -0
  523. package/lib/templating/postRender.d.ts +12 -0
  524. package/lib/templating/postRender.d.ts.map +1 -0
  525. package/lib/templating/render.d.ts +12 -0
  526. package/lib/templating/render.d.ts.map +1 -0
  527. package/lib/templating/renderFile.d.ts +11 -0
  528. package/lib/templating/renderFile.d.ts.map +1 -0
  529. package/lib/templating/replaceShortcuts.d.ts +11 -0
  530. package/lib/templating/replaceShortcuts.d.ts.map +1 -0
  531. package/lib/templating/themesLoader.d.ts +4 -0
  532. package/lib/templating/themesLoader.d.ts.map +1 -0
  533. package/lib/utils/__tests__/git.d.ts +2 -0
  534. package/lib/utils/__tests__/git.d.ts.map +1 -0
  535. package/lib/utils/__tests__/location.d.ts +2 -0
  536. package/lib/utils/__tests__/location.d.ts.map +1 -0
  537. package/lib/utils/__tests__/path.d.ts +2 -0
  538. package/lib/utils/__tests__/path.d.ts.map +1 -0
  539. package/lib/utils/command.d.ts +25 -0
  540. package/lib/utils/command.d.ts.map +1 -0
  541. package/lib/utils/error.d.ts +16 -0
  542. package/lib/utils/error.d.ts.map +1 -0
  543. package/lib/utils/fs.d.ts +58 -0
  544. package/lib/utils/fs.d.ts.map +1 -0
  545. package/lib/utils/genKey.d.ts +3 -0
  546. package/lib/utils/genKey.d.ts.map +1 -0
  547. package/lib/utils/git.d.ts +11 -0
  548. package/lib/utils/git.d.ts.map +1 -0
  549. package/lib/utils/images.d.ts +6 -0
  550. package/lib/utils/images.d.ts.map +1 -0
  551. package/lib/utils/location.d.ts +62 -0
  552. package/lib/utils/location.d.ts.map +1 -0
  553. package/lib/utils/logger.d.ts +7 -0
  554. package/lib/utils/logger.d.ts.map +1 -0
  555. package/lib/utils/mergeDefaults.d.ts +9 -0
  556. package/lib/utils/mergeDefaults.d.ts.map +1 -0
  557. package/lib/utils/path.d.ts +14 -0
  558. package/lib/utils/path.d.ts.map +1 -0
  559. package/lib/utils/promise.d.ts +52 -0
  560. package/lib/utils/promise.d.ts.map +1 -0
  561. package/lib/utils/reducedObject.d.ts +9 -0
  562. package/lib/utils/reducedObject.d.ts.map +1 -0
  563. package/lib/utils/timing.d.ts +20 -0
  564. package/lib/utils/timing.d.ts.map +1 -0
  565. package/package.json +9 -8
@@ -0,0 +1,54 @@
1
+ import Immutable from "immutable";
2
+ import TemplateShortcut from "./templateShortcut";
3
+ import nunjucks from "nunjucks";
4
+ declare const TemplateBlock_base: Immutable.Record.Class;
5
+ declare class TemplateBlock extends TemplateBlock_base {
6
+ getName(): string;
7
+ getEndTag(): string;
8
+ getProcess(): Function;
9
+ getBlocks(): Immutable.List<string>;
10
+ /**
11
+ * Return shortcuts associated with this block or undefined
12
+ * @return {TemplateShortcut|undefined}
13
+ */
14
+ getShortcuts(): TemplateShortcut;
15
+ /**
16
+ * Return name for the nunjucks extension
17
+ * @return {string}
18
+ */
19
+ getExtensionName(): string;
20
+ /**
21
+ * Return a nunjucks extension to represents this block
22
+ * @return {Nunjucks.Extension}
23
+ */
24
+ toNunjucksExt(mainContext: any, blocksOutput: any): nunjucks.Extension;
25
+ /**
26
+ * Apply a block to a content
27
+ * @param {Object} inner
28
+ * @param {Object} context
29
+ * @return {Promise<String>|String}
30
+ */
31
+ applyBlock(inner: any, context: any): any;
32
+ /**
33
+ * Normalize result from a block process function
34
+ * @param {Object|String} result
35
+ * @return {Object}
36
+ */
37
+ normalizeBlockResult(result: any): any;
38
+ /**
39
+ * Convert a block result to HTML
40
+ * @param {Object} result
41
+ * @param {Object} blocksOutput: stored post processing blocks in this object
42
+ * @return {string}
43
+ */
44
+ blockResultToHtml(result: any, blocksOutput: any): any;
45
+ /**
46
+ * Create a template block from a function or an object
47
+ * @param {string} blockName
48
+ * @param {Object} block
49
+ * @return {TemplateBlock}
50
+ */
51
+ static create(blockName: any, block: any): any;
52
+ }
53
+ export default TemplateBlock;
54
+ //# sourceMappingURL=templateBlock.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"templateBlock.d.ts","sourceRoot":"","sources":["../../src/models/templateBlock.ts"],"names":[],"mappings":"AAEA,OAAO,SAAS,MAAM,WAAW,CAAC;AAGlC,OAAO,gBAAgB,MAAM,oBAAoB,CAAC;AAClD,OAAO,QAAQ,MAAM,UAAU,CAAC;;AAIhC,cAAM,aAAc,SAAQ,kBAkB3B;IACG,OAAO,IAAI,MAAM;IAIjB,SAAS,IAAI,MAAM;IAInB,UAAU,IAAI,QAAQ;IAItB,SAAS,IAAI,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC;IAInC;;;OAGG;IACH,YAAY,IAAI,gBAAgB;IAQhC;;;OAGG;IACH,gBAAgB,IAAI,MAAM;IAI1B;;;OAGG;IACH,aAAa,CAAC,WAAW,KAAA,EAAE,YAAY,KAAA,GAAG,QAAQ,CAAC,SAAS;IA0H5D;;;;;OAKG;IACH,UAAU,CAAC,KAAK,KAAA,EAAE,OAAO,KAAA;IAiBzB;;;;OAIG;IACH,oBAAoB,CAAC,MAAM,KAAA;IAS3B;;;;;OAKG;IACH,iBAAiB,CAAC,MAAM,KAAA,EAAE,YAAY,KAAA;IAkBtC;;;;;OAKG;IACH,MAAM,CAAC,MAAM,CAAC,SAAS,KAAA,EAAE,KAAK,KAAA;CAYjC;AAYD,eAAe,aAAa,CAAC"}
@@ -0,0 +1,35 @@
1
+ import nunjucks from "nunjucks";
2
+ import Immutable from "immutable";
3
+ import TemplateBlock from "./templateBlock";
4
+ import TemplateOutput from "./templateOutput";
5
+ type Extensions = Immutable.Map<any, any>;
6
+ declare const TemplateEngine_base: Immutable.Record.Class;
7
+ declare class TemplateEngine extends TemplateEngine_base {
8
+ getBlocks(): TemplateBlock;
9
+ getGlobals(): Immutable.Map<string, any>;
10
+ getFilters(): any;
11
+ getShortcuts(): any;
12
+ getLoader(): nunjucks.FileSystemLoader;
13
+ getContext(): object;
14
+ getExtensions(): Extensions;
15
+ /**
16
+ Return a block by its name (or undefined)
17
+
18
+ @param {string} name
19
+ @return {TemplateBlock}
20
+ */
21
+ getBlock(name: string): TemplateBlock;
22
+ /**
23
+ Return a nunjucks environment from this configuration
24
+ */
25
+ toNunjucks(blocksOutput?: TemplateOutput): nunjucks.Environment;
26
+ /**
27
+ Create a template engine
28
+
29
+ @param {Object} def
30
+ @return {TemplateEngine}
31
+ */
32
+ static create(def: any): TemplateEngine;
33
+ }
34
+ export default TemplateEngine;
35
+ //# sourceMappingURL=templateEngine.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"templateEngine.d.ts","sourceRoot":"","sources":["../../src/models/templateEngine.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAChC,OAAO,SAAS,MAAM,WAAW,CAAC;AAClC,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAE9C,KAAK,UAAU,GAAG,SAAS,CAAC,GAAG,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;;AAE1C,cAAM,cAAe,SAAQ,mBAqB5B;IACG,SAAS,IAAI,aAAa;IAI1B,UAAU,IAAI,SAAS,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC;IAIxC,UAAU;IAIV,YAAY;IAIZ,SAAS,IAAI,QAAQ,CAAC,gBAAgB;IAItC,UAAU,IAAI,MAAM;IAIpB,aAAa,IAAI,UAAU;IAI3B;;;;;OAKG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,aAAa;IAOrC;;OAEG;IACH,UAAU,CAAC,YAAY,CAAC,EAAE,cAAc,GAAG,QAAQ,CAAC,WAAW;IAiD/D;;;;;OAKG;IACH,MAAM,CAAC,MAAM,CAAC,GAAG,EAAE,GAAG,GAAG,cAAc;CAU1C;AAED,eAAe,cAAc,CAAC"}
@@ -0,0 +1,18 @@
1
+ import Immutable from "immutable";
2
+ import TemplateBlock from "./templateBlock";
3
+ declare const TemplateOutput_base: Immutable.Record.Class;
4
+ declare class TemplateOutput extends TemplateOutput_base {
5
+ getContent(): string;
6
+ getBlocks(): TemplateBlock;
7
+ /**
8
+ * Update content of this output
9
+ */
10
+ setContent(content: string): TemplateOutput;
11
+ /**
12
+ * Create a TemplateOutput from a text content
13
+ * and an object containing block definition
14
+ */
15
+ static create(content: string, blocks: object): TemplateOutput;
16
+ }
17
+ export default TemplateOutput;
18
+ //# sourceMappingURL=templateOutput.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"templateOutput.d.ts","sourceRoot":"","sources":["../../src/models/templateOutput.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,WAAW,CAAC;AAClC,OAAO,aAAa,MAAM,iBAAiB,CAAC;;AAE5C,cAAM,cAAe,SAAQ,mBAS5B;IACG,UAAU,IAAI,MAAM;IAIpB,SAAS,IAAI,aAAa;IAI1B;;OAEG;IACH,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,cAAc;IAI3C;;;OAGG;IACH,MAAM,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,cAAc;CAMjE;AAED,eAAe,cAAc,CAAC"}
@@ -0,0 +1,28 @@
1
+ import Immutable from "immutable";
2
+ import Parser from "./parser";
3
+ import TemplateBlock from "./templateBlock";
4
+ declare const TemplateShortcut_base: Immutable.Record.Class;
5
+ declare class TemplateShortcut extends TemplateShortcut_base {
6
+ getStart(): string;
7
+ getEnd(): string;
8
+ getStartTag(): string;
9
+ getEndTag(): string;
10
+ getParsers(): Parser;
11
+ /**
12
+ Test if this shortcut accept a parser
13
+
14
+ @param {Parsers|String} parser
15
+ @return {boolean}
16
+ */
17
+ acceptParser(parser: Parser | string): any;
18
+ /**
19
+ Create a shortcut for a block
20
+
21
+ @param {TemplateBlock} block
22
+ @param {Map} details
23
+ @return {TemplateShortcut}
24
+ */
25
+ static createForBlock(block: TemplateBlock, details: Immutable.Map<string, any>): TemplateShortcut;
26
+ }
27
+ export default TemplateShortcut;
28
+ //# sourceMappingURL=templateShortcut.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"templateShortcut.d.ts","sourceRoot":"","sources":["../../src/models/templateShortcut.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,WAAW,CAAC;AAClC,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,aAAa,MAAM,iBAAiB,CAAC;;AAM5C,cAAM,gBAAiB,SAAQ,qBAY9B;IACG,QAAQ,IAAI,MAAM;IAIlB,MAAM,IAAI,MAAM;IAIhB,WAAW,IAAI,MAAM;IAIrB,SAAS,IAAI,MAAM;IAInB,UAAU,IAAI,MAAM;IAIpB;;;;;OAKG;IACH,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM;IASpC;;;;;;OAMG;IACH,MAAM,CAAC,cAAc,CAAC,KAAK,EAAE,aAAa,EAAE,OAAO,EAAE,SAAS,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,gBAAgB;CAWrG;AAED,eAAe,gBAAgB,CAAC"}
@@ -14,7 +14,7 @@ class TemplateShortcut extends immutable_1.default.Record({
14
14
  start: String(),
15
15
  end: String(),
16
16
  startTag: String(),
17
- endTag: String(),
17
+ endTag: String()
18
18
  }, "TemplateShortcut") {
19
19
  getStart() {
20
20
  return this.get("start");
@@ -34,7 +34,7 @@ class TemplateShortcut extends immutable_1.default.Record({
34
34
  /**
35
35
  Test if this shortcut accept a parser
36
36
 
37
- @param {Parser|String} parser
37
+ @param {Parsers|String} parser
38
38
  @return {boolean}
39
39
  */
40
40
  acceptParser(parser) {
@@ -58,7 +58,7 @@ class TemplateShortcut extends immutable_1.default.Record({
58
58
  start: details.get("start"),
59
59
  end: details.get("end"),
60
60
  startTag: block.getName(),
61
- endTag: block.getEndTag(),
61
+ endTag: block.getEndTag()
62
62
  });
63
63
  }
64
64
  }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=addPlugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"addPlugin.d.ts","sourceRoot":"","sources":["../../../../src/modifiers/config/__tests__/addPlugin.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=removePlugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"removePlugin.d.ts","sourceRoot":"","sources":["../../../../src/modifiers/config/__tests__/removePlugin.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=togglePlugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"togglePlugin.d.ts","sourceRoot":"","sources":["../../../../src/modifiers/config/__tests__/togglePlugin.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Add a plugin to a book's configuration
3
+ * @param {Config} config
4
+ * @param {string} pluginName
5
+ * @param {string} version (optional)
6
+ * @return {Config}
7
+ */
8
+ declare function addPlugin(config: any, pluginName: any, version: any): any;
9
+ export default addPlugin;
10
+ //# sourceMappingURL=addPlugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"addPlugin.d.ts","sourceRoot":"","sources":["../../../src/modifiers/config/addPlugin.ts"],"names":[],"mappings":"AAIA;;;;;;GAMG;AACH,iBAAS,SAAS,CAAC,MAAM,KAAA,EAAE,UAAU,KAAA,EAAE,OAAO,KAAA,OAY7C;AAED,eAAe,SAAS,CAAC"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Edit configuration of a plugin
3
+ * @param {Config} config
4
+ * @param {string} plugin
5
+ * @param {Object} pluginConfig
6
+ * @return {Config}
7
+ */
8
+ declare function editPlugin(config: any, pluginName: any, pluginConfig: any): any;
9
+ export default editPlugin;
10
+ //# sourceMappingURL=editPlugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"editPlugin.d.ts","sourceRoot":"","sources":["../../../src/modifiers/config/editPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,iBAAS,UAAU,CAAC,MAAM,KAAA,EAAE,UAAU,KAAA,EAAE,YAAY,KAAA,OAEnD;AAED,eAAe,UAAU,CAAC"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Return the configuration for a plugin
3
+ * @param {Config} config
4
+ * @param {string} pluginName
5
+ * @return {Object}
6
+ */
7
+ declare function getPluginConfig(config: any, pluginName: any): any;
8
+ export default getPluginConfig;
9
+ //# sourceMappingURL=getPluginConfig.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getPluginConfig.d.ts","sourceRoot":"","sources":["../../../src/modifiers/config/getPluginConfig.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,iBAAS,eAAe,CAAC,MAAM,KAAA,EAAE,UAAU,KAAA,OAW1C;AAED,eAAe,eAAe,CAAC"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Test if a plugin is listed
3
+ * @param { {List<PluginDependency}} deps
4
+ * @param {string} plugin
5
+ * @param {string} version
6
+ * @return {boolean}
7
+ */
8
+ declare function hasPlugin(deps: any, pluginName: any, version: any): boolean;
9
+ export default hasPlugin;
10
+ //# sourceMappingURL=hasPlugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hasPlugin.d.ts","sourceRoot":"","sources":["../../../src/modifiers/config/hasPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,iBAAS,SAAS,CAAC,IAAI,KAAA,EAAE,UAAU,KAAA,EAAE,OAAO,KAAA,WAI3C;AAED,eAAe,SAAS,CAAC"}
@@ -0,0 +1,18 @@
1
+ import addPlugin0 from "./addPlugin";
2
+ import removePlugin0 from "./removePlugin";
3
+ import togglePlugin0 from "./togglePlugin";
4
+ import editPlugin0 from "./editPlugin";
5
+ import hasPlugin0 from "./hasPlugin";
6
+ import getPluginConfig0 from "./getPluginConfig";
7
+ import isDefaultPlugin0 from "./isDefaultPlugin";
8
+ declare const _default: {
9
+ addPlugin: typeof addPlugin0;
10
+ removePlugin: typeof removePlugin0;
11
+ togglePlugin: typeof togglePlugin0;
12
+ editPlugin: typeof editPlugin0;
13
+ hasPlugin: typeof hasPlugin0;
14
+ getPluginConfig: typeof getPluginConfig0;
15
+ isDefaultPlugin: typeof isDefaultPlugin0;
16
+ };
17
+ export default _default;
18
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modifiers/config/index.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,aAAa,CAAC;AACrC,OAAO,aAAa,MAAM,gBAAgB,CAAC;AAC3C,OAAO,aAAa,MAAM,gBAAgB,CAAC;AAC3C,OAAO,WAAW,MAAM,cAAc,CAAC;AACvC,OAAO,UAAU,MAAM,aAAa,CAAC;AACrC,OAAO,gBAAgB,MAAM,mBAAmB,CAAC;AACjD,OAAO,gBAAgB,MAAM,mBAAmB,CAAC;;;;;;;;;;AACjD,wBAQE"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Test if a plugin is a default one
3
+ * @param {string} plugin
4
+ * @param {string} version
5
+ * @return {boolean}
6
+ */
7
+ declare function isDefaultPlugin(pluginName: any, version: any): boolean;
8
+ export default isDefaultPlugin;
9
+ //# sourceMappingURL=isDefaultPlugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isDefaultPlugin.d.ts","sourceRoot":"","sources":["../../../src/modifiers/config/isDefaultPlugin.ts"],"names":[],"mappings":"AAGA;;;;;GAKG;AAEH,iBAAS,eAAe,CAAC,UAAU,KAAA,EAAE,OAAO,KAAA,WAE3C;AAED,eAAe,eAAe,CAAC"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Remove a plugin from a book's configuration
3
+ * @param {Config} config
4
+ * @param {string} plugin
5
+ * @return {Config}
6
+ */
7
+ declare function removePlugin(config: any, pluginName: any): any;
8
+ export default removePlugin;
9
+ //# sourceMappingURL=removePlugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"removePlugin.d.ts","sourceRoot":"","sources":["../../../src/modifiers/config/removePlugin.ts"],"names":[],"mappings":"AAGA;;;;;GAKG;AACH,iBAAS,YAAY,CAAC,MAAM,KAAA,EAAE,UAAU,KAAA,OAevC;AAED,eAAe,YAAY,CAAC"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Enable/disable a plugin dependency
3
+ * @param {Config} config
4
+ * @param {string} pluginName
5
+ * @param {boolean} state (optional)
6
+ * @return {Config}
7
+ */
8
+ declare function togglePlugin(config: any, pluginName: any, state: any): any;
9
+ export default togglePlugin;
10
+ //# sourceMappingURL=togglePlugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"togglePlugin.d.ts","sourceRoot":"","sources":["../../../src/modifiers/config/togglePlugin.ts"],"names":[],"mappings":"AAIA;;;;;;GAMG;AAEH,iBAAS,YAAY,CAAC,MAAM,KAAA,EAAE,UAAU,KAAA,EAAE,KAAK,KAAA,OAoB9C;AAED,eAAe,YAAY,CAAC"}
@@ -0,0 +1,25 @@
1
+ declare const _default: {
2
+ Summary: {
3
+ insertArticle: typeof import("./summary/insertArticle").default;
4
+ moveArticle: typeof import("./summary/moveArticle").default;
5
+ moveArticleAfter: typeof import("./summary/moveArticleAfter").default;
6
+ removeArticle: typeof import("./summary/removeArticle").default;
7
+ unshiftArticle: typeof import("./summary/unshiftArticle").default;
8
+ editArticleTitle: typeof import("./summary/editArticleTitle").default;
9
+ editArticleRef: typeof import("./summary/editArticleRef").default;
10
+ insertPart: typeof import("./summary/insertPart").default;
11
+ removePart: typeof import("./summary/removePart").default;
12
+ editPartTitle: typeof import("./summary/editPartTitle").default;
13
+ };
14
+ Config: {
15
+ addPlugin: typeof import("./config/addPlugin").default;
16
+ removePlugin: typeof import("./config/removePlugin").default;
17
+ togglePlugin: typeof import("./config/togglePlugin").default;
18
+ editPlugin: typeof import("./config/editPlugin").default;
19
+ hasPlugin: typeof import("./config/hasPlugin").default;
20
+ getPluginConfig: typeof import("./config/getPluginConfig").default;
21
+ isDefaultPlugin: typeof import("./config/isDefaultPlugin").default;
22
+ };
23
+ };
24
+ export default _default;
25
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/modifiers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAEA,wBAGE"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=editPartTitle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"editPartTitle.d.ts","sourceRoot":"","sources":["../../../../src/modifiers/summary/__tests__/editPartTitle.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=insertArticle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"insertArticle.d.ts","sourceRoot":"","sources":["../../../../src/modifiers/summary/__tests__/insertArticle.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=insertPart.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"insertPart.d.ts","sourceRoot":"","sources":["../../../../src/modifiers/summary/__tests__/insertPart.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=mergeAtLevel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mergeAtLevel.d.ts","sourceRoot":"","sources":["../../../../src/modifiers/summary/__tests__/mergeAtLevel.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=moveArticle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"moveArticle.d.ts","sourceRoot":"","sources":["../../../../src/modifiers/summary/__tests__/moveArticle.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=moveArticleAfter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"moveArticleAfter.d.ts","sourceRoot":"","sources":["../../../../src/modifiers/summary/__tests__/moveArticleAfter.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=removeArticle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"removeArticle.d.ts","sourceRoot":"","sources":["../../../../src/modifiers/summary/__tests__/removeArticle.ts"],"names":[],"mappings":""}
@@ -0,0 +1,11 @@
1
+ /**
2
+ Edit the ref of an article
3
+
4
+ @param {Summary} summary
5
+ @param {string} level
6
+ @param {string} newRef
7
+ @return {Summary}
8
+ */
9
+ declare function editArticleRef(summary: any, level: any, newRef: any): any;
10
+ export default editArticleRef;
11
+ //# sourceMappingURL=editArticleRef.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"editArticleRef.d.ts","sourceRoot":"","sources":["../../../src/modifiers/summary/editArticleRef.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AACH,iBAAS,cAAc,CAAC,OAAO,KAAA,EAAE,KAAK,KAAA,EAAE,MAAM,KAAA,OAI7C;AAED,eAAe,cAAc,CAAC"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ Edit title of an article
3
+
4
+ @param {Summary} summary
5
+ @param {string} level
6
+ @param {string} newTitle
7
+ @return {Summary}
8
+ */
9
+ declare function editArticleTitle(summary: any, level: any, newTitle: any): any;
10
+ export default editArticleTitle;
11
+ //# sourceMappingURL=editArticleTitle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"editArticleTitle.d.ts","sourceRoot":"","sources":["../../../src/modifiers/summary/editArticleTitle.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AACH,iBAAS,gBAAgB,CAAC,OAAO,KAAA,EAAE,KAAK,KAAA,EAAE,QAAQ,KAAA,OAIjD;AAED,eAAe,gBAAgB,CAAC"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ Edit title of a part in the summary
3
+
4
+ @param {Summary} summary
5
+ @param {number} index
6
+ @param {string} newTitle
7
+ @return {Summary}
8
+ */
9
+ declare function editPartTitle(summary: any, index: any, newTitle: any): any;
10
+ export default editPartTitle;
11
+ //# sourceMappingURL=editPartTitle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"editPartTitle.d.ts","sourceRoot":"","sources":["../../../src/modifiers/summary/editPartTitle.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,iBAAS,aAAa,CAAC,OAAO,KAAA,EAAE,KAAK,KAAA,EAAE,QAAQ,KAAA,OAY9C;AAED,eAAe,aAAa,CAAC"}
@@ -0,0 +1,24 @@
1
+ import moveArticleAfter0 from "./moveArticleAfter";
2
+ import moveArticle0 from "./moveArticle";
3
+ import insertArticle0 from "./insertArticle";
4
+ import removeArticle0 from "./removeArticle";
5
+ import unshiftArticle0 from "./unshiftArticle";
6
+ import editArticleTitle0 from "./editArticleTitle";
7
+ import editArticleRef0 from "./editArticleRef";
8
+ import insertPart0 from "./insertPart";
9
+ import removePart0 from "./removePart";
10
+ import editPartTitle0 from "./editPartTitle";
11
+ declare const _default: {
12
+ insertArticle: typeof insertArticle0;
13
+ moveArticle: typeof moveArticle0;
14
+ moveArticleAfter: typeof moveArticleAfter0;
15
+ removeArticle: typeof removeArticle0;
16
+ unshiftArticle: typeof unshiftArticle0;
17
+ editArticleTitle: typeof editArticleTitle0;
18
+ editArticleRef: typeof editArticleRef0;
19
+ insertPart: typeof insertPart0;
20
+ removePart: typeof removePart0;
21
+ editPartTitle: typeof editPartTitle0;
22
+ };
23
+ export default _default;
24
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modifiers/summary/index.ts"],"names":[],"mappings":"AAAA,OAAO,iBAAiB,MAAM,oBAAoB,CAAC;AACnD,OAAO,YAAY,MAAM,eAAe,CAAC;AACzC,OAAO,cAAc,MAAM,iBAAiB,CAAC;AAC7C,OAAO,cAAc,MAAM,iBAAiB,CAAC;AAC7C,OAAO,eAAe,MAAM,kBAAkB,CAAC;AAC/C,OAAO,iBAAiB,MAAM,oBAAoB,CAAC;AACnD,OAAO,eAAe,MAAM,kBAAkB,CAAC;AAC/C,OAAO,WAAW,MAAM,cAAc,CAAC;AACvC,OAAO,WAAW,MAAM,cAAc,CAAC;AACvC,OAAO,cAAc,MAAM,iBAAiB,CAAC;;;;;;;;;;;;;AAE7C,wBAWE"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ Index levels in an article tree
3
+
4
+ @param {Article}
5
+ @param {string} baseLevel
6
+ @return {Article}
7
+ */
8
+ declare function indexArticleLevels(article: any, baseLevel: any): any;
9
+ export default indexArticleLevels;
10
+ //# sourceMappingURL=indexArticleLevels.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"indexArticleLevels.d.ts","sourceRoot":"","sources":["../../../src/modifiers/summary/indexArticleLevels.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,iBAAS,kBAAkB,CAAC,OAAO,KAAA,EAAE,SAAS,KAAA,OAY7C;AAED,eAAe,kBAAkB,CAAC"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ Index all levels in the summary
3
+
4
+ @param {Summary}
5
+ @return {Summary}
6
+ */
7
+ declare function indexLevels(summary: any): any;
8
+ export default indexLevels;
9
+ //# sourceMappingURL=indexLevels.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"indexLevels.d.ts","sourceRoot":"","sources":["../../../src/modifiers/summary/indexLevels.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AAEH,iBAAS,WAAW,CAAC,OAAO,KAAA,OAK3B;AAED,eAAe,WAAW,CAAC"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ Index levels in a part
3
+
4
+ @param {Part}
5
+ @param {number} index
6
+ @return {Part}
7
+ */
8
+ declare function indexPartLevels(part: any, index: any): any;
9
+ export default indexPartLevels;
10
+ //# sourceMappingURL=indexPartLevels.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"indexPartLevels.d.ts","sourceRoot":"","sources":["../../../src/modifiers/summary/indexPartLevels.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AAEH,iBAAS,eAAe,CAAC,IAAI,KAAA,EAAE,KAAK,KAAA,OAYnC;AAED,eAAe,eAAe,CAAC"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ Returns a new Summary with the article at the given level, with
3
+ subsequent article shifted.
4
+
5
+ @param {Summary} summary
6
+ @param {Article} article
7
+ @param {String|Article} level: level to insert at
8
+ @return {Summary}
9
+ */
10
+ declare function insertArticle(summary: any, article: any, level: any): any;
11
+ export default insertArticle;
12
+ //# sourceMappingURL=insertArticle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"insertArticle.d.ts","sourceRoot":"","sources":["../../../src/modifiers/summary/insertArticle.ts"],"names":[],"mappings":"AAKA;;;;;;;;GAQG;AAEH,iBAAS,aAAa,CAAC,OAAO,KAAA,EAAE,OAAO,KAAA,EAAE,KAAK,KAAA,OAuB7C;AAaD,eAAe,aAAa,CAAC"}
@@ -0,0 +1,13 @@
1
+ import SummaryPart from "../../models/summaryPart";
2
+ import Summary from "../../models/summary";
3
+ /**
4
+ Returns a new Summary with a part inserted at given index
5
+
6
+ @param {Summary} summary
7
+ @param {Part} part
8
+ @param {number} index
9
+ @return {Summary}
10
+ */
11
+ declare function insertPart(summary: Summary, part: SummaryPart, index: number): any;
12
+ export default insertPart;
13
+ //# sourceMappingURL=insertPart.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"insertPart.d.ts","sourceRoot":"","sources":["../../../src/modifiers/summary/insertPart.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,0BAA0B,CAAC;AAEnD,OAAO,OAAO,MAAM,sBAAsB,CAAC;AAE3C;;;;;;;GAOG;AACH,iBAAS,UAAU,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,OAKrE;AAED,eAAe,UAAU,CAAC"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ Edit an article, or a part, in a summary. Does a shallow merge.
3
+
4
+ @param {Summary} summary
5
+ @param {string} level
6
+ @param {Article|Part} newValue
7
+ @return {Summary}
8
+ */
9
+ declare function mergeAtLevel(summary: any, level: any, newValue: any): any;
10
+ export default mergeAtLevel;
11
+ //# sourceMappingURL=mergeAtLevel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mergeAtLevel.d.ts","sourceRoot":"","sources":["../../../src/modifiers/summary/mergeAtLevel.ts"],"names":[],"mappings":"AAyCA;;;;;;;GAOG;AAEH,iBAAS,YAAY,CAAC,OAAO,KAAA,EAAE,KAAK,KAAA,EAAE,QAAQ,KAAA,OAmB7C;AAED,eAAe,YAAY,CAAC"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ Returns a new summary, with the given article removed from its
3
+ origin level, and placed at the given target level.
4
+
5
+ @param {Summary} summary
6
+ @param {String|SummaryArticle} origin: level to remove
7
+ @param {String|SummaryArticle} target: the level where the article will be found
8
+ @return {Summary}
9
+ */
10
+ declare function moveArticle(summary: any, origin: any, target: any): any;
11
+ export default moveArticle;
12
+ //# sourceMappingURL=moveArticle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"moveArticle.d.ts","sourceRoot":"","sources":["../../../src/modifiers/summary/moveArticle.ts"],"names":[],"mappings":"AAIA;;;;;;;;GAQG;AACH,iBAAS,WAAW,CAAC,OAAO,KAAA,EAAE,MAAM,KAAA,EAAE,MAAM,KAAA,OAS3C;AAED,eAAe,WAAW,CAAC"}