@classic-homes/theme-mcp 0.3.1 → 0.3.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/index.js CHANGED
@@ -6,7 +6,7 @@ import { ResourceTemplate } from "@modelcontextprotocol/sdk/server/mcp.js";
6
6
 
7
7
  // src/data/component-catalog.json
8
8
  var component_catalog_default = {
9
- version: "0.3.1",
9
+ version: "0.3.2",
10
10
  components: [
11
11
  {
12
12
  name: "ActionHeader",
@@ -3046,6 +3046,19 @@ var component_catalog_default = {
3046
3046
  required: false,
3047
3047
  description: "Sidebar footer content"
3048
3048
  },
3049
+ {
3050
+ name: "sidebarAutoCollapse",
3051
+ type: "boolean",
3052
+ default: "false",
3053
+ required: false,
3054
+ description: "Accordion sidebar navigation"
3055
+ },
3056
+ {
3057
+ name: "footer",
3058
+ type: "Snippet",
3059
+ required: false,
3060
+ description: "Page footer below main content"
3061
+ },
3049
3062
  {
3050
3063
  name: "expandedWidth",
3051
3064
  type: "number",
@@ -11949,6 +11962,13 @@ var component_catalog_default = {
11949
11962
  required: false,
11950
11963
  description: "Enable search"
11951
11964
  },
11965
+ {
11966
+ name: "autoCollapse",
11967
+ type: "boolean",
11968
+ default: "false",
11969
+ required: false,
11970
+ description: "Opening a section or item closes others at its level"
11971
+ },
11952
11972
  {
11953
11973
  name: "searchPlaceholder",
11954
11974
  type: "string",
@@ -14343,7 +14363,7 @@ function registerComponentResources(server) {
14343
14363
 
14344
14364
  // src/data/token-definitions.json
14345
14365
  var token_definitions_default = {
14346
- version: "0.3.1",
14366
+ version: "0.3.2",
14347
14367
  colors: {
14348
14368
  brand: [
14349
14369
  {
@@ -15326,7 +15346,7 @@ function registerTokenResources(server) {
15326
15346
 
15327
15347
  // src/data/styles-catalog.json
15328
15348
  var styles_catalog_default = {
15329
- version: "0.3.1",
15349
+ version: "0.3.2",
15330
15350
  package: "@classic-homes/theme-styles",
15331
15351
  description: "Base CSS styles, accessibility features, and utility classes for the Classic Theme design system",
15332
15352
  integration: {
@@ -15344,6 +15364,16 @@ var styles_catalog_default = {
15344
15364
  description: "CSS layers are used for proper cascade control, from lowest to highest specificity"
15345
15365
  },
15346
15366
  modules: [
15367
+ {
15368
+ name: "core",
15369
+ path: "@classic-homes/theme-styles/core",
15370
+ description: "Everything the package root provides except the brand-font @import. Pair with non-blocking font <link> tags in <head> so the page can paint before fonts.googleapis.com answers."
15371
+ },
15372
+ {
15373
+ name: "fonts",
15374
+ path: "@classic-homes/theme-styles/fonts",
15375
+ description: "Render-blocking Google Fonts @import for Figtree and Spectral. Included by the package root; omitted by ./core. Prefer non-blocking <link> tags in <head> for production apps."
15376
+ },
15347
15377
  {
15348
15378
  name: "base",
15349
15379
  path: "@classic-homes/theme-styles/base",
@@ -15351,7 +15381,7 @@ var styles_catalog_default = {
15351
15381
  features: [
15352
15382
  {
15353
15383
  name: "Brand Fonts",
15354
- description: "Imports Google Fonts: Figtree (sans-serif) and Spectral (serif, 400/500/600 + italics)",
15384
+ description: "Font stacks for Figtree (sans-serif) and Spectral (serif, 400/500/600 + italics). The fonts themselves are loaded by ./fonts, which the package root includes.",
15355
15385
  cssVariables: [
15356
15386
  "--font-sans",
15357
15387
  "--font-serif"
@@ -15699,7 +15729,7 @@ import { ResourceTemplate as ResourceTemplate2 } from "@modelcontextprotocol/sdk
15699
15729
 
15700
15730
  // src/data/pattern-library.json
15701
15731
  var pattern_library_default = {
15702
- version: "0.3.1",
15732
+ version: "0.3.2",
15703
15733
  layouts: [
15704
15734
  {
15705
15735
  id: "dashboard-page",
@@ -16793,7 +16823,7 @@ function registerLayoutResources(server) {
16793
16823
 
16794
16824
  // src/data/schema-catalog.json
16795
16825
  var schema_catalog_default = {
16796
- version: "0.3.1",
16826
+ version: "0.3.2",
16797
16827
  packageName: "@classic-homes/theme-svelte",
16798
16828
  importPath: "@classic-homes/theme-svelte",
16799
16829
  generatedFrom: "packages/svelte/src/lib/schemas/index.ts",
@@ -17601,7 +17631,7 @@ import { ResourceTemplate as ResourceTemplate3 } from "@modelcontextprotocol/sdk
17601
17631
 
17602
17632
  // src/data/auth-catalog.json
17603
17633
  var auth_catalog_default = {
17604
- version: "0.3.1",
17634
+ version: "0.3.2",
17605
17635
  packageName: "@classic-homes/auth",
17606
17636
  description: "Authentication services and Svelte bindings for Classic Theme apps",
17607
17637
  subpackages: {
@@ -20638,7 +20668,7 @@ import { ResourceTemplate as ResourceTemplate4 } from "@modelcontextprotocol/sdk
20638
20668
 
20639
20669
  // src/data/notifications-catalog.json
20640
20670
  var notifications_catalog_default = {
20641
- version: "0.3.1",
20671
+ version: "0.3.2",
20642
20672
  packageName: "@classic-homes/notifications",
20643
20673
  description: "Notification services and Svelte bindings for Classic Theme apps",
20644
20674
  subpackages: {
@@ -21550,7 +21580,7 @@ function registerNotificationsResources(server) {
21550
21580
 
21551
21581
  // src/data/docs-catalog.json
21552
21582
  var docs_catalog_default = {
21553
- version: "0.3.1",
21583
+ version: "0.3.2",
21554
21584
  packageName: "@classic-homes/theme-docs",
21555
21585
  description: "Markdown documentation components for the Classic theme system",
21556
21586
  exports: {
@@ -21558,9 +21588,33 @@ var docs_catalog_default = {
21558
21588
  importPath: "@classic-homes/theme-docs",
21559
21589
  description: "Main entry point with components, parser utilities, and types"
21560
21590
  },
21591
+ "./parser": {
21592
+ importPath: "@classic-homes/theme-docs/parser",
21593
+ description: "Markdown pipeline without Svelte imports (parseMarkdown, extractToc, createSlugger, extensions) for Node build scripts, server loaders and CMS previews"
21594
+ },
21595
+ "./sanitize": {
21596
+ importPath: "@classic-homes/theme-docs/sanitize",
21597
+ description: "sanitizeDocsHtml: allowlist sanitizer for parseMarkdown output (server/build-time only)"
21598
+ },
21599
+ "./content": {
21600
+ importPath: "@classic-homes/theme-docs/content",
21601
+ description: "loadDocs/renderDocs: a Docusaurus-style docs directory as routes, autogenerated sidebars, generated-index pages, tags and rendered HTML (Node, build time)"
21602
+ },
21603
+ "./nav": {
21604
+ importPath: "@classic-homes/theme-docs/nav",
21605
+ description: "Sidebar helpers (neighbours, breadcrumbs, flattenNav, tagCounts) and content-model types, browser-safe"
21606
+ },
21607
+ "./search": {
21608
+ importPath: "@classic-homes/theme-docs/search",
21609
+ description: "buildSearchIndex/createSearch: MiniSearch full-text search over rendered docs, with a filter hook for access rules"
21610
+ },
21611
+ "./vite": {
21612
+ importPath: "@classic-homes/theme-docs/vite",
21613
+ description: "docsContent Vite plugin: regenerate docs content on change in dev and before each build"
21614
+ },
21561
21615
  "./styles": {
21562
21616
  importPath: "@classic-homes/theme-docs/styles",
21563
- description: "Subpath export for styles"
21617
+ description: "Markdown content stylesheet (.markdown-content)"
21564
21618
  }
21565
21619
  },
21566
21620
  components: [
@@ -21739,8 +21793,8 @@ var docs_catalog_default = {
21739
21793
  {
21740
21794
  name: "html",
21741
21795
  type: "string",
21742
- required: true,
21743
- description: "HTML content to extract headings from"
21796
+ required: false,
21797
+ description: "HTML to extract headings from in the browser, when there is no toc"
21744
21798
  },
21745
21799
  {
21746
21800
  name: "maxDepth",
@@ -21766,6 +21820,26 @@ var docs_catalog_default = {
21766
21820
  type: "boolean",
21767
21821
  required: false,
21768
21822
  description: "Whether to use sticky positioning"
21823
+ },
21824
+ {
21825
+ name: "toc",
21826
+ type: "TocEntry[]",
21827
+ required: false,
21828
+ description: "Prebuilt entries (page.toc from renderDocs); renders on the server"
21829
+ },
21830
+ {
21831
+ name: "minDepth",
21832
+ type: "number",
21833
+ required: false,
21834
+ description: "Shallowest heading level",
21835
+ default: "1"
21836
+ },
21837
+ {
21838
+ name: "offset",
21839
+ type: "number",
21840
+ required: false,
21841
+ description: "Fixed header height in px for scroll-spy",
21842
+ default: "80"
21769
21843
  }
21770
21844
  ],
21771
21845
  features: [
@@ -21773,7 +21847,9 @@ var docs_catalog_default = {
21773
21847
  "IntersectionObserver scroll tracking",
21774
21848
  "Smooth scroll to headings",
21775
21849
  "Hierarchical indentation",
21776
- "Active state highlighting"
21850
+ "Active state highlighting",
21851
+ 'Scroll-spy marks the heading being read with aria-current="location"',
21852
+ "Entries are native #id links (router-friendly)"
21777
21853
  ],
21778
21854
  example: '<TableOfContents html={renderedHtml} maxDepth={3} title="On this page" sticky />'
21779
21855
  },
@@ -21785,8 +21861,8 @@ var docs_catalog_default = {
21785
21861
  {
21786
21862
  name: "html",
21787
21863
  type: "string",
21788
- required: true,
21789
- description: "HTML content for TOC extraction"
21864
+ required: false,
21865
+ description: "HTML to extract headings from in the browser, when there is no toc"
21790
21866
  },
21791
21867
  {
21792
21868
  name: "maxDepth",
@@ -21807,6 +21883,26 @@ var docs_catalog_default = {
21807
21883
  type: "string",
21808
21884
  required: false,
21809
21885
  description: "Custom class"
21886
+ },
21887
+ {
21888
+ name: "toc",
21889
+ type: "TocEntry[]",
21890
+ required: false,
21891
+ description: "Prebuilt entries (page.toc from renderDocs); renders on the server"
21892
+ },
21893
+ {
21894
+ name: "minDepth",
21895
+ type: "number",
21896
+ required: false,
21897
+ description: "Shallowest heading level",
21898
+ default: "1"
21899
+ },
21900
+ {
21901
+ name: "offset",
21902
+ type: "number",
21903
+ required: false,
21904
+ description: "Fixed header height in px for scroll-spy",
21905
+ default: "80"
21810
21906
  }
21811
21907
  ],
21812
21908
  features: [
@@ -21814,7 +21910,10 @@ var docs_catalog_default = {
21814
21910
  "Desktop sidebar display",
21815
21911
  "Keyboard support (Escape to close)",
21816
21912
  "Focus restoration on close",
21817
- "Responsive breakpoint variants"
21913
+ "Responsive breakpoint variants",
21914
+ 'Scroll-spy marks the heading being read with aria-current="location"',
21915
+ "Entries are native #id links (router-friendly)",
21916
+ "Mobile panel is a modal dialog with a focus trap; inert while closed"
21818
21917
  ],
21819
21918
  example: '<TocPanel html={renderedHtml} breakpoint="lg" />'
21820
21919
  },
@@ -21872,6 +21971,294 @@ var docs_catalog_default = {
21872
21971
  ],
21873
21972
  peerDependency: "mermaid@^11.0.0 (optional)",
21874
21973
  example: "<MermaidInit watch={true} />"
21974
+ },
21975
+ {
21976
+ name: "DocPage",
21977
+ description: "One docs page laid out like a Docusaurus doc, from build-time HTML: breadcrumbs, h1 fallback, tags, edit link, prev/next, TOC; mounts components, mermaid, copy buttons and ?highlight= terms",
21978
+ category: "layout",
21979
+ props: [
21980
+ {
21981
+ name: "page",
21982
+ type: "{ title; html; toc; hasH1; description? }",
21983
+ required: true,
21984
+ description: "A RenderedDoc from renderDocs"
21985
+ },
21986
+ {
21987
+ name: "breadcrumbs",
21988
+ type: "Crumb[]",
21989
+ required: false,
21990
+ description: "breadcrumbs(sidebar.items, route)"
21991
+ },
21992
+ {
21993
+ name: "home",
21994
+ type: "{ label; href }",
21995
+ required: false,
21996
+ description: "First breadcrumb"
21997
+ },
21998
+ {
21999
+ name: "previous",
22000
+ type: "NavLink | null",
22001
+ required: false,
22002
+ description: "From neighbours()"
22003
+ },
22004
+ {
22005
+ name: "next",
22006
+ type: "NavLink | null",
22007
+ required: false,
22008
+ description: "From neighbours()"
22009
+ },
22010
+ {
22011
+ name: "tags",
22012
+ type: "Tag[]",
22013
+ required: false,
22014
+ description: "The page's tags"
22015
+ },
22016
+ {
22017
+ name: "tagHref",
22018
+ type: "(tag) => string",
22019
+ required: false,
22020
+ description: "Tag page route",
22021
+ default: "/docs/tags/<id>"
22022
+ },
22023
+ {
22024
+ name: "editUrl",
22025
+ type: "string",
22026
+ required: false,
22027
+ description: '"Edit this page" link'
22028
+ },
22029
+ {
22030
+ name: "components",
22031
+ type: "Record<string, Component>",
22032
+ required: false,
22033
+ description: "Components for <Name /> placeholders"
22034
+ },
22035
+ {
22036
+ name: "mermaid",
22037
+ type: "boolean",
22038
+ required: false,
22039
+ description: "Render mermaid diagrams",
22040
+ default: "true"
22041
+ },
22042
+ {
22043
+ name: "copyButtons",
22044
+ type: "boolean",
22045
+ required: false,
22046
+ description: "Copy buttons on code blocks",
22047
+ default: "true"
22048
+ },
22049
+ {
22050
+ name: "highlightParam",
22051
+ type: "string | null",
22052
+ required: false,
22053
+ description: "Query parameter whose words are highlighted",
22054
+ default: "'highlight'"
22055
+ },
22056
+ {
22057
+ name: "tocMinDepth",
22058
+ type: "number",
22059
+ required: false,
22060
+ description: "Shallowest TOC level",
22061
+ default: "2"
22062
+ },
22063
+ {
22064
+ name: "tocMaxDepth",
22065
+ type: "number",
22066
+ required: false,
22067
+ description: "Deepest TOC level",
22068
+ default: "3"
22069
+ },
22070
+ {
22071
+ name: "tocBreakpoint",
22072
+ type: "'lg' | 'xl' | '2xl'",
22073
+ required: false,
22074
+ description: "Where the TOC becomes a column",
22075
+ default: "'xl'"
22076
+ },
22077
+ {
22078
+ name: "headerOffset",
22079
+ type: "number",
22080
+ required: false,
22081
+ description: "Fixed header height in px (scroll margins, scroll-spy)",
22082
+ default: "80"
22083
+ },
22084
+ {
22085
+ name: "siteTitle",
22086
+ type: "string",
22087
+ required: false,
22088
+ description: 'Sets <title> to "Page | Site" and the meta description'
22089
+ }
22090
+ ],
22091
+ slots: [
22092
+ {
22093
+ name: "meta",
22094
+ description: "Extra footer content next to the edit link"
22095
+ }
22096
+ ],
22097
+ features: [
22098
+ "SSR, no client-side parsing",
22099
+ "Copy buttons with clipboard fallback",
22100
+ "Search-term highlighting",
22101
+ "Anchor targets clear the fixed header (scroll-margin-top)"
22102
+ ],
22103
+ example: '<DocPage page={data.page} breadcrumbs={data.crumbs} previous={data.previous} next={data.next} tags={data.tags} editUrl={data.editUrl} siteTitle="Docs" />'
22104
+ },
22105
+ {
22106
+ name: "CategoryIndex",
22107
+ description: "Generated-index page: title, description and a card per category item",
22108
+ category: "navigation",
22109
+ props: [
22110
+ {
22111
+ name: "category",
22112
+ type: "Pick<CategoryPage, 'title' | 'description' | 'items'>",
22113
+ required: true,
22114
+ description: "From loadDocs().categories"
22115
+ },
22116
+ {
22117
+ name: "descriptions",
22118
+ type: "Record<string, string> | Map",
22119
+ required: false,
22120
+ description: "Page descriptions by route"
22121
+ },
22122
+ {
22123
+ name: "columns",
22124
+ type: "1 | 2 | 3 | 4",
22125
+ required: false,
22126
+ description: "Grid columns",
22127
+ default: "2"
22128
+ },
22129
+ {
22130
+ name: "countLabel",
22131
+ type: "(n) => string",
22132
+ required: false,
22133
+ description: "Text for a category card"
22134
+ }
22135
+ ],
22136
+ slots: [],
22137
+ features: [
22138
+ "Category cards link to their own page or first page, with entry counts"
22139
+ ],
22140
+ example: "<CategoryIndex category={data.category} descriptions={data.descriptions} />"
22141
+ },
22142
+ {
22143
+ name: "Breadcrumbs",
22144
+ description: "Path to the current docs page",
22145
+ category: "navigation",
22146
+ props: [
22147
+ {
22148
+ name: "crumbs",
22149
+ type: "Crumb[]",
22150
+ required: true,
22151
+ description: "breadcrumbs(sidebar.items, route)"
22152
+ },
22153
+ {
22154
+ name: "home",
22155
+ type: "{ label; href }",
22156
+ required: false,
22157
+ description: "Optional first crumb"
22158
+ }
22159
+ ],
22160
+ slots: [],
22161
+ features: [
22162
+ "nav landmark, aria-current on the last crumb"
22163
+ ],
22164
+ example: "<Breadcrumbs crumbs={breadcrumbs(sidebar.items, route)} home={{ label: 'Docs', href: '/' }} />"
22165
+ },
22166
+ {
22167
+ name: "DocPager",
22168
+ description: "Previous/next links at the foot of a docs page",
22169
+ category: "navigation",
22170
+ props: [
22171
+ {
22172
+ name: "previous",
22173
+ type: "NavLink | null",
22174
+ required: false,
22175
+ description: "From neighbours()"
22176
+ },
22177
+ {
22178
+ name: "next",
22179
+ type: "NavLink | null",
22180
+ required: false,
22181
+ description: "From neighbours()"
22182
+ },
22183
+ {
22184
+ name: "previousLabel",
22185
+ type: "string",
22186
+ required: false,
22187
+ description: "",
22188
+ default: "'Previous'"
22189
+ },
22190
+ {
22191
+ name: "nextLabel",
22192
+ type: "string",
22193
+ required: false,
22194
+ description: "",
22195
+ default: "'Next'"
22196
+ }
22197
+ ],
22198
+ slots: [],
22199
+ features: [
22200
+ "rel=prev/next"
22201
+ ],
22202
+ example: "<DocPager {...neighbours(sidebar.items, route)} />"
22203
+ },
22204
+ {
22205
+ name: "TagList",
22206
+ description: "A page's tags as links to tag pages",
22207
+ category: "navigation",
22208
+ props: [
22209
+ {
22210
+ name: "tags",
22211
+ type: "(Tag & { count? })[]",
22212
+ required: true,
22213
+ description: "Tags to show"
22214
+ },
22215
+ {
22216
+ name: "href",
22217
+ type: "(tag) => string",
22218
+ required: false,
22219
+ description: "Tag page route",
22220
+ default: "/docs/tags/<id>"
22221
+ },
22222
+ {
22223
+ name: "label",
22224
+ type: "string",
22225
+ required: false,
22226
+ description: "Accessible name",
22227
+ default: "'Tags'"
22228
+ }
22229
+ ],
22230
+ slots: [],
22231
+ features: [],
22232
+ example: "<TagList tags={pageTags} />"
22233
+ },
22234
+ {
22235
+ name: "TagIndex",
22236
+ description: "Every tag in use, grouped by first letter (Docusaurus /tags page)",
22237
+ category: "navigation",
22238
+ props: [
22239
+ {
22240
+ name: "tags",
22241
+ type: "(Tag & { count })[]",
22242
+ required: true,
22243
+ description: "tagCounts(tags, readablePages)"
22244
+ },
22245
+ {
22246
+ name: "href",
22247
+ type: "(tag) => string",
22248
+ required: false,
22249
+ description: "Tag page route"
22250
+ },
22251
+ {
22252
+ name: "as",
22253
+ type: "'h2' | 'h3'",
22254
+ required: false,
22255
+ description: "Letter heading level",
22256
+ default: "'h2'"
22257
+ }
22258
+ ],
22259
+ slots: [],
22260
+ features: [],
22261
+ example: "<TagIndex tags={tagCounts(tags, pages)} />"
21875
22262
  }
21876
22263
  ],
21877
22264
  utilities: {
@@ -21937,43 +22324,58 @@ var docs_catalog_default = {
21937
22324
  {
21938
22325
  name: "admonitionExtension",
21939
22326
  signature: "() => MarkedExtension",
21940
- description: "Extension for callouts/admonitions (:::note, :::tip, :::warning, :::important, :::caution)"
22327
+ description: "Callouts (:::note, :::info, :::tip, :::warning, :::important, :::caution, :::danger) with `:::type Title` or `:::type[Title]` titles"
21941
22328
  },
21942
22329
  {
21943
22330
  name: "footnoteExtension",
21944
- signature: "() => MarkedExtension",
21945
- description: "Extension for footnotes ([^1] references and [^1]: definitions)"
22331
+ signature: "(store?: FootnoteStore) => MarkedExtension",
22332
+ description: "Footnotes ([^1] references and [^1]: definitions) collected into the given store"
21946
22333
  },
21947
22334
  {
21948
22335
  name: "definitionListExtension",
21949
22336
  signature: "() => MarkedExtension",
21950
- description: "Extension for definition lists (Term\\n: Definition)"
22337
+ description: "Definition lists (Term\\n: Definition), inline markdown in both"
21951
22338
  },
21952
22339
  {
21953
22340
  name: "mermaidExtension",
21954
22341
  signature: "() => MarkedExtension",
21955
- description: "Extension for Mermaid diagram placeholders"
22342
+ description: "Mermaid diagram placeholders (rendered client-side by MermaidInit/MermaidDiagram)"
22343
+ },
22344
+ {
22345
+ name: "componentExtension",
22346
+ signature: "(names: readonly string[]) => MarkedExtension",
22347
+ description: 'Allowlisted `<Name prop="\u2026" />` lines become placeholders for mountComponents'
21956
22348
  },
21957
22349
  {
21958
22350
  name: "getAllExtensions",
21959
- signature: "() => MarkedExtension[]",
22351
+ signature: "(components?: readonly string[], footnotes?: FootnoteStore) => MarkedExtension[]",
21960
22352
  description: "Get all extensions as an array"
21961
22353
  },
21962
22354
  {
21963
- name: "resetFootnoteStore",
21964
- signature: "() => void",
21965
- description: "Reset footnote state between documents"
22355
+ name: "createFootnoteStore",
22356
+ signature: "() => FootnoteStore",
22357
+ description: "Fresh footnote store for one document (parseMarkdown creates one per call)"
21966
22358
  },
21967
22359
  {
21968
22360
  name: "renderFootnotes",
21969
- signature: "() => string",
21970
- description: "Render collected footnotes as HTML section"
22361
+ signature: "(store?: FootnoteStore, renderInline?: (tokens) => string) => string",
22362
+ description: "Render collected footnotes as an HTML section"
22363
+ },
22364
+ {
22365
+ name: "renderMermaidPlaceholder",
22366
+ signature: "(code: string) => string",
22367
+ description: "HTML placeholder for one mermaid diagram"
22368
+ },
22369
+ {
22370
+ name: "resetFootnoteStore",
22371
+ signature: "() => void",
22372
+ description: "Deprecated: resets the shared store used when no store is passed"
21971
22373
  }
21972
22374
  ],
21973
22375
  constants: [
21974
22376
  {
21975
22377
  name: "ADMONITION_TYPES",
21976
- type: "readonly ['note', 'tip', 'warning', 'important', 'caution']",
22378
+ type: "readonly ['note', 'info', 'tip', 'warning', 'important', 'caution', 'danger']",
21977
22379
  description: "Array of supported admonition types"
21978
22380
  }
21979
22381
  ]
@@ -21999,6 +22401,136 @@ var docs_catalog_default = {
21999
22401
  description: "Type helper for variant props"
22000
22402
  }
22001
22403
  ]
22404
+ },
22405
+ sanitize: {
22406
+ description: "Import from @classic-homes/theme-docs/sanitize (server/build-time only)",
22407
+ functions: [
22408
+ {
22409
+ name: "sanitizeDocsHtml",
22410
+ signature: "(html: string) => { html: string; removed: string[] }",
22411
+ description: "Allowlist sanitizer for parseMarkdown output; `removed` lists stripped tags/attributes for build logs"
22412
+ }
22413
+ ]
22414
+ },
22415
+ content: {
22416
+ description: "Import from @classic-homes/theme-docs/content (Node, build time)",
22417
+ functions: [
22418
+ {
22419
+ name: "loadDocs",
22420
+ signature: "(options: LoadDocsOptions) => LoadedDocs",
22421
+ description: "Read a docs dir: routes from paths, autogenerated sidebars per sidebarRoots (sidebar_position, _category_.json/.yml, generated-index, index-as-folder-link, sidebar_label), drafts and _partials skipped, closed tag vocabulary, .md links rewritten; onBrokenLinks 'throw' | 'warn' | 'ignore'; validate hook"
22422
+ },
22423
+ {
22424
+ name: "renderDocs",
22425
+ signature: "(docs: LoadedDocs, options?: { parse?: ParseOptions; sanitize?: boolean; onBrokenAnchors?: 'throw' | 'warn' | 'ignore' }) => Promise<RenderDocsResult>",
22426
+ description: "Render every page to HTML with toc, hasH1 and search text; checks #anchor links"
22427
+ },
22428
+ {
22429
+ name: "plainText",
22430
+ signature: "(html: string) => string",
22431
+ description: "Searchable text from rendered HTML"
22432
+ }
22433
+ ]
22434
+ },
22435
+ nav: {
22436
+ description: "Import from @classic-homes/theme-docs/nav (browser-safe; also re-exported by /content)",
22437
+ functions: [
22438
+ {
22439
+ name: "neighbours",
22440
+ signature: "(items: NavItem[], route: string) => { previous; next }",
22441
+ description: "Previous/next links in sidebar order"
22442
+ },
22443
+ {
22444
+ name: "breadcrumbs",
22445
+ signature: "(items: NavItem[], route: string) => Crumb[]",
22446
+ description: "Categories leading to a route, ending with the page"
22447
+ },
22448
+ {
22449
+ name: "flattenNav",
22450
+ signature: "(items: NavItem[]) => NavLink[]",
22451
+ description: "Linkable entries in sidebar order"
22452
+ },
22453
+ {
22454
+ name: "navContains",
22455
+ signature: "(item: NavItem, route: string) => boolean",
22456
+ description: "Whether a route is under a sidebar entry"
22457
+ },
22458
+ {
22459
+ name: "countPages",
22460
+ signature: "(items: NavItem[]) => number",
22461
+ description: "Linkable entries under a list, recursively"
22462
+ },
22463
+ {
22464
+ name: "tagCounts",
22465
+ signature: "(tags: Tag[], pages) => (Tag & { count })[]",
22466
+ description: "Tags in use with page counts"
22467
+ },
22468
+ {
22469
+ name: "pagesTagged",
22470
+ signature: "(pages, tag: string) => pages",
22471
+ description: "Pages carrying a tag, by title"
22472
+ }
22473
+ ]
22474
+ },
22475
+ search: {
22476
+ description: "Import from @classic-homes/theme-docs/search",
22477
+ functions: [
22478
+ {
22479
+ name: "buildSearchIndex",
22480
+ signature: "(pages: RenderedDoc[]) => string",
22481
+ description: "Serialized MiniSearch index over title, headings, description and text"
22482
+ },
22483
+ {
22484
+ name: "createSearch",
22485
+ signature: "(indexJson, texts?) => { search(query, { filter?, limit?, minLength? }): SearchHit[] }",
22486
+ description: "Query an index; filter runs before snippets are built"
22487
+ },
22488
+ {
22489
+ name: "snippet",
22490
+ signature: "(text: string, terms: string[]) => string",
22491
+ description: "~160 characters around the first match"
22492
+ }
22493
+ ]
22494
+ },
22495
+ vite: {
22496
+ description: "Import from @classic-homes/theme-docs/vite",
22497
+ functions: [
22498
+ {
22499
+ name: "docsContent",
22500
+ signature: "(options: { watch: string | string[]; generate: () => void | Promise<void>; debounce?: number }) => Plugin",
22501
+ description: "Run generate before builds and on changes in dev, then full-reload"
22502
+ }
22503
+ ]
22504
+ },
22505
+ layout: {
22506
+ description: "From the package root (browser)",
22507
+ functions: [
22508
+ {
22509
+ name: "toSidebarNav",
22510
+ signature: "(items: NavItem[], current: string, options?: { title?; idPrefix?; overviewLabel? }) => NavSection[]",
22511
+ description: "Map a docs sidebar onto theme-svelte navigation (DashboardLayout/Sidebar); deeper than 3 levels is flattened"
22512
+ },
22513
+ {
22514
+ name: "revealActive",
22515
+ signature: "(navigation: NavSection[]) => void",
22516
+ description: "Force-expand the path to the active entry; call after each navigation"
22517
+ },
22518
+ {
22519
+ name: "enhanceCodeBlocks",
22520
+ signature: "(root: ParentNode) => () => void",
22521
+ description: "Copy buttons on code blocks (DocPage does this)"
22522
+ },
22523
+ {
22524
+ name: "highlightTerms",
22525
+ signature: "(root: ParentNode, terms: string[]) => { cleanup; first }",
22526
+ description: 'Wrap terms in <mark class="search-highlight">'
22527
+ },
22528
+ {
22529
+ name: "labelDiagram",
22530
+ signature: "(container: Element) => void",
22531
+ description: "role=img and a name for a rendered mermaid SVG"
22532
+ }
22533
+ ]
22002
22534
  }
22003
22535
  },
22004
22536
  types: [
@@ -22023,6 +22555,12 @@ var docs_catalog_default = {
22023
22555
  type: "string",
22024
22556
  required: true,
22025
22557
  description: "Rendered HTML content"
22558
+ },
22559
+ {
22560
+ name: "toc",
22561
+ type: "TocEntry[]",
22562
+ required: true,
22563
+ description: "Every heading with an ID, all levels, in document order"
22026
22564
  }
22027
22565
  ]
22028
22566
  },
@@ -22035,7 +22573,7 @@ var docs_catalog_default = {
22035
22573
  type: "string",
22036
22574
  required: false,
22037
22575
  default: "'github-dark'",
22038
- description: "Shiki theme for code highlighting"
22576
+ description: "Shiki theme for code highlighting (any bundled theme; loaded on demand)"
22039
22577
  },
22040
22578
  {
22041
22579
  name: "generateHeadingIds",
@@ -22043,6 +22581,39 @@ var docs_catalog_default = {
22043
22581
  required: false,
22044
22582
  default: "true",
22045
22583
  description: "Whether to generate heading IDs"
22584
+ },
22585
+ {
22586
+ name: "headingIdStyle",
22587
+ type: "'default' | 'github'",
22588
+ required: false,
22589
+ default: "'default'",
22590
+ description: "'github' matches GitHub/Docusaurus anchors (github-slugger)"
22591
+ },
22592
+ {
22593
+ name: "headingAnchors",
22594
+ type: "boolean",
22595
+ required: false,
22596
+ default: "false",
22597
+ description: "Append a `#` permalink (a.hash-link) to each heading"
22598
+ },
22599
+ {
22600
+ name: "components",
22601
+ type: "readonly string[]",
22602
+ required: false,
22603
+ description: "Component names rendered as placeholders for mountComponents"
22604
+ },
22605
+ {
22606
+ name: "externalLinks",
22607
+ type: "boolean | { target?: string; rel?: string }",
22608
+ required: false,
22609
+ default: "false",
22610
+ description: "Open http(s) links in a new tab with a screen-reader note"
22611
+ },
22612
+ {
22613
+ name: "langAlias",
22614
+ type: "Record<string, string>",
22615
+ required: false,
22616
+ description: "Map fence names to Shiki languages; unknown languages render as plain code"
22046
22617
  }
22047
22618
  ]
22048
22619
  },
@@ -22331,14 +22902,18 @@ var docs_catalog_default = {
22331
22902
  ]
22332
22903
  },
22333
22904
  peerDependencies: {
22905
+ "@classic-homes/theme-svelte": ">=1.16.0",
22334
22906
  mermaid: "^11.0.0",
22335
- svelte: "^5.0.0"
22907
+ svelte: "^5.0.0",
22908
+ vite: ">=5.0.0"
22336
22909
  },
22337
22910
  dependencies: {
22338
22911
  "@classic-homes/theme-tokens": "*",
22339
22912
  clsx: "^2.1.0",
22340
22913
  "js-yaml": "^4.3.2",
22341
22914
  marked: "^17.0.0",
22915
+ minisearch: "7.2.0",
22916
+ "sanitize-html": "2.18.0",
22342
22917
  shiki: "^1.0.0",
22343
22918
  "tailwind-merge": "^2.2.0",
22344
22919
  "tailwind-variants": "^0.3.0"
@@ -22461,9 +23036,32 @@ function registerDocsResources(server) {
22461
23036
  "footnoteExtension",
22462
23037
  "definitionListExtension",
22463
23038
  "mermaidExtension",
23039
+ "componentExtension",
22464
23040
  "getAllExtensions",
22465
- "resetFootnoteStore",
22466
- "renderFootnotes"
23041
+ "createFootnoteStore",
23042
+ "renderFootnotes",
23043
+ "renderMermaidPlaceholder",
23044
+ "resetFootnoteStore"
23045
+ ],
23046
+ sanitizeFunctions: ["sanitizeDocsHtml"],
23047
+ contentFunctions: ["loadDocs", "renderDocs", "plainText"],
23048
+ navFunctions: [
23049
+ "neighbours",
23050
+ "breadcrumbs",
23051
+ "flattenNav",
23052
+ "navContains",
23053
+ "countPages",
23054
+ "tagCounts",
23055
+ "pagesTagged"
23056
+ ],
23057
+ searchFunctions: ["buildSearchIndex", "createSearch", "snippet"],
23058
+ vitePlugins: ["docsContent"],
23059
+ layoutFunctions: [
23060
+ "toSidebarNav",
23061
+ "revealActive",
23062
+ "enhanceCodeBlocks",
23063
+ "highlightTerms",
23064
+ "labelDiagram"
22467
23065
  ],
22468
23066
  helpers: ["cn", "tv", "VariantProps"],
22469
23067
  peerDependencies: docs.peerDependencies
@@ -22478,7 +23076,7 @@ function registerDocsResources(server) {
22478
23076
 
22479
23077
  // src/data/charts-catalog.json
22480
23078
  var charts_catalog_default = {
22481
- version: "0.3.1",
23079
+ version: "0.3.2",
22482
23080
  packageName: "@classic-homes/charts-core",
22483
23081
  description: "Core utilities, types, and themes for Classic Theme chart components",
22484
23082
  subpackages: {
@@ -24315,7 +24913,7 @@ interface SankeyData {
24315
24913
 
24316
24914
  // src/data/maps-catalog.json
24317
24915
  var maps_catalog_default = {
24318
- version: "0.3.1",
24916
+ version: "0.3.2",
24319
24917
  packageName: "@classic-homes/maps-core",
24320
24918
  description: "Core utilities, types, and themes for Classic Theme MapLibre GL components",
24321
24919
  subpackages: {
@@ -29646,7 +30244,7 @@ ${catalog5.quickReference.tailwindConfig}
29646
30244
 
29647
30245
  // src/data/native-catalog.json
29648
30246
  var native_catalog_default = {
29649
- version: "0.3.1",
30247
+ version: "0.3.2",
29650
30248
  packageName: "@classic-homes/native",
29651
30249
  description: "Native device APIs for iOS and Android mobile apps. Uses Capacitor for native functionality with web fallbacks.",
29652
30250
  subpackages: {
@@ -32021,7 +32619,7 @@ function registerPrompts(server) {
32021
32619
  // package.json
32022
32620
  var package_default = {
32023
32621
  name: "@classic-homes/theme-mcp",
32024
- version: "0.3.1",
32622
+ version: "0.3.2",
32025
32623
  description: "MCP server for Classic Theme design system - enables AI assistants to understand and correctly use components, tokens, and patterns",
32026
32624
  type: "module",
32027
32625
  main: "dist/index.js",