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