@mdfriday/foundry 26.4.20 → 26.5.2
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/dist/cjs/index.js +1 -1
- package/dist/cjs/obsidian/mobile.js +1 -1
- package/dist/cjs/worker/pool-manager.js +2 -2
- package/dist/cjs/worker/worker-node.js +2 -2
- package/dist/esm/index.js +1 -1
- package/dist/esm/obsidian/mobile.js +1 -1
- package/dist/types/internal/application/batch-task-queue.d.ts +17 -0
- package/dist/types/internal/application/container.d.ts +66 -0
- package/dist/types/internal/application/identity.d.ts +173 -0
- package/dist/types/internal/application/incremental-build-coordinator.d.ts +28 -0
- package/dist/types/internal/application/incremental-ssg.d.ts +4 -0
- package/dist/types/internal/application/index.d.ts +5 -4
- package/dist/types/internal/application/publish.d.ts +37 -0
- package/dist/types/internal/application/ssg-parallel.d.ts +6 -0
- package/dist/types/internal/application/ssg.d.ts +15 -0
- package/dist/types/internal/application/wiki-service-config.d.ts +65 -0
- package/dist/types/internal/application/wiki-service.d.ts +236 -0
- package/dist/types/internal/application/worker/pool-manager.d.ts +43 -0
- package/dist/types/internal/application/worker/worker-browser.d.ts +6 -0
- package/dist/types/internal/application/worker/worker-main.d.ts +12 -0
- package/dist/types/internal/application/worker/worker-state.d.ts +23 -0
- package/dist/types/internal/application/workspace.d.ts +98 -0
- package/dist/types/internal/domain/config/entity/config.d.ts +40 -0
- package/dist/types/internal/domain/config/entity/language.d.ts +51 -0
- package/dist/types/internal/domain/config/entity/markdown.d.ts +36 -0
- package/dist/types/internal/domain/config/entity/module.d.ts +36 -0
- package/dist/types/internal/domain/config/entity/root.d.ts +39 -0
- package/dist/types/internal/domain/config/entity/service.d.ts +36 -0
- package/dist/types/internal/domain/config/entity/social.d.ts +43 -0
- package/dist/types/internal/domain/config/entity/taxonomy.d.ts +39 -0
- package/dist/types/internal/domain/config/factory/config.d.ts +3 -0
- package/dist/types/internal/domain/config/factory/loader.d.ts +24 -0
- package/dist/types/internal/domain/config/factory/provider.d.ts +10 -0
- package/dist/types/internal/domain/config/factory/sourcedescriptor.d.ts +12 -0
- package/dist/types/internal/domain/config/type.d.ts +56 -0
- package/dist/types/internal/domain/config/vo/language.d.ts +6 -0
- package/dist/types/internal/domain/config/vo/markdown.d.ts +13 -0
- package/dist/types/internal/domain/config/vo/module.d.ts +9 -0
- package/dist/types/internal/domain/config/vo/root.d.ts +6 -0
- package/dist/types/internal/domain/config/vo/service.d.ts +6 -0
- package/dist/types/internal/domain/config/vo/social.d.ts +16 -0
- package/dist/types/internal/domain/config/vo/taxonomy.d.ts +12 -0
- package/dist/types/internal/domain/content/entity/content.d.ts +36 -0
- package/dist/types/internal/domain/content/entity/page.d.ts +23 -0
- package/dist/types/internal/domain/content/entity/pagebuilder.d.ts +83 -0
- package/dist/types/internal/domain/content/entity/pagecollector.d.ts +3 -0
- package/dist/types/internal/domain/content/entity/pagecontent.d.ts +14 -0
- package/dist/types/internal/domain/content/entity/pagemap.d.ts +69 -0
- package/dist/types/internal/domain/content/entity/pagesource.d.ts +52 -0
- package/dist/types/internal/domain/content/entity/pagetrees.d.ts +12 -0
- package/dist/types/internal/domain/content/entity/paginator.d.ts +19 -0
- package/dist/types/internal/domain/content/entity/section.d.ts +15 -0
- package/dist/types/internal/domain/content/entity/shortcode.d.ts +39 -0
- package/dist/types/internal/domain/content/entity/standalone.d.ts +9 -0
- package/dist/types/internal/domain/content/entity/taxonomy.d.ts +15 -0
- package/dist/types/internal/domain/content/entity/term.d.ts +6 -0
- package/dist/types/internal/domain/content/entity/translator.d.ts +22 -0
- package/dist/types/internal/domain/content/type.d.ts +6 -0
- package/dist/types/internal/domain/content/vo/classifier.d.ts +24 -0
- package/dist/types/internal/domain/content/vo/frontmatter.d.ts +65 -0
- package/dist/types/internal/domain/content/vo/kind.d.ts +10 -0
- package/dist/types/internal/domain/fs/entity/basefs.d.ts +23 -0
- package/dist/types/internal/domain/fs/entity/fs.d.ts +13 -0
- package/dist/types/internal/domain/fs/entity/originfs.d.ts +6 -0
- package/dist/types/internal/domain/fs/entity/overlaydir.d.ts +44 -0
- package/dist/types/internal/domain/fs/entity/overlayfs.d.ts +79 -0
- package/dist/types/internal/domain/fs/entity/service.d.ts +15 -0
- package/dist/types/internal/domain/fs/factory/fs.d.ts +4 -0
- package/dist/types/internal/domain/fs/type.d.ts +95 -0
- package/dist/types/internal/domain/fs/vo/dir.d.ts +41 -0
- package/dist/types/internal/domain/fs/vo/file.d.ts +28 -0
- package/dist/types/internal/domain/fs/vo/fileinfo.d.ts +23 -0
- package/dist/types/internal/domain/fs/vo/filemeta.d.ts +45 -0
- package/dist/types/internal/domain/fs/vo/filesystemscollector.d.ts +17 -0
- package/dist/types/internal/domain/fs/vo/filevitural.d.ts +8 -0
- package/dist/types/internal/domain/fs/vo/osfs.d.ts +12 -0
- package/dist/types/internal/domain/fs/vo/overlay-factory.d.ts +4 -0
- package/dist/types/internal/domain/fs/vo/overlayfs-factory.d.ts +42 -0
- package/dist/types/internal/domain/fs/vo/overlayoptions.d.ts +44 -0
- package/dist/types/internal/domain/fs/vo/static-copier.d.ts +22 -0
- package/dist/types/internal/domain/fs/vo/walkway.d.ts +22 -0
- package/dist/types/internal/domain/identity/entity/user.d.ts +100 -0
- package/dist/types/internal/domain/identity/factory/user-factory.d.ts +183 -0
- package/dist/types/internal/domain/identity/repository/index.d.ts +30 -0
- package/dist/types/internal/domain/identity/type.d.ts +17 -0
- package/dist/types/internal/domain/identity/value-object/device.d.ts +26 -0
- package/dist/types/internal/domain/identity/value-object/email.d.ts +29 -0
- package/dist/types/internal/domain/identity/value-object/license.d.ts +91 -0
- package/dist/types/internal/domain/identity/value-object/server-config.d.ts +37 -0
- package/dist/types/internal/domain/identity/value-object/sync-config.d.ts +47 -0
- package/dist/types/internal/domain/identity/value-object/token.d.ts +35 -0
- package/dist/types/internal/domain/markdown/entity/markdown.d.ts +41 -0
- package/dist/types/internal/domain/markdown/factory/it/config.d.ts +60 -0
- package/dist/types/internal/domain/markdown/factory/it/index.d.ts +21 -1
- package/dist/types/internal/domain/markdown/factory/it/parserresult.d.ts +3 -0
- package/dist/types/internal/domain/markdown/factory/it/plugins/callout-plugin.d.ts +40 -0
- package/dist/types/internal/domain/markdown/factory/it/plugins/latex-plugin.d.ts +23 -0
- package/dist/types/internal/domain/markdown/factory/it/plugins/mermaid-plugin.d.ts +24 -0
- package/dist/types/internal/domain/markdown/factory/it/plugins/tag-plugin.d.ts +71 -0
- package/dist/types/internal/domain/markdown/factory/it/plugins/wikilink-plugin.d.ts +28 -0
- package/dist/types/internal/domain/markdown/factory/it/plugins/wikilink.d.ts +31 -0
- package/dist/types/internal/domain/markdown/factory/it/tableofcontents.d.ts +21 -0
- package/dist/types/internal/domain/markdown/factory/it/util/path.d.ts +11 -0
- package/dist/types/internal/domain/markdown/factory/it/util/slugger-fallback.d.ts +6 -0
- package/dist/types/internal/domain/markdown/type.d.ts +159 -0
- package/dist/types/internal/domain/markdown/vo/config.d.ts +48 -0
- package/dist/types/internal/domain/markdown/vo/content.d.ts +92 -0
- package/dist/types/internal/domain/markdown/vo/context.d.ts +9 -0
- package/dist/types/internal/domain/markdown/vo/highlight.d.ts +15 -0
- package/dist/types/internal/domain/markdown/vo/pageparser.d.ts +9 -0
- package/dist/types/internal/domain/markdown/vo/parseinfo.d.ts +36 -0
- package/dist/types/internal/domain/markdown/vo/parserresult.d.ts +6 -0
- package/dist/types/internal/domain/markdown/vo/shortcode.d.ts +31 -1
- package/dist/types/internal/domain/markdown/vo/tableofcontents.d.ts +21 -0
- package/dist/types/internal/domain/module/entity/lang.d.ts +12 -0
- package/dist/types/internal/domain/module/entity/module.d.ts +73 -0
- package/dist/types/internal/domain/module/factory/module.d.ts +6 -0
- package/dist/types/internal/domain/module/type.d.ts +58 -0
- package/dist/types/internal/domain/module/vo/cache.d.ts +48 -0
- package/dist/types/internal/domain/module/vo/httpclient.d.ts +14 -0
- package/dist/types/internal/domain/module/vo/module.d.ts +76 -0
- package/dist/types/internal/domain/module/vo/mount.d.ts +39 -0
- package/dist/types/internal/domain/module/vo/themes.d.ts +38 -0
- package/dist/types/internal/domain/module/vo/zipextractor.d.ts +31 -0
- package/dist/types/internal/domain/paths/entity/path.d.ts +28 -0
- package/dist/types/internal/domain/paths/factory/pathfactory.d.ts +82 -0
- package/dist/types/internal/domain/paths/type.d.ts +132 -0
- package/dist/types/internal/domain/paths/vo/pathcomponents.d.ts +94 -0
- package/dist/types/internal/domain/paths/vo/pathparser.d.ts +77 -0
- package/dist/types/internal/domain/publish/entity/publisher.d.ts +26 -0
- package/dist/types/internal/domain/publish/factory/publisher-factory.d.ts +17 -0
- package/dist/types/internal/domain/publish/repository/http-client.d.ts +21 -0
- package/dist/types/internal/domain/publish/repository/manifest-repository.d.ts +27 -0
- package/dist/types/internal/domain/publish/type.d.ts +49 -0
- package/dist/types/internal/domain/publish/value-object/ftp-publisher.d.ts +30 -0
- package/dist/types/internal/domain/publish/value-object/mdfriday-publisher.d.ts +57 -0
- package/dist/types/internal/domain/publish/value-object/netlify-publisher.d.ts +55 -0
- package/dist/types/internal/domain/publish/value-object/publish-config.d.ts +38 -0
- package/dist/types/internal/domain/publish/value-object/publish-manifest.d.ts +50 -0
- package/dist/types/internal/domain/resources/entity/http.d.ts +11 -0
- package/dist/types/internal/domain/resources/entity/integrity.d.ts +4 -0
- package/dist/types/internal/domain/resources/entity/minifier.d.ts +4 -0
- package/dist/types/internal/domain/resources/entity/publisher.d.ts +24 -0
- package/dist/types/internal/domain/resources/entity/resource.d.ts +4 -0
- package/dist/types/internal/domain/resources/entity/resources.d.ts +40 -0
- package/dist/types/internal/domain/resources/entity/template.d.ts +4 -0
- package/dist/types/internal/domain/resources/factory/resource.d.ts +4 -0
- package/dist/types/internal/domain/site/entity/language.d.ts +55 -0
- package/dist/types/internal/domain/site/entity/menu-builder.d.ts +50 -0
- package/dist/types/internal/domain/site/entity/navigation.d.ts +8 -0
- package/dist/types/internal/domain/site/entity/page.d.ts +88 -0
- package/dist/types/internal/domain/site/entity/pagegraph.d.ts +85 -0
- package/dist/types/internal/domain/site/entity/pager.d.ts +6 -0
- package/dist/types/internal/domain/site/entity/publisher.d.ts +26 -0
- package/dist/types/internal/domain/site/entity/ref.d.ts +27 -0
- package/dist/types/internal/domain/site/entity/site.d.ts +178 -0
- package/dist/types/internal/domain/site/factory/navigation-factory.d.ts +6 -0
- package/dist/types/internal/domain/site/factory/site.d.ts +4 -0
- package/dist/types/internal/domain/site/service/html-link-processor.d.ts +44 -0
- package/dist/types/internal/domain/site/type.d.ts +100 -0
- package/dist/types/internal/domain/site/valueobject/author.d.ts +16 -0
- package/dist/types/internal/domain/site/valueobject/baseurl.d.ts +39 -0
- package/dist/types/internal/domain/site/valueobject/menu.d.ts +49 -0
- package/dist/types/internal/domain/site/valueobject/organization.d.ts +37 -0
- package/dist/types/internal/domain/site/valueobject/path.d.ts +50 -0
- package/dist/types/internal/domain/site/valueobject/version.d.ts +14 -0
- package/dist/types/internal/domain/template/entity/executor.d.ts +22 -0
- package/dist/types/internal/domain/template/entity/lookup.d.ts +55 -0
- package/dist/types/internal/domain/template/entity/parser.d.ts +40 -0
- package/dist/types/internal/domain/template/entity/template.d.ts +87 -0
- package/dist/types/internal/domain/template/factory/template.d.ts +61 -0
- package/dist/types/internal/domain/template/type.d.ts +109 -0
- package/dist/types/internal/domain/template/vo/baseof.d.ts +47 -0
- package/dist/types/internal/domain/template/vo/info.d.ts +28 -0
- package/dist/types/internal/domain/template/vo/namespace.d.ts +91 -0
- package/dist/types/internal/domain/template/vo/registry.d.ts +160 -0
- package/dist/types/internal/domain/wiki/entity/concept.d.ts +31 -0
- package/dist/types/internal/domain/wiki/entity/connection.d.ts +29 -0
- package/dist/types/internal/domain/wiki/entity/conversation.d.ts +65 -0
- package/dist/types/internal/domain/wiki/entity/embedding-index.d.ts +60 -0
- package/dist/types/internal/domain/wiki/entity/entity.d.ts +32 -0
- package/dist/types/internal/domain/wiki/entity/knowledge-base.d.ts +310 -0
- package/dist/types/internal/domain/wiki/entity/operation-log.d.ts +82 -0
- package/dist/types/internal/domain/wiki/factory/wiki-factory.d.ts +41 -0
- package/dist/types/internal/domain/wiki/index.d.ts +24 -0
- package/dist/types/internal/domain/wiki/repository/conversation-repository.interface.d.ts +29 -0
- package/dist/types/internal/domain/wiki/repository/crypto-service.d.ts +16 -0
- package/dist/types/internal/domain/wiki/repository/embedding-provider.d.ts +20 -0
- package/dist/types/internal/domain/wiki/repository/file-system.d.ts +43 -0
- package/dist/types/internal/domain/wiki/repository/index.d.ts +14 -0
- package/dist/types/internal/domain/wiki/repository/kb-repository.interface.d.ts +30 -0
- package/dist/types/internal/domain/wiki/repository/llm-http-client.d.ts +40 -0
- package/dist/types/internal/domain/wiki/repository/llm-provider.d.ts +40 -0
- package/dist/types/internal/domain/wiki/repository/path-service.d.ts +32 -0
- package/dist/types/internal/domain/wiki/repository/wiki-page-repository.interface.d.ts +49 -0
- package/dist/types/internal/domain/wiki/value-object/connection-type.d.ts +24 -0
- package/dist/types/internal/domain/wiki/value-object/content-annotator.d.ts +61 -0
- package/dist/types/internal/domain/wiki/value-object/entity-id.d.ts +17 -0
- package/dist/types/internal/domain/wiki/value-object/entity-type.d.ts +24 -0
- package/dist/types/internal/domain/wiki/value-object/extraction-parser.d.ts +27 -0
- package/dist/types/internal/domain/wiki/value-object/extraction-result.d.ts +32 -0
- package/dist/types/internal/domain/wiki/value-object/pricing.d.ts +64 -0
- package/dist/types/internal/domain/wiki/value-object/retrieval.d.ts +228 -0
- package/dist/types/internal/domain/wiki/value-object/source-record.d.ts +17 -0
- package/dist/types/internal/domain/wiki/value-object/token-usage.d.ts +26 -0
- package/dist/types/internal/domain/wiki/value-object/wiki-config.d.ts +40 -0
- package/dist/types/internal/domain/wiki/value-object/wiki-index-generator.d.ts +31 -0
- package/dist/types/internal/domain/wiki/value-object/wiki-page-renderer.d.ts +42 -0
- package/dist/types/internal/domain/workspace/entity/authentication.d.ts +29 -0
- package/dist/types/internal/domain/workspace/entity/project.d.ts +173 -0
- package/dist/types/internal/domain/workspace/entity/workspace.d.ts +85 -0
- package/dist/types/internal/domain/workspace/factory/workspace-factory.d.ts +107 -0
- package/dist/types/internal/domain/workspace/repository/file-system.d.ts +241 -0
- package/dist/types/internal/domain/workspace/repository/index.d.ts +6 -0
- package/dist/types/internal/domain/workspace/repository.d.ts +72 -0
- package/dist/types/internal/domain/workspace/type.d.ts +18 -0
- package/dist/types/internal/domain/workspace/value-object/folder-structure.d.ts +41 -0
- package/dist/types/internal/domain/workspace/value-object/project-metadata.d.ts +36 -0
- package/dist/types/internal/domain/workspace/value-object/workspace-metadata.d.ts +7 -0
- package/dist/types/internal/infrastructure/embedding/embedding-provider.interface.d.ts +33 -0
- package/dist/types/internal/infrastructure/embedding/index.d.ts +5 -0
- package/dist/types/internal/infrastructure/embedding/ollama-embedding-provider.d.ts +36 -0
- package/dist/types/internal/infrastructure/http/netlify-http-client.d.ts +20 -0
- package/dist/types/internal/infrastructure/http/node-http-client.d.ts +3 -0
- package/dist/types/internal/infrastructure/index.d.ts +8 -0
- package/dist/types/internal/infrastructure/llm/fetch-http-client.d.ts +24 -0
- package/dist/types/internal/infrastructure/llm/index.d.ts +6 -0
- package/dist/types/internal/infrastructure/llm/llm-config.d.ts +80 -0
- package/dist/types/internal/infrastructure/llm/lmstudio-provider.d.ts +71 -0
- package/dist/types/internal/infrastructure/llm/node-llm-http-client.d.ts +21 -0
- package/dist/types/internal/infrastructure/llm/ollama-provider.d.ts +22 -0
- package/dist/types/internal/infrastructure/llm/openai-compatible-provider.d.ts +75 -0
- package/dist/types/internal/infrastructure/llm/provider-factory.d.ts +36 -0
- package/dist/types/internal/infrastructure/llm/provider.d.ts +90 -0
- package/dist/types/internal/infrastructure/node/index.d.ts +11 -0
- package/dist/types/internal/infrastructure/node/node-conversation-repository.d.ts +21 -0
- package/dist/types/internal/infrastructure/node/node-crypto-service.d.ts +10 -0
- package/dist/types/internal/infrastructure/node/node-file-system.d.ts +29 -0
- package/dist/types/internal/infrastructure/node/node-kb-repository.d.ts +18 -0
- package/dist/types/internal/infrastructure/node/node-path-service.d.ts +14 -0
- package/dist/types/internal/infrastructure/node/node-wiki-page-repository.d.ts +25 -0
- package/dist/types/internal/infrastructure/persistence/node-file-system.d.ts +8 -0
- package/dist/types/internal/infrastructure/persistence/node-manifest-repository.d.ts +31 -0
- package/dist/types/internal/infrastructure/persistence/node-snapshot-repository.d.ts +28 -0
- package/dist/types/internal/infrastructure/persistence/node-workspace-repository.d.ts +9 -0
- package/dist/types/pkg/cahce/cache.d.ts +56 -0
- package/dist/types/pkg/lang/data.d.ts +21 -0
- package/dist/types/pkg/lang/index.d.ts +46 -0
- package/dist/types/pkg/lang/service.d.ts +49 -0
- package/dist/types/pkg/lang/types.d.ts +29 -0
- package/dist/types/pkg/log/http.d.ts +16 -0
- package/dist/types/pkg/log/manager.d.ts +57 -0
- package/dist/types/pkg/maps/scratch.d.ts +25 -0
- package/dist/types/pkg/md/parser/item.d.ts +3 -3
- package/dist/types/pkg/media/type.d.ts +19 -0
- package/dist/types/pkg/page-filter/index.d.ts +29 -0
- package/dist/types/pkg/paths/index.d.ts +9 -0
- package/dist/types/pkg/text/index.d.ts +4 -0
- package/dist/types/pkg/web/server/livereload-server.d.ts +7 -0
- package/dist/types/pkg/web/watcher/content-file-watcher.d.ts +3 -0
- package/package.json +21 -15
- package/dist/types/index.d.ts +0 -20
- package/dist/types/internal/interfaces/obsidian/adapters/identity-adapter.d.ts +0 -5
- package/dist/types/internal/interfaces/obsidian/adapters/index.d.ts +0 -2
- package/dist/types/internal/interfaces/obsidian/adapters/workspace-adapter.d.ts +0 -8
- package/dist/types/internal/interfaces/obsidian/desktop/adapters/identity-adapter.d.ts +0 -6
- package/dist/types/internal/interfaces/obsidian/desktop/adapters/index.d.ts +0 -2
- package/dist/types/internal/interfaces/obsidian/desktop/adapters/workspace-adapter.d.ts +0 -12
- package/dist/types/internal/interfaces/obsidian/desktop/container.d.ts +0 -7
- package/dist/types/internal/interfaces/obsidian/desktop/index.d.ts +0 -22
- package/dist/types/internal/interfaces/obsidian/index.d.ts +0 -7
- package/dist/types/internal/interfaces/obsidian/mobile/adapters/identity-adapter.d.ts +0 -9
- package/dist/types/internal/interfaces/obsidian/mobile/adapters/index.d.ts +0 -2
- package/dist/types/internal/interfaces/obsidian/mobile/adapters/workspace-adapter.d.ts +0 -13
- package/dist/types/internal/interfaces/obsidian/mobile/config-types.d.ts +0 -13
- package/dist/types/internal/interfaces/obsidian/mobile/container.d.ts +0 -6
- package/dist/types/internal/interfaces/obsidian/mobile/index.d.ts +0 -16
- package/dist/types/internal/interfaces/obsidian/mobile.d.ts +0 -2
- package/dist/types/internal/interfaces/obsidian/services/auth.service.d.ts +0 -11
- package/dist/types/internal/interfaces/obsidian/services/build.service.d.ts +0 -9
- package/dist/types/internal/interfaces/obsidian/services/config.service.d.ts +0 -31
- package/dist/types/internal/interfaces/obsidian/services/domain.service.d.ts +0 -15
- package/dist/types/internal/interfaces/obsidian/services/license.service.d.ts +0 -22
- package/dist/types/internal/interfaces/obsidian/services/project.service.d.ts +0 -17
- package/dist/types/internal/interfaces/obsidian/services/publish.service.d.ts +0 -11
- package/dist/types/internal/interfaces/obsidian/services/serve.service.d.ts +0 -18
- package/dist/types/internal/interfaces/obsidian/services/workspace.service.d.ts +0 -10
- package/dist/types/internal/interfaces/obsidian/types/auth.d.ts +0 -27
- package/dist/types/internal/interfaces/obsidian/types/build.d.ts +0 -23
- package/dist/types/internal/interfaces/obsidian/types/config.d.ts +0 -16
- package/dist/types/internal/interfaces/obsidian/types/domain.d.ts +0 -46
- package/dist/types/internal/interfaces/obsidian/types/index.d.ts +0 -9
- package/dist/types/internal/interfaces/obsidian/types/license.d.ts +0 -87
- package/dist/types/internal/interfaces/obsidian/types/project.d.ts +0 -56
- package/dist/types/internal/interfaces/obsidian/types/publish.d.ts +0 -33
- package/dist/types/internal/interfaces/obsidian/types/serve.d.ts +0 -46
- package/dist/types/internal/interfaces/obsidian/types/workspace.d.ts +0 -27
- package/dist/types/pkg/log/browser-manager.d.ts +0 -20
- package/dist/types/pkg/log/browser.d.ts +0 -25
- package/dist/types/pkg/media/buildin.d.ts +0 -3
|
@@ -1,16 +1,52 @@
|
|
|
1
1
|
import { MarkdownConfig, MarkdownPlugins } from '../type';
|
|
2
|
+
/**
|
|
3
|
+
* Markdown entity holds markdown renderer configuration
|
|
4
|
+
*/
|
|
2
5
|
export declare class Markdown {
|
|
3
6
|
private markdownConfig;
|
|
4
7
|
constructor(markdownConfig: MarkdownConfig);
|
|
8
|
+
/**
|
|
9
|
+
* Check if internal markdown renderer should be used
|
|
10
|
+
*/
|
|
5
11
|
useInternalRenderer(): boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Check if wikilink plugin is enabled
|
|
14
|
+
*/
|
|
6
15
|
isWikilinkEnabled(): boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Check if tag plugin is enabled
|
|
18
|
+
*/
|
|
7
19
|
isTagEnabled(): boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Check if callout plugin is enabled
|
|
22
|
+
*/
|
|
8
23
|
isCalloutEnabled(): boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Check if LaTeX plugin is enabled
|
|
26
|
+
*/
|
|
9
27
|
isLatexEnabled(): boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Check if Mermaid plugin is enabled
|
|
30
|
+
*/
|
|
10
31
|
isMermaidEnabled(): boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Get the markdown configuration
|
|
34
|
+
*/
|
|
11
35
|
getMarkdownConfig(): MarkdownConfig;
|
|
36
|
+
/**
|
|
37
|
+
* Get plugin configuration
|
|
38
|
+
*/
|
|
12
39
|
getPlugins(): MarkdownPlugins;
|
|
40
|
+
/**
|
|
41
|
+
* Check if any plugin is enabled
|
|
42
|
+
*/
|
|
13
43
|
hasEnabledPlugins(): boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Validate the markdown configuration
|
|
46
|
+
*/
|
|
14
47
|
validate(): boolean;
|
|
15
48
|
}
|
|
49
|
+
/**
|
|
50
|
+
* Create a new Markdown instance from provider data
|
|
51
|
+
*/
|
|
16
52
|
export declare function newMarkdown(data: any): Markdown;
|
|
@@ -1,16 +1,52 @@
|
|
|
1
1
|
import { ModuleConfig } from '../type';
|
|
2
|
+
/**
|
|
3
|
+
* Module entity holds module configuration
|
|
4
|
+
*/
|
|
2
5
|
export declare class Module {
|
|
3
6
|
private moduleConfig;
|
|
4
7
|
constructor(moduleConfig: ModuleConfig);
|
|
8
|
+
/**
|
|
9
|
+
* Get import paths from module imports
|
|
10
|
+
*/
|
|
5
11
|
importPaths(): string[];
|
|
12
|
+
/**
|
|
13
|
+
* Get the module configuration
|
|
14
|
+
*/
|
|
6
15
|
getModuleConfig(): ModuleConfig;
|
|
16
|
+
/**
|
|
17
|
+
* Get all imports
|
|
18
|
+
*/
|
|
7
19
|
getImports(): import("../type").Import[];
|
|
20
|
+
/**
|
|
21
|
+
* Get all mounts
|
|
22
|
+
*/
|
|
8
23
|
getMounts(): import("../type").Mount[];
|
|
24
|
+
/**
|
|
25
|
+
* Get import count
|
|
26
|
+
*/
|
|
9
27
|
importCount(): number;
|
|
28
|
+
/**
|
|
29
|
+
* Get mount count
|
|
30
|
+
*/
|
|
10
31
|
mountCount(): number;
|
|
32
|
+
/**
|
|
33
|
+
* Check if module has imports
|
|
34
|
+
*/
|
|
11
35
|
hasImports(): boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Check if module has mounts
|
|
38
|
+
*/
|
|
12
39
|
hasMounts(): boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Find import by path
|
|
42
|
+
*/
|
|
13
43
|
findImport(path: string): import("../type").Import | undefined;
|
|
44
|
+
/**
|
|
45
|
+
* Find mount by source
|
|
46
|
+
*/
|
|
14
47
|
findMount(source: string): import("../type").Mount | undefined;
|
|
15
48
|
}
|
|
49
|
+
/**
|
|
50
|
+
* Create a new Module instance from provider data
|
|
51
|
+
*/
|
|
16
52
|
export declare function newModule(data: any): Module;
|
|
@@ -1,18 +1,57 @@
|
|
|
1
1
|
import { RootConfig } from '../type';
|
|
2
|
+
/**
|
|
3
|
+
* Root entity holds the root configuration
|
|
4
|
+
*/
|
|
2
5
|
export declare class Root {
|
|
3
6
|
private rootConfig;
|
|
4
7
|
private rootParams;
|
|
5
8
|
constructor(rootConfig: RootConfig, rootParams?: Record<string, any>);
|
|
9
|
+
/**
|
|
10
|
+
* Get the default theme
|
|
11
|
+
*/
|
|
6
12
|
defaultTheme(): string;
|
|
13
|
+
/**
|
|
14
|
+
* Get the compiled timeout duration
|
|
15
|
+
*/
|
|
7
16
|
compiledTimeout(): number;
|
|
17
|
+
/**
|
|
18
|
+
* Get the base URL
|
|
19
|
+
*/
|
|
8
20
|
baseUrl(): string;
|
|
21
|
+
/**
|
|
22
|
+
* Get configuration parameters
|
|
23
|
+
*/
|
|
9
24
|
configParams(): Record<string, any>;
|
|
25
|
+
/**
|
|
26
|
+
* Get site title
|
|
27
|
+
*/
|
|
10
28
|
siteTitle(): string;
|
|
29
|
+
/**
|
|
30
|
+
* Get the root configuration
|
|
31
|
+
*/
|
|
11
32
|
getRootConfig(): RootConfig;
|
|
33
|
+
/**
|
|
34
|
+
* Get theme list
|
|
35
|
+
*/
|
|
12
36
|
getThemes(): string[];
|
|
37
|
+
/**
|
|
38
|
+
* Get default content language
|
|
39
|
+
*/
|
|
13
40
|
getDefaultContentLanguage(): string;
|
|
41
|
+
/**
|
|
42
|
+
* Check if drafts should be built
|
|
43
|
+
*/
|
|
14
44
|
shouldBuildDrafts(): boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Check if future content should be built
|
|
47
|
+
*/
|
|
15
48
|
shouldBuildFuture(): boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Check if expired content should be built
|
|
51
|
+
*/
|
|
16
52
|
shouldBuildExpired(): boolean;
|
|
17
53
|
}
|
|
54
|
+
/**
|
|
55
|
+
* Create a new Root instance from provider data
|
|
56
|
+
*/
|
|
18
57
|
export declare function newRoot(data: any, params?: Record<string, any>): Root;
|
|
@@ -1,19 +1,55 @@
|
|
|
1
1
|
import { ServiceConfig } from '../type';
|
|
2
|
+
/**
|
|
3
|
+
* Service entity holds service configuration
|
|
4
|
+
*/
|
|
2
5
|
export declare class Service {
|
|
3
6
|
private serviceConfig;
|
|
4
7
|
constructor(serviceConfig: ServiceConfig);
|
|
8
|
+
/**
|
|
9
|
+
* Check if Google Analytics is enabled
|
|
10
|
+
*/
|
|
5
11
|
isGoogleAnalyticsEnabled(): boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Get Google Analytics ID
|
|
14
|
+
*/
|
|
6
15
|
googleAnalyticsID(): string;
|
|
16
|
+
/**
|
|
17
|
+
* Check if Google Analytics should respect Do Not Track
|
|
18
|
+
*/
|
|
7
19
|
isGoogleAnalyticsRespectDoNotTrack(): boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Check if Disqus is enabled
|
|
22
|
+
*/
|
|
8
23
|
isDisqusEnabled(): boolean;
|
|
9
24
|
disqusShortname(): string;
|
|
10
25
|
isXRespectDoNotTrack(): boolean;
|
|
11
26
|
isXDisableInlineCSS(): boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Get RSS limit
|
|
29
|
+
*/
|
|
12
30
|
rssLimit(): number;
|
|
31
|
+
/**
|
|
32
|
+
* Get the service configuration
|
|
33
|
+
*/
|
|
13
34
|
getServiceConfig(): ServiceConfig;
|
|
35
|
+
/**
|
|
36
|
+
* Get Google Analytics configuration
|
|
37
|
+
*/
|
|
14
38
|
getGoogleAnalytics(): import("../type").GoogleAnalytics;
|
|
39
|
+
/**
|
|
40
|
+
* Get Disqus configuration
|
|
41
|
+
*/
|
|
15
42
|
getDisqus(): import("../type").Disqus;
|
|
43
|
+
/**
|
|
44
|
+
* Get RSS configuration
|
|
45
|
+
*/
|
|
16
46
|
getRSS(): import("../type").RSS;
|
|
47
|
+
/**
|
|
48
|
+
* Check if any service is enabled
|
|
49
|
+
*/
|
|
17
50
|
hasEnabledServices(): boolean;
|
|
18
51
|
}
|
|
52
|
+
/**
|
|
53
|
+
* Create a new Service instance from provider data
|
|
54
|
+
*/
|
|
19
55
|
export declare function newService(data: any): Service;
|
|
@@ -1,22 +1,65 @@
|
|
|
1
1
|
import { SocialConfig, SocialPlatformTemplate, SocialUserConfig } from '../type';
|
|
2
|
+
/**
|
|
3
|
+
* Processed social link with complete information
|
|
4
|
+
*/
|
|
2
5
|
export interface ProcessedSocialLink {
|
|
3
6
|
id: string;
|
|
4
7
|
title: string;
|
|
5
8
|
url: string;
|
|
6
9
|
}
|
|
10
|
+
/**
|
|
11
|
+
* Social entity holds social configuration and provides business logic
|
|
12
|
+
*/
|
|
7
13
|
export declare class Social {
|
|
8
14
|
private socialConfig;
|
|
9
15
|
constructor(socialConfig: SocialConfig);
|
|
16
|
+
/**
|
|
17
|
+
* Get user social configuration
|
|
18
|
+
*/
|
|
10
19
|
getUserConfig(): SocialUserConfig;
|
|
20
|
+
/**
|
|
21
|
+
* Get all available social platform templates
|
|
22
|
+
*/
|
|
11
23
|
getPlatformTemplates(): SocialPlatformTemplate[];
|
|
24
|
+
/**
|
|
25
|
+
* Get social platform template by platform ID
|
|
26
|
+
*/
|
|
12
27
|
getPlatformTemplate(platformId: string): SocialPlatformTemplate | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* Check if a social platform is configured by user
|
|
30
|
+
*/
|
|
13
31
|
isPlatformConfigured(platformId: string): boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Get configured social platforms
|
|
34
|
+
*/
|
|
14
35
|
getConfiguredPlatforms(): string[];
|
|
36
|
+
/**
|
|
37
|
+
* Get processed social links ready for template rendering
|
|
38
|
+
* This combines user configuration with icon templates
|
|
39
|
+
*/
|
|
15
40
|
getProcessedSocialLinks(): ProcessedSocialLink[];
|
|
41
|
+
/**
|
|
42
|
+
* Get social link for a specific platform
|
|
43
|
+
*/
|
|
16
44
|
getSocialLink(platformId: string): ProcessedSocialLink | undefined;
|
|
45
|
+
/**
|
|
46
|
+
* Check if any social platforms are configured
|
|
47
|
+
*/
|
|
17
48
|
hasSocialLinks(): boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Get the number of configured social platforms
|
|
51
|
+
*/
|
|
18
52
|
getSocialLinkCount(): number;
|
|
53
|
+
/**
|
|
54
|
+
* Get available social platforms (from templates)
|
|
55
|
+
*/
|
|
19
56
|
getAvailablePlatforms(): string[];
|
|
57
|
+
/**
|
|
58
|
+
* Get social configuration
|
|
59
|
+
*/
|
|
20
60
|
getSocialConfig(): SocialConfig;
|
|
21
61
|
}
|
|
62
|
+
/**
|
|
63
|
+
* Create a new Social instance from provider data
|
|
64
|
+
*/
|
|
22
65
|
export declare function newSocial(data: any): Social;
|
|
@@ -1,19 +1,58 @@
|
|
|
1
1
|
import { ViewName } from '../type';
|
|
2
|
+
/**
|
|
3
|
+
* Taxonomy entity holds taxonomy configuration
|
|
4
|
+
*/
|
|
2
5
|
export declare class Taxonomy {
|
|
3
6
|
private taxonomies;
|
|
4
7
|
private views;
|
|
5
8
|
private viewsByTreeKey;
|
|
6
9
|
constructor(taxonomies: Record<string, string>);
|
|
10
|
+
/**
|
|
11
|
+
* Get taxonomy views
|
|
12
|
+
*/
|
|
7
13
|
getViews(): ViewName[];
|
|
14
|
+
/**
|
|
15
|
+
* Get taxonomies configuration
|
|
16
|
+
*/
|
|
8
17
|
getTaxonomies(): Record<string, string>;
|
|
18
|
+
/**
|
|
19
|
+
* Get view by tree key
|
|
20
|
+
*/
|
|
9
21
|
getViewByTreeKey(treeKey: string): ViewName | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* Check if taxonomy exists
|
|
24
|
+
*/
|
|
10
25
|
hasTaxonomy(singular: string): boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Get plural form of taxonomy
|
|
28
|
+
*/
|
|
11
29
|
getPluralForm(singular: string): string | undefined;
|
|
30
|
+
/**
|
|
31
|
+
* Get singular form from plural
|
|
32
|
+
*/
|
|
12
33
|
getSingularForm(plural: string): string | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* Get all singular forms
|
|
36
|
+
*/
|
|
13
37
|
getSingularForms(): string[];
|
|
38
|
+
/**
|
|
39
|
+
* Get all plural forms
|
|
40
|
+
*/
|
|
14
41
|
getPluralForms(): string[];
|
|
42
|
+
/**
|
|
43
|
+
* Setup taxonomy views
|
|
44
|
+
*/
|
|
15
45
|
private setupViews;
|
|
46
|
+
/**
|
|
47
|
+
* Get view count
|
|
48
|
+
*/
|
|
16
49
|
getViewCount(): number;
|
|
50
|
+
/**
|
|
51
|
+
* Check if taxonomies are empty
|
|
52
|
+
*/
|
|
17
53
|
isEmpty(): boolean;
|
|
18
54
|
}
|
|
55
|
+
/**
|
|
56
|
+
* Create a new Taxonomy instance from provider data
|
|
57
|
+
*/
|
|
19
58
|
export declare function newTaxonomy(data: any): Taxonomy;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
import { Config } from '../entity/config';
|
|
2
2
|
import { Fs } from '@internal/domain/fs/type';
|
|
3
|
+
/**
|
|
4
|
+
* Load configuration with custom parameters
|
|
5
|
+
*/
|
|
3
6
|
export declare function loadConfigWithParams(fs: Fs, configFilename: string, workingDir: string, modulesDir: string, params?: Record<string, any>): Promise<Config>;
|
|
@@ -1,20 +1,44 @@
|
|
|
1
1
|
import { Provider } from '../type';
|
|
2
2
|
import { SourceDescriptor } from './sourcedescriptor';
|
|
3
|
+
/**
|
|
4
|
+
* BaseDirs holds the base directories for the configuration
|
|
5
|
+
*/
|
|
3
6
|
export interface BaseDirs {
|
|
4
7
|
workingDir: string;
|
|
5
8
|
modulesDir: string;
|
|
6
9
|
publishDir: string;
|
|
7
10
|
cacheDir: string;
|
|
8
11
|
}
|
|
12
|
+
/**
|
|
13
|
+
* ConfigLoader loads and assembles configuration
|
|
14
|
+
*/
|
|
9
15
|
export declare class ConfigLoader {
|
|
10
16
|
private cfg;
|
|
11
17
|
private sourceDescriptor;
|
|
12
18
|
private baseDirs;
|
|
13
19
|
constructor(sourceDescriptor: SourceDescriptor, baseDirs: BaseDirs);
|
|
20
|
+
/**
|
|
21
|
+
* Load configuration by default
|
|
22
|
+
*/
|
|
14
23
|
loadConfigByDefault(): Promise<Provider>;
|
|
24
|
+
/**
|
|
25
|
+
* Delete merge strategies
|
|
26
|
+
*/
|
|
15
27
|
deleteMergeStrategies(): void;
|
|
28
|
+
/**
|
|
29
|
+
* Load provider from config file
|
|
30
|
+
*/
|
|
16
31
|
private loadProvider;
|
|
32
|
+
/**
|
|
33
|
+
* Apply default configuration settings
|
|
34
|
+
*/
|
|
17
35
|
private applyDefaultConfig;
|
|
36
|
+
/**
|
|
37
|
+
* Check if file exists
|
|
38
|
+
*/
|
|
18
39
|
private fileExists;
|
|
40
|
+
/**
|
|
41
|
+
* Load configuration from file
|
|
42
|
+
*/
|
|
19
43
|
private loadConfigFromFile;
|
|
20
44
|
}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { Provider } from '../type';
|
|
2
|
+
/**
|
|
3
|
+
* DefaultConfigProvider is a Provider backed by a map where all keys are lower case
|
|
4
|
+
* All methods are thread safe (in single-threaded JS environment)
|
|
5
|
+
*/
|
|
2
6
|
export declare class DefaultConfigProvider implements Provider {
|
|
3
7
|
private root;
|
|
4
8
|
private keyCache;
|
|
@@ -21,5 +25,11 @@ export declare class DefaultConfigProvider implements Provider {
|
|
|
21
25
|
walkParams(walkFn: (params: Record<string, any>) => boolean): void;
|
|
22
26
|
isSet(key: string): boolean;
|
|
23
27
|
}
|
|
28
|
+
/**
|
|
29
|
+
* Create a Provider backed by params
|
|
30
|
+
*/
|
|
24
31
|
export declare function newFromParams(params: Record<string, any>): Provider;
|
|
32
|
+
/**
|
|
33
|
+
* Create a Provider backed by an empty params object
|
|
34
|
+
*/
|
|
25
35
|
export declare function newDefaultProvider(): Provider;
|
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
import { Fs } from '@internal/domain/fs/type';
|
|
2
|
+
/**
|
|
3
|
+
* SourceDescriptor describes where to find the config (e.g. config.toml etc.)
|
|
4
|
+
*/
|
|
2
5
|
export interface SourceDescriptor {
|
|
6
|
+
/**
|
|
7
|
+
* Get the filesystem
|
|
8
|
+
*/
|
|
3
9
|
fs(): Fs;
|
|
10
|
+
/**
|
|
11
|
+
* Get the filename - RelPath to the config file to use, e.g. /my/project/config.toml
|
|
12
|
+
*/
|
|
4
13
|
filename(): string;
|
|
5
14
|
}
|
|
15
|
+
/**
|
|
16
|
+
* Create a new SourceDescriptor
|
|
17
|
+
*/
|
|
6
18
|
export declare function newSourceDescriptor(fs: Fs, filename: string): SourceDescriptor;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Provider provides the configuration settings interface
|
|
3
|
+
*/
|
|
1
4
|
export interface Provider {
|
|
2
5
|
getString(key: string): string;
|
|
3
6
|
getInt(key: string): number;
|
|
@@ -15,21 +18,33 @@ export interface Provider {
|
|
|
15
18
|
walkParams(walkFn: (params: Record<string, any>) => boolean): void;
|
|
16
19
|
isSet(key: string): boolean;
|
|
17
20
|
}
|
|
21
|
+
/**
|
|
22
|
+
* Mount configuration for modules
|
|
23
|
+
*/
|
|
18
24
|
export interface Mount {
|
|
19
25
|
source: string;
|
|
20
26
|
target: string;
|
|
21
27
|
lang?: string;
|
|
22
28
|
}
|
|
29
|
+
/**
|
|
30
|
+
* Import represents a module import configuration
|
|
31
|
+
*/
|
|
23
32
|
export interface Import {
|
|
24
33
|
path: string;
|
|
25
34
|
url?: string;
|
|
26
35
|
version?: string;
|
|
27
36
|
mounts?: Mount[];
|
|
28
37
|
}
|
|
38
|
+
/**
|
|
39
|
+
* ModuleConfig represents module configuration with imports
|
|
40
|
+
*/
|
|
29
41
|
export interface ModuleConfig {
|
|
30
42
|
mounts: Mount[];
|
|
31
43
|
imports: Import[];
|
|
32
44
|
}
|
|
45
|
+
/**
|
|
46
|
+
* RootConfig holds all the top-level configuration options
|
|
47
|
+
*/
|
|
33
48
|
export interface RootConfig {
|
|
34
49
|
baseURL: string;
|
|
35
50
|
title: string;
|
|
@@ -63,6 +78,9 @@ export interface BaseDir {
|
|
|
63
78
|
publishDir: string;
|
|
64
79
|
cacheDir: string;
|
|
65
80
|
}
|
|
81
|
+
/**
|
|
82
|
+
* LanguageConfig represents a single language configuration
|
|
83
|
+
*/
|
|
66
84
|
export interface LanguageConfig {
|
|
67
85
|
languageCode: string;
|
|
68
86
|
languageName: string;
|
|
@@ -72,6 +90,9 @@ export interface LanguageConfig {
|
|
|
72
90
|
disabled: boolean;
|
|
73
91
|
params: Record<string, any>;
|
|
74
92
|
}
|
|
93
|
+
/**
|
|
94
|
+
* GoogleAnalytics service configuration
|
|
95
|
+
*/
|
|
75
96
|
export interface GoogleAnalytics {
|
|
76
97
|
disable: boolean;
|
|
77
98
|
respectDoNotTrack: boolean;
|
|
@@ -81,37 +102,61 @@ export interface X {
|
|
|
81
102
|
respectDoNotTrack: boolean;
|
|
82
103
|
disableInlineCSS: boolean;
|
|
83
104
|
}
|
|
105
|
+
/**
|
|
106
|
+
* Disqus service configuration
|
|
107
|
+
*/
|
|
84
108
|
export interface Disqus {
|
|
85
109
|
disable: boolean;
|
|
86
110
|
shortname: string;
|
|
87
111
|
}
|
|
112
|
+
/**
|
|
113
|
+
* RSS service configuration
|
|
114
|
+
*/
|
|
88
115
|
export interface RSS {
|
|
89
116
|
limit: number;
|
|
90
117
|
}
|
|
118
|
+
/**
|
|
119
|
+
* ServiceConfig holds service-related configurations
|
|
120
|
+
*/
|
|
91
121
|
export interface ServiceConfig {
|
|
92
122
|
disqus: Disqus;
|
|
93
123
|
googleAnalytics: GoogleAnalytics;
|
|
94
124
|
rss: RSS;
|
|
95
125
|
x: X;
|
|
96
126
|
}
|
|
127
|
+
/**
|
|
128
|
+
* Social platform template configuration
|
|
129
|
+
*/
|
|
97
130
|
export interface SocialPlatformTemplate {
|
|
98
131
|
id: string;
|
|
99
132
|
title: string;
|
|
100
133
|
}
|
|
134
|
+
/**
|
|
135
|
+
* User social configuration
|
|
136
|
+
*/
|
|
101
137
|
export interface SocialUserConfig {
|
|
102
138
|
[key: string]: {
|
|
103
139
|
link: string;
|
|
104
140
|
};
|
|
105
141
|
}
|
|
142
|
+
/**
|
|
143
|
+
* Social configuration
|
|
144
|
+
*/
|
|
106
145
|
export interface SocialConfig {
|
|
107
146
|
userConfig: SocialUserConfig;
|
|
108
147
|
platformTemplates: SocialPlatformTemplate[];
|
|
109
148
|
}
|
|
149
|
+
/**
|
|
150
|
+
* ViewName represents a taxonomy view
|
|
151
|
+
*/
|
|
110
152
|
export interface ViewName {
|
|
111
153
|
singular: string;
|
|
112
154
|
plural: string;
|
|
113
155
|
pluralTreeKey: string;
|
|
114
156
|
}
|
|
157
|
+
/**
|
|
158
|
+
* Markdown plugin configuration
|
|
159
|
+
*/
|
|
115
160
|
export interface MarkdownPlugins {
|
|
116
161
|
wikilink: boolean;
|
|
117
162
|
tag: boolean;
|
|
@@ -119,14 +164,25 @@ export interface MarkdownPlugins {
|
|
|
119
164
|
latex: boolean;
|
|
120
165
|
mermaid: boolean;
|
|
121
166
|
}
|
|
167
|
+
/**
|
|
168
|
+
* Markdown configuration
|
|
169
|
+
*/
|
|
122
170
|
export interface MarkdownConfig {
|
|
171
|
+
/** Use internal markdown renderer */
|
|
123
172
|
useInternalRenderer: boolean;
|
|
173
|
+
/** Plugin configuration */
|
|
124
174
|
plugins: MarkdownPlugins;
|
|
125
175
|
}
|
|
176
|
+
/**
|
|
177
|
+
* ConfigError represents configuration related errors
|
|
178
|
+
*/
|
|
126
179
|
export declare class ConfigError extends Error {
|
|
127
180
|
code?: string | undefined;
|
|
128
181
|
constructor(message: string, code?: string | undefined);
|
|
129
182
|
}
|
|
183
|
+
/**
|
|
184
|
+
* Predefined configuration errors
|
|
185
|
+
*/
|
|
130
186
|
export declare const ErrConfigNotFound: ConfigError;
|
|
131
187
|
export declare const ErrInvalidConfig: ConfigError;
|
|
132
188
|
export declare const ErrWorkspaceNotFound: ConfigError;
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import { LanguageConfig } from '../type';
|
|
2
|
+
/**
|
|
3
|
+
* Default language configuration
|
|
4
|
+
*/
|
|
2
5
|
export declare const DefaultLanguageConfig: Partial<LanguageConfig>;
|
|
3
6
|
export declare function decodeLanguageConfig(data: any): Record<string, LanguageConfig>;
|
|
7
|
+
/**
|
|
8
|
+
* Validates language configuration
|
|
9
|
+
*/
|
|
4
10
|
export declare function validateLanguageConfig(configs: Record<string, LanguageConfig>, defaultLang: string): boolean;
|
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
import { MarkdownConfig, MarkdownPlugins } from '../type';
|
|
2
|
+
/**
|
|
3
|
+
* Default markdown plugin configuration
|
|
4
|
+
* All plugins are enabled by default
|
|
5
|
+
*/
|
|
2
6
|
export declare const DefaultMarkdownPlugins: MarkdownPlugins;
|
|
7
|
+
/**
|
|
8
|
+
* Default markdown configuration
|
|
9
|
+
*/
|
|
3
10
|
export declare const DefaultMarkdownConfig: MarkdownConfig;
|
|
11
|
+
/**
|
|
12
|
+
* Creates a markdown configuration from provider data
|
|
13
|
+
*/
|
|
4
14
|
export declare function decodeMarkdownConfig(data: any): MarkdownConfig;
|
|
15
|
+
/**
|
|
16
|
+
* Checks if markdown configuration uses default settings
|
|
17
|
+
*/
|
|
5
18
|
export declare function isDefaultMarkdownConfig(config: MarkdownConfig): boolean;
|
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
import { ModuleConfig } from '../type';
|
|
2
|
+
/**
|
|
3
|
+
* Empty module configuration
|
|
4
|
+
*/
|
|
2
5
|
export declare const EmptyModuleConfig: ModuleConfig;
|
|
6
|
+
/**
|
|
7
|
+
* Creates a module configuration from provider data
|
|
8
|
+
*/
|
|
3
9
|
export declare function decodeModuleConfig(data: any): ModuleConfig;
|
|
10
|
+
/**
|
|
11
|
+
* Checks if a module configuration is empty
|
|
12
|
+
*/
|
|
4
13
|
export declare function isEmptyModuleConfig(config: ModuleConfig): boolean;
|
|
@@ -1,3 +1,9 @@
|
|
|
1
1
|
import { RootConfig } from '../type';
|
|
2
|
+
/**
|
|
3
|
+
* Default root configuration
|
|
4
|
+
*/
|
|
2
5
|
export declare const DefaultRootConfig: Partial<RootConfig>;
|
|
6
|
+
/**
|
|
7
|
+
* Creates a root configuration from provider data
|
|
8
|
+
*/
|
|
3
9
|
export declare function decodeRootConfig(data: any): RootConfig;
|
|
@@ -1,3 +1,9 @@
|
|
|
1
1
|
import { ServiceConfig } from '../type';
|
|
2
|
+
/**
|
|
3
|
+
* Default service configuration
|
|
4
|
+
*/
|
|
2
5
|
export declare const DefaultServiceConfig: ServiceConfig;
|
|
6
|
+
/**
|
|
7
|
+
* Creates a service configuration from provider data
|
|
8
|
+
*/
|
|
3
9
|
export declare function decodeServiceConfig(services: any): ServiceConfig;
|
|
@@ -1,6 +1,22 @@
|
|
|
1
1
|
import { SocialConfig, SocialPlatformTemplate } from '../type';
|
|
2
|
+
/**
|
|
3
|
+
* Predefined social platform templates
|
|
4
|
+
* Based on popular social platforms with their titles
|
|
5
|
+
*/
|
|
2
6
|
export declare const DefaultSocialPlatformTemplates: SocialPlatformTemplate[];
|
|
7
|
+
/**
|
|
8
|
+
* Default social configuration
|
|
9
|
+
*/
|
|
3
10
|
export declare const DefaultSocialConfig: SocialConfig;
|
|
11
|
+
/**
|
|
12
|
+
* Creates a social configuration from provider data
|
|
13
|
+
*/
|
|
4
14
|
export declare function decodeSocialConfig(social: any): SocialConfig;
|
|
15
|
+
/**
|
|
16
|
+
* Get social platform template by ID
|
|
17
|
+
*/
|
|
5
18
|
export declare function getSocialPlatformTemplate(id: string): SocialPlatformTemplate | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* Get all available social platform IDs
|
|
21
|
+
*/
|
|
6
22
|
export declare function getAvailableSocialPlatforms(): string[];
|
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
import { ViewName } from '../type';
|
|
2
|
+
/**
|
|
3
|
+
* Default taxonomies
|
|
4
|
+
*/
|
|
2
5
|
export declare const DefaultTaxonomies: Record<string, string>;
|
|
6
|
+
/**
|
|
7
|
+
* Creates a clean tree key for taxonomy
|
|
8
|
+
*/
|
|
3
9
|
export declare function cleanTreeKey(...elems: string[]): string;
|
|
10
|
+
/**
|
|
11
|
+
* Creates taxonomy views from taxonomies configuration
|
|
12
|
+
*/
|
|
4
13
|
export declare function setupTaxonomyViews(taxonomies: Record<string, string>): ViewName[];
|
|
14
|
+
/**
|
|
15
|
+
* Creates taxonomy configuration from provider data
|
|
16
|
+
*/
|
|
5
17
|
export declare function decodeTaxonomyConfig(data: any): Record<string, string>;
|