honkit 4.0.7 → 5.0.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.
- package/lib/BuildGenerator.d.ts +13 -0
- package/lib/BuildGenerator.d.ts.map +1 -0
- package/lib/__tests__/__fixtures__/honkit/book.d.ts +7 -0
- package/lib/__tests__/__fixtures__/honkit/book.d.ts.map +1 -0
- package/lib/__tests__/e2e.test.d.ts +2 -0
- package/lib/__tests__/e2e.test.d.ts.map +1 -0
- package/lib/__tests__/init.d.ts +2 -0
- package/lib/__tests__/init.d.ts.map +1 -0
- package/lib/__tests__/satisfies.d.ts +2 -0
- package/lib/__tests__/satisfies.d.ts.map +1 -0
- package/lib/__tests__/snapshot-asciidoc.d.ts +2 -0
- package/lib/__tests__/snapshot-asciidoc.d.ts.map +1 -0
- package/lib/__tests__/snapshot-asciidoc.js +48 -0
- package/lib/__tests__/snapshot-honkit.d.ts +2 -0
- package/lib/__tests__/snapshot-honkit.d.ts.map +1 -0
- package/lib/api/decodeConfig.d.ts +10 -0
- package/lib/api/decodeConfig.d.ts.map +1 -0
- package/lib/api/decodeGlobal.d.ts +11 -0
- package/lib/api/decodeGlobal.d.ts.map +1 -0
- package/lib/api/decodePage.d.ts +12 -0
- package/lib/api/decodePage.d.ts.map +1 -0
- package/lib/api/deprecate.d.ts +52 -0
- package/lib/api/deprecate.d.ts.map +1 -0
- package/lib/api/encodeConfig.d.ts +12 -0
- package/lib/api/encodeConfig.d.ts.map +1 -0
- package/lib/api/encodeGlobal.d.ts +165 -0
- package/lib/api/encodeGlobal.d.ts.map +1 -0
- package/lib/api/encodeGlobal.js +11 -9
- package/lib/api/encodeNavigation.d.ts +19 -0
- package/lib/api/encodeNavigation.d.ts.map +1 -0
- package/lib/api/encodePage.d.ts +16 -0
- package/lib/api/encodePage.d.ts.map +1 -0
- package/lib/api/encodeProgress.d.ts +25 -0
- package/lib/api/encodeProgress.d.ts.map +1 -0
- package/lib/api/encodeSummary.d.ts +49 -0
- package/lib/api/encodeSummary.d.ts.map +1 -0
- package/lib/api/index.d.ts +12 -0
- package/lib/api/index.d.ts.map +1 -0
- package/lib/bin.d.ts +2 -0
- package/lib/bin.d.ts.map +1 -0
- package/lib/browser.d.ts +60 -0
- package/lib/browser.d.ts.map +1 -0
- package/lib/cli/build.d.ts +17 -0
- package/lib/cli/build.d.ts.map +1 -0
- package/lib/cli/buildEbook.d.ts +12 -0
- package/lib/cli/buildEbook.d.ts.map +1 -0
- package/lib/cli/getBook.d.ts +12 -0
- package/lib/cli/getBook.d.ts.map +1 -0
- package/lib/cli/getOutputFolder.d.ts +9 -0
- package/lib/cli/getOutputFolder.d.ts.map +1 -0
- package/lib/cli/index.d.ts +25 -0
- package/lib/cli/index.d.ts.map +1 -0
- package/lib/cli/init.d.ts +13 -0
- package/lib/cli/init.d.ts.map +1 -0
- package/lib/cli/options.d.ts +26 -0
- package/lib/cli/options.d.ts.map +1 -0
- package/lib/cli/parse.d.ts +13 -0
- package/lib/cli/parse.d.ts.map +1 -0
- package/lib/cli/serve.d.ts +25 -0
- package/lib/cli/serve.d.ts.map +1 -0
- package/lib/cli/server.d.ts +29 -0
- package/lib/cli/server.d.ts.map +1 -0
- package/lib/cli/watch.d.ts +10 -0
- package/lib/cli/watch.d.ts.map +1 -0
- package/lib/constants/__tests__/configSchema.d.ts +2 -0
- package/lib/constants/__tests__/configSchema.d.ts.map +1 -0
- package/lib/constants/configDefault.d.ts +3 -0
- package/lib/constants/configDefault.d.ts.map +1 -0
- package/lib/constants/configFiles.d.ts +3 -0
- package/lib/constants/configFiles.d.ts.map +1 -0
- package/lib/constants/configSchema.d.ts +221 -0
- package/lib/constants/configSchema.d.ts.map +1 -0
- package/lib/constants/defaultBlocks.d.ts +5 -0
- package/lib/constants/defaultBlocks.d.ts.map +1 -0
- package/lib/constants/defaultBlocks.js +8 -7
- package/lib/constants/defaultFilters.d.ts +4 -0
- package/lib/constants/defaultFilters.d.ts.map +1 -0
- package/lib/constants/defaultPlugins.d.ts +5 -0
- package/lib/constants/defaultPlugins.d.ts.map +1 -0
- package/lib/constants/extsAsciidoc.d.ts +3 -0
- package/lib/constants/extsAsciidoc.d.ts.map +1 -0
- package/lib/constants/extsMarkdown.d.ts +3 -0
- package/lib/constants/extsMarkdown.d.ts.map +1 -0
- package/lib/constants/ignoreFiles.d.ts +3 -0
- package/lib/constants/ignoreFiles.d.ts.map +1 -0
- package/lib/constants/pluginAssetsFolder.d.ts +3 -0
- package/lib/constants/pluginAssetsFolder.d.ts.map +1 -0
- package/lib/constants/pluginHooks.d.ts +3 -0
- package/lib/constants/pluginHooks.d.ts.map +1 -0
- package/lib/constants/pluginPrefix.d.ts +3 -0
- package/lib/constants/pluginPrefix.d.ts.map +1 -0
- package/lib/constants/pluginResources.d.ts +4 -0
- package/lib/constants/pluginResources.d.ts.map +1 -0
- package/lib/constants/templatesFolder.d.ts +3 -0
- package/lib/constants/templatesFolder.d.ts.map +1 -0
- package/lib/constants/themePrefix.d.ts +3 -0
- package/lib/constants/themePrefix.d.ts.map +1 -0
- package/lib/fs/__tests__/mock.d.ts +2 -0
- package/lib/fs/__tests__/mock.d.ts.map +1 -0
- package/lib/fs/mock.d.ts +9 -0
- package/lib/fs/mock.d.ts.map +1 -0
- package/lib/fs/node.d.ts +3 -0
- package/lib/fs/node.d.ts.map +1 -0
- package/lib/honkit.d.ts +15 -0
- package/lib/honkit.d.ts.map +1 -0
- package/lib/index.d.ts +3 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/init.d.ts +11 -0
- package/lib/init.d.ts.map +1 -0
- package/lib/json/encodeBook.d.ts +51 -0
- package/lib/json/encodeBook.d.ts.map +1 -0
- package/lib/json/encodeBookWithPage.d.ts +52 -0
- package/lib/json/encodeBookWithPage.d.ts.map +1 -0
- package/lib/json/encodeFile.d.ts +13 -0
- package/lib/json/encodeFile.d.ts.map +1 -0
- package/lib/json/encodeGlossary.d.ts +16 -0
- package/lib/json/encodeGlossary.d.ts.map +1 -0
- package/lib/json/encodeGlossaryEntry.d.ts +13 -0
- package/lib/json/encodeGlossaryEntry.d.ts.map +1 -0
- package/lib/json/encodeLanguages.d.ts +16 -0
- package/lib/json/encodeLanguages.d.ts.map +1 -0
- package/lib/json/encodeOutput.d.ts +51 -0
- package/lib/json/encodeOutput.d.ts.map +1 -0
- package/lib/json/encodeOutputWithPage.d.ts +52 -0
- package/lib/json/encodeOutputWithPage.d.ts.map +1 -0
- package/lib/json/encodePage.d.ts +19 -0
- package/lib/json/encodePage.d.ts.map +1 -0
- package/lib/json/encodeReadme.d.ts +15 -0
- package/lib/json/encodeReadme.d.ts.map +1 -0
- package/lib/json/encodeSummary.d.ts +16 -0
- package/lib/json/encodeSummary.d.ts.map +1 -0
- package/lib/json/encodeSummaryArticle.d.ts +19 -0
- package/lib/json/encodeSummaryArticle.d.ts.map +1 -0
- package/lib/json/encodeSummaryArticleWithCache.d.ts +20 -0
- package/lib/json/encodeSummaryArticleWithCache.d.ts.map +1 -0
- package/lib/json/encodeSummaryPart.d.ts +12 -0
- package/lib/json/encodeSummaryPart.d.ts.map +1 -0
- package/lib/json/index.d.ts +24 -0
- package/lib/json/index.d.ts.map +1 -0
- package/lib/models/__tests__/config.d.ts +2 -0
- package/lib/models/__tests__/config.d.ts.map +1 -0
- package/lib/models/__tests__/glossary.d.ts +2 -0
- package/lib/models/__tests__/glossary.d.ts.map +1 -0
- package/lib/models/__tests__/glossaryEntry.d.ts +2 -0
- package/lib/models/__tests__/glossaryEntry.d.ts.map +1 -0
- package/lib/models/__tests__/page.d.ts +2 -0
- package/lib/models/__tests__/page.d.ts.map +1 -0
- package/lib/models/__tests__/plugin.d.ts +2 -0
- package/lib/models/__tests__/plugin.d.ts.map +1 -0
- package/lib/models/__tests__/pluginDependency.d.ts +2 -0
- package/lib/models/__tests__/pluginDependency.d.ts.map +1 -0
- package/lib/models/__tests__/summary.d.ts +2 -0
- package/lib/models/__tests__/summary.d.ts.map +1 -0
- package/lib/models/__tests__/summaryArticle.d.ts +2 -0
- package/lib/models/__tests__/summaryArticle.d.ts.map +1 -0
- package/lib/models/__tests__/summaryPart.d.ts +2 -0
- package/lib/models/__tests__/summaryPart.d.ts.map +1 -0
- package/lib/models/__tests__/templateBlock.d.ts +2 -0
- package/lib/models/__tests__/templateBlock.d.ts.map +1 -0
- package/lib/models/__tests__/templateEngine.d.ts +2 -0
- package/lib/models/__tests__/templateEngine.d.ts.map +1 -0
- package/lib/models/book.d.ts +158 -0
- package/lib/models/book.d.ts.map +1 -0
- package/lib/models/config.d.ts +82 -0
- package/lib/models/config.d.ts.map +1 -0
- package/lib/models/file.d.ts +54 -0
- package/lib/models/file.d.ts.map +1 -0
- package/lib/models/file.js +11 -4
- package/lib/models/fs.d.ts +116 -0
- package/lib/models/fs.d.ts.map +1 -0
- package/lib/models/glossary.d.ts +42 -0
- package/lib/models/glossary.d.ts.map +1 -0
- package/lib/models/glossary.js +4 -4
- package/lib/models/glossaryEntry.d.ts +16 -0
- package/lib/models/glossaryEntry.d.ts.map +1 -0
- package/lib/models/hash.d.ts +4 -0
- package/lib/models/hash.d.ts.map +1 -0
- package/lib/models/ignore.d.ts +20 -0
- package/lib/models/ignore.d.ts.map +1 -0
- package/lib/models/language.d.ts +9 -0
- package/lib/models/language.d.ts.map +1 -0
- package/lib/models/languages.d.ts +35 -0
- package/lib/models/languages.d.ts.map +1 -0
- package/lib/models/output.d.ts +53 -0
- package/lib/models/output.d.ts.map +1 -0
- package/lib/models/page.d.ts +44 -0
- package/lib/models/page.d.ts.map +1 -0
- package/lib/models/parser.d.ts +44 -0
- package/lib/models/parser.d.ts.map +1 -0
- package/lib/models/parser.js +14 -14
- package/lib/models/plugin.d.ts +69 -0
- package/lib/models/plugin.d.ts.map +1 -0
- package/lib/models/pluginDependency.d.ts +47 -0
- package/lib/models/pluginDependency.d.ts.map +1 -0
- package/lib/models/readme.d.ts +21 -0
- package/lib/models/readme.d.ts.map +1 -0
- package/lib/models/summary.d.ts +83 -0
- package/lib/models/summary.d.ts.map +1 -0
- package/lib/models/summaryArticle.d.ts +93 -0
- package/lib/models/summaryArticle.d.ts.map +1 -0
- package/lib/models/summaryPart.d.ts +23 -0
- package/lib/models/summaryPart.d.ts.map +1 -0
- package/lib/models/templateBlock.d.ts +54 -0
- package/lib/models/templateBlock.d.ts.map +1 -0
- package/lib/models/templateEngine.d.ts +35 -0
- package/lib/models/templateEngine.d.ts.map +1 -0
- package/lib/models/templateOutput.d.ts +18 -0
- package/lib/models/templateOutput.d.ts.map +1 -0
- package/lib/models/templateShortcut.d.ts +28 -0
- package/lib/models/templateShortcut.d.ts.map +1 -0
- package/lib/models/templateShortcut.js +3 -3
- package/lib/modifiers/config/__tests__/addPlugin.d.ts +2 -0
- package/lib/modifiers/config/__tests__/addPlugin.d.ts.map +1 -0
- package/lib/modifiers/config/__tests__/removePlugin.d.ts +2 -0
- package/lib/modifiers/config/__tests__/removePlugin.d.ts.map +1 -0
- package/lib/modifiers/config/__tests__/togglePlugin.d.ts +2 -0
- package/lib/modifiers/config/__tests__/togglePlugin.d.ts.map +1 -0
- package/lib/modifiers/config/addPlugin.d.ts +10 -0
- package/lib/modifiers/config/addPlugin.d.ts.map +1 -0
- package/lib/modifiers/config/editPlugin.d.ts +10 -0
- package/lib/modifiers/config/editPlugin.d.ts.map +1 -0
- package/lib/modifiers/config/getPluginConfig.d.ts +9 -0
- package/lib/modifiers/config/getPluginConfig.d.ts.map +1 -0
- package/lib/modifiers/config/hasPlugin.d.ts +10 -0
- package/lib/modifiers/config/hasPlugin.d.ts.map +1 -0
- package/lib/modifiers/config/index.d.ts +18 -0
- package/lib/modifiers/config/index.d.ts.map +1 -0
- package/lib/modifiers/config/isDefaultPlugin.d.ts +9 -0
- package/lib/modifiers/config/isDefaultPlugin.d.ts.map +1 -0
- package/lib/modifiers/config/removePlugin.d.ts +9 -0
- package/lib/modifiers/config/removePlugin.d.ts.map +1 -0
- package/lib/modifiers/config/togglePlugin.d.ts +10 -0
- package/lib/modifiers/config/togglePlugin.d.ts.map +1 -0
- package/lib/modifiers/index.d.ts +25 -0
- package/lib/modifiers/index.d.ts.map +1 -0
- package/lib/modifiers/summary/__tests__/editPartTitle.d.ts +2 -0
- package/lib/modifiers/summary/__tests__/editPartTitle.d.ts.map +1 -0
- package/lib/modifiers/summary/__tests__/insertArticle.d.ts +2 -0
- package/lib/modifiers/summary/__tests__/insertArticle.d.ts.map +1 -0
- package/lib/modifiers/summary/__tests__/insertPart.d.ts +2 -0
- package/lib/modifiers/summary/__tests__/insertPart.d.ts.map +1 -0
- package/lib/modifiers/summary/__tests__/mergeAtLevel.d.ts +2 -0
- package/lib/modifiers/summary/__tests__/mergeAtLevel.d.ts.map +1 -0
- package/lib/modifiers/summary/__tests__/moveArticle.d.ts +2 -0
- package/lib/modifiers/summary/__tests__/moveArticle.d.ts.map +1 -0
- package/lib/modifiers/summary/__tests__/moveArticleAfter.d.ts +2 -0
- package/lib/modifiers/summary/__tests__/moveArticleAfter.d.ts.map +1 -0
- package/lib/modifiers/summary/__tests__/removeArticle.d.ts +2 -0
- package/lib/modifiers/summary/__tests__/removeArticle.d.ts.map +1 -0
- package/lib/modifiers/summary/editArticleRef.d.ts +11 -0
- package/lib/modifiers/summary/editArticleRef.d.ts.map +1 -0
- package/lib/modifiers/summary/editArticleTitle.d.ts +11 -0
- package/lib/modifiers/summary/editArticleTitle.d.ts.map +1 -0
- package/lib/modifiers/summary/editPartTitle.d.ts +11 -0
- package/lib/modifiers/summary/editPartTitle.d.ts.map +1 -0
- package/lib/modifiers/summary/index.d.ts +24 -0
- package/lib/modifiers/summary/index.d.ts.map +1 -0
- package/lib/modifiers/summary/indexArticleLevels.d.ts +10 -0
- package/lib/modifiers/summary/indexArticleLevels.d.ts.map +1 -0
- package/lib/modifiers/summary/indexLevels.d.ts +9 -0
- package/lib/modifiers/summary/indexLevels.d.ts.map +1 -0
- package/lib/modifiers/summary/indexPartLevels.d.ts +10 -0
- package/lib/modifiers/summary/indexPartLevels.d.ts.map +1 -0
- package/lib/modifiers/summary/insertArticle.d.ts +12 -0
- package/lib/modifiers/summary/insertArticle.d.ts.map +1 -0
- package/lib/modifiers/summary/insertPart.d.ts +13 -0
- package/lib/modifiers/summary/insertPart.d.ts.map +1 -0
- package/lib/modifiers/summary/mergeAtLevel.d.ts +11 -0
- package/lib/modifiers/summary/mergeAtLevel.d.ts.map +1 -0
- package/lib/modifiers/summary/moveArticle.d.ts +12 -0
- package/lib/modifiers/summary/moveArticle.d.ts.map +1 -0
- package/lib/modifiers/summary/moveArticleAfter.d.ts +13 -0
- package/lib/modifiers/summary/moveArticleAfter.d.ts.map +1 -0
- package/lib/modifiers/summary/removeArticle.d.ts +10 -0
- package/lib/modifiers/summary/removeArticle.d.ts.map +1 -0
- package/lib/modifiers/summary/removePart.d.ts +10 -0
- package/lib/modifiers/summary/removePart.d.ts.map +1 -0
- package/lib/modifiers/summary/unshiftArticle.d.ts +10 -0
- package/lib/modifiers/summary/unshiftArticle.d.ts.map +1 -0
- package/lib/output/Generator.d.ts +14 -0
- package/lib/output/Generator.d.ts.map +1 -0
- package/lib/output/__tests__/ebook.d.ts +2 -0
- package/lib/output/__tests__/ebook.d.ts.map +1 -0
- package/lib/output/__tests__/json.d.ts +2 -0
- package/lib/output/__tests__/json.d.ts.map +1 -0
- package/lib/output/__tests__/plugin-hooks.d.ts +2 -0
- package/lib/output/__tests__/plugin-hooks.d.ts.map +1 -0
- package/lib/output/__tests__/website.d.ts +2 -0
- package/lib/output/__tests__/website.d.ts.map +1 -0
- package/lib/output/callHook.d.ts +12 -0
- package/lib/output/callHook.d.ts.map +1 -0
- package/lib/output/callPageHook.d.ts +11 -0
- package/lib/output/callPageHook.d.ts.map +1 -0
- package/lib/output/createTemplateEngine.d.ts +11 -0
- package/lib/output/createTemplateEngine.d.ts.map +1 -0
- package/lib/output/ebook/getConvertOptions.d.ts +9 -0
- package/lib/output/ebook/getConvertOptions.d.ts.map +1 -0
- package/lib/output/ebook/getCoverPath.d.ts +9 -0
- package/lib/output/ebook/getCoverPath.d.ts.map +1 -0
- package/lib/output/ebook/getPDFTemplate.d.ts +10 -0
- package/lib/output/ebook/getPDFTemplate.d.ts.map +1 -0
- package/lib/output/ebook/index.d.ts +3 -0
- package/lib/output/ebook/index.d.ts.map +1 -0
- package/lib/output/ebook/onFinish.d.ts +9 -0
- package/lib/output/ebook/onFinish.d.ts.map +1 -0
- package/lib/output/ebook/onPage.d.ts +9 -0
- package/lib/output/ebook/onPage.d.ts.map +1 -0
- package/lib/output/ebook/options.d.ts +4 -0
- package/lib/output/ebook/options.d.ts.map +1 -0
- package/lib/output/generateAssets.d.ts +10 -0
- package/lib/output/generateAssets.d.ts.map +1 -0
- package/lib/output/generateBook.d.ts +32 -0
- package/lib/output/generateBook.d.ts.map +1 -0
- package/lib/output/generatePage.d.ts +10 -0
- package/lib/output/generatePage.d.ts.map +1 -0
- package/lib/output/generatePage.js +12 -5
- package/lib/output/generatePages.d.ts +10 -0
- package/lib/output/generatePages.d.ts.map +1 -0
- package/lib/output/getModifiers.d.ts +9 -0
- package/lib/output/getModifiers.d.ts.map +1 -0
- package/lib/output/helper/fileToOutput.d.ts +10 -0
- package/lib/output/helper/fileToOutput.d.ts.map +1 -0
- package/lib/output/helper/fileToURL.d.ts +15 -0
- package/lib/output/helper/fileToURL.d.ts.map +1 -0
- package/lib/output/helper/index.d.ts +3 -0
- package/lib/output/helper/index.d.ts.map +1 -0
- package/lib/output/helper/resolveFileToURL.d.ts +10 -0
- package/lib/output/helper/resolveFileToURL.d.ts.map +1 -0
- package/lib/output/helper/writeFile.d.ts +11 -0
- package/lib/output/helper/writeFile.d.ts.map +1 -0
- package/lib/output/index.d.ts +13 -0
- package/lib/output/index.d.ts.map +1 -0
- package/lib/output/json/index.d.ts +10 -0
- package/lib/output/json/index.d.ts.map +1 -0
- package/lib/output/json/onFinish.d.ts +8 -0
- package/lib/output/json/onFinish.d.ts.map +1 -0
- package/lib/output/json/onPage.d.ts +9 -0
- package/lib/output/json/onPage.d.ts.map +1 -0
- package/lib/output/json/options.d.ts +4 -0
- package/lib/output/json/options.d.ts.map +1 -0
- package/lib/output/modifiers/__tests__/addHeadingId.d.ts +2 -0
- package/lib/output/modifiers/__tests__/addHeadingId.d.ts.map +1 -0
- package/lib/output/modifiers/__tests__/annotateText.d.ts +2 -0
- package/lib/output/modifiers/__tests__/annotateText.d.ts.map +1 -0
- package/lib/output/modifiers/__tests__/fetchRemoteImages.d.ts +2 -0
- package/lib/output/modifiers/__tests__/fetchRemoteImages.d.ts.map +1 -0
- package/lib/output/modifiers/__tests__/fetchRemoteImages.js +4 -2
- package/lib/output/modifiers/__tests__/highlightCode.d.ts +2 -0
- package/lib/output/modifiers/__tests__/highlightCode.d.ts.map +1 -0
- package/lib/output/modifiers/__tests__/inlinePng.d.ts +2 -0
- package/lib/output/modifiers/__tests__/inlinePng.d.ts.map +1 -0
- package/lib/output/modifiers/__tests__/inlineSvg.d.ts +2 -0
- package/lib/output/modifiers/__tests__/inlineSvg.d.ts.map +1 -0
- package/lib/output/modifiers/__tests__/resolveImages.d.ts +2 -0
- package/lib/output/modifiers/__tests__/resolveImages.d.ts.map +1 -0
- package/lib/output/modifiers/__tests__/resolveLinks.d.ts +2 -0
- package/lib/output/modifiers/__tests__/resolveLinks.d.ts.map +1 -0
- package/lib/output/modifiers/__tests__/svgToImg.d.ts +2 -0
- package/lib/output/modifiers/__tests__/svgToImg.d.ts.map +1 -0
- package/lib/output/modifiers/addHeadingId.d.ts +8 -0
- package/lib/output/modifiers/addHeadingId.d.ts.map +1 -0
- package/lib/output/modifiers/annotateText.d.ts +10 -0
- package/lib/output/modifiers/annotateText.d.ts.map +1 -0
- package/lib/output/modifiers/editHTMLElement.d.ts +6 -0
- package/lib/output/modifiers/editHTMLElement.d.ts.map +1 -0
- package/lib/output/modifiers/fetchRemoteImages.d.ts +7 -0
- package/lib/output/modifiers/fetchRemoteImages.d.ts.map +1 -0
- package/lib/output/modifiers/highlightCode.d.ts +10 -0
- package/lib/output/modifiers/highlightCode.d.ts.map +1 -0
- package/lib/output/modifiers/index.d.ts +22 -0
- package/lib/output/modifiers/index.d.ts.map +1 -0
- package/lib/output/modifiers/inlineAssets.d.ts +8 -0
- package/lib/output/modifiers/inlineAssets.d.ts.map +1 -0
- package/lib/output/modifiers/inlinePng.d.ts +10 -0
- package/lib/output/modifiers/inlinePng.d.ts.map +1 -0
- package/lib/output/modifiers/inlineSvg.d.ts +10 -0
- package/lib/output/modifiers/inlineSvg.d.ts.map +1 -0
- package/lib/output/modifiers/modifyHTML.d.ts +11 -0
- package/lib/output/modifiers/modifyHTML.d.ts.map +1 -0
- package/lib/output/modifiers/resolveImages.d.ts +10 -0
- package/lib/output/modifiers/resolveImages.d.ts.map +1 -0
- package/lib/output/modifiers/resolveLinks.d.ts +11 -0
- package/lib/output/modifiers/resolveLinks.d.ts.map +1 -0
- package/lib/output/modifiers/svgToImg.d.ts +9 -0
- package/lib/output/modifiers/svgToImg.d.ts.map +1 -0
- package/lib/output/page-cache.d.ts +3 -0
- package/lib/output/page-cache.d.ts.map +1 -0
- package/lib/output/prepareAssets.d.ts +9 -0
- package/lib/output/prepareAssets.d.ts.map +1 -0
- package/lib/output/preparePages.d.ts +9 -0
- package/lib/output/preparePages.d.ts.map +1 -0
- package/lib/output/preparePlugins.d.ts +9 -0
- package/lib/output/preparePlugins.d.ts.map +1 -0
- package/lib/output/testing/createMock.d.ts +13 -0
- package/lib/output/testing/createMock.d.ts.map +1 -0
- package/lib/output/testing/generateMock.d.ts +24 -0
- package/lib/output/testing/generateMock.d.ts.map +1 -0
- package/lib/output/website/__tests__/i18n.d.ts +2 -0
- package/lib/output/website/__tests__/i18n.d.ts.map +1 -0
- package/lib/output/website/copyPluginAssets.d.ts +11 -0
- package/lib/output/website/copyPluginAssets.d.ts.map +1 -0
- package/lib/output/website/createTemplateEngine.d.ts +12 -0
- package/lib/output/website/createTemplateEngine.d.ts.map +1 -0
- package/lib/output/website/index.d.ts +18 -0
- package/lib/output/website/index.d.ts.map +1 -0
- package/lib/output/website/listSearchPaths.d.ts +9 -0
- package/lib/output/website/listSearchPaths.d.ts.map +1 -0
- package/lib/output/website/onAsset.d.ts +9 -0
- package/lib/output/website/onAsset.d.ts.map +1 -0
- package/lib/output/website/onFinish.d.ts +9 -0
- package/lib/output/website/onFinish.d.ts.map +1 -0
- package/lib/output/website/onInit.d.ts +9 -0
- package/lib/output/website/onInit.d.ts.map +1 -0
- package/lib/output/website/onPage.d.ts +9 -0
- package/lib/output/website/onPage.d.ts.map +1 -0
- package/lib/output/website/options.d.ts +4 -0
- package/lib/output/website/options.d.ts.map +1 -0
- package/lib/output/website/prepareI18n.d.ts +9 -0
- package/lib/output/website/prepareI18n.d.ts.map +1 -0
- package/lib/output/website/prepareResources.d.ts +9 -0
- package/lib/output/website/prepareResources.d.ts.map +1 -0
- package/lib/output/website/state.d.ts +10 -0
- package/lib/output/website/state.d.ts.map +1 -0
- package/lib/parse/__tests__/listAssets.d.ts +2 -0
- package/lib/parse/__tests__/listAssets.d.ts.map +1 -0
- package/lib/parse/__tests__/parseBook.d.ts +2 -0
- package/lib/parse/__tests__/parseBook.d.ts.map +1 -0
- package/lib/parse/__tests__/parseGlossary.d.ts +2 -0
- package/lib/parse/__tests__/parseGlossary.d.ts.map +1 -0
- package/lib/parse/__tests__/parseIgnore.d.ts +2 -0
- package/lib/parse/__tests__/parseIgnore.d.ts.map +1 -0
- package/lib/parse/__tests__/parsePageFromString.d.ts +2 -0
- package/lib/parse/__tests__/parsePageFromString.d.ts.map +1 -0
- package/lib/parse/__tests__/parseReadme.d.ts +2 -0
- package/lib/parse/__tests__/parseReadme.d.ts.map +1 -0
- package/lib/parse/__tests__/parseSummary.d.ts +2 -0
- package/lib/parse/__tests__/parseSummary.d.ts.map +1 -0
- package/lib/parse/findParsableFile.d.ts +10 -0
- package/lib/parse/findParsableFile.d.ts.map +1 -0
- package/lib/parse/index.d.ts +28 -0
- package/lib/parse/index.d.ts.map +1 -0
- package/lib/parse/listAssets.d.ts +11 -0
- package/lib/parse/listAssets.d.ts.map +1 -0
- package/lib/parse/lookupStructureFile.d.ts +12 -0
- package/lib/parse/lookupStructureFile.d.ts.map +1 -0
- package/lib/parse/parseBook.d.ts +9 -0
- package/lib/parse/parseBook.d.ts.map +1 -0
- package/lib/parse/parseConfig.d.ts +9 -0
- package/lib/parse/parseConfig.d.ts.map +1 -0
- package/lib/parse/parseConfig.js +1 -1
- package/lib/parse/parseGlossary.d.ts +9 -0
- package/lib/parse/parseGlossary.d.ts.map +1 -0
- package/lib/parse/parseIgnore.d.ts +9 -0
- package/lib/parse/parseIgnore.d.ts.map +1 -0
- package/lib/parse/parseLanguages.d.ts +9 -0
- package/lib/parse/parseLanguages.d.ts.map +1 -0
- package/lib/parse/parsePage.d.ts +10 -0
- package/lib/parse/parsePage.d.ts.map +1 -0
- package/lib/parse/parsePageFromString.d.ts +10 -0
- package/lib/parse/parsePageFromString.d.ts.map +1 -0
- package/lib/parse/parsePagesList.d.ts +9 -0
- package/lib/parse/parsePagesList.d.ts.map +1 -0
- package/lib/parse/parseReadme.d.ts +9 -0
- package/lib/parse/parseReadme.d.ts.map +1 -0
- package/lib/parse/parseStructureFile.d.ts +11 -0
- package/lib/parse/parseStructureFile.d.ts.map +1 -0
- package/lib/parse/parseStructureFile.js +7 -5
- package/lib/parse/parseSummary.d.ts +10 -0
- package/lib/parse/parseSummary.d.ts.map +1 -0
- package/lib/parse/validateConfig.d.ts +10 -0
- package/lib/parse/validateConfig.d.ts.map +1 -0
- package/lib/parse/walkSummary.d.ts +10 -0
- package/lib/parse/walkSummary.d.ts.map +1 -0
- package/lib/parsers.d.ts +31 -0
- package/lib/parsers.d.ts.map +1 -0
- package/lib/parsers.js +5 -5
- package/lib/plugins/PluginResolver.d.ts +26 -0
- package/lib/plugins/PluginResolver.d.ts.map +1 -0
- package/lib/plugins/__tests__/listDependencies.d.ts +2 -0
- package/lib/plugins/__tests__/listDependencies.d.ts.map +1 -0
- package/lib/plugins/__tests__/sortDependencies.d.ts +2 -0
- package/lib/plugins/__tests__/sortDependencies.d.ts.map +1 -0
- package/lib/plugins/__tests__/validatePlugin.d.ts +2 -0
- package/lib/plugins/__tests__/validatePlugin.d.ts.map +1 -0
- package/lib/plugins/index.d.ts +14 -0
- package/lib/plugins/index.d.ts.map +1 -0
- package/lib/plugins/listBlocks.d.ts +9 -0
- package/lib/plugins/listBlocks.d.ts.map +1 -0
- package/lib/plugins/listDependencies.d.ts +10 -0
- package/lib/plugins/listDependencies.d.ts.map +1 -0
- package/lib/plugins/listDepsForBook.d.ts +11 -0
- package/lib/plugins/listDepsForBook.d.ts.map +1 -0
- package/lib/plugins/listFilters.d.ts +9 -0
- package/lib/plugins/listFilters.d.ts.map +1 -0
- package/lib/plugins/listResources.d.ts +9 -0
- package/lib/plugins/listResources.d.ts.map +1 -0
- package/lib/plugins/loadForBook.d.ts +9 -0
- package/lib/plugins/loadForBook.d.ts.map +1 -0
- package/lib/plugins/loadPlugin.d.ts +11 -0
- package/lib/plugins/loadPlugin.d.ts.map +1 -0
- package/lib/plugins/package-name-util.d.ts +13 -0
- package/lib/plugins/package-name-util.d.ts.map +1 -0
- package/lib/plugins/sortDependencies.d.ts +10 -0
- package/lib/plugins/sortDependencies.d.ts.map +1 -0
- package/lib/plugins/toNames.d.ts +9 -0
- package/lib/plugins/toNames.d.ts.map +1 -0
- package/lib/plugins/validateConfig.d.ts +11 -0
- package/lib/plugins/validateConfig.d.ts.map +1 -0
- package/lib/plugins/validatePlugin.d.ts +9 -0
- package/lib/plugins/validatePlugin.d.ts.map +1 -0
- package/lib/templating/__tests__/conrefsLoader.d.ts +2 -0
- package/lib/templating/__tests__/conrefsLoader.d.ts.map +1 -0
- package/lib/templating/__tests__/postRender.d.ts +2 -0
- package/lib/templating/__tests__/postRender.d.ts.map +1 -0
- package/lib/templating/__tests__/replaceShortcuts.d.ts +2 -0
- package/lib/templating/__tests__/replaceShortcuts.d.ts.map +1 -0
- package/lib/templating/conrefsLoader.d.ts +14 -0
- package/lib/templating/conrefsLoader.d.ts.map +1 -0
- package/lib/templating/conrefsLoader.js +3 -3
- package/lib/templating/index.d.ts +14 -0
- package/lib/templating/index.d.ts.map +1 -0
- package/lib/templating/listShortcuts.d.ts +11 -0
- package/lib/templating/listShortcuts.d.ts.map +1 -0
- package/lib/templating/postRender.d.ts +12 -0
- package/lib/templating/postRender.d.ts.map +1 -0
- package/lib/templating/render.d.ts +12 -0
- package/lib/templating/render.d.ts.map +1 -0
- package/lib/templating/renderFile.d.ts +11 -0
- package/lib/templating/renderFile.d.ts.map +1 -0
- package/lib/templating/replaceShortcuts.d.ts +11 -0
- package/lib/templating/replaceShortcuts.d.ts.map +1 -0
- package/lib/templating/themesLoader.d.ts +4 -0
- package/lib/templating/themesLoader.d.ts.map +1 -0
- package/lib/utils/__tests__/git.d.ts +2 -0
- package/lib/utils/__tests__/git.d.ts.map +1 -0
- package/lib/utils/__tests__/location.d.ts +2 -0
- package/lib/utils/__tests__/location.d.ts.map +1 -0
- package/lib/utils/__tests__/path.d.ts +2 -0
- package/lib/utils/__tests__/path.d.ts.map +1 -0
- package/lib/utils/command.d.ts +25 -0
- package/lib/utils/command.d.ts.map +1 -0
- package/lib/utils/error.d.ts +16 -0
- package/lib/utils/error.d.ts.map +1 -0
- package/lib/utils/fs.d.ts +58 -0
- package/lib/utils/fs.d.ts.map +1 -0
- package/lib/utils/genKey.d.ts +3 -0
- package/lib/utils/genKey.d.ts.map +1 -0
- package/lib/utils/git.d.ts +11 -0
- package/lib/utils/git.d.ts.map +1 -0
- package/lib/utils/images.d.ts +6 -0
- package/lib/utils/images.d.ts.map +1 -0
- package/lib/utils/location.d.ts +62 -0
- package/lib/utils/location.d.ts.map +1 -0
- package/lib/utils/logger.d.ts +7 -0
- package/lib/utils/logger.d.ts.map +1 -0
- package/lib/utils/mergeDefaults.d.ts +9 -0
- package/lib/utils/mergeDefaults.d.ts.map +1 -0
- package/lib/utils/path.d.ts +14 -0
- package/lib/utils/path.d.ts.map +1 -0
- package/lib/utils/promise.d.ts +52 -0
- package/lib/utils/promise.d.ts.map +1 -0
- package/lib/utils/reducedObject.d.ts +9 -0
- package/lib/utils/reducedObject.d.ts.map +1 -0
- package/lib/utils/timing.d.ts +20 -0
- package/lib/utils/timing.d.ts.map +1 -0
- package/package.json +10 -9
|
@@ -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 {
|
|
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 @@
|
|
|
1
|
+
{"version":3,"file":"addPlugin.d.ts","sourceRoot":"","sources":["../../../../src/modifiers/config/__tests__/addPlugin.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC"}
|
|
@@ -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 @@
|
|
|
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 @@
|
|
|
1
|
+
{"version":3,"file":"editPartTitle.d.ts","sourceRoot":"","sources":["../../../../src/modifiers/summary/__tests__/editPartTitle.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"insertArticle.d.ts","sourceRoot":"","sources":["../../../../src/modifiers/summary/__tests__/insertArticle.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"insertPart.d.ts","sourceRoot":"","sources":["../../../../src/modifiers/summary/__tests__/insertPart.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mergeAtLevel.d.ts","sourceRoot":"","sources":["../../../../src/modifiers/summary/__tests__/mergeAtLevel.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"moveArticle.d.ts","sourceRoot":"","sources":["../../../../src/modifiers/summary/__tests__/moveArticle.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"moveArticleAfter.d.ts","sourceRoot":"","sources":["../../../../src/modifiers/summary/__tests__/moveArticleAfter.ts"],"names":[],"mappings":""}
|
|
@@ -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 @@
|
|
|
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 @@
|
|
|
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"}
|