@classic-homes/theme-mcp 0.3.1 → 0.3.3
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 +1017 -36
- package/dist/cli.js.map +1 -1
- package/dist/index.js +1017 -36
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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.
|
|
9
|
+
version: "0.3.3",
|
|
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",
|
|
@@ -11806,6 +11819,126 @@ var component_catalog_default = {
|
|
|
11806
11819
|
"DropdownMenu"
|
|
11807
11820
|
]
|
|
11808
11821
|
},
|
|
11822
|
+
{
|
|
11823
|
+
name: "Sheet",
|
|
11824
|
+
description: "Modal panel that slides in from the left, right or bottom edge",
|
|
11825
|
+
category: "overlay",
|
|
11826
|
+
importPath: "@classic-homes/theme-svelte",
|
|
11827
|
+
props: [
|
|
11828
|
+
{
|
|
11829
|
+
name: "open",
|
|
11830
|
+
type: "boolean",
|
|
11831
|
+
default: "false",
|
|
11832
|
+
required: false,
|
|
11833
|
+
description: "Bindable"
|
|
11834
|
+
},
|
|
11835
|
+
{
|
|
11836
|
+
name: "onOpenChange",
|
|
11837
|
+
type: "(open: boolean) => void",
|
|
11838
|
+
required: false,
|
|
11839
|
+
description: "Called when opened or closed"
|
|
11840
|
+
},
|
|
11841
|
+
{
|
|
11842
|
+
name: "side",
|
|
11843
|
+
type: "'left' | 'right' | 'bottom'",
|
|
11844
|
+
default: "'right'",
|
|
11845
|
+
required: false,
|
|
11846
|
+
description: "Edge it slides in from"
|
|
11847
|
+
},
|
|
11848
|
+
{
|
|
11849
|
+
name: "size",
|
|
11850
|
+
type: "'sm' | 'md' | 'lg'",
|
|
11851
|
+
default: "'md'",
|
|
11852
|
+
required: false,
|
|
11853
|
+
description: "Width of left/right sheets from `sm` up; phones get full width"
|
|
11854
|
+
},
|
|
11855
|
+
{
|
|
11856
|
+
name: "title",
|
|
11857
|
+
type: "string",
|
|
11858
|
+
required: false,
|
|
11859
|
+
description: "Heading and accessible name (required)"
|
|
11860
|
+
},
|
|
11861
|
+
{
|
|
11862
|
+
name: "hideTitle",
|
|
11863
|
+
type: "boolean",
|
|
11864
|
+
default: "false",
|
|
11865
|
+
required: false,
|
|
11866
|
+
description: "Drop the heading row; title still names the sheet"
|
|
11867
|
+
},
|
|
11868
|
+
{
|
|
11869
|
+
name: "description",
|
|
11870
|
+
type: "string",
|
|
11871
|
+
required: false,
|
|
11872
|
+
description: "Line under the title"
|
|
11873
|
+
},
|
|
11874
|
+
{
|
|
11875
|
+
name: "headerActions",
|
|
11876
|
+
type: "Snippet",
|
|
11877
|
+
required: false,
|
|
11878
|
+
description: "Buttons beside the close button"
|
|
11879
|
+
},
|
|
11880
|
+
{
|
|
11881
|
+
name: "footer",
|
|
11882
|
+
type: "Snippet",
|
|
11883
|
+
required: false,
|
|
11884
|
+
description: "Pinned footer"
|
|
11885
|
+
},
|
|
11886
|
+
{
|
|
11887
|
+
name: "class",
|
|
11888
|
+
type: "string",
|
|
11889
|
+
required: false,
|
|
11890
|
+
description: "Additional classes for the panel"
|
|
11891
|
+
}
|
|
11892
|
+
],
|
|
11893
|
+
variants: [
|
|
11894
|
+
{
|
|
11895
|
+
name: "side",
|
|
11896
|
+
values: [
|
|
11897
|
+
"left",
|
|
11898
|
+
"right",
|
|
11899
|
+
"bottom"
|
|
11900
|
+
],
|
|
11901
|
+
default: "right"
|
|
11902
|
+
},
|
|
11903
|
+
{
|
|
11904
|
+
name: "size",
|
|
11905
|
+
values: [
|
|
11906
|
+
"sm",
|
|
11907
|
+
"md",
|
|
11908
|
+
"lg"
|
|
11909
|
+
],
|
|
11910
|
+
default: "md"
|
|
11911
|
+
}
|
|
11912
|
+
],
|
|
11913
|
+
slots: [
|
|
11914
|
+
{
|
|
11915
|
+
name: "children",
|
|
11916
|
+
description: "Main content",
|
|
11917
|
+
required: false
|
|
11918
|
+
}
|
|
11919
|
+
],
|
|
11920
|
+
events: [],
|
|
11921
|
+
examples: [
|
|
11922
|
+
{
|
|
11923
|
+
title: "Basic Usage",
|
|
11924
|
+
code: `<script>
|
|
11925
|
+
import { Sheet, Button } from '@classic-homes/theme-svelte';
|
|
11926
|
+
let open = $state(false);
|
|
11927
|
+
</script>
|
|
11928
|
+
|
|
11929
|
+
<Button onclick={() => (open = true)}>Version history</Button>
|
|
11930
|
+
|
|
11931
|
+
<Sheet bind:open title="Version history" description="Every save is kept.">
|
|
11932
|
+
<ul>...</ul>
|
|
11933
|
+
{#snippet footer()}<Button onclick={() => (open = false)}>Done</Button>{/snippet}
|
|
11934
|
+
</Sheet>`
|
|
11935
|
+
}
|
|
11936
|
+
],
|
|
11937
|
+
relatedComponents: [
|
|
11938
|
+
"Dialog",
|
|
11939
|
+
"Studio"
|
|
11940
|
+
]
|
|
11941
|
+
},
|
|
11809
11942
|
{
|
|
11810
11943
|
name: "Sidebar",
|
|
11811
11944
|
description: "Responsive sidebar navigation with collapsible sections",
|
|
@@ -11949,6 +12082,13 @@ var component_catalog_default = {
|
|
|
11949
12082
|
required: false,
|
|
11950
12083
|
description: "Enable search"
|
|
11951
12084
|
},
|
|
12085
|
+
{
|
|
12086
|
+
name: "autoCollapse",
|
|
12087
|
+
type: "boolean",
|
|
12088
|
+
default: "false",
|
|
12089
|
+
required: false,
|
|
12090
|
+
description: "Opening a section or item closes others at its level"
|
|
12091
|
+
},
|
|
11952
12092
|
{
|
|
11953
12093
|
name: "searchPlaceholder",
|
|
11954
12094
|
type: "string",
|
|
@@ -12917,6 +13057,117 @@ var component_catalog_default = {
|
|
|
12917
13057
|
"Input"
|
|
12918
13058
|
]
|
|
12919
13059
|
},
|
|
13060
|
+
{
|
|
13061
|
+
name: "SortableList",
|
|
13062
|
+
description: "Vertical list reordered by drag handle or keyboard, with announcements",
|
|
13063
|
+
category: "core",
|
|
13064
|
+
importPath: "@classic-homes/theme-svelte",
|
|
13065
|
+
props: [
|
|
13066
|
+
{
|
|
13067
|
+
name: "items",
|
|
13068
|
+
type: "T[]",
|
|
13069
|
+
required: false,
|
|
13070
|
+
description: "Items in order (required)"
|
|
13071
|
+
},
|
|
13072
|
+
{
|
|
13073
|
+
name: "getKey",
|
|
13074
|
+
type: "(item, index) => string | number",
|
|
13075
|
+
required: false,
|
|
13076
|
+
description: "Stable key (required)"
|
|
13077
|
+
},
|
|
13078
|
+
{
|
|
13079
|
+
name: "onReorder",
|
|
13080
|
+
type: "(from: number, to: number) => void",
|
|
13081
|
+
required: false,
|
|
13082
|
+
description: "Move item `from` to index `to` (required)"
|
|
13083
|
+
},
|
|
13084
|
+
{
|
|
13085
|
+
name: "item",
|
|
13086
|
+
type: "Snippet<[{ item, index, handle, dragging }]>",
|
|
13087
|
+
required: false,
|
|
13088
|
+
description: "Renders one item (required)"
|
|
13089
|
+
},
|
|
13090
|
+
{
|
|
13091
|
+
name: "label",
|
|
13092
|
+
type: "string",
|
|
13093
|
+
required: false,
|
|
13094
|
+
description: "Accessible name of the list (required)"
|
|
13095
|
+
},
|
|
13096
|
+
{
|
|
13097
|
+
name: "getItemLabel",
|
|
13098
|
+
type: "(item, index) => string",
|
|
13099
|
+
default: '"Item n"',
|
|
13100
|
+
required: false,
|
|
13101
|
+
description: "Name used in announcements and handle labels"
|
|
13102
|
+
},
|
|
13103
|
+
{
|
|
13104
|
+
name: "disabled",
|
|
13105
|
+
type: "boolean",
|
|
13106
|
+
default: "false",
|
|
13107
|
+
required: false,
|
|
13108
|
+
description: "Turns reordering off"
|
|
13109
|
+
},
|
|
13110
|
+
{
|
|
13111
|
+
name: "class",
|
|
13112
|
+
type: "string",
|
|
13113
|
+
required: false,
|
|
13114
|
+
description: "Classes for the `ul`"
|
|
13115
|
+
},
|
|
13116
|
+
{
|
|
13117
|
+
name: "itemClass",
|
|
13118
|
+
type: "string",
|
|
13119
|
+
required: false,
|
|
13120
|
+
description: "Classes for each `li`"
|
|
13121
|
+
}
|
|
13122
|
+
],
|
|
13123
|
+
variants: [],
|
|
13124
|
+
slots: [
|
|
13125
|
+
{
|
|
13126
|
+
name: "children",
|
|
13127
|
+
description: "Main content",
|
|
13128
|
+
required: false
|
|
13129
|
+
}
|
|
13130
|
+
],
|
|
13131
|
+
events: [],
|
|
13132
|
+
examples: [
|
|
13133
|
+
{
|
|
13134
|
+
title: "Basic Usage",
|
|
13135
|
+
code: `<script>
|
|
13136
|
+
import { SortableList, Icon } from '@classic-homes/theme-svelte';
|
|
13137
|
+
|
|
13138
|
+
let steps = $state([
|
|
13139
|
+
{ id: 'a', label: 'Frame inspection' },
|
|
13140
|
+
{ id: 'b', label: 'Drywall' },
|
|
13141
|
+
{ id: 'c', label: 'Final walk' },
|
|
13142
|
+
]);
|
|
13143
|
+
|
|
13144
|
+
function move(from, to) {
|
|
13145
|
+
const [item] = steps.splice(from, 1);
|
|
13146
|
+
steps.splice(to, 0, item);
|
|
13147
|
+
}
|
|
13148
|
+
</script>
|
|
13149
|
+
|
|
13150
|
+
<SortableList
|
|
13151
|
+
items={steps}
|
|
13152
|
+
getKey={(s) => s.id}
|
|
13153
|
+
getItemLabel={(s) => s.label}
|
|
13154
|
+
onReorder={move}
|
|
13155
|
+
label="Steps"
|
|
13156
|
+
class="space-y-1"
|
|
13157
|
+
>
|
|
13158
|
+
{#snippet item({ item, handle, dragging })}
|
|
13159
|
+
<div class="flex items-center gap-2 rounded border p-2" class:shadow-lg={dragging}>
|
|
13160
|
+
<button {...handle} class="cursor-grab touch-none"><Icon name="grip" size={14} /></button>
|
|
13161
|
+
{item.label}
|
|
13162
|
+
</div>
|
|
13163
|
+
{/snippet}
|
|
13164
|
+
</SortableList>`
|
|
13165
|
+
}
|
|
13166
|
+
],
|
|
13167
|
+
relatedComponents: [
|
|
13168
|
+
"Studio"
|
|
13169
|
+
]
|
|
13170
|
+
},
|
|
12920
13171
|
{
|
|
12921
13172
|
name: "Spinner",
|
|
12922
13173
|
description: "Loading indicator for async operations",
|
|
@@ -13007,6 +13258,158 @@ var component_catalog_default = {
|
|
|
13007
13258
|
"Button"
|
|
13008
13259
|
]
|
|
13009
13260
|
},
|
|
13261
|
+
{
|
|
13262
|
+
name: "Studio",
|
|
13263
|
+
description: "Full-screen editor frame - outline, live canvas and inspector - for survey, slide and page builders",
|
|
13264
|
+
category: "layout",
|
|
13265
|
+
importPath: "@classic-homes/theme-svelte",
|
|
13266
|
+
props: [
|
|
13267
|
+
{
|
|
13268
|
+
name: "bar",
|
|
13269
|
+
type: "Snippet",
|
|
13270
|
+
required: false,
|
|
13271
|
+
description: "Top bar, normally a `StudioBar` (required)"
|
|
13272
|
+
},
|
|
13273
|
+
{
|
|
13274
|
+
name: "canvas",
|
|
13275
|
+
type: "Snippet",
|
|
13276
|
+
required: false,
|
|
13277
|
+
description: "Main area: a `StudioCanvas` or `StudioPage` (required)"
|
|
13278
|
+
},
|
|
13279
|
+
{
|
|
13280
|
+
name: "rail",
|
|
13281
|
+
type: "Snippet",
|
|
13282
|
+
required: false,
|
|
13283
|
+
description: "Left column, normally a `StudioOutline`"
|
|
13284
|
+
},
|
|
13285
|
+
{
|
|
13286
|
+
name: "inspector",
|
|
13287
|
+
type: "Snippet",
|
|
13288
|
+
required: false,
|
|
13289
|
+
description: "Right column, normally a `StudioInspector`"
|
|
13290
|
+
},
|
|
13291
|
+
{
|
|
13292
|
+
name: "banner",
|
|
13293
|
+
type: "Snippet",
|
|
13294
|
+
required: false,
|
|
13295
|
+
description: "One slot under the bar for conflicts and blocking decisions"
|
|
13296
|
+
},
|
|
13297
|
+
{
|
|
13298
|
+
name: "railLabel",
|
|
13299
|
+
type: "string",
|
|
13300
|
+
default: "'Outline'",
|
|
13301
|
+
required: false,
|
|
13302
|
+
description: "Name of the rail and its sheet button"
|
|
13303
|
+
},
|
|
13304
|
+
{
|
|
13305
|
+
name: "inspectorLabel",
|
|
13306
|
+
type: "string",
|
|
13307
|
+
default: "'Properties'",
|
|
13308
|
+
required: false,
|
|
13309
|
+
description: "Name of the inspector and its sheet button"
|
|
13310
|
+
},
|
|
13311
|
+
{
|
|
13312
|
+
name: "railOpen",
|
|
13313
|
+
type: "boolean",
|
|
13314
|
+
default: "false",
|
|
13315
|
+
required: false,
|
|
13316
|
+
description: "Rail sheet open below 1280px (bindable)"
|
|
13317
|
+
},
|
|
13318
|
+
{
|
|
13319
|
+
name: "inspectorOpen",
|
|
13320
|
+
type: "boolean",
|
|
13321
|
+
default: "false",
|
|
13322
|
+
required: false,
|
|
13323
|
+
description: "Inspector sheet open below 768px (bindable)"
|
|
13324
|
+
}
|
|
13325
|
+
],
|
|
13326
|
+
variants: [],
|
|
13327
|
+
slots: [
|
|
13328
|
+
{
|
|
13329
|
+
name: "children",
|
|
13330
|
+
description: "Main content",
|
|
13331
|
+
required: false
|
|
13332
|
+
}
|
|
13333
|
+
],
|
|
13334
|
+
events: [],
|
|
13335
|
+
examples: [
|
|
13336
|
+
{
|
|
13337
|
+
title: "Basic Usage",
|
|
13338
|
+
code: `<script>
|
|
13339
|
+
let questions = $state(loadQuestions());
|
|
13340
|
+
let selected = $state(questions[0].id);
|
|
13341
|
+
let mode = $state('build');
|
|
13342
|
+
let adding = $state(false);
|
|
13343
|
+
</script>
|
|
13344
|
+
|
|
13345
|
+
{#snippet bar()}
|
|
13346
|
+
<StudioBar
|
|
13347
|
+
bind:title
|
|
13348
|
+
backHref="/surveys"
|
|
13349
|
+
backLabel="Surveys"
|
|
13350
|
+
bind:mode
|
|
13351
|
+
modes={[
|
|
13352
|
+
{ value: 'build', label: 'Build', icon: 'edit' },
|
|
13353
|
+
{ value: 'settings', label: 'Settings', icon: 'settings' },
|
|
13354
|
+
]}
|
|
13355
|
+
menuItems={[{ label: 'Delete survey', icon: 'trash', destructive: true, onSelect: remove }]}
|
|
13356
|
+
>
|
|
13357
|
+
{#snippet status()}<SaveStatus state={saveState} onRetry={save} />{/snippet}
|
|
13358
|
+
{#snippet issues()}<IssuesButton {issues} bind:open={issuesOpen} onSelect={jump} />{/snippet}
|
|
13359
|
+
{#snippet actions()}<Button size="sm" onclick={publish}>Publish</Button>{/snippet}
|
|
13360
|
+
</StudioBar>
|
|
13361
|
+
{/snippet}
|
|
13362
|
+
|
|
13363
|
+
{#snippet rail()}
|
|
13364
|
+
<StudioOutline
|
|
13365
|
+
items={questions.map((q) => ({ id: q.id, title: q.title, subtitle: q.typeLabel }))}
|
|
13366
|
+
bind:selected
|
|
13367
|
+
onReorder={move}
|
|
13368
|
+
onAdd={() => (adding = true)}
|
|
13369
|
+
addLabel="Add question"
|
|
13370
|
+
label="Questions"
|
|
13371
|
+
/>
|
|
13372
|
+
{/snippet}
|
|
13373
|
+
|
|
13374
|
+
{#snippet canvas()}
|
|
13375
|
+
<StudioCanvas deviceToggle>
|
|
13376
|
+
{#each questions as q, i (q.id)}
|
|
13377
|
+
<StudioCanvasItem
|
|
13378
|
+
label="Question {i + 1}"
|
|
13379
|
+
selected={q.id === selected}
|
|
13380
|
+
onSelect={() => (selected = q.id)}
|
|
13381
|
+
onInsert={() => (adding = true)}
|
|
13382
|
+
>
|
|
13383
|
+
<QuestionPreview question={q} />
|
|
13384
|
+
</StudioCanvasItem>
|
|
13385
|
+
{/each}
|
|
13386
|
+
</StudioCanvas>
|
|
13387
|
+
{/snippet}
|
|
13388
|
+
|
|
13389
|
+
{#snippet inspector()}
|
|
13390
|
+
<StudioInspector title="Question 1" description="Single choice">
|
|
13391
|
+
<StudioInspectorSection><!-- content fields --></StudioInspectorSection>
|
|
13392
|
+
<StudioInspectorSection title="Advanced" collapsible
|
|
13393
|
+
><!-- rarely used --></StudioInspectorSection
|
|
13394
|
+
>
|
|
13395
|
+
</StudioInspector>
|
|
13396
|
+
{/snippet}
|
|
13397
|
+
|
|
13398
|
+
{#if mode === 'build'}
|
|
13399
|
+
<Studio {bar} {rail} {canvas} {inspector} railLabel="Questions" />
|
|
13400
|
+
{:else}
|
|
13401
|
+
<Studio {bar} canvas={settingsPage} />
|
|
13402
|
+
{/if}
|
|
13403
|
+
|
|
13404
|
+
<InsertPalette bind:open={adding} groups={questionTypes} onSelect={add} title="Add a question" />`
|
|
13405
|
+
}
|
|
13406
|
+
],
|
|
13407
|
+
relatedComponents: [
|
|
13408
|
+
"Sheet",
|
|
13409
|
+
"SortableList",
|
|
13410
|
+
"SegmentedControl"
|
|
13411
|
+
]
|
|
13412
|
+
},
|
|
13010
13413
|
{
|
|
13011
13414
|
name: "Switch",
|
|
13012
13415
|
description: "Toggle switch for binary on/off settings",
|
|
@@ -14343,7 +14746,7 @@ function registerComponentResources(server) {
|
|
|
14343
14746
|
|
|
14344
14747
|
// src/data/token-definitions.json
|
|
14345
14748
|
var token_definitions_default = {
|
|
14346
|
-
version: "0.3.
|
|
14749
|
+
version: "0.3.3",
|
|
14347
14750
|
colors: {
|
|
14348
14751
|
brand: [
|
|
14349
14752
|
{
|
|
@@ -15326,7 +15729,7 @@ function registerTokenResources(server) {
|
|
|
15326
15729
|
|
|
15327
15730
|
// src/data/styles-catalog.json
|
|
15328
15731
|
var styles_catalog_default = {
|
|
15329
|
-
version: "0.3.
|
|
15732
|
+
version: "0.3.3",
|
|
15330
15733
|
package: "@classic-homes/theme-styles",
|
|
15331
15734
|
description: "Base CSS styles, accessibility features, and utility classes for the Classic Theme design system",
|
|
15332
15735
|
integration: {
|
|
@@ -15344,6 +15747,16 @@ var styles_catalog_default = {
|
|
|
15344
15747
|
description: "CSS layers are used for proper cascade control, from lowest to highest specificity"
|
|
15345
15748
|
},
|
|
15346
15749
|
modules: [
|
|
15750
|
+
{
|
|
15751
|
+
name: "core",
|
|
15752
|
+
path: "@classic-homes/theme-styles/core",
|
|
15753
|
+
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."
|
|
15754
|
+
},
|
|
15755
|
+
{
|
|
15756
|
+
name: "fonts",
|
|
15757
|
+
path: "@classic-homes/theme-styles/fonts",
|
|
15758
|
+
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."
|
|
15759
|
+
},
|
|
15347
15760
|
{
|
|
15348
15761
|
name: "base",
|
|
15349
15762
|
path: "@classic-homes/theme-styles/base",
|
|
@@ -15351,7 +15764,7 @@ var styles_catalog_default = {
|
|
|
15351
15764
|
features: [
|
|
15352
15765
|
{
|
|
15353
15766
|
name: "Brand Fonts",
|
|
15354
|
-
description: "
|
|
15767
|
+
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
15768
|
cssVariables: [
|
|
15356
15769
|
"--font-sans",
|
|
15357
15770
|
"--font-serif"
|
|
@@ -15699,7 +16112,7 @@ import { ResourceTemplate as ResourceTemplate2 } from "@modelcontextprotocol/sdk
|
|
|
15699
16112
|
|
|
15700
16113
|
// src/data/pattern-library.json
|
|
15701
16114
|
var pattern_library_default = {
|
|
15702
|
-
version: "0.3.
|
|
16115
|
+
version: "0.3.3",
|
|
15703
16116
|
layouts: [
|
|
15704
16117
|
{
|
|
15705
16118
|
id: "dashboard-page",
|
|
@@ -16793,7 +17206,7 @@ function registerLayoutResources(server) {
|
|
|
16793
17206
|
|
|
16794
17207
|
// src/data/schema-catalog.json
|
|
16795
17208
|
var schema_catalog_default = {
|
|
16796
|
-
version: "0.3.
|
|
17209
|
+
version: "0.3.3",
|
|
16797
17210
|
packageName: "@classic-homes/theme-svelte",
|
|
16798
17211
|
importPath: "@classic-homes/theme-svelte",
|
|
16799
17212
|
generatedFrom: "packages/svelte/src/lib/schemas/index.ts",
|
|
@@ -17601,7 +18014,7 @@ import { ResourceTemplate as ResourceTemplate3 } from "@modelcontextprotocol/sdk
|
|
|
17601
18014
|
|
|
17602
18015
|
// src/data/auth-catalog.json
|
|
17603
18016
|
var auth_catalog_default = {
|
|
17604
|
-
version: "0.3.
|
|
18017
|
+
version: "0.3.3",
|
|
17605
18018
|
packageName: "@classic-homes/auth",
|
|
17606
18019
|
description: "Authentication services and Svelte bindings for Classic Theme apps",
|
|
17607
18020
|
subpackages: {
|
|
@@ -20638,7 +21051,7 @@ import { ResourceTemplate as ResourceTemplate4 } from "@modelcontextprotocol/sdk
|
|
|
20638
21051
|
|
|
20639
21052
|
// src/data/notifications-catalog.json
|
|
20640
21053
|
var notifications_catalog_default = {
|
|
20641
|
-
version: "0.3.
|
|
21054
|
+
version: "0.3.3",
|
|
20642
21055
|
packageName: "@classic-homes/notifications",
|
|
20643
21056
|
description: "Notification services and Svelte bindings for Classic Theme apps",
|
|
20644
21057
|
subpackages: {
|
|
@@ -21550,7 +21963,7 @@ function registerNotificationsResources(server) {
|
|
|
21550
21963
|
|
|
21551
21964
|
// src/data/docs-catalog.json
|
|
21552
21965
|
var docs_catalog_default = {
|
|
21553
|
-
version: "0.3.
|
|
21966
|
+
version: "0.3.3",
|
|
21554
21967
|
packageName: "@classic-homes/theme-docs",
|
|
21555
21968
|
description: "Markdown documentation components for the Classic theme system",
|
|
21556
21969
|
exports: {
|
|
@@ -21558,9 +21971,33 @@ var docs_catalog_default = {
|
|
|
21558
21971
|
importPath: "@classic-homes/theme-docs",
|
|
21559
21972
|
description: "Main entry point with components, parser utilities, and types"
|
|
21560
21973
|
},
|
|
21974
|
+
"./parser": {
|
|
21975
|
+
importPath: "@classic-homes/theme-docs/parser",
|
|
21976
|
+
description: "Markdown pipeline without Svelte imports (parseMarkdown, extractToc, createSlugger, extensions) for Node build scripts, server loaders and CMS previews"
|
|
21977
|
+
},
|
|
21978
|
+
"./sanitize": {
|
|
21979
|
+
importPath: "@classic-homes/theme-docs/sanitize",
|
|
21980
|
+
description: "sanitizeDocsHtml: allowlist sanitizer for parseMarkdown output (server/build-time only)"
|
|
21981
|
+
},
|
|
21982
|
+
"./content": {
|
|
21983
|
+
importPath: "@classic-homes/theme-docs/content",
|
|
21984
|
+
description: "loadDocs/renderDocs: a Docusaurus-style docs directory as routes, autogenerated sidebars, generated-index pages, tags and rendered HTML (Node, build time)"
|
|
21985
|
+
},
|
|
21986
|
+
"./nav": {
|
|
21987
|
+
importPath: "@classic-homes/theme-docs/nav",
|
|
21988
|
+
description: "Sidebar helpers (neighbours, breadcrumbs, flattenNav, tagCounts) and content-model types, browser-safe"
|
|
21989
|
+
},
|
|
21990
|
+
"./search": {
|
|
21991
|
+
importPath: "@classic-homes/theme-docs/search",
|
|
21992
|
+
description: "buildSearchIndex/createSearch: MiniSearch full-text search over rendered docs, with a filter hook for access rules"
|
|
21993
|
+
},
|
|
21994
|
+
"./vite": {
|
|
21995
|
+
importPath: "@classic-homes/theme-docs/vite",
|
|
21996
|
+
description: "docsContent Vite plugin: regenerate docs content on change in dev and before each build"
|
|
21997
|
+
},
|
|
21561
21998
|
"./styles": {
|
|
21562
21999
|
importPath: "@classic-homes/theme-docs/styles",
|
|
21563
|
-
description: "
|
|
22000
|
+
description: "Markdown content stylesheet (.markdown-content)"
|
|
21564
22001
|
}
|
|
21565
22002
|
},
|
|
21566
22003
|
components: [
|
|
@@ -21739,8 +22176,8 @@ var docs_catalog_default = {
|
|
|
21739
22176
|
{
|
|
21740
22177
|
name: "html",
|
|
21741
22178
|
type: "string",
|
|
21742
|
-
required:
|
|
21743
|
-
description: "HTML
|
|
22179
|
+
required: false,
|
|
22180
|
+
description: "HTML to extract headings from in the browser, when there is no toc"
|
|
21744
22181
|
},
|
|
21745
22182
|
{
|
|
21746
22183
|
name: "maxDepth",
|
|
@@ -21766,6 +22203,26 @@ var docs_catalog_default = {
|
|
|
21766
22203
|
type: "boolean",
|
|
21767
22204
|
required: false,
|
|
21768
22205
|
description: "Whether to use sticky positioning"
|
|
22206
|
+
},
|
|
22207
|
+
{
|
|
22208
|
+
name: "toc",
|
|
22209
|
+
type: "TocEntry[]",
|
|
22210
|
+
required: false,
|
|
22211
|
+
description: "Prebuilt entries (page.toc from renderDocs); renders on the server"
|
|
22212
|
+
},
|
|
22213
|
+
{
|
|
22214
|
+
name: "minDepth",
|
|
22215
|
+
type: "number",
|
|
22216
|
+
required: false,
|
|
22217
|
+
description: "Shallowest heading level",
|
|
22218
|
+
default: "1"
|
|
22219
|
+
},
|
|
22220
|
+
{
|
|
22221
|
+
name: "offset",
|
|
22222
|
+
type: "number",
|
|
22223
|
+
required: false,
|
|
22224
|
+
description: "Fixed header height in px for scroll-spy",
|
|
22225
|
+
default: "80"
|
|
21769
22226
|
}
|
|
21770
22227
|
],
|
|
21771
22228
|
features: [
|
|
@@ -21773,7 +22230,9 @@ var docs_catalog_default = {
|
|
|
21773
22230
|
"IntersectionObserver scroll tracking",
|
|
21774
22231
|
"Smooth scroll to headings",
|
|
21775
22232
|
"Hierarchical indentation",
|
|
21776
|
-
"Active state highlighting"
|
|
22233
|
+
"Active state highlighting",
|
|
22234
|
+
'Scroll-spy marks the heading being read with aria-current="location"',
|
|
22235
|
+
"Entries are native #id links (router-friendly)"
|
|
21777
22236
|
],
|
|
21778
22237
|
example: '<TableOfContents html={renderedHtml} maxDepth={3} title="On this page" sticky />'
|
|
21779
22238
|
},
|
|
@@ -21785,8 +22244,8 @@ var docs_catalog_default = {
|
|
|
21785
22244
|
{
|
|
21786
22245
|
name: "html",
|
|
21787
22246
|
type: "string",
|
|
21788
|
-
required:
|
|
21789
|
-
description: "HTML
|
|
22247
|
+
required: false,
|
|
22248
|
+
description: "HTML to extract headings from in the browser, when there is no toc"
|
|
21790
22249
|
},
|
|
21791
22250
|
{
|
|
21792
22251
|
name: "maxDepth",
|
|
@@ -21807,6 +22266,26 @@ var docs_catalog_default = {
|
|
|
21807
22266
|
type: "string",
|
|
21808
22267
|
required: false,
|
|
21809
22268
|
description: "Custom class"
|
|
22269
|
+
},
|
|
22270
|
+
{
|
|
22271
|
+
name: "toc",
|
|
22272
|
+
type: "TocEntry[]",
|
|
22273
|
+
required: false,
|
|
22274
|
+
description: "Prebuilt entries (page.toc from renderDocs); renders on the server"
|
|
22275
|
+
},
|
|
22276
|
+
{
|
|
22277
|
+
name: "minDepth",
|
|
22278
|
+
type: "number",
|
|
22279
|
+
required: false,
|
|
22280
|
+
description: "Shallowest heading level",
|
|
22281
|
+
default: "1"
|
|
22282
|
+
},
|
|
22283
|
+
{
|
|
22284
|
+
name: "offset",
|
|
22285
|
+
type: "number",
|
|
22286
|
+
required: false,
|
|
22287
|
+
description: "Fixed header height in px for scroll-spy",
|
|
22288
|
+
default: "80"
|
|
21810
22289
|
}
|
|
21811
22290
|
],
|
|
21812
22291
|
features: [
|
|
@@ -21814,7 +22293,10 @@ var docs_catalog_default = {
|
|
|
21814
22293
|
"Desktop sidebar display",
|
|
21815
22294
|
"Keyboard support (Escape to close)",
|
|
21816
22295
|
"Focus restoration on close",
|
|
21817
|
-
"Responsive breakpoint variants"
|
|
22296
|
+
"Responsive breakpoint variants",
|
|
22297
|
+
'Scroll-spy marks the heading being read with aria-current="location"',
|
|
22298
|
+
"Entries are native #id links (router-friendly)",
|
|
22299
|
+
"Mobile panel is a modal dialog with a focus trap; inert while closed"
|
|
21818
22300
|
],
|
|
21819
22301
|
example: '<TocPanel html={renderedHtml} breakpoint="lg" />'
|
|
21820
22302
|
},
|
|
@@ -21872,6 +22354,294 @@ var docs_catalog_default = {
|
|
|
21872
22354
|
],
|
|
21873
22355
|
peerDependency: "mermaid@^11.0.0 (optional)",
|
|
21874
22356
|
example: "<MermaidInit watch={true} />"
|
|
22357
|
+
},
|
|
22358
|
+
{
|
|
22359
|
+
name: "DocPage",
|
|
22360
|
+
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",
|
|
22361
|
+
category: "layout",
|
|
22362
|
+
props: [
|
|
22363
|
+
{
|
|
22364
|
+
name: "page",
|
|
22365
|
+
type: "{ title; html; toc; hasH1; description? }",
|
|
22366
|
+
required: true,
|
|
22367
|
+
description: "A RenderedDoc from renderDocs"
|
|
22368
|
+
},
|
|
22369
|
+
{
|
|
22370
|
+
name: "breadcrumbs",
|
|
22371
|
+
type: "Crumb[]",
|
|
22372
|
+
required: false,
|
|
22373
|
+
description: "breadcrumbs(sidebar.items, route)"
|
|
22374
|
+
},
|
|
22375
|
+
{
|
|
22376
|
+
name: "home",
|
|
22377
|
+
type: "{ label; href }",
|
|
22378
|
+
required: false,
|
|
22379
|
+
description: "First breadcrumb"
|
|
22380
|
+
},
|
|
22381
|
+
{
|
|
22382
|
+
name: "previous",
|
|
22383
|
+
type: "NavLink | null",
|
|
22384
|
+
required: false,
|
|
22385
|
+
description: "From neighbours()"
|
|
22386
|
+
},
|
|
22387
|
+
{
|
|
22388
|
+
name: "next",
|
|
22389
|
+
type: "NavLink | null",
|
|
22390
|
+
required: false,
|
|
22391
|
+
description: "From neighbours()"
|
|
22392
|
+
},
|
|
22393
|
+
{
|
|
22394
|
+
name: "tags",
|
|
22395
|
+
type: "Tag[]",
|
|
22396
|
+
required: false,
|
|
22397
|
+
description: "The page's tags"
|
|
22398
|
+
},
|
|
22399
|
+
{
|
|
22400
|
+
name: "tagHref",
|
|
22401
|
+
type: "(tag) => string",
|
|
22402
|
+
required: false,
|
|
22403
|
+
description: "Tag page route",
|
|
22404
|
+
default: "/docs/tags/<id>"
|
|
22405
|
+
},
|
|
22406
|
+
{
|
|
22407
|
+
name: "editUrl",
|
|
22408
|
+
type: "string",
|
|
22409
|
+
required: false,
|
|
22410
|
+
description: '"Edit this page" link'
|
|
22411
|
+
},
|
|
22412
|
+
{
|
|
22413
|
+
name: "components",
|
|
22414
|
+
type: "Record<string, Component>",
|
|
22415
|
+
required: false,
|
|
22416
|
+
description: "Components for <Name /> placeholders"
|
|
22417
|
+
},
|
|
22418
|
+
{
|
|
22419
|
+
name: "mermaid",
|
|
22420
|
+
type: "boolean",
|
|
22421
|
+
required: false,
|
|
22422
|
+
description: "Render mermaid diagrams",
|
|
22423
|
+
default: "true"
|
|
22424
|
+
},
|
|
22425
|
+
{
|
|
22426
|
+
name: "copyButtons",
|
|
22427
|
+
type: "boolean",
|
|
22428
|
+
required: false,
|
|
22429
|
+
description: "Copy buttons on code blocks",
|
|
22430
|
+
default: "true"
|
|
22431
|
+
},
|
|
22432
|
+
{
|
|
22433
|
+
name: "highlightParam",
|
|
22434
|
+
type: "string | null",
|
|
22435
|
+
required: false,
|
|
22436
|
+
description: "Query parameter whose words are highlighted",
|
|
22437
|
+
default: "'highlight'"
|
|
22438
|
+
},
|
|
22439
|
+
{
|
|
22440
|
+
name: "tocMinDepth",
|
|
22441
|
+
type: "number",
|
|
22442
|
+
required: false,
|
|
22443
|
+
description: "Shallowest TOC level",
|
|
22444
|
+
default: "2"
|
|
22445
|
+
},
|
|
22446
|
+
{
|
|
22447
|
+
name: "tocMaxDepth",
|
|
22448
|
+
type: "number",
|
|
22449
|
+
required: false,
|
|
22450
|
+
description: "Deepest TOC level",
|
|
22451
|
+
default: "3"
|
|
22452
|
+
},
|
|
22453
|
+
{
|
|
22454
|
+
name: "tocBreakpoint",
|
|
22455
|
+
type: "'lg' | 'xl' | '2xl'",
|
|
22456
|
+
required: false,
|
|
22457
|
+
description: "Where the TOC becomes a column",
|
|
22458
|
+
default: "'xl'"
|
|
22459
|
+
},
|
|
22460
|
+
{
|
|
22461
|
+
name: "headerOffset",
|
|
22462
|
+
type: "number",
|
|
22463
|
+
required: false,
|
|
22464
|
+
description: "Fixed header height in px (scroll margins, scroll-spy)",
|
|
22465
|
+
default: "80"
|
|
22466
|
+
},
|
|
22467
|
+
{
|
|
22468
|
+
name: "siteTitle",
|
|
22469
|
+
type: "string",
|
|
22470
|
+
required: false,
|
|
22471
|
+
description: 'Sets <title> to "Page | Site" and the meta description'
|
|
22472
|
+
}
|
|
22473
|
+
],
|
|
22474
|
+
slots: [
|
|
22475
|
+
{
|
|
22476
|
+
name: "meta",
|
|
22477
|
+
description: "Extra footer content next to the edit link"
|
|
22478
|
+
}
|
|
22479
|
+
],
|
|
22480
|
+
features: [
|
|
22481
|
+
"SSR, no client-side parsing",
|
|
22482
|
+
"Copy buttons with clipboard fallback",
|
|
22483
|
+
"Search-term highlighting",
|
|
22484
|
+
"Anchor targets clear the fixed header (scroll-margin-top)"
|
|
22485
|
+
],
|
|
22486
|
+
example: '<DocPage page={data.page} breadcrumbs={data.crumbs} previous={data.previous} next={data.next} tags={data.tags} editUrl={data.editUrl} siteTitle="Docs" />'
|
|
22487
|
+
},
|
|
22488
|
+
{
|
|
22489
|
+
name: "CategoryIndex",
|
|
22490
|
+
description: "Generated-index page: title, description and a card per category item",
|
|
22491
|
+
category: "navigation",
|
|
22492
|
+
props: [
|
|
22493
|
+
{
|
|
22494
|
+
name: "category",
|
|
22495
|
+
type: "Pick<CategoryPage, 'title' | 'description' | 'items'>",
|
|
22496
|
+
required: true,
|
|
22497
|
+
description: "From loadDocs().categories"
|
|
22498
|
+
},
|
|
22499
|
+
{
|
|
22500
|
+
name: "descriptions",
|
|
22501
|
+
type: "Record<string, string> | Map",
|
|
22502
|
+
required: false,
|
|
22503
|
+
description: "Page descriptions by route"
|
|
22504
|
+
},
|
|
22505
|
+
{
|
|
22506
|
+
name: "columns",
|
|
22507
|
+
type: "1 | 2 | 3 | 4",
|
|
22508
|
+
required: false,
|
|
22509
|
+
description: "Grid columns",
|
|
22510
|
+
default: "2"
|
|
22511
|
+
},
|
|
22512
|
+
{
|
|
22513
|
+
name: "countLabel",
|
|
22514
|
+
type: "(n) => string",
|
|
22515
|
+
required: false,
|
|
22516
|
+
description: "Text for a category card"
|
|
22517
|
+
}
|
|
22518
|
+
],
|
|
22519
|
+
slots: [],
|
|
22520
|
+
features: [
|
|
22521
|
+
"Category cards link to their own page or first page, with entry counts"
|
|
22522
|
+
],
|
|
22523
|
+
example: "<CategoryIndex category={data.category} descriptions={data.descriptions} />"
|
|
22524
|
+
},
|
|
22525
|
+
{
|
|
22526
|
+
name: "Breadcrumbs",
|
|
22527
|
+
description: "Path to the current docs page",
|
|
22528
|
+
category: "navigation",
|
|
22529
|
+
props: [
|
|
22530
|
+
{
|
|
22531
|
+
name: "crumbs",
|
|
22532
|
+
type: "Crumb[]",
|
|
22533
|
+
required: true,
|
|
22534
|
+
description: "breadcrumbs(sidebar.items, route)"
|
|
22535
|
+
},
|
|
22536
|
+
{
|
|
22537
|
+
name: "home",
|
|
22538
|
+
type: "{ label; href }",
|
|
22539
|
+
required: false,
|
|
22540
|
+
description: "Optional first crumb"
|
|
22541
|
+
}
|
|
22542
|
+
],
|
|
22543
|
+
slots: [],
|
|
22544
|
+
features: [
|
|
22545
|
+
"nav landmark, aria-current on the last crumb"
|
|
22546
|
+
],
|
|
22547
|
+
example: "<Breadcrumbs crumbs={breadcrumbs(sidebar.items, route)} home={{ label: 'Docs', href: '/' }} />"
|
|
22548
|
+
},
|
|
22549
|
+
{
|
|
22550
|
+
name: "DocPager",
|
|
22551
|
+
description: "Previous/next links at the foot of a docs page",
|
|
22552
|
+
category: "navigation",
|
|
22553
|
+
props: [
|
|
22554
|
+
{
|
|
22555
|
+
name: "previous",
|
|
22556
|
+
type: "NavLink | null",
|
|
22557
|
+
required: false,
|
|
22558
|
+
description: "From neighbours()"
|
|
22559
|
+
},
|
|
22560
|
+
{
|
|
22561
|
+
name: "next",
|
|
22562
|
+
type: "NavLink | null",
|
|
22563
|
+
required: false,
|
|
22564
|
+
description: "From neighbours()"
|
|
22565
|
+
},
|
|
22566
|
+
{
|
|
22567
|
+
name: "previousLabel",
|
|
22568
|
+
type: "string",
|
|
22569
|
+
required: false,
|
|
22570
|
+
description: "",
|
|
22571
|
+
default: "'Previous'"
|
|
22572
|
+
},
|
|
22573
|
+
{
|
|
22574
|
+
name: "nextLabel",
|
|
22575
|
+
type: "string",
|
|
22576
|
+
required: false,
|
|
22577
|
+
description: "",
|
|
22578
|
+
default: "'Next'"
|
|
22579
|
+
}
|
|
22580
|
+
],
|
|
22581
|
+
slots: [],
|
|
22582
|
+
features: [
|
|
22583
|
+
"rel=prev/next"
|
|
22584
|
+
],
|
|
22585
|
+
example: "<DocPager {...neighbours(sidebar.items, route)} />"
|
|
22586
|
+
},
|
|
22587
|
+
{
|
|
22588
|
+
name: "TagList",
|
|
22589
|
+
description: "A page's tags as links to tag pages",
|
|
22590
|
+
category: "navigation",
|
|
22591
|
+
props: [
|
|
22592
|
+
{
|
|
22593
|
+
name: "tags",
|
|
22594
|
+
type: "(Tag & { count? })[]",
|
|
22595
|
+
required: true,
|
|
22596
|
+
description: "Tags to show"
|
|
22597
|
+
},
|
|
22598
|
+
{
|
|
22599
|
+
name: "href",
|
|
22600
|
+
type: "(tag) => string",
|
|
22601
|
+
required: false,
|
|
22602
|
+
description: "Tag page route",
|
|
22603
|
+
default: "/docs/tags/<id>"
|
|
22604
|
+
},
|
|
22605
|
+
{
|
|
22606
|
+
name: "label",
|
|
22607
|
+
type: "string",
|
|
22608
|
+
required: false,
|
|
22609
|
+
description: "Accessible name",
|
|
22610
|
+
default: "'Tags'"
|
|
22611
|
+
}
|
|
22612
|
+
],
|
|
22613
|
+
slots: [],
|
|
22614
|
+
features: [],
|
|
22615
|
+
example: "<TagList tags={pageTags} />"
|
|
22616
|
+
},
|
|
22617
|
+
{
|
|
22618
|
+
name: "TagIndex",
|
|
22619
|
+
description: "Every tag in use, grouped by first letter (Docusaurus /tags page)",
|
|
22620
|
+
category: "navigation",
|
|
22621
|
+
props: [
|
|
22622
|
+
{
|
|
22623
|
+
name: "tags",
|
|
22624
|
+
type: "(Tag & { count })[]",
|
|
22625
|
+
required: true,
|
|
22626
|
+
description: "tagCounts(tags, readablePages)"
|
|
22627
|
+
},
|
|
22628
|
+
{
|
|
22629
|
+
name: "href",
|
|
22630
|
+
type: "(tag) => string",
|
|
22631
|
+
required: false,
|
|
22632
|
+
description: "Tag page route"
|
|
22633
|
+
},
|
|
22634
|
+
{
|
|
22635
|
+
name: "as",
|
|
22636
|
+
type: "'h2' | 'h3'",
|
|
22637
|
+
required: false,
|
|
22638
|
+
description: "Letter heading level",
|
|
22639
|
+
default: "'h2'"
|
|
22640
|
+
}
|
|
22641
|
+
],
|
|
22642
|
+
slots: [],
|
|
22643
|
+
features: [],
|
|
22644
|
+
example: "<TagIndex tags={tagCounts(tags, pages)} />"
|
|
21875
22645
|
}
|
|
21876
22646
|
],
|
|
21877
22647
|
utilities: {
|
|
@@ -21937,43 +22707,58 @@ var docs_catalog_default = {
|
|
|
21937
22707
|
{
|
|
21938
22708
|
name: "admonitionExtension",
|
|
21939
22709
|
signature: "() => MarkedExtension",
|
|
21940
|
-
description: "
|
|
22710
|
+
description: "Callouts (:::note, :::info, :::tip, :::warning, :::important, :::caution, :::danger) with `:::type Title` or `:::type[Title]` titles"
|
|
21941
22711
|
},
|
|
21942
22712
|
{
|
|
21943
22713
|
name: "footnoteExtension",
|
|
21944
|
-
signature: "() => MarkedExtension",
|
|
21945
|
-
description: "
|
|
22714
|
+
signature: "(store?: FootnoteStore) => MarkedExtension",
|
|
22715
|
+
description: "Footnotes ([^1] references and [^1]: definitions) collected into the given store"
|
|
21946
22716
|
},
|
|
21947
22717
|
{
|
|
21948
22718
|
name: "definitionListExtension",
|
|
21949
22719
|
signature: "() => MarkedExtension",
|
|
21950
|
-
description: "
|
|
22720
|
+
description: "Definition lists (Term\\n: Definition), inline markdown in both"
|
|
21951
22721
|
},
|
|
21952
22722
|
{
|
|
21953
22723
|
name: "mermaidExtension",
|
|
21954
22724
|
signature: "() => MarkedExtension",
|
|
21955
|
-
description: "
|
|
22725
|
+
description: "Mermaid diagram placeholders (rendered client-side by MermaidInit/MermaidDiagram)"
|
|
22726
|
+
},
|
|
22727
|
+
{
|
|
22728
|
+
name: "componentExtension",
|
|
22729
|
+
signature: "(names: readonly string[]) => MarkedExtension",
|
|
22730
|
+
description: 'Allowlisted `<Name prop="\u2026" />` lines become placeholders for mountComponents'
|
|
21956
22731
|
},
|
|
21957
22732
|
{
|
|
21958
22733
|
name: "getAllExtensions",
|
|
21959
|
-
signature: "() => MarkedExtension[]",
|
|
22734
|
+
signature: "(components?: readonly string[], footnotes?: FootnoteStore) => MarkedExtension[]",
|
|
21960
22735
|
description: "Get all extensions as an array"
|
|
21961
22736
|
},
|
|
21962
22737
|
{
|
|
21963
|
-
name: "
|
|
21964
|
-
signature: "() =>
|
|
21965
|
-
description: "
|
|
22738
|
+
name: "createFootnoteStore",
|
|
22739
|
+
signature: "() => FootnoteStore",
|
|
22740
|
+
description: "Fresh footnote store for one document (parseMarkdown creates one per call)"
|
|
21966
22741
|
},
|
|
21967
22742
|
{
|
|
21968
22743
|
name: "renderFootnotes",
|
|
21969
|
-
signature: "() => string",
|
|
21970
|
-
description: "Render collected footnotes as HTML section"
|
|
22744
|
+
signature: "(store?: FootnoteStore, renderInline?: (tokens) => string) => string",
|
|
22745
|
+
description: "Render collected footnotes as an HTML section"
|
|
22746
|
+
},
|
|
22747
|
+
{
|
|
22748
|
+
name: "renderMermaidPlaceholder",
|
|
22749
|
+
signature: "(code: string) => string",
|
|
22750
|
+
description: "HTML placeholder for one mermaid diagram"
|
|
22751
|
+
},
|
|
22752
|
+
{
|
|
22753
|
+
name: "resetFootnoteStore",
|
|
22754
|
+
signature: "() => void",
|
|
22755
|
+
description: "Deprecated: resets the shared store used when no store is passed"
|
|
21971
22756
|
}
|
|
21972
22757
|
],
|
|
21973
22758
|
constants: [
|
|
21974
22759
|
{
|
|
21975
22760
|
name: "ADMONITION_TYPES",
|
|
21976
|
-
type: "readonly ['note', 'tip', 'warning', 'important', 'caution']",
|
|
22761
|
+
type: "readonly ['note', 'info', 'tip', 'warning', 'important', 'caution', 'danger']",
|
|
21977
22762
|
description: "Array of supported admonition types"
|
|
21978
22763
|
}
|
|
21979
22764
|
]
|
|
@@ -21999,6 +22784,136 @@ var docs_catalog_default = {
|
|
|
21999
22784
|
description: "Type helper for variant props"
|
|
22000
22785
|
}
|
|
22001
22786
|
]
|
|
22787
|
+
},
|
|
22788
|
+
sanitize: {
|
|
22789
|
+
description: "Import from @classic-homes/theme-docs/sanitize (server/build-time only)",
|
|
22790
|
+
functions: [
|
|
22791
|
+
{
|
|
22792
|
+
name: "sanitizeDocsHtml",
|
|
22793
|
+
signature: "(html: string) => { html: string; removed: string[] }",
|
|
22794
|
+
description: "Allowlist sanitizer for parseMarkdown output; `removed` lists stripped tags/attributes for build logs"
|
|
22795
|
+
}
|
|
22796
|
+
]
|
|
22797
|
+
},
|
|
22798
|
+
content: {
|
|
22799
|
+
description: "Import from @classic-homes/theme-docs/content (Node, build time)",
|
|
22800
|
+
functions: [
|
|
22801
|
+
{
|
|
22802
|
+
name: "loadDocs",
|
|
22803
|
+
signature: "(options: LoadDocsOptions) => LoadedDocs",
|
|
22804
|
+
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"
|
|
22805
|
+
},
|
|
22806
|
+
{
|
|
22807
|
+
name: "renderDocs",
|
|
22808
|
+
signature: "(docs: LoadedDocs, options?: { parse?: ParseOptions; sanitize?: boolean; onBrokenAnchors?: 'throw' | 'warn' | 'ignore' }) => Promise<RenderDocsResult>",
|
|
22809
|
+
description: "Render every page to HTML with toc, hasH1 and search text; checks #anchor links"
|
|
22810
|
+
},
|
|
22811
|
+
{
|
|
22812
|
+
name: "plainText",
|
|
22813
|
+
signature: "(html: string) => string",
|
|
22814
|
+
description: "Searchable text from rendered HTML"
|
|
22815
|
+
}
|
|
22816
|
+
]
|
|
22817
|
+
},
|
|
22818
|
+
nav: {
|
|
22819
|
+
description: "Import from @classic-homes/theme-docs/nav (browser-safe; also re-exported by /content)",
|
|
22820
|
+
functions: [
|
|
22821
|
+
{
|
|
22822
|
+
name: "neighbours",
|
|
22823
|
+
signature: "(items: NavItem[], route: string) => { previous; next }",
|
|
22824
|
+
description: "Previous/next links in sidebar order"
|
|
22825
|
+
},
|
|
22826
|
+
{
|
|
22827
|
+
name: "breadcrumbs",
|
|
22828
|
+
signature: "(items: NavItem[], route: string) => Crumb[]",
|
|
22829
|
+
description: "Categories leading to a route, ending with the page"
|
|
22830
|
+
},
|
|
22831
|
+
{
|
|
22832
|
+
name: "flattenNav",
|
|
22833
|
+
signature: "(items: NavItem[]) => NavLink[]",
|
|
22834
|
+
description: "Linkable entries in sidebar order"
|
|
22835
|
+
},
|
|
22836
|
+
{
|
|
22837
|
+
name: "navContains",
|
|
22838
|
+
signature: "(item: NavItem, route: string) => boolean",
|
|
22839
|
+
description: "Whether a route is under a sidebar entry"
|
|
22840
|
+
},
|
|
22841
|
+
{
|
|
22842
|
+
name: "countPages",
|
|
22843
|
+
signature: "(items: NavItem[]) => number",
|
|
22844
|
+
description: "Linkable entries under a list, recursively"
|
|
22845
|
+
},
|
|
22846
|
+
{
|
|
22847
|
+
name: "tagCounts",
|
|
22848
|
+
signature: "(tags: Tag[], pages) => (Tag & { count })[]",
|
|
22849
|
+
description: "Tags in use with page counts"
|
|
22850
|
+
},
|
|
22851
|
+
{
|
|
22852
|
+
name: "pagesTagged",
|
|
22853
|
+
signature: "(pages, tag: string) => pages",
|
|
22854
|
+
description: "Pages carrying a tag, by title"
|
|
22855
|
+
}
|
|
22856
|
+
]
|
|
22857
|
+
},
|
|
22858
|
+
search: {
|
|
22859
|
+
description: "Import from @classic-homes/theme-docs/search",
|
|
22860
|
+
functions: [
|
|
22861
|
+
{
|
|
22862
|
+
name: "buildSearchIndex",
|
|
22863
|
+
signature: "(pages: RenderedDoc[]) => string",
|
|
22864
|
+
description: "Serialized MiniSearch index over title, headings, description and text"
|
|
22865
|
+
},
|
|
22866
|
+
{
|
|
22867
|
+
name: "createSearch",
|
|
22868
|
+
signature: "(indexJson, texts?) => { search(query, { filter?, limit?, minLength? }): SearchHit[] }",
|
|
22869
|
+
description: "Query an index; filter runs before snippets are built"
|
|
22870
|
+
},
|
|
22871
|
+
{
|
|
22872
|
+
name: "snippet",
|
|
22873
|
+
signature: "(text: string, terms: string[]) => string",
|
|
22874
|
+
description: "~160 characters around the first match"
|
|
22875
|
+
}
|
|
22876
|
+
]
|
|
22877
|
+
},
|
|
22878
|
+
vite: {
|
|
22879
|
+
description: "Import from @classic-homes/theme-docs/vite",
|
|
22880
|
+
functions: [
|
|
22881
|
+
{
|
|
22882
|
+
name: "docsContent",
|
|
22883
|
+
signature: "(options: { watch: string | string[]; generate: () => void | Promise<void>; debounce?: number }) => Plugin",
|
|
22884
|
+
description: "Run generate before builds and on changes in dev, then full-reload"
|
|
22885
|
+
}
|
|
22886
|
+
]
|
|
22887
|
+
},
|
|
22888
|
+
layout: {
|
|
22889
|
+
description: "From the package root (browser)",
|
|
22890
|
+
functions: [
|
|
22891
|
+
{
|
|
22892
|
+
name: "toSidebarNav",
|
|
22893
|
+
signature: "(items: NavItem[], current: string, options?: { title?; idPrefix?; overviewLabel? }) => NavSection[]",
|
|
22894
|
+
description: "Map a docs sidebar onto theme-svelte navigation (DashboardLayout/Sidebar); deeper than 3 levels is flattened"
|
|
22895
|
+
},
|
|
22896
|
+
{
|
|
22897
|
+
name: "revealActive",
|
|
22898
|
+
signature: "(navigation: NavSection[]) => void",
|
|
22899
|
+
description: "Force-expand the path to the active entry; call after each navigation"
|
|
22900
|
+
},
|
|
22901
|
+
{
|
|
22902
|
+
name: "enhanceCodeBlocks",
|
|
22903
|
+
signature: "(root: ParentNode) => () => void",
|
|
22904
|
+
description: "Copy buttons on code blocks (DocPage does this)"
|
|
22905
|
+
},
|
|
22906
|
+
{
|
|
22907
|
+
name: "highlightTerms",
|
|
22908
|
+
signature: "(root: ParentNode, terms: string[]) => { cleanup; first }",
|
|
22909
|
+
description: 'Wrap terms in <mark class="search-highlight">'
|
|
22910
|
+
},
|
|
22911
|
+
{
|
|
22912
|
+
name: "labelDiagram",
|
|
22913
|
+
signature: "(container: Element) => void",
|
|
22914
|
+
description: "role=img and a name for a rendered mermaid SVG"
|
|
22915
|
+
}
|
|
22916
|
+
]
|
|
22002
22917
|
}
|
|
22003
22918
|
},
|
|
22004
22919
|
types: [
|
|
@@ -22023,6 +22938,12 @@ var docs_catalog_default = {
|
|
|
22023
22938
|
type: "string",
|
|
22024
22939
|
required: true,
|
|
22025
22940
|
description: "Rendered HTML content"
|
|
22941
|
+
},
|
|
22942
|
+
{
|
|
22943
|
+
name: "toc",
|
|
22944
|
+
type: "TocEntry[]",
|
|
22945
|
+
required: true,
|
|
22946
|
+
description: "Every heading with an ID, all levels, in document order"
|
|
22026
22947
|
}
|
|
22027
22948
|
]
|
|
22028
22949
|
},
|
|
@@ -22035,7 +22956,7 @@ var docs_catalog_default = {
|
|
|
22035
22956
|
type: "string",
|
|
22036
22957
|
required: false,
|
|
22037
22958
|
default: "'github-dark'",
|
|
22038
|
-
description: "Shiki theme for code highlighting"
|
|
22959
|
+
description: "Shiki theme for code highlighting (any bundled theme; loaded on demand)"
|
|
22039
22960
|
},
|
|
22040
22961
|
{
|
|
22041
22962
|
name: "generateHeadingIds",
|
|
@@ -22043,6 +22964,39 @@ var docs_catalog_default = {
|
|
|
22043
22964
|
required: false,
|
|
22044
22965
|
default: "true",
|
|
22045
22966
|
description: "Whether to generate heading IDs"
|
|
22967
|
+
},
|
|
22968
|
+
{
|
|
22969
|
+
name: "headingIdStyle",
|
|
22970
|
+
type: "'default' | 'github'",
|
|
22971
|
+
required: false,
|
|
22972
|
+
default: "'default'",
|
|
22973
|
+
description: "'github' matches GitHub/Docusaurus anchors (github-slugger)"
|
|
22974
|
+
},
|
|
22975
|
+
{
|
|
22976
|
+
name: "headingAnchors",
|
|
22977
|
+
type: "boolean",
|
|
22978
|
+
required: false,
|
|
22979
|
+
default: "false",
|
|
22980
|
+
description: "Append a `#` permalink (a.hash-link) to each heading"
|
|
22981
|
+
},
|
|
22982
|
+
{
|
|
22983
|
+
name: "components",
|
|
22984
|
+
type: "readonly string[]",
|
|
22985
|
+
required: false,
|
|
22986
|
+
description: "Component names rendered as placeholders for mountComponents"
|
|
22987
|
+
},
|
|
22988
|
+
{
|
|
22989
|
+
name: "externalLinks",
|
|
22990
|
+
type: "boolean | { target?: string; rel?: string }",
|
|
22991
|
+
required: false,
|
|
22992
|
+
default: "false",
|
|
22993
|
+
description: "Open http(s) links in a new tab with a screen-reader note"
|
|
22994
|
+
},
|
|
22995
|
+
{
|
|
22996
|
+
name: "langAlias",
|
|
22997
|
+
type: "Record<string, string>",
|
|
22998
|
+
required: false,
|
|
22999
|
+
description: "Map fence names to Shiki languages; unknown languages render as plain code"
|
|
22046
23000
|
}
|
|
22047
23001
|
]
|
|
22048
23002
|
},
|
|
@@ -22331,14 +23285,18 @@ var docs_catalog_default = {
|
|
|
22331
23285
|
]
|
|
22332
23286
|
},
|
|
22333
23287
|
peerDependencies: {
|
|
23288
|
+
"@classic-homes/theme-svelte": ">=1.16.0",
|
|
22334
23289
|
mermaid: "^11.0.0",
|
|
22335
|
-
svelte: "^5.0.0"
|
|
23290
|
+
svelte: "^5.0.0",
|
|
23291
|
+
vite: ">=5.0.0"
|
|
22336
23292
|
},
|
|
22337
23293
|
dependencies: {
|
|
22338
23294
|
"@classic-homes/theme-tokens": "*",
|
|
22339
23295
|
clsx: "^2.1.0",
|
|
22340
23296
|
"js-yaml": "^4.3.2",
|
|
22341
23297
|
marked: "^17.0.0",
|
|
23298
|
+
minisearch: "7.2.0",
|
|
23299
|
+
"sanitize-html": "2.18.0",
|
|
22342
23300
|
shiki: "^1.0.0",
|
|
22343
23301
|
"tailwind-merge": "^2.2.0",
|
|
22344
23302
|
"tailwind-variants": "^0.3.0"
|
|
@@ -22461,9 +23419,32 @@ function registerDocsResources(server) {
|
|
|
22461
23419
|
"footnoteExtension",
|
|
22462
23420
|
"definitionListExtension",
|
|
22463
23421
|
"mermaidExtension",
|
|
23422
|
+
"componentExtension",
|
|
22464
23423
|
"getAllExtensions",
|
|
22465
|
-
"
|
|
22466
|
-
"renderFootnotes"
|
|
23424
|
+
"createFootnoteStore",
|
|
23425
|
+
"renderFootnotes",
|
|
23426
|
+
"renderMermaidPlaceholder",
|
|
23427
|
+
"resetFootnoteStore"
|
|
23428
|
+
],
|
|
23429
|
+
sanitizeFunctions: ["sanitizeDocsHtml"],
|
|
23430
|
+
contentFunctions: ["loadDocs", "renderDocs", "plainText"],
|
|
23431
|
+
navFunctions: [
|
|
23432
|
+
"neighbours",
|
|
23433
|
+
"breadcrumbs",
|
|
23434
|
+
"flattenNav",
|
|
23435
|
+
"navContains",
|
|
23436
|
+
"countPages",
|
|
23437
|
+
"tagCounts",
|
|
23438
|
+
"pagesTagged"
|
|
23439
|
+
],
|
|
23440
|
+
searchFunctions: ["buildSearchIndex", "createSearch", "snippet"],
|
|
23441
|
+
vitePlugins: ["docsContent"],
|
|
23442
|
+
layoutFunctions: [
|
|
23443
|
+
"toSidebarNav",
|
|
23444
|
+
"revealActive",
|
|
23445
|
+
"enhanceCodeBlocks",
|
|
23446
|
+
"highlightTerms",
|
|
23447
|
+
"labelDiagram"
|
|
22467
23448
|
],
|
|
22468
23449
|
helpers: ["cn", "tv", "VariantProps"],
|
|
22469
23450
|
peerDependencies: docs.peerDependencies
|
|
@@ -22478,7 +23459,7 @@ function registerDocsResources(server) {
|
|
|
22478
23459
|
|
|
22479
23460
|
// src/data/charts-catalog.json
|
|
22480
23461
|
var charts_catalog_default = {
|
|
22481
|
-
version: "0.3.
|
|
23462
|
+
version: "0.3.3",
|
|
22482
23463
|
packageName: "@classic-homes/charts-core",
|
|
22483
23464
|
description: "Core utilities, types, and themes for Classic Theme chart components",
|
|
22484
23465
|
subpackages: {
|
|
@@ -24315,7 +25296,7 @@ interface SankeyData {
|
|
|
24315
25296
|
|
|
24316
25297
|
// src/data/maps-catalog.json
|
|
24317
25298
|
var maps_catalog_default = {
|
|
24318
|
-
version: "0.3.
|
|
25299
|
+
version: "0.3.3",
|
|
24319
25300
|
packageName: "@classic-homes/maps-core",
|
|
24320
25301
|
description: "Core utilities, types, and themes for Classic Theme MapLibre GL components",
|
|
24321
25302
|
subpackages: {
|
|
@@ -29646,7 +30627,7 @@ ${catalog5.quickReference.tailwindConfig}
|
|
|
29646
30627
|
|
|
29647
30628
|
// src/data/native-catalog.json
|
|
29648
30629
|
var native_catalog_default = {
|
|
29649
|
-
version: "0.3.
|
|
30630
|
+
version: "0.3.3",
|
|
29650
30631
|
packageName: "@classic-homes/native",
|
|
29651
30632
|
description: "Native device APIs for iOS and Android mobile apps. Uses Capacitor for native functionality with web fallbacks.",
|
|
29652
30633
|
subpackages: {
|
|
@@ -32021,7 +33002,7 @@ function registerPrompts(server) {
|
|
|
32021
33002
|
// package.json
|
|
32022
33003
|
var package_default = {
|
|
32023
33004
|
name: "@classic-homes/theme-mcp",
|
|
32024
|
-
version: "0.3.
|
|
33005
|
+
version: "0.3.3",
|
|
32025
33006
|
description: "MCP server for Classic Theme design system - enables AI assistants to understand and correctly use components, tokens, and patterns",
|
|
32026
33007
|
type: "module",
|
|
32027
33008
|
main: "dist/index.js",
|