@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/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.2",
14
+ version: "0.3.3",
15
15
  components: [
16
16
  {
17
17
  name: "ActionHeader",
@@ -11824,6 +11824,126 @@ var component_catalog_default = {
11824
11824
  "DropdownMenu"
11825
11825
  ]
11826
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
+ },
11827
11947
  {
11828
11948
  name: "Sidebar",
11829
11949
  description: "Responsive sidebar navigation with collapsible sections",
@@ -12942,6 +13062,117 @@ var component_catalog_default = {
12942
13062
  "Input"
12943
13063
  ]
12944
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
+ },
12945
13176
  {
12946
13177
  name: "Spinner",
12947
13178
  description: "Loading indicator for async operations",
@@ -13032,6 +13263,158 @@ var component_catalog_default = {
13032
13263
  "Button"
13033
13264
  ]
13034
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
+ },
13035
13418
  {
13036
13419
  name: "Switch",
13037
13420
  description: "Toggle switch for binary on/off settings",
@@ -14368,7 +14751,7 @@ function registerComponentResources(server) {
14368
14751
 
14369
14752
  // src/data/token-definitions.json
14370
14753
  var token_definitions_default = {
14371
- version: "0.3.2",
14754
+ version: "0.3.3",
14372
14755
  colors: {
14373
14756
  brand: [
14374
14757
  {
@@ -15351,7 +15734,7 @@ function registerTokenResources(server) {
15351
15734
 
15352
15735
  // src/data/styles-catalog.json
15353
15736
  var styles_catalog_default = {
15354
- version: "0.3.2",
15737
+ version: "0.3.3",
15355
15738
  package: "@classic-homes/theme-styles",
15356
15739
  description: "Base CSS styles, accessibility features, and utility classes for the Classic Theme design system",
15357
15740
  integration: {
@@ -15734,7 +16117,7 @@ import { ResourceTemplate as ResourceTemplate2 } from "@modelcontextprotocol/sdk
15734
16117
 
15735
16118
  // src/data/pattern-library.json
15736
16119
  var pattern_library_default = {
15737
- version: "0.3.2",
16120
+ version: "0.3.3",
15738
16121
  layouts: [
15739
16122
  {
15740
16123
  id: "dashboard-page",
@@ -16828,7 +17211,7 @@ function registerLayoutResources(server) {
16828
17211
 
16829
17212
  // src/data/schema-catalog.json
16830
17213
  var schema_catalog_default = {
16831
- version: "0.3.2",
17214
+ version: "0.3.3",
16832
17215
  packageName: "@classic-homes/theme-svelte",
16833
17216
  importPath: "@classic-homes/theme-svelte",
16834
17217
  generatedFrom: "packages/svelte/src/lib/schemas/index.ts",
@@ -17636,7 +18019,7 @@ import { ResourceTemplate as ResourceTemplate3 } from "@modelcontextprotocol/sdk
17636
18019
 
17637
18020
  // src/data/auth-catalog.json
17638
18021
  var auth_catalog_default = {
17639
- version: "0.3.2",
18022
+ version: "0.3.3",
17640
18023
  packageName: "@classic-homes/auth",
17641
18024
  description: "Authentication services and Svelte bindings for Classic Theme apps",
17642
18025
  subpackages: {
@@ -20673,7 +21056,7 @@ import { ResourceTemplate as ResourceTemplate4 } from "@modelcontextprotocol/sdk
20673
21056
 
20674
21057
  // src/data/notifications-catalog.json
20675
21058
  var notifications_catalog_default = {
20676
- version: "0.3.2",
21059
+ version: "0.3.3",
20677
21060
  packageName: "@classic-homes/notifications",
20678
21061
  description: "Notification services and Svelte bindings for Classic Theme apps",
20679
21062
  subpackages: {
@@ -21585,7 +21968,7 @@ function registerNotificationsResources(server) {
21585
21968
 
21586
21969
  // src/data/docs-catalog.json
21587
21970
  var docs_catalog_default = {
21588
- version: "0.3.2",
21971
+ version: "0.3.3",
21589
21972
  packageName: "@classic-homes/theme-docs",
21590
21973
  description: "Markdown documentation components for the Classic theme system",
21591
21974
  exports: {
@@ -23081,7 +23464,7 @@ function registerDocsResources(server) {
23081
23464
 
23082
23465
  // src/data/charts-catalog.json
23083
23466
  var charts_catalog_default = {
23084
- version: "0.3.2",
23467
+ version: "0.3.3",
23085
23468
  packageName: "@classic-homes/charts-core",
23086
23469
  description: "Core utilities, types, and themes for Classic Theme chart components",
23087
23470
  subpackages: {
@@ -24918,7 +25301,7 @@ interface SankeyData {
24918
25301
 
24919
25302
  // src/data/maps-catalog.json
24920
25303
  var maps_catalog_default = {
24921
- version: "0.3.2",
25304
+ version: "0.3.3",
24922
25305
  packageName: "@classic-homes/maps-core",
24923
25306
  description: "Core utilities, types, and themes for Classic Theme MapLibre GL components",
24924
25307
  subpackages: {
@@ -30249,7 +30632,7 @@ ${catalog5.quickReference.tailwindConfig}
30249
30632
 
30250
30633
  // src/data/native-catalog.json
30251
30634
  var native_catalog_default = {
30252
- version: "0.3.2",
30635
+ version: "0.3.3",
30253
30636
  packageName: "@classic-homes/native",
30254
30637
  description: "Native device APIs for iOS and Android mobile apps. Uses Capacitor for native functionality with web fallbacks.",
30255
30638
  subpackages: {
@@ -32624,7 +33007,7 @@ function registerPrompts(server) {
32624
33007
  // package.json
32625
33008
  var package_default = {
32626
33009
  name: "@classic-homes/theme-mcp",
32627
- version: "0.3.2",
33010
+ version: "0.3.3",
32628
33011
  description: "MCP server for Classic Theme design system - enables AI assistants to understand and correctly use components, tokens, and patterns",
32629
33012
  type: "module",
32630
33013
  main: "dist/index.js",