@classic-homes/theme-mcp 0.3.2 → 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/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.2",
9
+ version: "0.3.3",
10
10
  components: [
11
11
  {
12
12
  name: "ActionHeader",
@@ -11819,6 +11819,126 @@ var component_catalog_default = {
11819
11819
  "DropdownMenu"
11820
11820
  ]
11821
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
+ },
11822
11942
  {
11823
11943
  name: "Sidebar",
11824
11944
  description: "Responsive sidebar navigation with collapsible sections",
@@ -12937,6 +13057,117 @@ var component_catalog_default = {
12937
13057
  "Input"
12938
13058
  ]
12939
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
+ },
12940
13171
  {
12941
13172
  name: "Spinner",
12942
13173
  description: "Loading indicator for async operations",
@@ -13027,6 +13258,158 @@ var component_catalog_default = {
13027
13258
  "Button"
13028
13259
  ]
13029
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
+ },
13030
13413
  {
13031
13414
  name: "Switch",
13032
13415
  description: "Toggle switch for binary on/off settings",
@@ -14363,7 +14746,7 @@ function registerComponentResources(server) {
14363
14746
 
14364
14747
  // src/data/token-definitions.json
14365
14748
  var token_definitions_default = {
14366
- version: "0.3.2",
14749
+ version: "0.3.3",
14367
14750
  colors: {
14368
14751
  brand: [
14369
14752
  {
@@ -15346,7 +15729,7 @@ function registerTokenResources(server) {
15346
15729
 
15347
15730
  // src/data/styles-catalog.json
15348
15731
  var styles_catalog_default = {
15349
- version: "0.3.2",
15732
+ version: "0.3.3",
15350
15733
  package: "@classic-homes/theme-styles",
15351
15734
  description: "Base CSS styles, accessibility features, and utility classes for the Classic Theme design system",
15352
15735
  integration: {
@@ -15729,7 +16112,7 @@ import { ResourceTemplate as ResourceTemplate2 } from "@modelcontextprotocol/sdk
15729
16112
 
15730
16113
  // src/data/pattern-library.json
15731
16114
  var pattern_library_default = {
15732
- version: "0.3.2",
16115
+ version: "0.3.3",
15733
16116
  layouts: [
15734
16117
  {
15735
16118
  id: "dashboard-page",
@@ -16823,7 +17206,7 @@ function registerLayoutResources(server) {
16823
17206
 
16824
17207
  // src/data/schema-catalog.json
16825
17208
  var schema_catalog_default = {
16826
- version: "0.3.2",
17209
+ version: "0.3.3",
16827
17210
  packageName: "@classic-homes/theme-svelte",
16828
17211
  importPath: "@classic-homes/theme-svelte",
16829
17212
  generatedFrom: "packages/svelte/src/lib/schemas/index.ts",
@@ -17631,7 +18014,7 @@ import { ResourceTemplate as ResourceTemplate3 } from "@modelcontextprotocol/sdk
17631
18014
 
17632
18015
  // src/data/auth-catalog.json
17633
18016
  var auth_catalog_default = {
17634
- version: "0.3.2",
18017
+ version: "0.3.3",
17635
18018
  packageName: "@classic-homes/auth",
17636
18019
  description: "Authentication services and Svelte bindings for Classic Theme apps",
17637
18020
  subpackages: {
@@ -20668,7 +21051,7 @@ import { ResourceTemplate as ResourceTemplate4 } from "@modelcontextprotocol/sdk
20668
21051
 
20669
21052
  // src/data/notifications-catalog.json
20670
21053
  var notifications_catalog_default = {
20671
- version: "0.3.2",
21054
+ version: "0.3.3",
20672
21055
  packageName: "@classic-homes/notifications",
20673
21056
  description: "Notification services and Svelte bindings for Classic Theme apps",
20674
21057
  subpackages: {
@@ -21580,7 +21963,7 @@ function registerNotificationsResources(server) {
21580
21963
 
21581
21964
  // src/data/docs-catalog.json
21582
21965
  var docs_catalog_default = {
21583
- version: "0.3.2",
21966
+ version: "0.3.3",
21584
21967
  packageName: "@classic-homes/theme-docs",
21585
21968
  description: "Markdown documentation components for the Classic theme system",
21586
21969
  exports: {
@@ -23076,7 +23459,7 @@ function registerDocsResources(server) {
23076
23459
 
23077
23460
  // src/data/charts-catalog.json
23078
23461
  var charts_catalog_default = {
23079
- version: "0.3.2",
23462
+ version: "0.3.3",
23080
23463
  packageName: "@classic-homes/charts-core",
23081
23464
  description: "Core utilities, types, and themes for Classic Theme chart components",
23082
23465
  subpackages: {
@@ -24913,7 +25296,7 @@ interface SankeyData {
24913
25296
 
24914
25297
  // src/data/maps-catalog.json
24915
25298
  var maps_catalog_default = {
24916
- version: "0.3.2",
25299
+ version: "0.3.3",
24917
25300
  packageName: "@classic-homes/maps-core",
24918
25301
  description: "Core utilities, types, and themes for Classic Theme MapLibre GL components",
24919
25302
  subpackages: {
@@ -30244,7 +30627,7 @@ ${catalog5.quickReference.tailwindConfig}
30244
30627
 
30245
30628
  // src/data/native-catalog.json
30246
30629
  var native_catalog_default = {
30247
- version: "0.3.2",
30630
+ version: "0.3.3",
30248
30631
  packageName: "@classic-homes/native",
30249
30632
  description: "Native device APIs for iOS and Android mobile apps. Uses Capacitor for native functionality with web fallbacks.",
30250
30633
  subpackages: {
@@ -32619,7 +33002,7 @@ function registerPrompts(server) {
32619
33002
  // package.json
32620
33003
  var package_default = {
32621
33004
  name: "@classic-homes/theme-mcp",
32622
- version: "0.3.2",
33005
+ version: "0.3.3",
32623
33006
  description: "MCP server for Classic Theme design system - enables AI assistants to understand and correctly use components, tokens, and patterns",
32624
33007
  type: "module",
32625
33008
  main: "dist/index.js",