@cbnventures/docusaurus-preset-nova 0.25.2 → 0.26.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/build/package.json +21 -19
- package/build/src/blocks/app-market-download/index.d.ts +1 -1
- package/build/src/blocks/app-market-download/index.d.ts.map +1 -1
- package/build/src/blocks/blog-preview/index.d.ts +1 -1
- package/build/src/blocks/blog-preview/index.d.ts.map +1 -1
- package/build/src/blocks/canvas/index.d.ts +1 -1
- package/build/src/blocks/canvas/index.d.ts.map +1 -1
- package/build/src/blocks/features/index.d.ts +1 -1
- package/build/src/blocks/features/index.d.ts.map +1 -1
- package/build/src/blocks/hero/index.d.ts +1 -1
- package/build/src/blocks/hero/index.d.ts.map +1 -1
- package/build/src/blocks/install-strip/index.d.ts +1 -1
- package/build/src/blocks/install-strip/index.d.ts.map +1 -1
- package/build/src/blocks/spotlight/index.d.ts +1 -1
- package/build/src/blocks/spotlight/index.d.ts.map +1 -1
- package/build/src/blocks/stats/index.d.ts +1 -1
- package/build/src/blocks/stats/index.d.ts.map +1 -1
- package/build/src/blocks/terminology/index.d.ts +1 -1
- package/build/src/blocks/terminology/index.d.ts.map +1 -1
- package/build/src/blocks/typewriter/index.d.ts +2 -2
- package/build/src/blocks/typewriter/index.d.ts.map +1 -1
- package/build/src/cli/i18n/check.js +12 -16
- package/build/src/cli/i18n/check.js.map +1 -1
- package/build/src/cli/i18n/coverage.js +27 -34
- package/build/src/cli/i18n/coverage.js.map +1 -1
- package/build/src/cli/i18n/sync.js +17 -21
- package/build/src/cli/i18n/sync.js.map +1 -1
- package/build/src/cli/index.js +16 -21
- package/build/src/cli/index.js.map +1 -1
- package/build/src/get-swizzle-config.js +1 -4
- package/build/src/get-swizzle-config.js.map +1 -1
- package/build/src/index.d.ts.map +1 -1
- package/build/src/index.js +76 -65
- package/build/src/index.js.map +1 -1
- package/build/src/lib/bundle-size.js +7 -10
- package/build/src/lib/bundle-size.js.map +1 -1
- package/build/src/lib/code-block-metastring.d.ts +3 -0
- package/build/src/lib/code-block-metastring.d.ts.map +1 -0
- package/build/src/lib/code-block-metastring.js +36 -0
- package/build/src/lib/code-block-metastring.js.map +1 -0
- package/build/src/lib/color.js +3 -7
- package/build/src/lib/color.js.map +1 -1
- package/build/src/lib/compare-preset-theme-files.js +1 -4
- package/build/src/lib/compare-preset-theme-files.js.map +1 -1
- package/build/src/lib/css-generator.js +6 -10
- package/build/src/lib/css-generator.js.map +1 -1
- package/build/src/lib/filter-preset-theme-file.js +1 -4
- package/build/src/lib/filter-preset-theme-file.js.map +1 -1
- package/build/src/lib/google-fonts-url.js +3 -6
- package/build/src/lib/google-fonts-url.js.map +1 -1
- package/build/src/lib/i18n/apply-plan.js +12 -16
- package/build/src/lib/i18n/apply-plan.js.map +1 -1
- package/build/src/lib/i18n/content-scan.js +19 -23
- package/build/src/lib/i18n/content-scan.js.map +1 -1
- package/build/src/lib/i18n/coverage.js +1 -5
- package/build/src/lib/i18n/coverage.js.map +1 -1
- package/build/src/lib/i18n/prompt.js +3 -10
- package/build/src/lib/i18n/prompt.js.map +1 -1
- package/build/src/lib/i18n/reconcile.js +1 -5
- package/build/src/lib/i18n/reconcile.js.map +1 -1
- package/build/src/lib/i18n/report.js +4 -8
- package/build/src/lib/i18n/report.js.map +1 -1
- package/build/src/lib/i18n/site-context.d.ts.map +1 -1
- package/build/src/lib/i18n/site-context.js +28 -31
- package/build/src/lib/i18n/site-context.js.map +1 -1
- package/build/src/lib/module-loader.d.ts +4 -0
- package/build/src/lib/module-loader.d.ts.map +1 -0
- package/build/src/lib/module-loader.js +9 -0
- package/build/src/lib/module-loader.js.map +1 -0
- package/build/src/lib/progress-bar.d.ts +4 -0
- package/build/src/lib/progress-bar.d.ts.map +1 -0
- package/build/src/lib/progress-bar.js +56 -0
- package/build/src/lib/progress-bar.js.map +1 -0
- package/build/src/lib/regex.d.ts +0 -2
- package/build/src/lib/regex.d.ts.map +1 -1
- package/build/src/lib/regex.js +42 -47
- package/build/src/lib/regex.js.map +1 -1
- package/build/src/lib/rehype-shiki.d.ts.map +1 -1
- package/build/src/lib/rehype-shiki.js +7 -9
- package/build/src/lib/rehype-shiki.js.map +1 -1
- package/build/src/lib/safe-json-ld.js +3 -6
- package/build/src/lib/safe-json-ld.js.map +1 -1
- package/build/src/lib/search/classic-worker.d.ts +3 -0
- package/build/src/lib/search/classic-worker.d.ts.map +1 -0
- package/build/src/lib/search/classic-worker.js +10 -0
- package/build/src/lib/search/classic-worker.js.map +1 -0
- package/build/src/lib/search/indexer.d.ts.map +1 -1
- package/build/src/lib/search/indexer.js +35 -67
- package/build/src/lib/search/indexer.js.map +1 -1
- package/build/src/lib/shiki-themes.js +1 -4
- package/build/src/lib/shiki-themes.js.map +1 -1
- package/build/src/lib/sidebar-mobile-store.js +3 -8
- package/build/src/lib/sidebar-mobile-store.js.map +1 -1
- package/build/src/lib/sticky-layout.js +1 -4
- package/build/src/lib/sticky-layout.js.map +1 -1
- package/build/src/lib/toc-collapsible-store.js +5 -12
- package/build/src/lib/toc-collapsible-store.js.map +1 -1
- package/build/src/lib/translations.js +1 -5
- package/build/src/lib/translations.js.map +1 -1
- package/build/src/lib/use-color-mode-observer.js +4 -7
- package/build/src/lib/use-color-mode-observer.js.map +1 -1
- package/build/src/lib/use-details-dismiss.js +3 -6
- package/build/src/lib/use-details-dismiss.js.map +1 -1
- package/build/src/lib/use-navbar-active-item.js +3 -6
- package/build/src/lib/use-navbar-active-item.js.map +1 -1
- package/build/src/lib/use-navbar-overflow.js +7 -10
- package/build/src/lib/use-navbar-overflow.js.map +1 -1
- package/build/src/lib/use-overlay-panel.js +8 -11
- package/build/src/lib/use-overlay-panel.js.map +1 -1
- package/build/src/lib/webpack-cache.d.ts +3 -0
- package/build/src/lib/webpack-cache.d.ts.map +1 -0
- package/build/src/lib/webpack-cache.js +18 -0
- package/build/src/lib/webpack-cache.js.map +1 -0
- package/build/src/options.d.ts.map +1 -1
- package/build/src/options.js +143 -133
- package/build/src/options.js.map +1 -1
- package/build/src/plugins/bundle-guard/index.js +6 -9
- package/build/src/plugins/bundle-guard/index.js.map +1 -1
- package/build/src/plugins/icons/base-set.js +1 -4
- package/build/src/plugins/icons/base-set.js.map +1 -1
- package/build/src/plugins/icons/generate.d.ts.map +1 -1
- package/build/src/plugins/icons/generate.js +23 -25
- package/build/src/plugins/icons/generate.js.map +1 -1
- package/build/src/plugins/icons/index.js +11 -14
- package/build/src/plugins/icons/index.js.map +1 -1
- package/build/src/plugins/mermaid-tooltip/client.js +1 -2
- package/build/src/plugins/mermaid-tooltip/client.js.map +1 -1
- package/build/src/plugins/mermaid-tooltip/index.d.ts.map +1 -1
- package/build/src/plugins/mermaid-tooltip/index.js +6 -6
- package/build/src/plugins/mermaid-tooltip/index.js.map +1 -1
- package/build/src/preset.d.ts.map +1 -1
- package/build/src/preset.js +35 -31
- package/build/src/preset.js.map +1 -1
- package/build/src/presets/envoy/preset.js +1 -4
- package/build/src/presets/envoy/preset.js.map +1 -1
- package/build/src/presets/foundry/preset.js +1 -4
- package/build/src/presets/foundry/preset.js.map +1 -1
- package/build/src/presets/index.js +14 -17
- package/build/src/presets/index.js.map +1 -1
- package/build/src/presets/lantern/preset.js +1 -4
- package/build/src/presets/lantern/preset.js.map +1 -1
- package/build/src/presets/marshal/preset.js +1 -4
- package/build/src/presets/marshal/preset.js.map +1 -1
- package/build/src/presets/sample/preset.js +1 -4
- package/build/src/presets/sample/preset.js.map +1 -1
- package/build/src/presets/sentinel/preset.js +1 -4
- package/build/src/presets/sentinel/preset.js.map +1 -1
- package/build/src/presets/signal/preset.js +1 -4
- package/build/src/presets/signal/preset.js.map +1 -1
- package/build/src/scripts/announcement-bar-init.js +1 -4
- package/build/src/scripts/announcement-bar-init.js.map +1 -1
- package/build/src/scripts/color-mode-init.js +1 -4
- package/build/src/scripts/color-mode-init.js.map +1 -1
- package/build/src/scripts/data-attribute-query.js +1 -4
- package/build/src/scripts/data-attribute-query.js.map +1 -1
- package/build/src/styles/theme/SearchBar/style.css +12 -34
- package/build/src/tests/cli/i18n/check.test.js +21 -23
- package/build/src/tests/cli/i18n/check.test.js.map +1 -1
- package/build/src/tests/cli/i18n/coverage.test.js +30 -32
- package/build/src/tests/cli/i18n/coverage.test.js.map +1 -1
- package/build/src/tests/cli/i18n/sync.test.js +55 -57
- package/build/src/tests/cli/i18n/sync.test.js.map +1 -1
- package/build/src/tests/config-drift.test.js +29 -2
- package/build/src/tests/config-drift.test.js.map +1 -1
- package/build/src/tests/documentation-dependencies.test.d.ts +2 -0
- package/build/src/tests/documentation-dependencies.test.d.ts.map +1 -0
- package/build/src/tests/documentation-dependencies.test.js +26 -0
- package/build/src/tests/documentation-dependencies.test.js.map +1 -0
- package/build/src/tests/exports-module-format.test.js +15 -11
- package/build/src/tests/exports-module-format.test.js.map +1 -1
- package/build/src/tests/lib/code-block-metastring.test.d.ts +2 -0
- package/build/src/tests/lib/code-block-metastring.test.d.ts.map +1 -0
- package/build/src/tests/lib/code-block-metastring.test.js +27 -0
- package/build/src/tests/lib/code-block-metastring.test.js.map +1 -0
- package/build/src/tests/lib/i18n/apply-plan.test.js +96 -98
- package/build/src/tests/lib/i18n/apply-plan.test.js.map +1 -1
- package/build/src/tests/lib/i18n/content-scan.test.js +63 -65
- package/build/src/tests/lib/i18n/content-scan.test.js.map +1 -1
- package/build/src/tests/lib/i18n/coverage.test.js +24 -26
- package/build/src/tests/lib/i18n/coverage.test.js.map +1 -1
- package/build/src/tests/lib/i18n/reconcile.test.js +129 -131
- package/build/src/tests/lib/i18n/reconcile.test.js.map +1 -1
- package/build/src/tests/lib/i18n/site-context.test.js +24 -26
- package/build/src/tests/lib/i18n/site-context.test.js.map +1 -1
- package/build/src/tests/lib/progress-bar.test.d.ts +2 -0
- package/build/src/tests/lib/progress-bar.test.d.ts.map +1 -0
- package/build/src/tests/lib/progress-bar.test.js +76 -0
- package/build/src/tests/lib/progress-bar.test.js.map +1 -0
- package/build/src/tests/lib/rehype-shiki.test.js +35 -1
- package/build/src/tests/lib/rehype-shiki.test.js.map +1 -1
- package/build/src/tests/lib/search/worker.test.js +25 -7
- package/build/src/tests/lib/search/worker.test.js.map +1 -1
- package/build/src/tests/lib/webpack-cache.test.d.ts +2 -0
- package/build/src/tests/lib/webpack-cache.test.d.ts.map +1 -0
- package/build/src/tests/lib/webpack-cache.test.js +31 -0
- package/build/src/tests/lib/webpack-cache.test.js.map +1 -0
- package/build/src/tests/options.test.js +2 -0
- package/build/src/tests/options.test.js.map +1 -1
- package/build/src/tests/preset.test.js +31 -0
- package/build/src/tests/preset.test.js.map +1 -1
- package/build/src/tests/theme/SearchBar/style-minification.test.d.ts +2 -0
- package/build/src/tests/theme/SearchBar/style-minification.test.d.ts.map +1 -0
- package/build/src/tests/theme/SearchBar/style-minification.test.js +37 -0
- package/build/src/tests/theme/SearchBar/style-minification.test.js.map +1 -0
- package/build/src/theme/Admonition/index.d.ts +1 -1
- package/build/src/theme/Admonition/index.d.ts.map +1 -1
- package/build/src/theme/Blog/Components/Author/Socials/index.d.ts +1 -1
- package/build/src/theme/Blog/Components/Author/Socials/index.d.ts.map +1 -1
- package/build/src/theme/Blog/Components/Author/index.d.ts +1 -1
- package/build/src/theme/Blog/Components/Author/index.d.ts.map +1 -1
- package/build/src/theme/Blog/Pages/BlogAuthorsListPage/index.d.ts +1 -1
- package/build/src/theme/Blog/Pages/BlogAuthorsListPage/index.d.ts.map +1 -1
- package/build/src/theme/Blog/Pages/BlogAuthorsPostsPage/index.d.ts +1 -1
- package/build/src/theme/Blog/Pages/BlogAuthorsPostsPage/index.d.ts.map +1 -1
- package/build/src/theme/BlogArchivePage/index.d.ts +1 -1
- package/build/src/theme/BlogArchivePage/index.d.ts.map +1 -1
- package/build/src/theme/BlogLayout/index.d.ts +1 -1
- package/build/src/theme/BlogLayout/index.d.ts.map +1 -1
- package/build/src/theme/BlogListPage/StructuredData/index.d.ts +1 -1
- package/build/src/theme/BlogListPage/StructuredData/index.d.ts.map +1 -1
- package/build/src/theme/BlogListPage/index.d.ts +1 -1
- package/build/src/theme/BlogListPage/index.d.ts.map +1 -1
- package/build/src/theme/BlogListPaginator/index.d.ts +1 -1
- package/build/src/theme/BlogListPaginator/index.d.ts.map +1 -1
- package/build/src/theme/BlogPostItem/index.d.ts +1 -1
- package/build/src/theme/BlogPostItem/index.d.ts.map +1 -1
- package/build/src/theme/BlogPostItems/index.d.ts +1 -1
- package/build/src/theme/BlogPostItems/index.d.ts.map +1 -1
- package/build/src/theme/BlogPostPage/Metadata/index.d.ts +1 -1
- package/build/src/theme/BlogPostPage/Metadata/index.d.ts.map +1 -1
- package/build/src/theme/BlogPostPage/StructuredData/index.d.ts +1 -1
- package/build/src/theme/BlogPostPage/StructuredData/index.d.ts.map +1 -1
- package/build/src/theme/BlogPostPage/index.d.ts +1 -1
- package/build/src/theme/BlogPostPage/index.d.ts.map +1 -1
- package/build/src/theme/BlogPostPaginator/index.d.ts +1 -1
- package/build/src/theme/BlogPostPaginator/index.d.ts.map +1 -1
- package/build/src/theme/BlogSidebar/index.d.ts +1 -1
- package/build/src/theme/BlogSidebar/index.d.ts.map +1 -1
- package/build/src/theme/BlogSidebarMobile/index.d.ts +1 -1
- package/build/src/theme/BlogSidebarMobile/index.d.ts.map +1 -1
- package/build/src/theme/BlogTagsListPage/index.d.ts +1 -1
- package/build/src/theme/BlogTagsListPage/index.d.ts.map +1 -1
- package/build/src/theme/BlogTagsPostsPage/index.d.ts +1 -1
- package/build/src/theme/BlogTagsPostsPage/index.d.ts.map +1 -1
- package/build/src/theme/CodeBlock/index.d.ts +2 -1
- package/build/src/theme/CodeBlock/index.d.ts.map +1 -1
- package/build/src/theme/CodeBlock/index.js +8 -5
- package/build/src/theme/CodeBlock/index.js.map +1 -1
- package/build/src/theme/CodeBlock/live-editor.d.ts +1 -1
- package/build/src/theme/CodeBlock/live-editor.d.ts.map +1 -1
- package/build/src/theme/CodeInline/index.d.ts +1 -1
- package/build/src/theme/CodeInline/index.d.ts.map +1 -1
- package/build/src/theme/ContentFooter/Edit/index.d.ts +1 -1
- package/build/src/theme/ContentFooter/Edit/index.d.ts.map +1 -1
- package/build/src/theme/ContentFooter/Share/index.d.ts +1 -1
- package/build/src/theme/ContentFooter/Share/index.d.ts.map +1 -1
- package/build/src/theme/ContentFooter/ShareButton/index.d.ts +1 -1
- package/build/src/theme/ContentFooter/ShareButton/index.d.ts.map +1 -1
- package/build/src/theme/ContentFooter/Tags/index.d.ts +1 -1
- package/build/src/theme/ContentFooter/Tags/index.d.ts.map +1 -1
- package/build/src/theme/ContentFooter/index.d.ts +1 -1
- package/build/src/theme/ContentFooter/index.d.ts.map +1 -1
- package/build/src/theme/ContentVisibility/index.d.ts +1 -1
- package/build/src/theme/ContentVisibility/index.d.ts.map +1 -1
- package/build/src/theme/DocBreadcrumbs/StructuredData/index.d.ts +1 -1
- package/build/src/theme/DocBreadcrumbs/StructuredData/index.d.ts.map +1 -1
- package/build/src/theme/DocBreadcrumbs/index.d.ts +1 -1
- package/build/src/theme/DocBreadcrumbs/index.d.ts.map +1 -1
- package/build/src/theme/DocCard/index.d.ts +1 -1
- package/build/src/theme/DocCard/index.d.ts.map +1 -1
- package/build/src/theme/DocCardList/index.d.ts +1 -1
- package/build/src/theme/DocCardList/index.d.ts.map +1 -1
- package/build/src/theme/DocCategoryGeneratedIndexPage/index.d.ts +1 -1
- package/build/src/theme/DocCategoryGeneratedIndexPage/index.d.ts.map +1 -1
- package/build/src/theme/DocItem/Content/index.d.ts +1 -1
- package/build/src/theme/DocItem/Content/index.d.ts.map +1 -1
- package/build/src/theme/DocItem/Footer/index.d.ts +1 -1
- package/build/src/theme/DocItem/Footer/index.d.ts.map +1 -1
- package/build/src/theme/DocItem/Layout/index.d.ts +1 -1
- package/build/src/theme/DocItem/Layout/index.d.ts.map +1 -1
- package/build/src/theme/DocItem/Metadata/index.d.ts +1 -1
- package/build/src/theme/DocItem/Metadata/index.d.ts.map +1 -1
- package/build/src/theme/DocItem/Paginator/index.d.ts +1 -1
- package/build/src/theme/DocItem/Paginator/index.d.ts.map +1 -1
- package/build/src/theme/DocItem/TOC/Desktop/index.d.ts +1 -1
- package/build/src/theme/DocItem/TOC/Desktop/index.d.ts.map +1 -1
- package/build/src/theme/DocItem/TOC/Mobile/index.d.ts +1 -1
- package/build/src/theme/DocItem/TOC/Mobile/index.d.ts.map +1 -1
- package/build/src/theme/DocItem/index.d.ts +1 -1
- package/build/src/theme/DocItem/index.d.ts.map +1 -1
- package/build/src/theme/DocPaginator/index.d.ts +1 -1
- package/build/src/theme/DocPaginator/index.d.ts.map +1 -1
- package/build/src/theme/DocRoot/Layout/Main/index.d.ts +1 -1
- package/build/src/theme/DocRoot/Layout/Main/index.d.ts.map +1 -1
- package/build/src/theme/DocRoot/Layout/Sidebar/index.d.ts +1 -1
- package/build/src/theme/DocRoot/Layout/Sidebar/index.d.ts.map +1 -1
- package/build/src/theme/DocRoot/Layout/index.d.ts +1 -1
- package/build/src/theme/DocRoot/Layout/index.d.ts.map +1 -1
- package/build/src/theme/DocRoot/index.d.ts +1 -1
- package/build/src/theme/DocRoot/index.d.ts.map +1 -1
- package/build/src/theme/DocSidebar/index.d.ts +1 -1
- package/build/src/theme/DocSidebar/index.d.ts.map +1 -1
- package/build/src/theme/DocSidebarItem/Category/index.d.ts +1 -1
- package/build/src/theme/DocSidebarItem/Category/index.d.ts.map +1 -1
- package/build/src/theme/DocSidebarItem/Html/index.d.ts +1 -1
- package/build/src/theme/DocSidebarItem/Html/index.d.ts.map +1 -1
- package/build/src/theme/DocSidebarItem/Link/index.d.ts +1 -1
- package/build/src/theme/DocSidebarItem/Link/index.d.ts.map +1 -1
- package/build/src/theme/DocSidebarItem/index.d.ts +1 -1
- package/build/src/theme/DocSidebarItem/index.d.ts.map +1 -1
- package/build/src/theme/DocSidebarItems/index.d.ts +1 -1
- package/build/src/theme/DocSidebarItems/index.d.ts.map +1 -1
- package/build/src/theme/DocSidebarMobile/index.d.ts +1 -1
- package/build/src/theme/DocSidebarMobile/index.d.ts.map +1 -1
- package/build/src/theme/DocTagDocListPage/index.d.ts +1 -1
- package/build/src/theme/DocTagDocListPage/index.d.ts.map +1 -1
- package/build/src/theme/DocTagsListPage/index.d.ts +1 -1
- package/build/src/theme/DocTagsListPage/index.d.ts.map +1 -1
- package/build/src/theme/DocVersionBanner/index.d.ts +1 -1
- package/build/src/theme/DocVersionBanner/index.d.ts.map +1 -1
- package/build/src/theme/DocVersionRoot/index.d.ts +1 -1
- package/build/src/theme/DocVersionRoot/index.d.ts.map +1 -1
- package/build/src/theme/DocsRoot/index.d.ts +1 -1
- package/build/src/theme/DocsRoot/index.d.ts.map +1 -1
- package/build/src/theme/EditMetaRow/index.d.ts +1 -1
- package/build/src/theme/EditMetaRow/index.d.ts.map +1 -1
- package/build/src/theme/EditThisPage/index.d.ts +1 -1
- package/build/src/theme/EditThisPage/index.d.ts.map +1 -1
- package/build/src/theme/Error/index.d.ts +1 -1
- package/build/src/theme/Error/index.d.ts.map +1 -1
- package/build/src/theme/ErrorPageContent/index.d.ts +1 -1
- package/build/src/theme/ErrorPageContent/index.d.ts.map +1 -1
- package/build/src/theme/Footer/index.d.ts +1 -1
- package/build/src/theme/Footer/index.d.ts.map +1 -1
- package/build/src/theme/IconExternalLink/index.d.ts +1 -1
- package/build/src/theme/IconExternalLink/index.d.ts.map +1 -1
- package/build/src/theme/LastUpdated/index.d.ts +1 -1
- package/build/src/theme/LastUpdated/index.d.ts.map +1 -1
- package/build/src/theme/Layout/Provider/index.d.ts +1 -1
- package/build/src/theme/Layout/Provider/index.d.ts.map +1 -1
- package/build/src/theme/Layout/index.d.ts +1 -1
- package/build/src/theme/Layout/index.d.ts.map +1 -1
- package/build/src/theme/Loading/index.d.ts +1 -1
- package/build/src/theme/Loading/index.d.ts.map +1 -1
- package/build/src/theme/MDXComponents/index.d.ts +10 -10
- package/build/src/theme/MDXComponents/index.d.ts.map +1 -1
- package/build/src/theme/MDXContent/index.d.ts +1 -1
- package/build/src/theme/MDXContent/index.d.ts.map +1 -1
- package/build/src/theme/MDXPage/index.d.ts +1 -1
- package/build/src/theme/MDXPage/index.d.ts.map +1 -1
- package/build/src/theme/Navbar/index.d.ts +1 -1
- package/build/src/theme/Navbar/index.d.ts.map +1 -1
- package/build/src/theme/NavbarItem/default-navbar-item.d.ts +1 -1
- package/build/src/theme/NavbarItem/default-navbar-item.d.ts.map +1 -1
- package/build/src/theme/NavbarItem/doc-navbar-item.d.ts +1 -1
- package/build/src/theme/NavbarItem/doc-navbar-item.d.ts.map +1 -1
- package/build/src/theme/NavbarItem/doc-sidebar-navbar-item.d.ts +1 -1
- package/build/src/theme/NavbarItem/doc-sidebar-navbar-item.d.ts.map +1 -1
- package/build/src/theme/NavbarItem/docs-version-dropdown-navbar-item.d.ts +1 -1
- package/build/src/theme/NavbarItem/docs-version-dropdown-navbar-item.d.ts.map +1 -1
- package/build/src/theme/NavbarItem/docs-version-navbar-item.d.ts +1 -1
- package/build/src/theme/NavbarItem/docs-version-navbar-item.d.ts.map +1 -1
- package/build/src/theme/NavbarItem/dropdown-navbar-item.d.ts +1 -1
- package/build/src/theme/NavbarItem/dropdown-navbar-item.d.ts.map +1 -1
- package/build/src/theme/NavbarItem/html-navbar-item.d.ts +1 -1
- package/build/src/theme/NavbarItem/html-navbar-item.d.ts.map +1 -1
- package/build/src/theme/NavbarItem/index.d.ts +1 -1
- package/build/src/theme/NavbarItem/index.d.ts.map +1 -1
- package/build/src/theme/NavbarItem/locale-dropdown-navbar-item.d.ts +1 -1
- package/build/src/theme/NavbarItem/locale-dropdown-navbar-item.d.ts.map +1 -1
- package/build/src/theme/NavbarItem/search-navbar-item.d.ts +1 -1
- package/build/src/theme/NavbarItem/search-navbar-item.d.ts.map +1 -1
- package/build/src/theme/NotFound/Content/index.d.ts +1 -1
- package/build/src/theme/NotFound/Content/index.d.ts.map +1 -1
- package/build/src/theme/NotFound/index.d.ts +1 -1
- package/build/src/theme/NotFound/index.d.ts.map +1 -1
- package/build/src/theme/Root/index.d.ts +1 -1
- package/build/src/theme/Root/index.d.ts.map +1 -1
- package/build/src/theme/SearchBar/search-input.d.ts +1 -1
- package/build/src/theme/SearchBar/search-input.d.ts.map +1 -1
- package/build/src/theme/SearchBar/search-provider.d.ts +1 -1
- package/build/src/theme/SearchBar/search-provider.d.ts.map +1 -1
- package/build/src/theme/SearchBar/search-results.d.ts +1 -1
- package/build/src/theme/SearchBar/search-results.d.ts.map +1 -1
- package/build/src/theme/SearchBar/search-results.js.map +1 -1
- package/build/src/theme/SearchMetadata/index.d.ts +1 -1
- package/build/src/theme/SearchMetadata/index.d.ts.map +1 -1
- package/build/src/theme/SearchPage/index.d.ts +1 -1
- package/build/src/theme/SearchPage/index.d.ts.map +1 -1
- package/build/src/theme/SiteMetadata/index.d.ts +1 -1
- package/build/src/theme/SiteMetadata/index.d.ts.map +1 -1
- package/build/src/theme/SkipToContent/index.d.ts +1 -1
- package/build/src/theme/SkipToContent/index.d.ts.map +1 -1
- package/build/src/theme/TOC/index.d.ts +1 -1
- package/build/src/theme/TOC/index.d.ts.map +1 -1
- package/build/src/theme/TOCCollapsible/index.d.ts +1 -1
- package/build/src/theme/TOCCollapsible/index.d.ts.map +1 -1
- package/build/src/theme/TabItem/index.d.ts +1 -1
- package/build/src/theme/TabItem/index.d.ts.map +1 -1
- package/build/src/theme/Tabs/index.d.ts +1 -1
- package/build/src/theme/Tabs/index.d.ts.map +1 -1
- package/build/src/theme/Tag/index.d.ts +1 -1
- package/build/src/theme/Tag/index.d.ts.map +1 -1
- package/build/src/theme/TagsListByLetter/index.d.ts +1 -1
- package/build/src/theme/TagsListByLetter/index.d.ts.map +1 -1
- package/build/src/theme/ThemeProvider/TitleFormatter/index.d.ts +1 -1
- package/build/src/theme/ThemeProvider/TitleFormatter/index.d.ts.map +1 -1
- package/build/src/theme/ThemeProvider/index.d.ts +1 -1
- package/build/src/theme/ThemeProvider/index.d.ts.map +1 -1
- package/build/src/types/index.d.ts +31 -2
- package/build/src/types/lib/code-block-metastring.d.ts +18 -0
- package/build/src/types/lib/module-loader.d.ts +24 -0
- package/build/src/types/lib/progress-bar.d.ts +37 -0
- package/build/src/types/lib/search/classic-worker.d.ts +10 -0
- package/build/src/types/lib/search/indexer.d.ts +2 -0
- package/build/src/types/lib/webpack-cache.d.ts +27 -0
- package/build/src/types/options.d.ts +10 -1
- package/build/src/types/plugins/mermaid-tooltip/index.d.ts +4 -0
- package/build/src/types/preset.d.ts +24 -11
- package/build/src/types/shared.d.ts +89 -0
- package/build/src/types/tests/config-drift.test.d.ts +6 -1
- package/build/src/types/tests/documentation-dependencies.test.d.ts +27 -0
- package/build/src/types/tests/exports-module-format.test.d.ts +29 -31
- package/build/src/types/tests/lib/code-block-metastring.test.d.ts +27 -0
- package/build/src/types/tests/lib/rehype-shiki.test.d.ts +26 -0
- package/build/src/types/tests/lib/search/worker.test.d.ts +40 -6
- package/build/src/types/tests/options.test.d.ts +5 -0
- package/build/src/types/tests/preset.test.d.ts +53 -0
- package/build/src/types/tests/theme/SearchBar/style-minification.test.d.ts +22 -0
- package/build/src/types/theme/CodeBlock/index.d.ts +2 -0
- package/build/vitest.setup.js +6 -12
- package/build/vitest.setup.js.map +1 -1
- package/nova-config.d.ts +57 -23
- package/package.json +21 -19
package/build/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cbnventures/docusaurus-preset-nova",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.26.0",
|
|
4
4
|
"description": "Scripts, templates, and project configuration for the common JavaScript and TypeScript developer",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -55,6 +55,7 @@
|
|
|
55
55
|
"./types/config": "./nova-config.d.ts",
|
|
56
56
|
"./types/sidebars": "./nova-sidebars.d.ts"
|
|
57
57
|
},
|
|
58
|
+
"type": "module",
|
|
58
59
|
"files": [
|
|
59
60
|
"./assets",
|
|
60
61
|
"./bin",
|
|
@@ -99,17 +100,17 @@
|
|
|
99
100
|
"node": "^22 || ^24"
|
|
100
101
|
},
|
|
101
102
|
"dependencies": {
|
|
102
|
-
"@cbnventures/nova": "0.
|
|
103
|
+
"@cbnventures/nova": "0.26.0",
|
|
103
104
|
"@codesandbox/sandpack-react": "2.20.0",
|
|
104
|
-
"@docusaurus/plugin-content-blog": "3.10.
|
|
105
|
-
"@docusaurus/plugin-content-docs": "3.10.
|
|
106
|
-
"@docusaurus/plugin-content-pages": "3.10.
|
|
107
|
-
"@docusaurus/plugin-google-tag-manager": "3.10.
|
|
108
|
-
"@docusaurus/plugin-sitemap": "3.10.
|
|
109
|
-
"@docusaurus/plugin-svgr": "3.10.
|
|
110
|
-
"@docusaurus/theme-common": "3.10.
|
|
111
|
-
"@docusaurus/theme-translations": "3.10.
|
|
112
|
-
"@docusaurus/utils-validation": "3.10.
|
|
105
|
+
"@docusaurus/plugin-content-blog": "3.10.2",
|
|
106
|
+
"@docusaurus/plugin-content-docs": "3.10.2",
|
|
107
|
+
"@docusaurus/plugin-content-pages": "3.10.2",
|
|
108
|
+
"@docusaurus/plugin-google-tag-manager": "3.10.2",
|
|
109
|
+
"@docusaurus/plugin-sitemap": "3.10.2",
|
|
110
|
+
"@docusaurus/plugin-svgr": "3.10.2",
|
|
111
|
+
"@docusaurus/theme-common": "3.10.2",
|
|
112
|
+
"@docusaurus/theme-translations": "3.10.2",
|
|
113
|
+
"@docusaurus/utils-validation": "3.10.2",
|
|
113
114
|
"@iconify/json": "2.2.488",
|
|
114
115
|
"@iconify/react": "6.0.2",
|
|
115
116
|
"@mdx-js/react": "3.1.1",
|
|
@@ -119,26 +120,27 @@
|
|
|
119
120
|
"lunr": "2.3.9",
|
|
120
121
|
"lunr-languages": "1.14.0",
|
|
121
122
|
"mark.js": "8.11.1",
|
|
122
|
-
"mermaid": "11.
|
|
123
|
+
"mermaid": "11.16.1",
|
|
123
124
|
"nprogress": "0.2.0",
|
|
124
125
|
"prompts": "2.4.2",
|
|
125
126
|
"rtlcss": "4.3.0",
|
|
126
127
|
"shiki": "4.0.2"
|
|
127
128
|
},
|
|
128
129
|
"devDependencies": {
|
|
129
|
-
"@docusaurus/module-type-aliases": "3.10.
|
|
130
|
-
"@docusaurus/types": "3.10.
|
|
130
|
+
"@docusaurus/module-type-aliases": "3.10.2",
|
|
131
|
+
"@docusaurus/types": "3.10.2",
|
|
131
132
|
"@types/node": "24.9.1",
|
|
132
133
|
"@types/nprogress": "0.2.3",
|
|
133
134
|
"@types/prompts": "2.4.9",
|
|
134
|
-
"@types/react": "19.2.
|
|
135
|
-
"@types/react-dom": "19.2.
|
|
136
|
-
"
|
|
135
|
+
"@types/react": "19.2.18",
|
|
136
|
+
"@types/react-dom": "19.2.4",
|
|
137
|
+
"css-minimizer-webpack-plugin": "5.0.1",
|
|
138
|
+
"eslint": "9.39.5",
|
|
137
139
|
"glob": "13.0.6",
|
|
138
140
|
"hastscript": "9.0.1",
|
|
139
141
|
"shx": "0.4.0",
|
|
140
|
-
"typescript": "
|
|
141
|
-
"vitest": "4.1.
|
|
142
|
+
"typescript": "6.0.3",
|
|
143
|
+
"vitest": "4.1.11"
|
|
142
144
|
},
|
|
143
145
|
"peerDependencies": {
|
|
144
146
|
"@docusaurus/core": "^3",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { Blocks_AppMarketDownload_Index_BlocksAppMarketDownload_Props } from '../../types/blocks/app-market-download/index.d.ts';
|
|
2
|
-
declare function BlocksAppMarketDownload(props: Blocks_AppMarketDownload_Index_BlocksAppMarketDownload_Props): import("react
|
|
2
|
+
declare function BlocksAppMarketDownload(props: Blocks_AppMarketDownload_Index_BlocksAppMarketDownload_Props): import("react").JSX.Element | undefined;
|
|
3
3
|
export default BlocksAppMarketDownload;
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/blocks/app-market-download/index.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAOV,4DAA4D,EAC7D,MAAM,mDAAmD,CAAC;AAa3D,iBAAS,uBAAuB,CAAC,KAAK,EAAE,4DAA4D,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/blocks/app-market-download/index.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAOV,4DAA4D,EAC7D,MAAM,mDAAmD,CAAC;AAa3D,iBAAS,uBAAuB,CAAC,KAAK,EAAE,4DAA4D,2CA8InG;AAED,eAAe,uBAAuB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { Blocks_BlogPreview_Index_BlocksBlogPreview_Props } from '../../types/blocks/blog-preview/index.d.ts';
|
|
2
|
-
declare function BlocksBlogPreview(props: Blocks_BlogPreview_Index_BlocksBlogPreview_Props): import("react
|
|
2
|
+
declare function BlocksBlogPreview(props: Blocks_BlogPreview_Index_BlocksBlogPreview_Props): import("react").JSX.Element;
|
|
3
3
|
export default BlocksBlogPreview;
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/blocks/blog-preview/index.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EASV,gDAAgD,EAMjD,MAAM,4CAA4C,CAAC;AAapD,iBAAS,iBAAiB,CAAC,KAAK,EAAE,gDAAgD
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/blocks/blog-preview/index.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EASV,gDAAgD,EAMjD,MAAM,4CAA4C,CAAC;AAapD,iBAAS,iBAAiB,CAAC,KAAK,EAAE,gDAAgD,+BAoIjF;AAED,eAAe,iBAAiB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { Blocks_Canvas_Index_BlocksCanvas_Props } from '../../types/blocks/canvas/index.d.ts';
|
|
2
|
-
declare function BlocksCanvas(props: Blocks_Canvas_Index_BlocksCanvas_Props): import("react
|
|
2
|
+
declare function BlocksCanvas(props: Blocks_Canvas_Index_BlocksCanvas_Props): import("react").JSX.Element;
|
|
3
3
|
export default BlocksCanvas;
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/blocks/canvas/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,sCAAsC,EACvC,MAAM,sCAAsC,CAAC;AAc9C,iBAAS,YAAY,CAAC,KAAK,EAAE,sCAAsC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/blocks/canvas/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,sCAAsC,EACvC,MAAM,sCAAsC,CAAC;AAc9C,iBAAS,YAAY,CAAC,KAAK,EAAE,sCAAsC,+BAiBlE;AAED,eAAe,YAAY,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { Blocks_Features_Index_BlocksFeatures_Props } from '../../types/blocks/features/index.d.ts';
|
|
2
|
-
declare function BlocksFeatures(props: Blocks_Features_Index_BlocksFeatures_Props): import("react
|
|
2
|
+
declare function BlocksFeatures(props: Blocks_Features_Index_BlocksFeatures_Props): import("react").JSX.Element;
|
|
3
3
|
export default BlocksFeatures;
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/blocks/features/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,0CAA0C,EAAE,MAAM,wCAAwC,CAAC;AAazG,iBAAS,cAAc,CAAC,KAAK,EAAE,0CAA0C
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/blocks/features/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,0CAA0C,EAAE,MAAM,wCAAwC,CAAC;AAazG,iBAAS,cAAc,CAAC,KAAK,EAAE,0CAA0C,+BAiExE;AAED,eAAe,cAAc,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { Blocks_Hero_Index_BlocksHero_Props } from '../../types/blocks/hero/index.d.ts';
|
|
2
|
-
declare function BlocksHero(props: Blocks_Hero_Index_BlocksHero_Props): import("react
|
|
2
|
+
declare function BlocksHero(props: Blocks_Hero_Index_BlocksHero_Props): import("react").JSX.Element;
|
|
3
3
|
export default BlocksHero;
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/blocks/hero/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAEV,kCAAkC,EACnC,MAAM,oCAAoC,CAAC;AAY5C,iBAAS,UAAU,CAAC,KAAK,EAAE,kCAAkC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/blocks/hero/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAEV,kCAAkC,EACnC,MAAM,oCAAoC,CAAC;AAY5C,iBAAS,UAAU,CAAC,KAAK,EAAE,kCAAkC,+BAwC5D;AAED,eAAe,UAAU,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { Blocks_InstallStrip_Index_BlocksInstallStrip_Props } from '../../types/blocks/install-strip/index.d.ts';
|
|
2
|
-
declare function BlocksInstallStrip(props: Blocks_InstallStrip_Index_BlocksInstallStrip_Props): import("react
|
|
2
|
+
declare function BlocksInstallStrip(props: Blocks_InstallStrip_Index_BlocksInstallStrip_Props): import("react").JSX.Element;
|
|
3
3
|
export default BlocksInstallStrip;
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/blocks/install-strip/index.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAQV,kDAAkD,EAInD,MAAM,6CAA6C,CAAC;AAarD,iBAAS,kBAAkB,CAAC,KAAK,EAAE,kDAAkD
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/blocks/install-strip/index.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAQV,kDAAkD,EAInD,MAAM,6CAA6C,CAAC;AAarD,iBAAS,kBAAkB,CAAC,KAAK,EAAE,kDAAkD,+BA2KpF;AAED,eAAe,kBAAkB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { Blocks_Spotlight_Index_BlocksSpotlight_Props } from '../../types/blocks/spotlight/index.d.ts';
|
|
2
|
-
declare function BlocksSpotlight(props: Blocks_Spotlight_Index_BlocksSpotlight_Props): import("react
|
|
2
|
+
declare function BlocksSpotlight(props: Blocks_Spotlight_Index_BlocksSpotlight_Props): import("react").JSX.Element;
|
|
3
3
|
export default BlocksSpotlight;
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/blocks/spotlight/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,4CAA4C,EAAE,MAAM,yCAAyC,CAAC;AAa5G,iBAAS,eAAe,CAAC,KAAK,EAAE,4CAA4C
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/blocks/spotlight/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,4CAA4C,EAAE,MAAM,yCAAyC,CAAC;AAa5G,iBAAS,eAAe,CAAC,KAAK,EAAE,4CAA4C,+BAyB3E;AAED,eAAe,eAAe,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { Blocks_Stats_Index_BlocksStats_Props } from '../../types/blocks/stats/index.d.ts';
|
|
2
|
-
declare function BlocksStats(props: Blocks_Stats_Index_BlocksStats_Props): import("react
|
|
2
|
+
declare function BlocksStats(props: Blocks_Stats_Index_BlocksStats_Props): import("react").JSX.Element;
|
|
3
3
|
export default BlocksStats;
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/blocks/stats/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oCAAoC,EAAE,MAAM,qCAAqC,CAAC;AAahG,iBAAS,WAAW,CAAC,KAAK,EAAE,oCAAoC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/blocks/stats/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oCAAoC,EAAE,MAAM,qCAAqC,CAAC;AAahG,iBAAS,WAAW,CAAC,KAAK,EAAE,oCAAoC,+BA6E/D;AAED,eAAe,WAAW,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { Blocks_Terminology_Index_BlocksTerminology_Props } from '../../types/blocks/terminology/index.d.ts';
|
|
2
|
-
declare function BlocksTerminology(props: Blocks_Terminology_Index_BlocksTerminology_Props): import("react
|
|
2
|
+
declare function BlocksTerminology(props: Blocks_Terminology_Index_BlocksTerminology_Props): import("react").JSX.Element;
|
|
3
3
|
export default BlocksTerminology;
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/blocks/terminology/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAEV,gDAAgD,EACjD,MAAM,2CAA2C,CAAC;AAanD,iBAAS,iBAAiB,CAAC,KAAK,EAAE,gDAAgD
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/blocks/terminology/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAEV,gDAAgD,EACjD,MAAM,2CAA2C,CAAC;AAanD,iBAAS,iBAAiB,CAAC,KAAK,EAAE,gDAAgD,+BA2BjF;AAED,eAAe,iBAAiB,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Blocks_Typewriter_Index_BlocksTypewriter_PrefixProps, Blocks_Typewriter_Index_BlocksTypewriter_Props, Blocks_Typewriter_Index_BlocksTypewriter_WordProps } from '../../types/blocks/typewriter/index.d.ts';
|
|
2
|
-
declare function BlocksTypewriterPrefix(props: Blocks_Typewriter_Index_BlocksTypewriter_PrefixProps): import("react
|
|
2
|
+
declare function BlocksTypewriterPrefix(props: Blocks_Typewriter_Index_BlocksTypewriter_PrefixProps): import("react").JSX.Element;
|
|
3
3
|
declare function BlocksTypewriterWord(_props: Blocks_Typewriter_Index_BlocksTypewriter_WordProps): null;
|
|
4
|
-
declare function BlocksTypewriter(props: Blocks_Typewriter_Index_BlocksTypewriter_Props): import("react
|
|
4
|
+
declare function BlocksTypewriter(props: Blocks_Typewriter_Index_BlocksTypewriter_Props): import("react").JSX.Element;
|
|
5
5
|
declare namespace BlocksTypewriter {
|
|
6
6
|
var Prefix: typeof BlocksTypewriterPrefix;
|
|
7
7
|
var Word: typeof BlocksTypewriterWord;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/blocks/typewriter/index.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAaV,oDAAoD,EACpD,8CAA8C,EAU9C,kDAAkD,EAEnD,MAAM,0CAA0C,CAAC;AAYlD,iBAAS,sBAAsB,CAAC,KAAK,EAAE,oDAAoD
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/blocks/typewriter/index.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAaV,oDAAoD,EACpD,8CAA8C,EAU9C,kDAAkD,EAEnD,MAAM,0CAA0C,CAAC;AAYlD,iBAAS,sBAAsB,CAAC,KAAK,EAAE,oDAAoD,+BAS1F;AAaD,iBAAS,oBAAoB,CAAC,MAAM,EAAE,kDAAkD,QAEvF;AAaD,iBAAS,gBAAgB,CAAC,KAAK,EAAE,8CAA8C,+BA0H9E;kBA1HQ,gBAAgB;;;;AA+HzB,eAAe,gBAAgB,CAAC"}
|
|
@@ -1,35 +1,31 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const report_js_1 = require("../../lib/i18n/report.js");
|
|
7
|
-
const site_context_js_1 = require("../../lib/i18n/site-context.js");
|
|
8
|
-
class Runner {
|
|
1
|
+
import { Logger } from '@cbnventures/nova/toolkit';
|
|
2
|
+
import { Runner as ApplyPlan } from '../../lib/i18n/apply-plan.js';
|
|
3
|
+
import { Runner as Report } from '../../lib/i18n/report.js';
|
|
4
|
+
import { Runner as SiteContext } from '../../lib/i18n/site-context.js';
|
|
5
|
+
export class Runner {
|
|
9
6
|
static async run(options) {
|
|
10
7
|
const locale = options['locale'];
|
|
11
8
|
let gather = undefined;
|
|
12
9
|
try {
|
|
13
|
-
gather = await
|
|
10
|
+
gather = await SiteContext.gather({ locale });
|
|
14
11
|
}
|
|
15
12
|
catch (error) {
|
|
16
13
|
const gatherError = error;
|
|
17
14
|
const message = (gatherError instanceof Error) ? gatherError.message : String(gatherError);
|
|
18
|
-
|
|
15
|
+
Logger.error(message);
|
|
19
16
|
process.exitCode = 2;
|
|
20
17
|
return;
|
|
21
18
|
}
|
|
22
|
-
const plan =
|
|
23
|
-
const drift =
|
|
19
|
+
const plan = ApplyPlan.build(gather);
|
|
20
|
+
const drift = ApplyPlan.hasDrift(plan);
|
|
24
21
|
if (drift === true) {
|
|
25
|
-
|
|
26
|
-
|
|
22
|
+
Report.print(plan);
|
|
23
|
+
Logger.error('Translation tree is out of sync. Run "theme-nova i18n sync" to reconcile.');
|
|
27
24
|
process.exitCode = 1;
|
|
28
25
|
return;
|
|
29
26
|
}
|
|
30
|
-
|
|
27
|
+
Logger.info('Translation tree is in sync.');
|
|
31
28
|
return;
|
|
32
29
|
}
|
|
33
30
|
}
|
|
34
|
-
exports.Runner = Runner;
|
|
35
31
|
//# sourceMappingURL=check.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check.js","sourceRoot":"","sources":["../../../../src/cli/i18n/check.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"check.js","sourceRoot":"","sources":["../../../../src/cli/i18n/check.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAC;AAEnD,OAAO,EAAE,MAAM,IAAI,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,MAAM,IAAI,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,MAAM,IAAI,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAsBvE,MAAM,OAAO,MAAM;IAaV,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,OAA0C;QAChE,MAAM,MAAM,GAAqC,OAAO,CAAC,QAAQ,CAAC,CAAC;QAEnE,IAAI,MAAM,GAAqC,SAAS,CAAC;QAGzD,IAAI,CAAC;YACH,MAAM,GAAG,MAAM,WAAW,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC;QAChD,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,MAAM,WAAW,GAA0C,KAAK,CAAC;YACjE,MAAM,OAAO,GAAsC,CAAC,WAAW,YAAY,KAAK,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;YAE9H,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;YAEtB,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAC;YAErB,OAAO;QACT,CAAC;QAED,MAAM,IAAI,GAAmC,SAAS,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QACrE,MAAM,KAAK,GAAoC,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QAExE,IAAI,KAAK,KAAK,IAAI,EAAE,CAAC;YACnB,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;YAEnB,MAAM,CAAC,KAAK,CAAC,2EAA2E,CAAC,CAAC;YAE1F,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAC;YAErB,OAAO;QACT,CAAC;QAED,MAAM,CAAC,IAAI,CAAC,8BAA8B,CAAC,CAAC;QAE5C,OAAO;IACT,CAAC;CACF"}
|
|
@@ -1,16 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
};
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
const chalk_1 = __importDefault(require("chalk"));
|
|
9
|
-
const apply_plan_js_1 = require("../../lib/i18n/apply-plan.js");
|
|
10
|
-
const content_scan_js_1 = require("../../lib/i18n/content-scan.js");
|
|
11
|
-
const coverage_js_1 = require("../../lib/i18n/coverage.js");
|
|
12
|
-
const site_context_js_1 = require("../../lib/i18n/site-context.js");
|
|
13
|
-
class Runner {
|
|
1
|
+
import { Logger, MarkdownTable } from '@cbnventures/nova/toolkit';
|
|
2
|
+
import chalk from 'chalk';
|
|
3
|
+
import { Runner as ApplyPlan } from '../../lib/i18n/apply-plan.js';
|
|
4
|
+
import { Runner as ContentScan } from '../../lib/i18n/content-scan.js';
|
|
5
|
+
import { Runner as Coverage } from '../../lib/i18n/coverage.js';
|
|
6
|
+
import { Runner as SiteContext } from '../../lib/i18n/site-context.js';
|
|
7
|
+
export class Runner {
|
|
14
8
|
static async run(options) {
|
|
15
9
|
const requestedLocale = options['locale'];
|
|
16
10
|
const showGaps = options['gaps'] === true;
|
|
@@ -21,7 +15,7 @@ class Runner {
|
|
|
21
15
|
if (Number.isFinite(parsed) === false
|
|
22
16
|
|| parsed < 0
|
|
23
17
|
|| parsed > 100) {
|
|
24
|
-
|
|
18
|
+
Logger.error(`Invalid --min-coverage "${minCoverageRaw}". Provide a number between 0 and 100.`);
|
|
25
19
|
process.exitCode = 2;
|
|
26
20
|
return;
|
|
27
21
|
}
|
|
@@ -29,34 +23,34 @@ class Runner {
|
|
|
29
23
|
}
|
|
30
24
|
let gather = undefined;
|
|
31
25
|
try {
|
|
32
|
-
gather = await
|
|
26
|
+
gather = await SiteContext.gather({ locale: undefined });
|
|
33
27
|
}
|
|
34
28
|
catch (error) {
|
|
35
29
|
const gatherError = error;
|
|
36
30
|
const message = (gatherError instanceof Error) ? gatherError.message : String(gatherError);
|
|
37
|
-
|
|
31
|
+
Logger.error(message);
|
|
38
32
|
process.exitCode = 2;
|
|
39
33
|
return;
|
|
40
34
|
}
|
|
41
|
-
const plan =
|
|
35
|
+
const plan = ApplyPlan.build(gather);
|
|
42
36
|
const universe = gather['liveSiteKeys'];
|
|
43
37
|
let scan = undefined;
|
|
44
38
|
try {
|
|
45
|
-
scan = await
|
|
39
|
+
scan = await ContentScan.scan({ locale: undefined });
|
|
46
40
|
}
|
|
47
41
|
catch (error) {
|
|
48
42
|
const scanError = error;
|
|
49
43
|
const scanMessage = (scanError instanceof Error) ? scanError.message : String(scanError);
|
|
50
|
-
|
|
44
|
+
Logger.error(scanMessage);
|
|
51
45
|
process.exitCode = 2;
|
|
52
46
|
return;
|
|
53
47
|
}
|
|
54
|
-
let reportLocales =
|
|
55
|
-
json:
|
|
48
|
+
let reportLocales = Coverage.combine({
|
|
49
|
+
json: Coverage.computeJson({
|
|
56
50
|
universe,
|
|
57
51
|
perLocale: Runner.deriveLocales(gather, plan),
|
|
58
52
|
}),
|
|
59
|
-
content:
|
|
53
|
+
content: Coverage.computeContent({
|
|
60
54
|
sources: scan['sources'],
|
|
61
55
|
perLocale: scan['perLocale'],
|
|
62
56
|
}),
|
|
@@ -64,7 +58,7 @@ class Runner {
|
|
|
64
58
|
if (requestedLocale !== undefined) {
|
|
65
59
|
reportLocales = reportLocales.filter((entry) => entry['locale'] === requestedLocale);
|
|
66
60
|
if (reportLocales.length === 0) {
|
|
67
|
-
|
|
61
|
+
Logger.error(`Unknown locale "${requestedLocale}".`);
|
|
68
62
|
process.exitCode = 2;
|
|
69
63
|
return;
|
|
70
64
|
}
|
|
@@ -75,14 +69,14 @@ class Runner {
|
|
|
75
69
|
const threshold = minCoverage;
|
|
76
70
|
const below = nonDefault.filter((entry) => entry['percent'] < threshold);
|
|
77
71
|
if (below.length > 0) {
|
|
78
|
-
|
|
72
|
+
Logger.error(`${below.length} locale(s) below ${threshold}% coverage: ${below.map((entry) => `${entry['locale']} (${entry['percent']}%)`).join(', ')}. Run "theme-nova i18n coverage --gaps" to list what is missing.`);
|
|
79
73
|
process.exitCode = 1;
|
|
80
74
|
return;
|
|
81
75
|
}
|
|
82
|
-
|
|
76
|
+
Logger.info(`All ${nonDefault.length} locale(s) meet the ${threshold}% coverage threshold.`);
|
|
83
77
|
return;
|
|
84
78
|
}
|
|
85
|
-
|
|
79
|
+
Logger.info(`Coverage computed for ${nonDefault.length} locale(s).`);
|
|
86
80
|
return;
|
|
87
81
|
}
|
|
88
82
|
static deriveLocales(gather, plan) {
|
|
@@ -107,7 +101,7 @@ class Runner {
|
|
|
107
101
|
return perLocale;
|
|
108
102
|
}
|
|
109
103
|
static render(locales, showGaps) {
|
|
110
|
-
const table = new
|
|
104
|
+
const table = new MarkdownTable([
|
|
111
105
|
'Locale',
|
|
112
106
|
'Coverage',
|
|
113
107
|
'Strings',
|
|
@@ -123,7 +117,7 @@ class Runner {
|
|
|
123
117
|
});
|
|
124
118
|
for (const entry of sorted) {
|
|
125
119
|
const localeLabel = (entry['isDefaultLocale'] === true) ? `${entry['locale']} (source)` : entry['locale'];
|
|
126
|
-
const coverageCell = (entry['isDefaultLocale'] === true) ?
|
|
120
|
+
const coverageCell = (entry['isDefaultLocale'] === true) ? chalk.dim('--') : Runner.formatPercent(entry['percent']);
|
|
127
121
|
const stringsCell = `${entry['jsonTranslated']}/${entry['jsonTotal']}`;
|
|
128
122
|
const contentCell = `${entry['contentPresent']}/${entry['contentTotal']}`;
|
|
129
123
|
const toTranslate = (entry['isDefaultLocale'] === true) ? '0' : String(entry['definiteGaps'].length + entry['missingContent'].length);
|
|
@@ -149,13 +143,13 @@ class Runner {
|
|
|
149
143
|
continue;
|
|
150
144
|
}
|
|
151
145
|
for (const key of entry['definiteGaps']) {
|
|
152
|
-
|
|
146
|
+
Logger.customize({
|
|
153
147
|
name: entry['locale'],
|
|
154
148
|
purpose: 'gaps',
|
|
155
149
|
}).warn(`string "${key}"`);
|
|
156
150
|
}
|
|
157
151
|
for (const file of entry['missingContent']) {
|
|
158
|
-
|
|
152
|
+
Logger.customize({
|
|
159
153
|
name: entry['locale'],
|
|
160
154
|
purpose: 'gaps',
|
|
161
155
|
}).warn(`content "${file}"`);
|
|
@@ -166,13 +160,12 @@ class Runner {
|
|
|
166
160
|
static formatPercent(percent) {
|
|
167
161
|
const label = `${percent}%`;
|
|
168
162
|
if (percent >= 90) {
|
|
169
|
-
return
|
|
163
|
+
return chalk.green(label);
|
|
170
164
|
}
|
|
171
165
|
if (percent >= 50) {
|
|
172
|
-
return
|
|
166
|
+
return chalk.yellow(label);
|
|
173
167
|
}
|
|
174
|
-
return
|
|
168
|
+
return chalk.red(label);
|
|
175
169
|
}
|
|
176
170
|
}
|
|
177
|
-
exports.Runner = Runner;
|
|
178
171
|
//# sourceMappingURL=coverage.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coverage.js","sourceRoot":"","sources":["../../../../src/cli/i18n/coverage.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"coverage.js","sourceRoot":"","sources":["../../../../src/cli/i18n/coverage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,MAAM,IAAI,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,MA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;QAE1E,IAAI,OAAO,IAAI,EAAE,EAAE,CAAC;YAClB,OAAO,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QAC5B,CAAC;QAED,IAAI,OAAO,IAAI,EAAE,EAAE,CAAC;YAClB,OAAO,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QAC7B,CAAC;QAED,OAAO,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IAC1B,CAAC;CACF"}
|
|
@@ -1,53 +1,49 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const report_js_1 = require("../../lib/i18n/report.js");
|
|
8
|
-
const site_context_js_1 = require("../../lib/i18n/site-context.js");
|
|
9
|
-
class Runner {
|
|
1
|
+
import { Logger } from '@cbnventures/nova/toolkit';
|
|
2
|
+
import { Runner as ApplyPlan } from '../../lib/i18n/apply-plan.js';
|
|
3
|
+
import { Runner as Prompt } from '../../lib/i18n/prompt.js';
|
|
4
|
+
import { Runner as Report } from '../../lib/i18n/report.js';
|
|
5
|
+
import { Runner as SiteContext } from '../../lib/i18n/site-context.js';
|
|
6
|
+
export class Runner {
|
|
10
7
|
static async run(options) {
|
|
11
8
|
const dryRun = options['dryRun'] === true;
|
|
12
9
|
const deleteDefunct = options['deleteDefunct'] === true;
|
|
13
10
|
const locale = options['locale'];
|
|
14
11
|
let gather = undefined;
|
|
15
12
|
try {
|
|
16
|
-
gather = await
|
|
13
|
+
gather = await SiteContext.gather({ locale });
|
|
17
14
|
}
|
|
18
15
|
catch (error) {
|
|
19
16
|
const gatherError = error;
|
|
20
17
|
const message = (gatherError instanceof Error) ? gatherError.message : String(gatherError);
|
|
21
|
-
|
|
18
|
+
Logger.error(message);
|
|
22
19
|
process.exitCode = 2;
|
|
23
20
|
return;
|
|
24
21
|
}
|
|
25
|
-
const plan =
|
|
26
|
-
|
|
22
|
+
const plan = ApplyPlan.build(gather);
|
|
23
|
+
Report.print(plan);
|
|
27
24
|
if (dryRun === true) {
|
|
28
|
-
|
|
25
|
+
Logger.info('Dry run enabled. No files were written.');
|
|
29
26
|
return;
|
|
30
27
|
}
|
|
31
|
-
const interactive =
|
|
32
|
-
const result = await
|
|
28
|
+
const interactive = Prompt.isInteractive();
|
|
29
|
+
const result = await ApplyPlan.apply(plan, {
|
|
33
30
|
dryRun: false,
|
|
34
31
|
deleteDefunct,
|
|
35
32
|
interactive,
|
|
36
|
-
confirm:
|
|
33
|
+
confirm: Prompt['confirmBatch'],
|
|
37
34
|
});
|
|
38
35
|
if (result['blocked'] === true) {
|
|
39
|
-
|
|
36
|
+
Logger.error('Orphaned translation keys detected. Re-run with --delete-defunct to remove them, or restore them in your source.');
|
|
40
37
|
process.exitCode = 1;
|
|
41
38
|
return;
|
|
42
39
|
}
|
|
43
40
|
if (result['cancelled'] === true) {
|
|
44
|
-
|
|
41
|
+
Logger.warn('Reconciliation cancelled. No files were written.');
|
|
45
42
|
process.exitCode = 1;
|
|
46
43
|
return;
|
|
47
44
|
}
|
|
48
|
-
|
|
45
|
+
Logger.info(`Reconciled i18n tree. ${result['written'].length} written, ${result['removed'].length} removed.`);
|
|
49
46
|
return;
|
|
50
47
|
}
|
|
51
48
|
}
|
|
52
|
-
exports.Runner = Runner;
|
|
53
49
|
//# sourceMappingURL=sync.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sync.js","sourceRoot":"","sources":["../../../../src/cli/i18n/sync.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sync.js","sourceRoot":"","sources":["../../../../src/cli/i18n/sync.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAC;AAEnD,OAAO,EAAE,MAAM,IAAI,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,MAAM,IAAI,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,MAAM,IA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