svelte-docsmith 0.5.1 → 0.7.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/README.md +6 -2
- package/dist/{markdown-layout.svelte → buildtime/markdown-layout.svelte} +1 -1
- package/dist/{markdown-layout.svelte.d.ts → buildtime/markdown-layout.svelte.d.ts} +2 -2
- package/dist/{vite.d.ts → buildtime/vite/collect.d.ts} +5 -23
- package/dist/buildtime/vite/collect.js +101 -0
- package/dist/buildtime/vite/extract.d.ts +30 -0
- package/dist/buildtime/vite/extract.js +104 -0
- package/dist/buildtime/vite/frontmatter.d.ts +6 -0
- package/dist/buildtime/vite/frontmatter.js +20 -0
- package/dist/buildtime/vite/git.d.ts +2 -0
- package/dist/buildtime/vite/git.js +11 -0
- package/dist/buildtime/vite/index.d.ts +25 -0
- package/dist/buildtime/vite/index.js +141 -0
- package/dist/buildtime/vite/pages.d.ts +6 -0
- package/dist/buildtime/vite/pages.js +23 -0
- package/dist/{ui → components/chrome}/copy-button.svelte +1 -1
- package/dist/{ui → components/chrome}/search-trigger.svelte +1 -1
- package/dist/{ui → components/chrome}/search.svelte +5 -5
- package/dist/{ui → components/chrome}/search.svelte.d.ts +1 -1
- package/dist/{ui → components/chrome}/table-of-contents.svelte +2 -2
- package/dist/{ui → components/chrome}/table-of-contents.svelte.d.ts +1 -1
- package/dist/{ui → components/chrome}/theme-toggle.svelte +1 -1
- package/dist/{ui → components/docs}/accordion-item.svelte +1 -1
- package/dist/{ui → components/docs}/accordion.svelte +1 -1
- package/dist/{ui → components/docs}/badge.svelte +1 -1
- package/dist/{ui → components/docs}/live-example.svelte +3 -3
- package/dist/{ui → components/docs}/tab-item.svelte +1 -1
- package/dist/{ui → components/docs}/tabs.svelte +1 -1
- package/dist/{ui → components}/layouts/docs-footer.svelte +1 -1
- package/dist/{ui → components}/layouts/docs-footer.svelte.d.ts +1 -1
- package/dist/{ui → components}/layouts/docs-header.svelte +3 -3
- package/dist/{ui → components}/layouts/docs-header.svelte.d.ts +1 -1
- package/dist/{ui → components}/layouts/docs-mobile-header.svelte +3 -3
- package/dist/{ui → components}/layouts/docs-mobile-header.svelte.d.ts +1 -1
- package/dist/{ui → components}/layouts/docs-shell.svelte +44 -10
- package/dist/{ui → components}/layouts/docs-shell.svelte.d.ts +12 -1
- package/dist/{ui → components}/layouts/docs-sidebar.svelte +3 -3
- package/dist/{ui → components}/layouts/docs-sidebar.svelte.d.ts +1 -1
- package/dist/{ui → components}/layouts/error-page.svelte +1 -1
- package/dist/{ui → components}/layouts/error-page.svelte.d.ts +1 -1
- package/dist/components/layouts/page-feedback.svelte +51 -0
- package/dist/components/layouts/page-feedback.svelte.d.ts +9 -0
- package/dist/{ui → components}/layouts/prev-next-nav.svelte +1 -1
- package/dist/{ui → components}/layouts/prev-next-nav.svelte.d.ts +1 -1
- package/dist/{ui → components}/layouts/seo-head.svelte +2 -2
- package/dist/{ui → components}/layouts/seo-head.svelte.d.ts +1 -1
- package/dist/{ui → components}/markdown/pre.svelte +2 -2
- package/dist/{ui → components}/markdown/types.d.ts +1 -1
- package/dist/{ui → components}/shadcn/accordion/accordion-content.svelte +1 -1
- package/dist/{ui → components}/shadcn/accordion/accordion-item.svelte +1 -1
- package/dist/{ui → components}/shadcn/accordion/accordion-trigger.svelte +1 -1
- package/dist/{ui → components}/shadcn/accordion/accordion-trigger.svelte.d.ts +1 -1
- package/dist/{ui → components}/shadcn/accordion/accordion.svelte +1 -1
- package/dist/{ui → components}/shadcn/badge/badge.svelte +1 -1
- package/dist/{ui → components}/shadcn/badge/badge.svelte.d.ts +1 -1
- package/dist/{ui → components}/shadcn/button/button.svelte +1 -1
- package/dist/{ui → components}/shadcn/button/button.svelte.d.ts +1 -1
- package/dist/{ui → components}/shadcn/command/command-dialog.svelte +1 -1
- package/dist/{ui → components}/shadcn/command/command-dialog.svelte.d.ts +1 -1
- package/dist/{ui → components}/shadcn/command/command-empty.svelte +1 -1
- package/dist/{ui → components}/shadcn/command/command-group.svelte +1 -1
- package/dist/{ui → components}/shadcn/command/command-input.svelte +1 -1
- package/dist/{ui → components}/shadcn/command/command-item.svelte +1 -1
- package/dist/{ui → components}/shadcn/command/command-link-item.svelte +1 -1
- package/dist/{ui → components}/shadcn/command/command-list.svelte +1 -1
- package/dist/{ui → components}/shadcn/command/command-separator.svelte +1 -1
- package/dist/{ui → components}/shadcn/command/command-shortcut.svelte +1 -1
- package/dist/{ui → components}/shadcn/command/command-shortcut.svelte.d.ts +1 -1
- package/dist/{ui → components}/shadcn/command/command.svelte +1 -1
- package/dist/{ui → components}/shadcn/dialog/dialog-content.svelte +1 -1
- package/dist/{ui → components}/shadcn/dialog/dialog-content.svelte.d.ts +1 -1
- package/dist/{ui → components}/shadcn/dialog/dialog-description.svelte +1 -1
- package/dist/{ui → components}/shadcn/dialog/dialog-footer.svelte +1 -1
- package/dist/{ui → components}/shadcn/dialog/dialog-footer.svelte.d.ts +1 -1
- package/dist/{ui → components}/shadcn/dialog/dialog-header.svelte +1 -1
- package/dist/{ui → components}/shadcn/dialog/dialog-header.svelte.d.ts +1 -1
- package/dist/{ui → components}/shadcn/dialog/dialog-overlay.svelte +1 -1
- package/dist/{ui → components}/shadcn/dialog/dialog-title.svelte +1 -1
- package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-checkbox-item.svelte +1 -1
- package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-checkbox-item.svelte.d.ts +1 -1
- package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-content.svelte +1 -1
- package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-content.svelte.d.ts +1 -1
- package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-group-heading.svelte +1 -1
- package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-item.svelte +1 -1
- package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-label.svelte +1 -1
- package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-label.svelte.d.ts +1 -1
- package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-radio-item.svelte +1 -1
- package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-separator.svelte +1 -1
- package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-shortcut.svelte +1 -1
- package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-shortcut.svelte.d.ts +1 -1
- package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-sub-content.svelte +1 -1
- package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-sub-trigger.svelte +1 -1
- package/dist/{ui → components}/shadcn/input/input.svelte +1 -1
- package/dist/{ui → components}/shadcn/input/input.svelte.d.ts +1 -1
- package/dist/{ui → components}/shadcn/input-group/input-group-addon.svelte +1 -1
- package/dist/{ui → components}/shadcn/input-group/input-group-addon.svelte.d.ts +1 -1
- package/dist/{ui → components}/shadcn/input-group/input-group-button.svelte +1 -1
- package/dist/{ui → components}/shadcn/input-group/input-group-input.svelte +1 -1
- package/dist/{ui → components}/shadcn/input-group/input-group-input.svelte.d.ts +1 -1
- package/dist/{ui → components}/shadcn/input-group/input-group-text.svelte +1 -1
- package/dist/{ui → components}/shadcn/input-group/input-group-text.svelte.d.ts +1 -1
- package/dist/{ui → components}/shadcn/input-group/input-group-textarea.svelte +1 -1
- package/dist/{ui → components}/shadcn/input-group/input-group-textarea.svelte.d.ts +1 -1
- package/dist/{ui → components}/shadcn/input-group/input-group.svelte +1 -1
- package/dist/{ui → components}/shadcn/input-group/input-group.svelte.d.ts +1 -1
- package/dist/{ui → components}/shadcn/popover/popover-content.svelte +1 -1
- package/dist/{ui → components}/shadcn/popover/popover-content.svelte.d.ts +1 -1
- package/dist/{ui → components}/shadcn/popover/popover-description.svelte +1 -1
- package/dist/{ui → components}/shadcn/popover/popover-description.svelte.d.ts +1 -1
- package/dist/{ui → components}/shadcn/popover/popover-header.svelte +1 -1
- package/dist/{ui → components}/shadcn/popover/popover-header.svelte.d.ts +1 -1
- package/dist/{ui → components}/shadcn/popover/popover-title.svelte +1 -1
- package/dist/{ui → components}/shadcn/popover/popover-title.svelte.d.ts +1 -1
- package/dist/{ui → components}/shadcn/popover/popover-trigger.svelte +1 -1
- package/dist/{ui → components}/shadcn/scroll-area/scroll-area-scrollbar.svelte +1 -1
- package/dist/{ui → components}/shadcn/scroll-area/scroll-area.svelte +1 -1
- package/dist/{ui → components}/shadcn/scroll-area/scroll-area.svelte.d.ts +1 -1
- package/dist/{ui → components}/shadcn/separator/separator.svelte +1 -1
- package/dist/{ui → components}/shadcn/sheet/sheet-content.svelte +1 -1
- package/dist/{ui → components}/shadcn/sheet/sheet-content.svelte.d.ts +1 -1
- package/dist/{ui → components}/shadcn/sheet/sheet-description.svelte +1 -1
- package/dist/{ui → components}/shadcn/sheet/sheet-footer.svelte +1 -1
- package/dist/{ui → components}/shadcn/sheet/sheet-footer.svelte.d.ts +1 -1
- package/dist/{ui → components}/shadcn/sheet/sheet-header.svelte +1 -1
- package/dist/{ui → components}/shadcn/sheet/sheet-header.svelte.d.ts +1 -1
- package/dist/{ui → components}/shadcn/sheet/sheet-overlay.svelte +1 -1
- package/dist/{ui → components}/shadcn/sheet/sheet-title.svelte +1 -1
- package/dist/{ui → components}/shadcn/tabs/tabs-content.svelte +1 -1
- package/dist/{ui → components}/shadcn/tabs/tabs-list.svelte +1 -1
- package/dist/{ui → components}/shadcn/tabs/tabs-trigger.svelte +1 -1
- package/dist/{ui → components}/shadcn/tabs/tabs.svelte +1 -1
- package/dist/{ui → components}/shadcn/textarea/textarea.svelte +1 -1
- package/dist/{ui → components}/shadcn/textarea/textarea.svelte.d.ts +1 -1
- package/dist/core/config.d.ts +65 -0
- package/dist/{config.js → core/config.js} +0 -22
- package/dist/core/content.d.ts +68 -0
- package/dist/core/content.js +7 -0
- package/dist/core/index.d.ts +3 -0
- package/dist/core/index.js +6 -0
- package/dist/core/nav.d.ts +17 -0
- package/dist/core/nav.js +22 -0
- package/dist/{content.d.ts → fallbacks/content.d.ts} +3 -3
- package/dist/fallbacks/content.js +3 -0
- package/dist/{llms.d.ts → fallbacks/llms.d.ts} +2 -3
- package/dist/fallbacks/llms.js +3 -0
- package/dist/fallbacks/missing-plugin.d.ts +7 -0
- package/dist/fallbacks/missing-plugin.js +11 -0
- package/dist/{search.d.ts → fallbacks/search.d.ts} +3 -3
- package/dist/fallbacks/search.js +3 -0
- package/dist/{generate-llms.d.ts → generate/llms.d.ts} +1 -1
- package/dist/index.d.ts +23 -23
- package/dist/index.js +24 -24
- package/dist/search/create-search.d.ts +1 -1
- package/dist/theme.css +57 -57
- package/dist/themes/darkmatter.css +6 -4
- package/dist/themes/tangerine.css +3 -6
- package/package.json +21 -13
- package/dist/config.d.ts +0 -141
- package/dist/content.js +0 -4
- package/dist/llms.js +0 -4
- package/dist/search.js +0 -4
- package/dist/vite.js +0 -366
- /package/dist/{highlight.d.ts → buildtime/highlight.d.ts} +0 -0
- /package/dist/{highlight.js → buildtime/highlight.js} +0 -0
- /package/dist/{preprocess.d.ts → buildtime/preprocess.d.ts} +0 -0
- /package/dist/{preprocess.js → buildtime/preprocess.js} +0 -0
- /package/dist/{ui → components/chrome}/background-pattern.svelte +0 -0
- /package/dist/{ui → components/chrome}/background-pattern.svelte.d.ts +0 -0
- /package/dist/{ui → components/chrome}/copy-button.svelte.d.ts +0 -0
- /package/dist/{ui → components/chrome}/search-trigger.svelte.d.ts +0 -0
- /package/dist/{ui → components/chrome}/theme-provider.svelte +0 -0
- /package/dist/{ui → components/chrome}/theme-provider.svelte.d.ts +0 -0
- /package/dist/{ui → components/chrome}/theme-toggle.svelte.d.ts +0 -0
- /package/dist/{ui → components/docs}/accordion-item.svelte.d.ts +0 -0
- /package/dist/{ui → components/docs}/accordion.svelte.d.ts +0 -0
- /package/dist/{ui → components/docs}/badge.svelte.d.ts +0 -0
- /package/dist/{ui → components/docs}/callout.svelte +0 -0
- /package/dist/{ui → components/docs}/callout.svelte.d.ts +0 -0
- /package/dist/{ui → components/docs}/card-grid.svelte +0 -0
- /package/dist/{ui → components/docs}/card-grid.svelte.d.ts +0 -0
- /package/dist/{ui → components/docs}/card.svelte +0 -0
- /package/dist/{ui → components/docs}/card.svelte.d.ts +0 -0
- /package/dist/{ui → components/docs}/file-tree-item.svelte +0 -0
- /package/dist/{ui → components/docs}/file-tree-item.svelte.d.ts +0 -0
- /package/dist/{ui → components/docs}/file-tree.svelte +0 -0
- /package/dist/{ui → components/docs}/file-tree.svelte.d.ts +0 -0
- /package/dist/{ui → components/docs}/kbd.svelte +0 -0
- /package/dist/{ui → components/docs}/kbd.svelte.d.ts +0 -0
- /package/dist/{ui → components/docs}/live-example.svelte.d.ts +0 -0
- /package/dist/{ui → components/docs}/prop.svelte +0 -0
- /package/dist/{ui → components/docs}/prop.svelte.d.ts +0 -0
- /package/dist/{ui → components/docs}/props-table.svelte +0 -0
- /package/dist/{ui → components/docs}/props-table.svelte.d.ts +0 -0
- /package/dist/{ui → components/docs}/step.svelte +0 -0
- /package/dist/{ui → components/docs}/step.svelte.d.ts +0 -0
- /package/dist/{ui → components/docs}/steps.svelte +0 -0
- /package/dist/{ui → components/docs}/steps.svelte.d.ts +0 -0
- /package/dist/{ui → components/docs}/tab-item.svelte.d.ts +0 -0
- /package/dist/{ui → components/docs}/tabs-phase.svelte +0 -0
- /package/dist/{ui → components/docs}/tabs-phase.svelte.d.ts +0 -0
- /package/dist/{ui → components/docs}/tabs.svelte.d.ts +0 -0
- /package/dist/{ui → components}/icons/github.svelte +0 -0
- /package/dist/{ui → components}/icons/github.svelte.d.ts +0 -0
- /package/dist/{ui → components}/layouts/breadcrumbs.svelte +0 -0
- /package/dist/{ui → components}/layouts/breadcrumbs.svelte.d.ts +0 -0
- /package/dist/{ui → components}/layouts/copy-page-menu.svelte +0 -0
- /package/dist/{ui → components}/layouts/copy-page-menu.svelte.d.ts +0 -0
- /package/dist/{ui → components}/markdown/code.svelte +0 -0
- /package/dist/{ui → components}/markdown/code.svelte.d.ts +0 -0
- /package/dist/{ui → components}/markdown/h2.svelte +0 -0
- /package/dist/{ui → components}/markdown/h2.svelte.d.ts +0 -0
- /package/dist/{ui → components}/markdown/h3.svelte +0 -0
- /package/dist/{ui → components}/markdown/h3.svelte.d.ts +0 -0
- /package/dist/{ui → components}/markdown/index.d.ts +0 -0
- /package/dist/{ui → components}/markdown/index.js +0 -0
- /package/dist/{ui → components}/markdown/pre.svelte.d.ts +0 -0
- /package/dist/{ui → components}/markdown/table.svelte +0 -0
- /package/dist/{ui → components}/markdown/table.svelte.d.ts +0 -0
- /package/dist/{types.js → components/markdown/types.js} +0 -0
- /package/dist/{ui → components}/shadcn/accordion/accordion-content.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/accordion/accordion-item.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/accordion/accordion.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/accordion/index.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/accordion/index.js +0 -0
- /package/dist/{ui → components}/shadcn/badge/index.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/badge/index.js +0 -0
- /package/dist/{ui → components}/shadcn/button/index.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/button/index.js +0 -0
- /package/dist/{ui → components}/shadcn/command/command-empty.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/command/command-group.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/command/command-input.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/command/command-item.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/command/command-link-item.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/command/command-list.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/command/command-loading.svelte +0 -0
- /package/dist/{ui → components}/shadcn/command/command-loading.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/command/command-separator.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/command/command.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/command/index.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/command/index.js +0 -0
- /package/dist/{ui → components}/shadcn/dialog/dialog-close.svelte +0 -0
- /package/dist/{ui → components}/shadcn/dialog/dialog-close.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/dialog/dialog-description.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/dialog/dialog-overlay.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/dialog/dialog-portal.svelte +0 -0
- /package/dist/{ui → components}/shadcn/dialog/dialog-portal.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/dialog/dialog-title.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/dialog/dialog-trigger.svelte +0 -0
- /package/dist/{ui → components}/shadcn/dialog/dialog-trigger.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/dialog/dialog.svelte +0 -0
- /package/dist/{ui → components}/shadcn/dialog/dialog.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/dialog/index.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/dialog/index.js +0 -0
- /package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-checkbox-group.svelte +0 -0
- /package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-checkbox-group.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-group-heading.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-group.svelte +0 -0
- /package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-group.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-item.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-portal.svelte +0 -0
- /package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-portal.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-radio-group.svelte +0 -0
- /package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-radio-group.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-radio-item.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-separator.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-sub-content.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-sub-trigger.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-sub.svelte +0 -0
- /package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-sub.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-trigger.svelte +0 -0
- /package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu-trigger.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu.svelte +0 -0
- /package/dist/{ui → components}/shadcn/dropdown-menu/dropdown-menu.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/dropdown-menu/index.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/dropdown-menu/index.js +0 -0
- /package/dist/{ui → components}/shadcn/input/index.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/input/index.js +0 -0
- /package/dist/{ui → components}/shadcn/input-group/index.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/input-group/index.js +0 -0
- /package/dist/{ui → components}/shadcn/input-group/input-group-button.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/popover/index.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/popover/index.js +0 -0
- /package/dist/{ui → components}/shadcn/popover/popover-close.svelte +0 -0
- /package/dist/{ui → components}/shadcn/popover/popover-close.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/popover/popover-portal.svelte +0 -0
- /package/dist/{ui → components}/shadcn/popover/popover-portal.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/popover/popover-trigger.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/popover/popover.svelte +0 -0
- /package/dist/{ui → components}/shadcn/popover/popover.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/scroll-area/index.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/scroll-area/index.js +0 -0
- /package/dist/{ui → components}/shadcn/scroll-area/scroll-area-scrollbar.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/separator/index.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/separator/index.js +0 -0
- /package/dist/{ui → components}/shadcn/separator/separator.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/sheet/index.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/sheet/index.js +0 -0
- /package/dist/{ui → components}/shadcn/sheet/sheet-close.svelte +0 -0
- /package/dist/{ui → components}/shadcn/sheet/sheet-close.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/sheet/sheet-description.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/sheet/sheet-overlay.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/sheet/sheet-portal.svelte +0 -0
- /package/dist/{ui → components}/shadcn/sheet/sheet-portal.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/sheet/sheet-title.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/sheet/sheet-trigger.svelte +0 -0
- /package/dist/{ui → components}/shadcn/sheet/sheet-trigger.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/sheet/sheet.svelte +0 -0
- /package/dist/{ui → components}/shadcn/sheet/sheet.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/tabs/index.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/tabs/index.js +0 -0
- /package/dist/{ui → components}/shadcn/tabs/tabs-content.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/tabs/tabs-list.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/tabs/tabs-trigger.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/tabs/tabs.svelte.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/textarea/index.d.ts +0 -0
- /package/dist/{ui → components}/shadcn/textarea/index.js +0 -0
- /package/dist/{generate-llms.js → generate/llms.js} +0 -0
- /package/dist/{sitemap.d.ts → generate/sitemap.d.ts} +0 -0
- /package/dist/{sitemap.js → generate/sitemap.js} +0 -0
- /package/dist/{clipboard.svelte.d.ts → utils/clipboard.svelte.d.ts} +0 -0
- /package/dist/{clipboard.svelte.js → utils/clipboard.svelte.js} +0 -0
- /package/dist/{shadcn.d.ts → utils/cn.d.ts} +0 -0
- /package/dist/{shadcn.js → utils/cn.js} +0 -0
- /package/dist/{normalize-path.d.ts → utils/normalize-path.d.ts} +0 -0
- /package/dist/{normalize-path.js → utils/normalize-path.js} +0 -0
- /package/dist/{types.d.ts → utils/types.d.ts} +0 -0
- /package/dist/{ui/markdown → utils}/types.js +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { HTMLAttributes } from 'svelte/elements';
|
|
2
|
-
import { type WithElementRef } from '../../../
|
|
2
|
+
import { type WithElementRef } from '../../../utils/cn.js';
|
|
3
3
|
declare const DialogHeader: import("svelte").Component<WithElementRef<HTMLAttributes<HTMLDivElement>>, {}, "ref">;
|
|
4
4
|
type DialogHeader = ReturnType<typeof DialogHeader>;
|
|
5
5
|
export default DialogHeader;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { DropdownMenu as DropdownMenuPrimitive } from 'bits-ui';
|
|
3
3
|
import MinusIcon from '@lucide/svelte/icons/minus';
|
|
4
4
|
import CheckIcon from '@lucide/svelte/icons/check';
|
|
5
|
-
import { cn, type WithoutChildrenOrChild } from '../../../
|
|
5
|
+
import { cn, type WithoutChildrenOrChild } from '../../../utils/cn.js';
|
|
6
6
|
import type { Snippet } from 'svelte';
|
|
7
7
|
|
|
8
8
|
let {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DropdownMenu as DropdownMenuPrimitive } from 'bits-ui';
|
|
2
|
-
import { type WithoutChildrenOrChild } from '../../../
|
|
2
|
+
import { type WithoutChildrenOrChild } from '../../../utils/cn.js';
|
|
3
3
|
import type { Snippet } from 'svelte';
|
|
4
4
|
type $$ComponentProps = WithoutChildrenOrChild<DropdownMenuPrimitive.CheckboxItemProps> & {
|
|
5
5
|
children?: Snippet;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import { cn, type WithoutChildrenOrChild } from '../../../
|
|
2
|
+
import { cn, type WithoutChildrenOrChild } from '../../../utils/cn.js';
|
|
3
3
|
import DropdownMenuPortal from './dropdown-menu-portal.svelte';
|
|
4
4
|
import { DropdownMenu as DropdownMenuPrimitive } from 'bits-ui';
|
|
5
5
|
import type { ComponentProps } from 'svelte';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type WithoutChildrenOrChild } from '../../../
|
|
1
|
+
import { type WithoutChildrenOrChild } from '../../../utils/cn.js';
|
|
2
2
|
import DropdownMenuPortal from './dropdown-menu-portal.svelte';
|
|
3
3
|
import { DropdownMenu as DropdownMenuPrimitive } from 'bits-ui';
|
|
4
4
|
import type { ComponentProps } from 'svelte';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type WithElementRef } from '../../../
|
|
1
|
+
import { type WithElementRef } from '../../../utils/cn.js';
|
|
2
2
|
import type { HTMLAttributes } from 'svelte/elements';
|
|
3
3
|
type $$ComponentProps = WithElementRef<HTMLAttributes<HTMLDivElement>> & {
|
|
4
4
|
inset?: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { DropdownMenu as DropdownMenuPrimitive } from 'bits-ui';
|
|
3
3
|
import CheckIcon from '@lucide/svelte/icons/check';
|
|
4
|
-
import { cn, type WithoutChild } from '../../../
|
|
4
|
+
import { cn, type WithoutChild } from '../../../utils/cn.js';
|
|
5
5
|
|
|
6
6
|
let {
|
|
7
7
|
ref = $bindable(null),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { HTMLAttributes } from 'svelte/elements';
|
|
2
|
-
import { type WithElementRef } from '../../../
|
|
2
|
+
import { type WithElementRef } from '../../../utils/cn.js';
|
|
3
3
|
declare const DropdownMenuShortcut: import("svelte").Component<WithElementRef<HTMLAttributes<HTMLSpanElement>>, {}, "ref">;
|
|
4
4
|
type DropdownMenuShortcut = ReturnType<typeof DropdownMenuShortcut>;
|
|
5
5
|
export default DropdownMenuShortcut;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { DropdownMenu as DropdownMenuPrimitive } from 'bits-ui';
|
|
3
3
|
import ChevronRightIcon from '@lucide/svelte/icons/chevron-right';
|
|
4
|
-
import { cn } from '../../../
|
|
4
|
+
import { cn } from '../../../utils/cn.js';
|
|
5
5
|
|
|
6
6
|
let {
|
|
7
7
|
ref = $bindable(null),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import type { HTMLInputAttributes, HTMLInputTypeAttribute } from 'svelte/elements';
|
|
3
|
-
import { cn, type WithElementRef } from '../../../
|
|
3
|
+
import { cn, type WithElementRef } from '../../../utils/cn.js';
|
|
4
4
|
|
|
5
5
|
type InputType = Exclude<HTMLInputTypeAttribute, 'file'>;
|
|
6
6
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { HTMLInputAttributes, HTMLInputTypeAttribute } from 'svelte/elements';
|
|
2
|
-
import { type WithElementRef } from '../../../
|
|
2
|
+
import { type WithElementRef } from '../../../utils/cn.js';
|
|
3
3
|
type InputType = Exclude<HTMLInputTypeAttribute, 'file'>;
|
|
4
4
|
type Props = WithElementRef<Omit<HTMLInputAttributes, 'type'> & ({
|
|
5
5
|
type: 'file';
|
|
@@ -22,7 +22,7 @@ export declare const inputGroupAddonVariants: import("tailwind-variants").TVRetu
|
|
|
22
22
|
};
|
|
23
23
|
}, undefined, "text-muted-foreground h-auto gap-2 py-1.5 text-sm font-medium group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-4 flex cursor-text items-center justify-center select-none", unknown, unknown, undefined>>;
|
|
24
24
|
export type InputGroupAddonAlign = VariantProps<typeof inputGroupAddonVariants>['align'];
|
|
25
|
-
import { type WithElementRef } from '../../../
|
|
25
|
+
import { type WithElementRef } from '../../../utils/cn.js';
|
|
26
26
|
import type { HTMLAttributes } from 'svelte/elements';
|
|
27
27
|
type $$ComponentProps = WithElementRef<HTMLAttributes<HTMLDivElement>> & {
|
|
28
28
|
align?: InputGroupAddonAlign;
|
|
@@ -2,7 +2,7 @@ declare const InputGroupInput: import("svelte").Component<(Omit<import("svelte/e
|
|
|
2
2
|
type: "file";
|
|
3
3
|
files?: FileList;
|
|
4
4
|
} | {
|
|
5
|
-
type?: "number" | "
|
|
5
|
+
type?: "number" | "url" | "button" | "search" | "time" | "image" | "text" | "hidden" | "color" | "submit" | "reset" | "checkbox" | "radio" | (string & {}) | "tel" | "email" | "date" | "datetime-local" | "month" | "password" | "range" | "week";
|
|
6
6
|
files?: undefined;
|
|
7
7
|
})) & {
|
|
8
8
|
ref?: HTMLElement | null | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type WithElementRef } from '../../../
|
|
1
|
+
import { type WithElementRef } from '../../../utils/cn.js';
|
|
2
2
|
import type { HTMLAttributes } from 'svelte/elements';
|
|
3
3
|
declare const InputGroupText: import("svelte").Component<WithElementRef<HTMLAttributes<HTMLSpanElement>>, {}, "ref">;
|
|
4
4
|
type InputGroupText = ReturnType<typeof InputGroupText>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
declare const InputGroupTextarea: import("svelte").Component<Omit<import("../../../
|
|
1
|
+
declare const InputGroupTextarea: import("svelte").Component<Omit<import("../../../utils/cn.js").WithElementRef<import("svelte/elements").HTMLTextareaAttributes>, "children">, {}, "value" | "ref">;
|
|
2
2
|
type InputGroupTextarea = ReturnType<typeof InputGroupTextarea>;
|
|
3
3
|
export default InputGroupTextarea;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type WithElementRef } from '../../../
|
|
1
|
+
import { type WithElementRef } from '../../../utils/cn.js';
|
|
2
2
|
import type { HTMLAttributes } from 'svelte/elements';
|
|
3
3
|
declare const InputGroup: import("svelte").Component<WithElementRef<HTMLAttributes<HTMLDivElement>>, {}, "ref">;
|
|
4
4
|
type InputGroup = ReturnType<typeof InputGroup>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { Popover as PopoverPrimitive } from 'bits-ui';
|
|
3
3
|
import PopoverPortal from './popover-portal.svelte';
|
|
4
|
-
import { cn, type WithoutChildrenOrChild } from '../../../
|
|
4
|
+
import { cn, type WithoutChildrenOrChild } from '../../../utils/cn.js';
|
|
5
5
|
import type { ComponentProps } from 'svelte';
|
|
6
6
|
|
|
7
7
|
let {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Popover as PopoverPrimitive } from 'bits-ui';
|
|
2
2
|
import PopoverPortal from './popover-portal.svelte';
|
|
3
|
-
import { type WithoutChildrenOrChild } from '../../../
|
|
3
|
+
import { type WithoutChildrenOrChild } from '../../../utils/cn.js';
|
|
4
4
|
import type { ComponentProps } from 'svelte';
|
|
5
5
|
type $$ComponentProps = PopoverPrimitive.ContentProps & {
|
|
6
6
|
portalProps?: WithoutChildrenOrChild<ComponentProps<typeof PopoverPortal>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { HTMLAttributes } from 'svelte/elements';
|
|
2
|
-
import { type WithElementRef } from '../../../
|
|
2
|
+
import { type WithElementRef } from '../../../utils/cn.js';
|
|
3
3
|
declare const PopoverDescription: import("svelte").Component<WithElementRef<HTMLAttributes<HTMLDivElement>>, {}, "ref">;
|
|
4
4
|
type PopoverDescription = ReturnType<typeof PopoverDescription>;
|
|
5
5
|
export default PopoverDescription;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { HTMLAttributes } from 'svelte/elements';
|
|
2
|
-
import { type WithElementRef } from '../../../
|
|
2
|
+
import { type WithElementRef } from '../../../utils/cn.js';
|
|
3
3
|
declare const PopoverHeader: import("svelte").Component<WithElementRef<HTMLAttributes<HTMLDivElement>>, {}, "ref">;
|
|
4
4
|
type PopoverHeader = ReturnType<typeof PopoverHeader>;
|
|
5
5
|
export default PopoverHeader;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { HTMLAttributes } from 'svelte/elements';
|
|
2
|
-
import { type WithElementRef } from '../../../
|
|
2
|
+
import { type WithElementRef } from '../../../utils/cn.js';
|
|
3
3
|
declare const PopoverTitle: import("svelte").Component<WithElementRef<HTMLAttributes<HTMLDivElement>>, {}, "ref">;
|
|
4
4
|
type PopoverTitle = ReturnType<typeof PopoverTitle>;
|
|
5
5
|
export default PopoverTitle;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { ScrollArea as ScrollAreaPrimitive } from 'bits-ui';
|
|
3
3
|
import { Scrollbar } from './index.js';
|
|
4
|
-
import { cn, type WithoutChild } from '../../../
|
|
4
|
+
import { cn, type WithoutChild } from '../../../utils/cn.js';
|
|
5
5
|
|
|
6
6
|
let {
|
|
7
7
|
ref = $bindable(null),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ScrollArea as ScrollAreaPrimitive } from 'bits-ui';
|
|
2
|
-
import { type WithoutChild } from '../../../
|
|
2
|
+
import { type WithoutChild } from '../../../utils/cn.js';
|
|
3
3
|
type $$ComponentProps = WithoutChild<ScrollAreaPrimitive.RootProps> & {
|
|
4
4
|
orientation?: 'vertical' | 'horizontal' | 'both' | undefined;
|
|
5
5
|
scrollbarXClasses?: string | undefined;
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
import SheetOverlay from './sheet-overlay.svelte';
|
|
10
10
|
import { Button } from '../button/index.js';
|
|
11
11
|
import XIcon from '@lucide/svelte/icons/x';
|
|
12
|
-
import { cn, type WithoutChildrenOrChild } from '../../../
|
|
12
|
+
import { cn, type WithoutChildrenOrChild } from '../../../utils/cn.js';
|
|
13
13
|
import type { ComponentProps } from 'svelte';
|
|
14
14
|
|
|
15
15
|
let {
|
|
@@ -2,7 +2,7 @@ export type Side = 'top' | 'right' | 'bottom' | 'left';
|
|
|
2
2
|
import { Dialog as SheetPrimitive } from 'bits-ui';
|
|
3
3
|
import type { Snippet } from 'svelte';
|
|
4
4
|
import SheetPortal from './sheet-portal.svelte';
|
|
5
|
-
import { type WithoutChildrenOrChild } from '../../../
|
|
5
|
+
import { type WithoutChildrenOrChild } from '../../../utils/cn.js';
|
|
6
6
|
import type { ComponentProps } from 'svelte';
|
|
7
7
|
type $$ComponentProps = WithoutChildrenOrChild<SheetPrimitive.ContentProps> & {
|
|
8
8
|
portalProps?: WithoutChildrenOrChild<ComponentProps<typeof SheetPortal>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type WithElementRef } from '../../../
|
|
1
|
+
import { type WithElementRef } from '../../../utils/cn.js';
|
|
2
2
|
import type { HTMLAttributes } from 'svelte/elements';
|
|
3
3
|
declare const SheetFooter: import("svelte").Component<WithElementRef<HTMLAttributes<HTMLDivElement>>, {}, "ref">;
|
|
4
4
|
type SheetFooter = ReturnType<typeof SheetFooter>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { HTMLAttributes } from 'svelte/elements';
|
|
2
|
-
import { type WithElementRef } from '../../../
|
|
2
|
+
import { type WithElementRef } from '../../../utils/cn.js';
|
|
3
3
|
declare const SheetHeader: import("svelte").Component<WithElementRef<HTMLAttributes<HTMLDivElement>>, {}, "ref">;
|
|
4
4
|
type SheetHeader = ReturnType<typeof SheetHeader>;
|
|
5
5
|
export default SheetHeader;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type WithElementRef } from '../../../
|
|
1
|
+
import { type WithElementRef } from '../../../utils/cn.js';
|
|
2
2
|
import type { HTMLTextareaAttributes } from 'svelte/elements';
|
|
3
3
|
declare const Textarea: import("svelte").Component<Omit<WithElementRef<HTMLTextareaAttributes>, "children">, {}, "value" | "ref">;
|
|
4
4
|
type Textarea = ReturnType<typeof Textarea>;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Static site configuration passed to `DocsShell`. Content-derived data (the
|
|
3
|
+
* sidebar nav) is NOT here — it comes from your content collection at runtime.
|
|
4
|
+
*/
|
|
5
|
+
/** A link rendered in the header nav or footer. */
|
|
6
|
+
export type DocsmithLink = {
|
|
7
|
+
label: string;
|
|
8
|
+
href: string;
|
|
9
|
+
/** Open in a new tab with `rel="noopener"`. */
|
|
10
|
+
external?: boolean;
|
|
11
|
+
};
|
|
12
|
+
/** A titled column of links in the footer. */
|
|
13
|
+
export type DocsmithFooterColumn = {
|
|
14
|
+
title: string;
|
|
15
|
+
links: DocsmithLink[];
|
|
16
|
+
};
|
|
17
|
+
export type DocsmithConfig = {
|
|
18
|
+
/** Site title, shown in the header/sidebar and in the `<title>` suffix. */
|
|
19
|
+
title: string;
|
|
20
|
+
/**
|
|
21
|
+
* Default meta description, used for pages whose frontmatter has none (and
|
|
22
|
+
* as the site's social-share description).
|
|
23
|
+
*/
|
|
24
|
+
description?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Canonical site origin, e.g. `https://docs.example.com`. When set, DocsShell
|
|
27
|
+
* emits `<link rel="canonical">` and absolute Open Graph URLs.
|
|
28
|
+
*/
|
|
29
|
+
url?: string;
|
|
30
|
+
/** Default social-share image (absolute URL, or a path resolved against `url`). */
|
|
31
|
+
ogImage?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Base URL for the "Edit this page" link, pointing at the directory that maps
|
|
34
|
+
* to your app's working directory in the repo, e.g.
|
|
35
|
+
* `https://github.com/you/repo/edit/main/apps/docs`. DocsShell appends each
|
|
36
|
+
* page's source path. Omit to hide the edit link.
|
|
37
|
+
*/
|
|
38
|
+
editUrl?: string;
|
|
39
|
+
/** Optional GitHub URL; renders a link in the header when set. */
|
|
40
|
+
github?: string;
|
|
41
|
+
/** Optional version string, shown in the header (e.g. your library version). */
|
|
42
|
+
version?: string;
|
|
43
|
+
/** Optional logo image src; falls back to the built-in book mark. */
|
|
44
|
+
logo?: string;
|
|
45
|
+
/** Top-level header navigation links. */
|
|
46
|
+
nav?: DocsmithLink[];
|
|
47
|
+
/** Footer content, driven by data. */
|
|
48
|
+
footer?: {
|
|
49
|
+
/** Copyright / attribution line. */
|
|
50
|
+
copyright?: string;
|
|
51
|
+
/** Titled columns of links. */
|
|
52
|
+
columns?: DocsmithFooterColumn[];
|
|
53
|
+
/**
|
|
54
|
+
* Show the "Powered by Svelte DocSmith" attribution in the footer.
|
|
55
|
+
* Defaults to `true`; set `false` to hide it.
|
|
56
|
+
*/
|
|
57
|
+
poweredBy?: boolean;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
/**
|
|
61
|
+
* Validate a {@link DocsmithConfig} at build time. Purely a pass-through for
|
|
62
|
+
* typed callers; the runtime checks catch untyped or dynamically-built configs
|
|
63
|
+
* with a real error message instead of a blank header.
|
|
64
|
+
*/
|
|
65
|
+
export declare function defineConfig(config: DocsmithConfig): DocsmithConfig;
|
|
@@ -65,25 +65,3 @@ export function defineConfig(config) {
|
|
|
65
65
|
}
|
|
66
66
|
return config;
|
|
67
67
|
}
|
|
68
|
-
/**
|
|
69
|
-
* Derive sidebar nav from a content collection: group by `section`, order by
|
|
70
|
-
* `order` within a group, and order groups by the smallest `order` they
|
|
71
|
-
* contain. Entries without a `section` fall under "Docs".
|
|
72
|
-
*/
|
|
73
|
-
export function navFromContent(content) {
|
|
74
|
-
const groups = new Map();
|
|
75
|
-
for (const item of content) {
|
|
76
|
-
const section = item.section ?? 'Docs';
|
|
77
|
-
const order = item.order ?? 0;
|
|
78
|
-
const group = groups.get(section) ?? { minOrder: Infinity, items: [] };
|
|
79
|
-
group.items.push({ title: item.title, url: item.path, order });
|
|
80
|
-
group.minOrder = Math.min(group.minOrder, order);
|
|
81
|
-
groups.set(section, group);
|
|
82
|
-
}
|
|
83
|
-
return [...groups.entries()]
|
|
84
|
-
.sort((a, b) => a[1].minOrder - b[1].minOrder)
|
|
85
|
-
.map(([title, group]) => ({
|
|
86
|
-
title,
|
|
87
|
-
items: group.items.sort((a, b) => a.order - b.order).map(({ title, url }) => ({ title, url }))
|
|
88
|
-
}));
|
|
89
|
-
}
|