@classic-homes/theme-mcp 0.3.0 → 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/cli.js CHANGED
@@ -11,7 +11,7 @@ import { ResourceTemplate } from "@modelcontextprotocol/sdk/server/mcp.js";
11
11
 
12
12
  // src/data/component-catalog.json
13
13
  var component_catalog_default = {
14
- version: "0.3.0",
14
+ version: "0.3.2",
15
15
  components: [
16
16
  {
17
17
  name: "ActionHeader",
@@ -3051,6 +3051,19 @@ var component_catalog_default = {
3051
3051
  required: false,
3052
3052
  description: "Sidebar footer content"
3053
3053
  },
3054
+ {
3055
+ name: "sidebarAutoCollapse",
3056
+ type: "boolean",
3057
+ default: "false",
3058
+ required: false,
3059
+ description: "Accordion sidebar navigation"
3060
+ },
3061
+ {
3062
+ name: "footer",
3063
+ type: "Snippet",
3064
+ required: false,
3065
+ description: "Page footer below main content"
3066
+ },
3054
3067
  {
3055
3068
  name: "expandedWidth",
3056
3069
  type: "number",
@@ -11954,6 +11967,13 @@ var component_catalog_default = {
11954
11967
  required: false,
11955
11968
  description: "Enable search"
11956
11969
  },
11970
+ {
11971
+ name: "autoCollapse",
11972
+ type: "boolean",
11973
+ default: "false",
11974
+ required: false,
11975
+ description: "Opening a section or item closes others at its level"
11976
+ },
11957
11977
  {
11958
11978
  name: "searchPlaceholder",
11959
11979
  type: "string",
@@ -14348,7 +14368,7 @@ function registerComponentResources(server) {
14348
14368
 
14349
14369
  // src/data/token-definitions.json
14350
14370
  var token_definitions_default = {
14351
- version: "0.3.0",
14371
+ version: "0.3.2",
14352
14372
  colors: {
14353
14373
  brand: [
14354
14374
  {
@@ -15331,7 +15351,7 @@ function registerTokenResources(server) {
15331
15351
 
15332
15352
  // src/data/styles-catalog.json
15333
15353
  var styles_catalog_default = {
15334
- version: "0.3.0",
15354
+ version: "0.3.2",
15335
15355
  package: "@classic-homes/theme-styles",
15336
15356
  description: "Base CSS styles, accessibility features, and utility classes for the Classic Theme design system",
15337
15357
  integration: {
@@ -15349,6 +15369,16 @@ var styles_catalog_default = {
15349
15369
  description: "CSS layers are used for proper cascade control, from lowest to highest specificity"
15350
15370
  },
15351
15371
  modules: [
15372
+ {
15373
+ name: "core",
15374
+ path: "@classic-homes/theme-styles/core",
15375
+ 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."
15376
+ },
15377
+ {
15378
+ name: "fonts",
15379
+ path: "@classic-homes/theme-styles/fonts",
15380
+ 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."
15381
+ },
15352
15382
  {
15353
15383
  name: "base",
15354
15384
  path: "@classic-homes/theme-styles/base",
@@ -15356,7 +15386,7 @@ var styles_catalog_default = {
15356
15386
  features: [
15357
15387
  {
15358
15388
  name: "Brand Fonts",
15359
- description: "Imports Google Fonts: Figtree (sans-serif) and Spectral (serif, 400/500/600 + italics)",
15389
+ 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.",
15360
15390
  cssVariables: [
15361
15391
  "--font-sans",
15362
15392
  "--font-serif"
@@ -15704,7 +15734,7 @@ import { ResourceTemplate as ResourceTemplate2 } from "@modelcontextprotocol/sdk
15704
15734
 
15705
15735
  // src/data/pattern-library.json
15706
15736
  var pattern_library_default = {
15707
- version: "0.3.0",
15737
+ version: "0.3.2",
15708
15738
  layouts: [
15709
15739
  {
15710
15740
  id: "dashboard-page",
@@ -16798,7 +16828,7 @@ function registerLayoutResources(server) {
16798
16828
 
16799
16829
  // src/data/schema-catalog.json
16800
16830
  var schema_catalog_default = {
16801
- version: "0.3.0",
16831
+ version: "0.3.2",
16802
16832
  packageName: "@classic-homes/theme-svelte",
16803
16833
  importPath: "@classic-homes/theme-svelte",
16804
16834
  generatedFrom: "packages/svelte/src/lib/schemas/index.ts",
@@ -17606,7 +17636,7 @@ import { ResourceTemplate as ResourceTemplate3 } from "@modelcontextprotocol/sdk
17606
17636
 
17607
17637
  // src/data/auth-catalog.json
17608
17638
  var auth_catalog_default = {
17609
- version: "0.3.0",
17639
+ version: "0.3.2",
17610
17640
  packageName: "@classic-homes/auth",
17611
17641
  description: "Authentication services and Svelte bindings for Classic Theme apps",
17612
17642
  subpackages: {
@@ -20643,7 +20673,7 @@ import { ResourceTemplate as ResourceTemplate4 } from "@modelcontextprotocol/sdk
20643
20673
 
20644
20674
  // src/data/notifications-catalog.json
20645
20675
  var notifications_catalog_default = {
20646
- version: "0.3.0",
20676
+ version: "0.3.2",
20647
20677
  packageName: "@classic-homes/notifications",
20648
20678
  description: "Notification services and Svelte bindings for Classic Theme apps",
20649
20679
  subpackages: {
@@ -21555,7 +21585,7 @@ function registerNotificationsResources(server) {
21555
21585
 
21556
21586
  // src/data/docs-catalog.json
21557
21587
  var docs_catalog_default = {
21558
- version: "0.3.0",
21588
+ version: "0.3.2",
21559
21589
  packageName: "@classic-homes/theme-docs",
21560
21590
  description: "Markdown documentation components for the Classic theme system",
21561
21591
  exports: {
@@ -21563,9 +21593,33 @@ var docs_catalog_default = {
21563
21593
  importPath: "@classic-homes/theme-docs",
21564
21594
  description: "Main entry point with components, parser utilities, and types"
21565
21595
  },
21596
+ "./parser": {
21597
+ importPath: "@classic-homes/theme-docs/parser",
21598
+ description: "Markdown pipeline without Svelte imports (parseMarkdown, extractToc, createSlugger, extensions) for Node build scripts, server loaders and CMS previews"
21599
+ },
21600
+ "./sanitize": {
21601
+ importPath: "@classic-homes/theme-docs/sanitize",
21602
+ description: "sanitizeDocsHtml: allowlist sanitizer for parseMarkdown output (server/build-time only)"
21603
+ },
21604
+ "./content": {
21605
+ importPath: "@classic-homes/theme-docs/content",
21606
+ description: "loadDocs/renderDocs: a Docusaurus-style docs directory as routes, autogenerated sidebars, generated-index pages, tags and rendered HTML (Node, build time)"
21607
+ },
21608
+ "./nav": {
21609
+ importPath: "@classic-homes/theme-docs/nav",
21610
+ description: "Sidebar helpers (neighbours, breadcrumbs, flattenNav, tagCounts) and content-model types, browser-safe"
21611
+ },
21612
+ "./search": {
21613
+ importPath: "@classic-homes/theme-docs/search",
21614
+ description: "buildSearchIndex/createSearch: MiniSearch full-text search over rendered docs, with a filter hook for access rules"
21615
+ },
21616
+ "./vite": {
21617
+ importPath: "@classic-homes/theme-docs/vite",
21618
+ description: "docsContent Vite plugin: regenerate docs content on change in dev and before each build"
21619
+ },
21566
21620
  "./styles": {
21567
21621
  importPath: "@classic-homes/theme-docs/styles",
21568
- description: "Subpath export for styles"
21622
+ description: "Markdown content stylesheet (.markdown-content)"
21569
21623
  }
21570
21624
  },
21571
21625
  components: [
@@ -21744,8 +21798,8 @@ var docs_catalog_default = {
21744
21798
  {
21745
21799
  name: "html",
21746
21800
  type: "string",
21747
- required: true,
21748
- description: "HTML content to extract headings from"
21801
+ required: false,
21802
+ description: "HTML to extract headings from in the browser, when there is no toc"
21749
21803
  },
21750
21804
  {
21751
21805
  name: "maxDepth",
@@ -21771,6 +21825,26 @@ var docs_catalog_default = {
21771
21825
  type: "boolean",
21772
21826
  required: false,
21773
21827
  description: "Whether to use sticky positioning"
21828
+ },
21829
+ {
21830
+ name: "toc",
21831
+ type: "TocEntry[]",
21832
+ required: false,
21833
+ description: "Prebuilt entries (page.toc from renderDocs); renders on the server"
21834
+ },
21835
+ {
21836
+ name: "minDepth",
21837
+ type: "number",
21838
+ required: false,
21839
+ description: "Shallowest heading level",
21840
+ default: "1"
21841
+ },
21842
+ {
21843
+ name: "offset",
21844
+ type: "number",
21845
+ required: false,
21846
+ description: "Fixed header height in px for scroll-spy",
21847
+ default: "80"
21774
21848
  }
21775
21849
  ],
21776
21850
  features: [
@@ -21778,7 +21852,9 @@ var docs_catalog_default = {
21778
21852
  "IntersectionObserver scroll tracking",
21779
21853
  "Smooth scroll to headings",
21780
21854
  "Hierarchical indentation",
21781
- "Active state highlighting"
21855
+ "Active state highlighting",
21856
+ 'Scroll-spy marks the heading being read with aria-current="location"',
21857
+ "Entries are native #id links (router-friendly)"
21782
21858
  ],
21783
21859
  example: '<TableOfContents html={renderedHtml} maxDepth={3} title="On this page" sticky />'
21784
21860
  },
@@ -21790,8 +21866,8 @@ var docs_catalog_default = {
21790
21866
  {
21791
21867
  name: "html",
21792
21868
  type: "string",
21793
- required: true,
21794
- description: "HTML content for TOC extraction"
21869
+ required: false,
21870
+ description: "HTML to extract headings from in the browser, when there is no toc"
21795
21871
  },
21796
21872
  {
21797
21873
  name: "maxDepth",
@@ -21812,6 +21888,26 @@ var docs_catalog_default = {
21812
21888
  type: "string",
21813
21889
  required: false,
21814
21890
  description: "Custom class"
21891
+ },
21892
+ {
21893
+ name: "toc",
21894
+ type: "TocEntry[]",
21895
+ required: false,
21896
+ description: "Prebuilt entries (page.toc from renderDocs); renders on the server"
21897
+ },
21898
+ {
21899
+ name: "minDepth",
21900
+ type: "number",
21901
+ required: false,
21902
+ description: "Shallowest heading level",
21903
+ default: "1"
21904
+ },
21905
+ {
21906
+ name: "offset",
21907
+ type: "number",
21908
+ required: false,
21909
+ description: "Fixed header height in px for scroll-spy",
21910
+ default: "80"
21815
21911
  }
21816
21912
  ],
21817
21913
  features: [
@@ -21819,7 +21915,10 @@ var docs_catalog_default = {
21819
21915
  "Desktop sidebar display",
21820
21916
  "Keyboard support (Escape to close)",
21821
21917
  "Focus restoration on close",
21822
- "Responsive breakpoint variants"
21918
+ "Responsive breakpoint variants",
21919
+ 'Scroll-spy marks the heading being read with aria-current="location"',
21920
+ "Entries are native #id links (router-friendly)",
21921
+ "Mobile panel is a modal dialog with a focus trap; inert while closed"
21823
21922
  ],
21824
21923
  example: '<TocPanel html={renderedHtml} breakpoint="lg" />'
21825
21924
  },
@@ -21877,6 +21976,294 @@ var docs_catalog_default = {
21877
21976
  ],
21878
21977
  peerDependency: "mermaid@^11.0.0 (optional)",
21879
21978
  example: "<MermaidInit watch={true} />"
21979
+ },
21980
+ {
21981
+ name: "DocPage",
21982
+ 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",
21983
+ category: "layout",
21984
+ props: [
21985
+ {
21986
+ name: "page",
21987
+ type: "{ title; html; toc; hasH1; description? }",
21988
+ required: true,
21989
+ description: "A RenderedDoc from renderDocs"
21990
+ },
21991
+ {
21992
+ name: "breadcrumbs",
21993
+ type: "Crumb[]",
21994
+ required: false,
21995
+ description: "breadcrumbs(sidebar.items, route)"
21996
+ },
21997
+ {
21998
+ name: "home",
21999
+ type: "{ label; href }",
22000
+ required: false,
22001
+ description: "First breadcrumb"
22002
+ },
22003
+ {
22004
+ name: "previous",
22005
+ type: "NavLink | null",
22006
+ required: false,
22007
+ description: "From neighbours()"
22008
+ },
22009
+ {
22010
+ name: "next",
22011
+ type: "NavLink | null",
22012
+ required: false,
22013
+ description: "From neighbours()"
22014
+ },
22015
+ {
22016
+ name: "tags",
22017
+ type: "Tag[]",
22018
+ required: false,
22019
+ description: "The page's tags"
22020
+ },
22021
+ {
22022
+ name: "tagHref",
22023
+ type: "(tag) => string",
22024
+ required: false,
22025
+ description: "Tag page route",
22026
+ default: "/docs/tags/<id>"
22027
+ },
22028
+ {
22029
+ name: "editUrl",
22030
+ type: "string",
22031
+ required: false,
22032
+ description: '"Edit this page" link'
22033
+ },
22034
+ {
22035
+ name: "components",
22036
+ type: "Record<string, Component>",
22037
+ required: false,
22038
+ description: "Components for <Name /> placeholders"
22039
+ },
22040
+ {
22041
+ name: "mermaid",
22042
+ type: "boolean",
22043
+ required: false,
22044
+ description: "Render mermaid diagrams",
22045
+ default: "true"
22046
+ },
22047
+ {
22048
+ name: "copyButtons",
22049
+ type: "boolean",
22050
+ required: false,
22051
+ description: "Copy buttons on code blocks",
22052
+ default: "true"
22053
+ },
22054
+ {
22055
+ name: "highlightParam",
22056
+ type: "string | null",
22057
+ required: false,
22058
+ description: "Query parameter whose words are highlighted",
22059
+ default: "'highlight'"
22060
+ },
22061
+ {
22062
+ name: "tocMinDepth",
22063
+ type: "number",
22064
+ required: false,
22065
+ description: "Shallowest TOC level",
22066
+ default: "2"
22067
+ },
22068
+ {
22069
+ name: "tocMaxDepth",
22070
+ type: "number",
22071
+ required: false,
22072
+ description: "Deepest TOC level",
22073
+ default: "3"
22074
+ },
22075
+ {
22076
+ name: "tocBreakpoint",
22077
+ type: "'lg' | 'xl' | '2xl'",
22078
+ required: false,
22079
+ description: "Where the TOC becomes a column",
22080
+ default: "'xl'"
22081
+ },
22082
+ {
22083
+ name: "headerOffset",
22084
+ type: "number",
22085
+ required: false,
22086
+ description: "Fixed header height in px (scroll margins, scroll-spy)",
22087
+ default: "80"
22088
+ },
22089
+ {
22090
+ name: "siteTitle",
22091
+ type: "string",
22092
+ required: false,
22093
+ description: 'Sets <title> to "Page | Site" and the meta description'
22094
+ }
22095
+ ],
22096
+ slots: [
22097
+ {
22098
+ name: "meta",
22099
+ description: "Extra footer content next to the edit link"
22100
+ }
22101
+ ],
22102
+ features: [
22103
+ "SSR, no client-side parsing",
22104
+ "Copy buttons with clipboard fallback",
22105
+ "Search-term highlighting",
22106
+ "Anchor targets clear the fixed header (scroll-margin-top)"
22107
+ ],
22108
+ example: '<DocPage page={data.page} breadcrumbs={data.crumbs} previous={data.previous} next={data.next} tags={data.tags} editUrl={data.editUrl} siteTitle="Docs" />'
22109
+ },
22110
+ {
22111
+ name: "CategoryIndex",
22112
+ description: "Generated-index page: title, description and a card per category item",
22113
+ category: "navigation",
22114
+ props: [
22115
+ {
22116
+ name: "category",
22117
+ type: "Pick<CategoryPage, 'title' | 'description' | 'items'>",
22118
+ required: true,
22119
+ description: "From loadDocs().categories"
22120
+ },
22121
+ {
22122
+ name: "descriptions",
22123
+ type: "Record<string, string> | Map",
22124
+ required: false,
22125
+ description: "Page descriptions by route"
22126
+ },
22127
+ {
22128
+ name: "columns",
22129
+ type: "1 | 2 | 3 | 4",
22130
+ required: false,
22131
+ description: "Grid columns",
22132
+ default: "2"
22133
+ },
22134
+ {
22135
+ name: "countLabel",
22136
+ type: "(n) => string",
22137
+ required: false,
22138
+ description: "Text for a category card"
22139
+ }
22140
+ ],
22141
+ slots: [],
22142
+ features: [
22143
+ "Category cards link to their own page or first page, with entry counts"
22144
+ ],
22145
+ example: "<CategoryIndex category={data.category} descriptions={data.descriptions} />"
22146
+ },
22147
+ {
22148
+ name: "Breadcrumbs",
22149
+ description: "Path to the current docs page",
22150
+ category: "navigation",
22151
+ props: [
22152
+ {
22153
+ name: "crumbs",
22154
+ type: "Crumb[]",
22155
+ required: true,
22156
+ description: "breadcrumbs(sidebar.items, route)"
22157
+ },
22158
+ {
22159
+ name: "home",
22160
+ type: "{ label; href }",
22161
+ required: false,
22162
+ description: "Optional first crumb"
22163
+ }
22164
+ ],
22165
+ slots: [],
22166
+ features: [
22167
+ "nav landmark, aria-current on the last crumb"
22168
+ ],
22169
+ example: "<Breadcrumbs crumbs={breadcrumbs(sidebar.items, route)} home={{ label: 'Docs', href: '/' }} />"
22170
+ },
22171
+ {
22172
+ name: "DocPager",
22173
+ description: "Previous/next links at the foot of a docs page",
22174
+ category: "navigation",
22175
+ props: [
22176
+ {
22177
+ name: "previous",
22178
+ type: "NavLink | null",
22179
+ required: false,
22180
+ description: "From neighbours()"
22181
+ },
22182
+ {
22183
+ name: "next",
22184
+ type: "NavLink | null",
22185
+ required: false,
22186
+ description: "From neighbours()"
22187
+ },
22188
+ {
22189
+ name: "previousLabel",
22190
+ type: "string",
22191
+ required: false,
22192
+ description: "",
22193
+ default: "'Previous'"
22194
+ },
22195
+ {
22196
+ name: "nextLabel",
22197
+ type: "string",
22198
+ required: false,
22199
+ description: "",
22200
+ default: "'Next'"
22201
+ }
22202
+ ],
22203
+ slots: [],
22204
+ features: [
22205
+ "rel=prev/next"
22206
+ ],
22207
+ example: "<DocPager {...neighbours(sidebar.items, route)} />"
22208
+ },
22209
+ {
22210
+ name: "TagList",
22211
+ description: "A page's tags as links to tag pages",
22212
+ category: "navigation",
22213
+ props: [
22214
+ {
22215
+ name: "tags",
22216
+ type: "(Tag & { count? })[]",
22217
+ required: true,
22218
+ description: "Tags to show"
22219
+ },
22220
+ {
22221
+ name: "href",
22222
+ type: "(tag) => string",
22223
+ required: false,
22224
+ description: "Tag page route",
22225
+ default: "/docs/tags/<id>"
22226
+ },
22227
+ {
22228
+ name: "label",
22229
+ type: "string",
22230
+ required: false,
22231
+ description: "Accessible name",
22232
+ default: "'Tags'"
22233
+ }
22234
+ ],
22235
+ slots: [],
22236
+ features: [],
22237
+ example: "<TagList tags={pageTags} />"
22238
+ },
22239
+ {
22240
+ name: "TagIndex",
22241
+ description: "Every tag in use, grouped by first letter (Docusaurus /tags page)",
22242
+ category: "navigation",
22243
+ props: [
22244
+ {
22245
+ name: "tags",
22246
+ type: "(Tag & { count })[]",
22247
+ required: true,
22248
+ description: "tagCounts(tags, readablePages)"
22249
+ },
22250
+ {
22251
+ name: "href",
22252
+ type: "(tag) => string",
22253
+ required: false,
22254
+ description: "Tag page route"
22255
+ },
22256
+ {
22257
+ name: "as",
22258
+ type: "'h2' | 'h3'",
22259
+ required: false,
22260
+ description: "Letter heading level",
22261
+ default: "'h2'"
22262
+ }
22263
+ ],
22264
+ slots: [],
22265
+ features: [],
22266
+ example: "<TagIndex tags={tagCounts(tags, pages)} />"
21880
22267
  }
21881
22268
  ],
21882
22269
  utilities: {
@@ -21942,43 +22329,58 @@ var docs_catalog_default = {
21942
22329
  {
21943
22330
  name: "admonitionExtension",
21944
22331
  signature: "() => MarkedExtension",
21945
- description: "Extension for callouts/admonitions (:::note, :::tip, :::warning, :::important, :::caution)"
22332
+ description: "Callouts (:::note, :::info, :::tip, :::warning, :::important, :::caution, :::danger) with `:::type Title` or `:::type[Title]` titles"
21946
22333
  },
21947
22334
  {
21948
22335
  name: "footnoteExtension",
21949
- signature: "() => MarkedExtension",
21950
- description: "Extension for footnotes ([^1] references and [^1]: definitions)"
22336
+ signature: "(store?: FootnoteStore) => MarkedExtension",
22337
+ description: "Footnotes ([^1] references and [^1]: definitions) collected into the given store"
21951
22338
  },
21952
22339
  {
21953
22340
  name: "definitionListExtension",
21954
22341
  signature: "() => MarkedExtension",
21955
- description: "Extension for definition lists (Term\\n: Definition)"
22342
+ description: "Definition lists (Term\\n: Definition), inline markdown in both"
21956
22343
  },
21957
22344
  {
21958
22345
  name: "mermaidExtension",
21959
22346
  signature: "() => MarkedExtension",
21960
- description: "Extension for Mermaid diagram placeholders"
22347
+ description: "Mermaid diagram placeholders (rendered client-side by MermaidInit/MermaidDiagram)"
22348
+ },
22349
+ {
22350
+ name: "componentExtension",
22351
+ signature: "(names: readonly string[]) => MarkedExtension",
22352
+ description: 'Allowlisted `<Name prop="\u2026" />` lines become placeholders for mountComponents'
21961
22353
  },
21962
22354
  {
21963
22355
  name: "getAllExtensions",
21964
- signature: "() => MarkedExtension[]",
22356
+ signature: "(components?: readonly string[], footnotes?: FootnoteStore) => MarkedExtension[]",
21965
22357
  description: "Get all extensions as an array"
21966
22358
  },
21967
22359
  {
21968
- name: "resetFootnoteStore",
21969
- signature: "() => void",
21970
- description: "Reset footnote state between documents"
22360
+ name: "createFootnoteStore",
22361
+ signature: "() => FootnoteStore",
22362
+ description: "Fresh footnote store for one document (parseMarkdown creates one per call)"
21971
22363
  },
21972
22364
  {
21973
22365
  name: "renderFootnotes",
21974
- signature: "() => string",
21975
- description: "Render collected footnotes as HTML section"
22366
+ signature: "(store?: FootnoteStore, renderInline?: (tokens) => string) => string",
22367
+ description: "Render collected footnotes as an HTML section"
22368
+ },
22369
+ {
22370
+ name: "renderMermaidPlaceholder",
22371
+ signature: "(code: string) => string",
22372
+ description: "HTML placeholder for one mermaid diagram"
22373
+ },
22374
+ {
22375
+ name: "resetFootnoteStore",
22376
+ signature: "() => void",
22377
+ description: "Deprecated: resets the shared store used when no store is passed"
21976
22378
  }
21977
22379
  ],
21978
22380
  constants: [
21979
22381
  {
21980
22382
  name: "ADMONITION_TYPES",
21981
- type: "readonly ['note', 'tip', 'warning', 'important', 'caution']",
22383
+ type: "readonly ['note', 'info', 'tip', 'warning', 'important', 'caution', 'danger']",
21982
22384
  description: "Array of supported admonition types"
21983
22385
  }
21984
22386
  ]
@@ -22004,6 +22406,136 @@ var docs_catalog_default = {
22004
22406
  description: "Type helper for variant props"
22005
22407
  }
22006
22408
  ]
22409
+ },
22410
+ sanitize: {
22411
+ description: "Import from @classic-homes/theme-docs/sanitize (server/build-time only)",
22412
+ functions: [
22413
+ {
22414
+ name: "sanitizeDocsHtml",
22415
+ signature: "(html: string) => { html: string; removed: string[] }",
22416
+ description: "Allowlist sanitizer for parseMarkdown output; `removed` lists stripped tags/attributes for build logs"
22417
+ }
22418
+ ]
22419
+ },
22420
+ content: {
22421
+ description: "Import from @classic-homes/theme-docs/content (Node, build time)",
22422
+ functions: [
22423
+ {
22424
+ name: "loadDocs",
22425
+ signature: "(options: LoadDocsOptions) => LoadedDocs",
22426
+ 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"
22427
+ },
22428
+ {
22429
+ name: "renderDocs",
22430
+ signature: "(docs: LoadedDocs, options?: { parse?: ParseOptions; sanitize?: boolean; onBrokenAnchors?: 'throw' | 'warn' | 'ignore' }) => Promise<RenderDocsResult>",
22431
+ description: "Render every page to HTML with toc, hasH1 and search text; checks #anchor links"
22432
+ },
22433
+ {
22434
+ name: "plainText",
22435
+ signature: "(html: string) => string",
22436
+ description: "Searchable text from rendered HTML"
22437
+ }
22438
+ ]
22439
+ },
22440
+ nav: {
22441
+ description: "Import from @classic-homes/theme-docs/nav (browser-safe; also re-exported by /content)",
22442
+ functions: [
22443
+ {
22444
+ name: "neighbours",
22445
+ signature: "(items: NavItem[], route: string) => { previous; next }",
22446
+ description: "Previous/next links in sidebar order"
22447
+ },
22448
+ {
22449
+ name: "breadcrumbs",
22450
+ signature: "(items: NavItem[], route: string) => Crumb[]",
22451
+ description: "Categories leading to a route, ending with the page"
22452
+ },
22453
+ {
22454
+ name: "flattenNav",
22455
+ signature: "(items: NavItem[]) => NavLink[]",
22456
+ description: "Linkable entries in sidebar order"
22457
+ },
22458
+ {
22459
+ name: "navContains",
22460
+ signature: "(item: NavItem, route: string) => boolean",
22461
+ description: "Whether a route is under a sidebar entry"
22462
+ },
22463
+ {
22464
+ name: "countPages",
22465
+ signature: "(items: NavItem[]) => number",
22466
+ description: "Linkable entries under a list, recursively"
22467
+ },
22468
+ {
22469
+ name: "tagCounts",
22470
+ signature: "(tags: Tag[], pages) => (Tag & { count })[]",
22471
+ description: "Tags in use with page counts"
22472
+ },
22473
+ {
22474
+ name: "pagesTagged",
22475
+ signature: "(pages, tag: string) => pages",
22476
+ description: "Pages carrying a tag, by title"
22477
+ }
22478
+ ]
22479
+ },
22480
+ search: {
22481
+ description: "Import from @classic-homes/theme-docs/search",
22482
+ functions: [
22483
+ {
22484
+ name: "buildSearchIndex",
22485
+ signature: "(pages: RenderedDoc[]) => string",
22486
+ description: "Serialized MiniSearch index over title, headings, description and text"
22487
+ },
22488
+ {
22489
+ name: "createSearch",
22490
+ signature: "(indexJson, texts?) => { search(query, { filter?, limit?, minLength? }): SearchHit[] }",
22491
+ description: "Query an index; filter runs before snippets are built"
22492
+ },
22493
+ {
22494
+ name: "snippet",
22495
+ signature: "(text: string, terms: string[]) => string",
22496
+ description: "~160 characters around the first match"
22497
+ }
22498
+ ]
22499
+ },
22500
+ vite: {
22501
+ description: "Import from @classic-homes/theme-docs/vite",
22502
+ functions: [
22503
+ {
22504
+ name: "docsContent",
22505
+ signature: "(options: { watch: string | string[]; generate: () => void | Promise<void>; debounce?: number }) => Plugin",
22506
+ description: "Run generate before builds and on changes in dev, then full-reload"
22507
+ }
22508
+ ]
22509
+ },
22510
+ layout: {
22511
+ description: "From the package root (browser)",
22512
+ functions: [
22513
+ {
22514
+ name: "toSidebarNav",
22515
+ signature: "(items: NavItem[], current: string, options?: { title?; idPrefix?; overviewLabel? }) => NavSection[]",
22516
+ description: "Map a docs sidebar onto theme-svelte navigation (DashboardLayout/Sidebar); deeper than 3 levels is flattened"
22517
+ },
22518
+ {
22519
+ name: "revealActive",
22520
+ signature: "(navigation: NavSection[]) => void",
22521
+ description: "Force-expand the path to the active entry; call after each navigation"
22522
+ },
22523
+ {
22524
+ name: "enhanceCodeBlocks",
22525
+ signature: "(root: ParentNode) => () => void",
22526
+ description: "Copy buttons on code blocks (DocPage does this)"
22527
+ },
22528
+ {
22529
+ name: "highlightTerms",
22530
+ signature: "(root: ParentNode, terms: string[]) => { cleanup; first }",
22531
+ description: 'Wrap terms in <mark class="search-highlight">'
22532
+ },
22533
+ {
22534
+ name: "labelDiagram",
22535
+ signature: "(container: Element) => void",
22536
+ description: "role=img and a name for a rendered mermaid SVG"
22537
+ }
22538
+ ]
22007
22539
  }
22008
22540
  },
22009
22541
  types: [
@@ -22028,6 +22560,12 @@ var docs_catalog_default = {
22028
22560
  type: "string",
22029
22561
  required: true,
22030
22562
  description: "Rendered HTML content"
22563
+ },
22564
+ {
22565
+ name: "toc",
22566
+ type: "TocEntry[]",
22567
+ required: true,
22568
+ description: "Every heading with an ID, all levels, in document order"
22031
22569
  }
22032
22570
  ]
22033
22571
  },
@@ -22040,7 +22578,7 @@ var docs_catalog_default = {
22040
22578
  type: "string",
22041
22579
  required: false,
22042
22580
  default: "'github-dark'",
22043
- description: "Shiki theme for code highlighting"
22581
+ description: "Shiki theme for code highlighting (any bundled theme; loaded on demand)"
22044
22582
  },
22045
22583
  {
22046
22584
  name: "generateHeadingIds",
@@ -22048,6 +22586,39 @@ var docs_catalog_default = {
22048
22586
  required: false,
22049
22587
  default: "true",
22050
22588
  description: "Whether to generate heading IDs"
22589
+ },
22590
+ {
22591
+ name: "headingIdStyle",
22592
+ type: "'default' | 'github'",
22593
+ required: false,
22594
+ default: "'default'",
22595
+ description: "'github' matches GitHub/Docusaurus anchors (github-slugger)"
22596
+ },
22597
+ {
22598
+ name: "headingAnchors",
22599
+ type: "boolean",
22600
+ required: false,
22601
+ default: "false",
22602
+ description: "Append a `#` permalink (a.hash-link) to each heading"
22603
+ },
22604
+ {
22605
+ name: "components",
22606
+ type: "readonly string[]",
22607
+ required: false,
22608
+ description: "Component names rendered as placeholders for mountComponents"
22609
+ },
22610
+ {
22611
+ name: "externalLinks",
22612
+ type: "boolean | { target?: string; rel?: string }",
22613
+ required: false,
22614
+ default: "false",
22615
+ description: "Open http(s) links in a new tab with a screen-reader note"
22616
+ },
22617
+ {
22618
+ name: "langAlias",
22619
+ type: "Record<string, string>",
22620
+ required: false,
22621
+ description: "Map fence names to Shiki languages; unknown languages render as plain code"
22051
22622
  }
22052
22623
  ]
22053
22624
  },
@@ -22336,14 +22907,18 @@ var docs_catalog_default = {
22336
22907
  ]
22337
22908
  },
22338
22909
  peerDependencies: {
22910
+ "@classic-homes/theme-svelte": ">=1.16.0",
22339
22911
  mermaid: "^11.0.0",
22340
- svelte: "^5.0.0"
22912
+ svelte: "^5.0.0",
22913
+ vite: ">=5.0.0"
22341
22914
  },
22342
22915
  dependencies: {
22343
22916
  "@classic-homes/theme-tokens": "*",
22344
22917
  clsx: "^2.1.0",
22345
22918
  "js-yaml": "^4.3.2",
22346
22919
  marked: "^17.0.0",
22920
+ minisearch: "7.2.0",
22921
+ "sanitize-html": "2.18.0",
22347
22922
  shiki: "^1.0.0",
22348
22923
  "tailwind-merge": "^2.2.0",
22349
22924
  "tailwind-variants": "^0.3.0"
@@ -22466,9 +23041,32 @@ function registerDocsResources(server) {
22466
23041
  "footnoteExtension",
22467
23042
  "definitionListExtension",
22468
23043
  "mermaidExtension",
23044
+ "componentExtension",
22469
23045
  "getAllExtensions",
22470
- "resetFootnoteStore",
22471
- "renderFootnotes"
23046
+ "createFootnoteStore",
23047
+ "renderFootnotes",
23048
+ "renderMermaidPlaceholder",
23049
+ "resetFootnoteStore"
23050
+ ],
23051
+ sanitizeFunctions: ["sanitizeDocsHtml"],
23052
+ contentFunctions: ["loadDocs", "renderDocs", "plainText"],
23053
+ navFunctions: [
23054
+ "neighbours",
23055
+ "breadcrumbs",
23056
+ "flattenNav",
23057
+ "navContains",
23058
+ "countPages",
23059
+ "tagCounts",
23060
+ "pagesTagged"
23061
+ ],
23062
+ searchFunctions: ["buildSearchIndex", "createSearch", "snippet"],
23063
+ vitePlugins: ["docsContent"],
23064
+ layoutFunctions: [
23065
+ "toSidebarNav",
23066
+ "revealActive",
23067
+ "enhanceCodeBlocks",
23068
+ "highlightTerms",
23069
+ "labelDiagram"
22472
23070
  ],
22473
23071
  helpers: ["cn", "tv", "VariantProps"],
22474
23072
  peerDependencies: docs.peerDependencies
@@ -22483,7 +23081,7 @@ function registerDocsResources(server) {
22483
23081
 
22484
23082
  // src/data/charts-catalog.json
22485
23083
  var charts_catalog_default = {
22486
- version: "0.3.0",
23084
+ version: "0.3.2",
22487
23085
  packageName: "@classic-homes/charts-core",
22488
23086
  description: "Core utilities, types, and themes for Classic Theme chart components",
22489
23087
  subpackages: {
@@ -24320,7 +24918,7 @@ interface SankeyData {
24320
24918
 
24321
24919
  // src/data/maps-catalog.json
24322
24920
  var maps_catalog_default = {
24323
- version: "0.3.0",
24921
+ version: "0.3.2",
24324
24922
  packageName: "@classic-homes/maps-core",
24325
24923
  description: "Core utilities, types, and themes for Classic Theme MapLibre GL components",
24326
24924
  subpackages: {
@@ -25282,7 +25880,7 @@ var maps_catalog_default = {
25282
25880
  example: "import { optimizeOrder } from '@classic-homes/maps-core/route';\n\nconst { order, legMiles, totalMiles } = optimizeOrder(userLocation, stops);\nconst visitOrder = order.map((i) => stops[i]);"
25283
25881
  },
25284
25882
  mapsLinks: {
25285
- description: "Deep links into Google Maps and Apple Maps. Google renders at most 9 intermediate waypoints; the Apple Maps URL scheme has no waypoint parameter at all.",
25883
+ description: "Deep links into Google Maps and Apple Maps. Google renders at most 9 intermediate waypoints; Apple's unified /directions URL takes repeated waypoints (iOS 18.4+).",
25286
25884
  functions: [
25287
25885
  {
25288
25886
  name: "googleDirectionsUrl",
@@ -25297,7 +25895,7 @@ var maps_catalog_default = {
25297
25895
  {
25298
25896
  name: "appleDirectionsUrl",
25299
25897
  signature: "(stops: DirectionsTarget[], origin?: DirectionsTarget | null, dirflg?: 'd' | 'w' | 'r') => string",
25300
- description: "Apple Maps URL. Multi-stop input returns the leg to the FIRST stop only - label the affordance accordingly."
25898
+ description: "Apple Maps directions URL. One stop: legacy saddr/daddr form. Several: unified /directions URL (iOS 18.4 / macOS 15.4+) with the last stop as destination and the rest as repeated waypoints. Returns '' when no target is usable."
25301
25899
  },
25302
25900
  {
25303
25901
  name: "googleSearchUrl",
@@ -25325,7 +25923,7 @@ var maps_catalog_default = {
25325
25923
  description: "Targets per leg, counting the destination (10)"
25326
25924
  }
25327
25925
  ],
25328
- example: "import { googleDirectionsUrl, appleDirectionsUrl } from '@classic-homes/maps-core/route';\n\nconst google = googleDirectionsUrl(stops, userLocation, 'driving');\nconst apple = appleDirectionsUrl(stops, userLocation); // first stop only - label it"
25926
+ example: "import { googleDirectionsUrl, appleDirectionsUrl } from '@classic-homes/maps-core/route';\n\nconst google = googleDirectionsUrl(stops, userLocation, 'driving');\nconst apple = appleDirectionsUrl(stops, userLocation); // whole route on iOS 18.4+"
25329
25927
  },
25330
25928
  coords: {
25331
25929
  description: "LatLng is an object, deliberately NOT the LngLat tuple the rest of maps-core uses: a silently transposed tuple produces a plausible route on the wrong side of the planet. Convert at the map boundary.",
@@ -29651,7 +30249,7 @@ ${catalog5.quickReference.tailwindConfig}
29651
30249
 
29652
30250
  // src/data/native-catalog.json
29653
30251
  var native_catalog_default = {
29654
- version: "0.3.0",
30252
+ version: "0.3.2",
29655
30253
  packageName: "@classic-homes/native",
29656
30254
  description: "Native device APIs for iOS and Android mobile apps. Uses Capacitor for native functionality with web fallbacks.",
29657
30255
  subpackages: {
@@ -32026,7 +32624,7 @@ function registerPrompts(server) {
32026
32624
  // package.json
32027
32625
  var package_default = {
32028
32626
  name: "@classic-homes/theme-mcp",
32029
- version: "0.3.0",
32627
+ version: "0.3.2",
32030
32628
  description: "MCP server for Classic Theme design system - enables AI assistants to understand and correctly use components, tokens, and patterns",
32031
32629
  type: "module",
32032
32630
  main: "dist/index.js",