@classic-homes/theme-mcp 0.1.38 → 0.2.0

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.1.38",
9
+ version: "0.2.0",
10
10
  components: [
11
11
  {
12
12
  name: "Alert",
@@ -541,6 +541,187 @@ var component_catalog_default = {
541
541
  "BarChart"
542
542
  ]
543
543
  },
544
+ {
545
+ name: "AspectRatio",
546
+ description: "Constrains content to a fixed width-to-height ratio",
547
+ category: "media",
548
+ importPath: "@classic-homes/theme-svelte",
549
+ props: [
550
+ {
551
+ name: "ratio",
552
+ type: "'square' | 'video' | 'photo' | 'portrait' | 'wide' | number",
553
+ default: "'video'",
554
+ required: false,
555
+ description: "Width-to-height ratio, named or as a raw number"
556
+ },
557
+ {
558
+ name: "class",
559
+ type: "string",
560
+ required: false,
561
+ description: "Additional CSS classes for the content box"
562
+ }
563
+ ],
564
+ variants: [
565
+ {
566
+ name: "ratio",
567
+ values: [
568
+ "square",
569
+ "video",
570
+ "photo",
571
+ "portrait",
572
+ "wide"
573
+ ],
574
+ default: "video"
575
+ }
576
+ ],
577
+ slots: [
578
+ {
579
+ name: "children",
580
+ description: "Main content",
581
+ required: false
582
+ }
583
+ ],
584
+ events: [],
585
+ examples: [
586
+ {
587
+ title: "Basic Usage",
588
+ code: '<AspectRatio ratio="video">\n <img src="/cover.jpg" alt="Cover art" class="h-full w-full object-cover" />\n</AspectRatio>'
589
+ }
590
+ ],
591
+ relatedComponents: [
592
+ "Image",
593
+ "MediaEmbed",
594
+ "MediaGrid"
595
+ ]
596
+ },
597
+ {
598
+ name: "Audio",
599
+ description: "Compact audio player with themed controls and keyboard support",
600
+ category: "media",
601
+ importPath: "@classic-homes/theme-svelte",
602
+ props: [
603
+ {
604
+ name: "src",
605
+ type: "string | MediaSource[]",
606
+ required: false,
607
+ description: "A single URL, or several sources for format fallback"
608
+ },
609
+ {
610
+ name: "title",
611
+ type: "string",
612
+ required: false,
613
+ description: "Track title shown above the controls"
614
+ },
615
+ {
616
+ name: "artist",
617
+ type: "string",
618
+ required: false,
619
+ description: "Performer or author shown beside the title"
620
+ },
621
+ {
622
+ name: "artwork",
623
+ type: "string",
624
+ required: false,
625
+ description: "Artwork image URL"
626
+ },
627
+ {
628
+ name: "label",
629
+ type: "string",
630
+ required: false,
631
+ description: "Accessible name; defaults to the title"
632
+ },
633
+ {
634
+ name: "tracks",
635
+ type: "MediaTextTrack[]",
636
+ default: "[]",
637
+ required: false,
638
+ description: "Transcript or caption tracks"
639
+ },
640
+ {
641
+ name: "autoplay",
642
+ type: "boolean",
643
+ default: "false",
644
+ required: false,
645
+ description: "Start playing automatically"
646
+ },
647
+ {
648
+ name: "muted",
649
+ type: "boolean",
650
+ default: "false",
651
+ required: false,
652
+ description: "Start muted"
653
+ },
654
+ {
655
+ name: "loop",
656
+ type: "boolean",
657
+ default: "false",
658
+ required: false,
659
+ description: "Loop playback"
660
+ },
661
+ {
662
+ name: "volume",
663
+ type: "number",
664
+ default: "1",
665
+ required: false,
666
+ description: "Initial volume, 0 to 1"
667
+ },
668
+ {
669
+ name: "preload",
670
+ type: "'none' | 'metadata' | 'auto'",
671
+ default: "'metadata'",
672
+ required: false,
673
+ description: "How much to preload"
674
+ },
675
+ {
676
+ name: "onEnded",
677
+ type: "() => void",
678
+ required: false,
679
+ description: "Called when playback ends"
680
+ },
681
+ {
682
+ name: "onTimeUpdate",
683
+ type: "(currentTime: number) => void",
684
+ required: false,
685
+ description: "Called on each time update, with seconds elapsed"
686
+ },
687
+ {
688
+ name: "class",
689
+ type: "string",
690
+ required: false,
691
+ description: "Additional CSS classes"
692
+ }
693
+ ],
694
+ variants: [
695
+ {
696
+ name: "preload",
697
+ values: [
698
+ "none",
699
+ "metadata",
700
+ "auto"
701
+ ],
702
+ default: "metadata"
703
+ }
704
+ ],
705
+ slots: [
706
+ {
707
+ name: "children",
708
+ description: "Main content",
709
+ required: false
710
+ }
711
+ ],
712
+ events: [],
713
+ examples: [
714
+ {
715
+ title: "Basic Usage",
716
+ code: '<Audio src="/episode-12.mp3" title="Episode 12" artist="Design Notes" artwork="/cover.jpg" />'
717
+ }
718
+ ],
719
+ relatedComponents: [
720
+ "Video",
721
+ "MediaGrid",
722
+ "Lightbox"
723
+ ]
724
+ },
544
725
  {
545
726
  name: "AuthLayout",
546
727
  description: "Centered card layout for authentication pages",
@@ -3248,12 +3429,39 @@ var component_catalog_default = {
3248
3429
  required: false,
3249
3430
  description: "Tab label text"
3250
3431
  },
3432
+ {
3433
+ name: "subtitle",
3434
+ type: "string",
3435
+ required: false,
3436
+ description: "Secondary line under the title"
3437
+ },
3251
3438
  {
3252
3439
  name: "edge",
3253
3440
  type: "'left' | 'right' | 'top' | 'bottom'",
3254
3441
  required: false,
3255
3442
  description: "Edge position (required)"
3256
3443
  },
3444
+ {
3445
+ name: "tabWidth",
3446
+ type: "number",
3447
+ default: "220",
3448
+ required: false,
3449
+ description: "Tab length (px) along its edge"
3450
+ },
3451
+ {
3452
+ name: "tabInset",
3453
+ type: "number",
3454
+ default: "0",
3455
+ required: false,
3456
+ description: "Distance (px) from the pinned edge"
3457
+ },
3458
+ {
3459
+ name: "offset",
3460
+ type: "number",
3461
+ default: "0",
3462
+ required: false,
3463
+ description: "Shift (px) along the edge"
3464
+ },
3257
3465
  {
3258
3466
  name: "onclick",
3259
3467
  type: "() => void",
@@ -6426,6 +6634,182 @@ var component_catalog_default = {
6426
6634
  "Spinner"
6427
6635
  ]
6428
6636
  },
6637
+ {
6638
+ name: "Image",
6639
+ description: "Responsive image with lazy loading, placeholders, and error fallback",
6640
+ category: "media",
6641
+ importPath: "@classic-homes/theme-svelte",
6642
+ props: [
6643
+ {
6644
+ name: "src",
6645
+ type: "string",
6646
+ required: false,
6647
+ description: "Image URL"
6648
+ },
6649
+ {
6650
+ name: "alt",
6651
+ type: "string",
6652
+ required: false,
6653
+ description: "Alternative text; required, empty string for decorative images"
6654
+ },
6655
+ {
6656
+ name: "ratio",
6657
+ type: "'square' | 'video' | 'photo' | 'portrait' | 'wide' | number",
6658
+ required: false,
6659
+ description: "Constrain the image to a ratio box"
6660
+ },
6661
+ {
6662
+ name: "fit",
6663
+ type: "'cover' | 'contain' | 'fill' | 'none' | 'scale-down'",
6664
+ default: "'cover'",
6665
+ required: false,
6666
+ description: "How the image fills its box"
6667
+ },
6668
+ {
6669
+ name: "rounded",
6670
+ type: "'none' | 'sm' | 'md' | 'lg' | 'xl' | 'full'",
6671
+ default: "'none'",
6672
+ required: false,
6673
+ description: "Corner rounding"
6674
+ },
6675
+ {
6676
+ name: "placeholder",
6677
+ type: "string",
6678
+ required: false,
6679
+ description: "Low-resolution data URL blurred in while loading"
6680
+ },
6681
+ {
6682
+ name: "showSkeleton",
6683
+ type: "boolean",
6684
+ default: "true",
6685
+ required: false,
6686
+ description: "Show a skeleton while loading (ignored when `placeholder` is set)"
6687
+ },
6688
+ {
6689
+ name: "loading",
6690
+ type: "'lazy' | 'eager'",
6691
+ default: "'lazy'",
6692
+ required: false,
6693
+ description: "Native loading strategy"
6694
+ },
6695
+ {
6696
+ name: "decoding",
6697
+ type: "'async' | 'sync' | 'auto'",
6698
+ default: "'async'",
6699
+ required: false,
6700
+ description: "Native decoding hint"
6701
+ },
6702
+ {
6703
+ name: "srcset",
6704
+ type: "string",
6705
+ required: false,
6706
+ description: "Responsive candidate list"
6707
+ },
6708
+ {
6709
+ name: "sizes",
6710
+ type: "string",
6711
+ required: false,
6712
+ description: "Sizes attribute paired with `srcset`"
6713
+ },
6714
+ {
6715
+ name: "onload",
6716
+ type: "(event: Event) => void",
6717
+ required: false,
6718
+ description: "Called once the image loads"
6719
+ },
6720
+ {
6721
+ name: "onerror",
6722
+ type: "(event: Event) => void",
6723
+ required: false,
6724
+ description: "Called when the image fails to load"
6725
+ },
6726
+ {
6727
+ name: "class",
6728
+ type: "string",
6729
+ required: false,
6730
+ description: "Additional classes for the wrapper"
6731
+ },
6732
+ {
6733
+ name: "imgClass",
6734
+ type: "string",
6735
+ required: false,
6736
+ description: "Additional classes for the `<img>` element"
6737
+ }
6738
+ ],
6739
+ variants: [
6740
+ {
6741
+ name: "ratio",
6742
+ values: [
6743
+ "square",
6744
+ "video",
6745
+ "photo",
6746
+ "portrait",
6747
+ "wide"
6748
+ ]
6749
+ },
6750
+ {
6751
+ name: "fit",
6752
+ values: [
6753
+ "cover",
6754
+ "contain",
6755
+ "fill",
6756
+ "none",
6757
+ "scale-down"
6758
+ ],
6759
+ default: "cover"
6760
+ },
6761
+ {
6762
+ name: "rounded",
6763
+ values: [
6764
+ "none",
6765
+ "sm",
6766
+ "md",
6767
+ "lg",
6768
+ "xl",
6769
+ "full"
6770
+ ],
6771
+ default: "none"
6772
+ },
6773
+ {
6774
+ name: "loading",
6775
+ values: [
6776
+ "lazy",
6777
+ "eager"
6778
+ ],
6779
+ default: "lazy"
6780
+ },
6781
+ {
6782
+ name: "decoding",
6783
+ values: [
6784
+ "async",
6785
+ "sync",
6786
+ "auto"
6787
+ ],
6788
+ default: "async"
6789
+ }
6790
+ ],
6791
+ slots: [
6792
+ {
6793
+ name: "children",
6794
+ description: "Main content",
6795
+ required: false
6796
+ }
6797
+ ],
6798
+ events: [],
6799
+ examples: [
6800
+ {
6801
+ title: "Basic Usage",
6802
+ code: '<Image src="/photo.jpg" alt="Sunrise over the harbour" ratio="photo" />'
6803
+ }
6804
+ ],
6805
+ relatedComponents: [
6806
+ "AspectRatio",
6807
+ "MediaGrid",
6808
+ "Lightbox",
6809
+ "Avatar",
6810
+ "Skeleton"
6811
+ ]
6812
+ },
6429
6813
  {
6430
6814
  name: "Input",
6431
6815
  description: "Text input field for single-line data entry with various input modes",
@@ -6679,7 +7063,116 @@ var component_catalog_default = {
6679
7063
  ]
6680
7064
  },
6681
7065
  {
6682
- name: "LineChart",
7066
+ name: "Lightbox",
7067
+ description: "Full-screen media viewer with zoom, pan, and keyboard navigation",
7068
+ category: "media",
7069
+ importPath: "@classic-homes/theme-svelte",
7070
+ props: [
7071
+ {
7072
+ name: "items",
7073
+ type: "MediaItem[]",
7074
+ required: false,
7075
+ description: "Items to page through"
7076
+ },
7077
+ {
7078
+ name: "open",
7079
+ type: "boolean",
7080
+ default: "false",
7081
+ required: false,
7082
+ description: "Whether the viewer is open (bindable)"
7083
+ },
7084
+ {
7085
+ name: "index",
7086
+ type: "number",
7087
+ default: "0",
7088
+ required: false,
7089
+ description: "Index of the visible item (bindable)"
7090
+ },
7091
+ {
7092
+ name: "loop",
7093
+ type: "boolean",
7094
+ default: "true",
7095
+ required: false,
7096
+ description: "Wrap from the last item back to the first"
7097
+ },
7098
+ {
7099
+ name: "showThumbnails",
7100
+ type: "boolean",
7101
+ default: "false",
7102
+ required: false,
7103
+ description: "Show the thumbnail strip along the bottom"
7104
+ },
7105
+ {
7106
+ name: "showCaption",
7107
+ type: "boolean",
7108
+ default: "true",
7109
+ required: false,
7110
+ description: "Show the caption beneath the media"
7111
+ },
7112
+ {
7113
+ name: "showCounter",
7114
+ type: "boolean",
7115
+ default: "true",
7116
+ required: false,
7117
+ description: 'Show the "n of m" counter'
7118
+ },
7119
+ {
7120
+ name: "zoomable",
7121
+ type: "boolean",
7122
+ default: "true",
7123
+ required: false,
7124
+ description: "Allow zooming and panning images"
7125
+ },
7126
+ {
7127
+ name: "downloadable",
7128
+ type: "boolean",
7129
+ default: "false",
7130
+ required: false,
7131
+ description: "Show a download link for items that expose a URL"
7132
+ },
7133
+ {
7134
+ name: "onOpenChange",
7135
+ type: "(open: boolean) => void",
7136
+ required: false,
7137
+ description: "Called when the open state changes"
7138
+ },
7139
+ {
7140
+ name: "onIndexChange",
7141
+ type: "(index: number) => void",
7142
+ required: false,
7143
+ description: "Called when the visible item changes"
7144
+ },
7145
+ {
7146
+ name: "class",
7147
+ type: "string",
7148
+ required: false,
7149
+ description: "Additional CSS classes for the surface"
7150
+ }
7151
+ ],
7152
+ variants: [],
7153
+ slots: [
7154
+ {
7155
+ name: "children",
7156
+ description: "Main content",
7157
+ required: false
7158
+ }
7159
+ ],
7160
+ events: [],
7161
+ examples: [
7162
+ {
7163
+ title: "Basic Usage",
7164
+ code: "<script>\n let open = $state(false);\n let index = $state(0);\n\n const photos = [\n { id: '1', kind: 'image', src: '/one.jpg', alt: 'Front elevation', caption: 'Front elevation' },\n { id: '2', kind: 'image', src: '/two.jpg', alt: 'Kitchen' },\n ];\n</script>\n\n<Button onclick={() => (open = true)}>View photos</Button>\n\n<Lightbox items={photos} bind:open bind:index />"
7165
+ }
7166
+ ],
7167
+ relatedComponents: [
7168
+ "MediaGrid",
7169
+ "MediaCarousel",
7170
+ "Dialog",
7171
+ "Image"
7172
+ ]
7173
+ },
7174
+ {
7175
+ name: "LineChart",
6683
7176
  description: "Display trends over time with smooth curves and area fill options",
6684
7177
  category: "chart",
6685
7178
  importPath: "@classic-homes/charts-svelte",
@@ -7606,26 +8099,455 @@ var component_catalog_default = {
7606
8099
  code: '<header class="flex items-center h-16 px-4 border-b">\n <a href="/">\n <LogoMain variant="horizontal" size="md" ariaLabel="" />\n </a>\n</header>'
7607
8100
  },
7608
8101
  {
7609
- title: "Footer Logo",
7610
- code: '<footer class="bg-gray-900 py-8">\n <LogoMain color="light" size="sm" />\n</footer>'
7611
- },
8102
+ title: "Footer Logo",
8103
+ code: '<footer class="bg-gray-900 py-8">\n <LogoMain color="light" size="sm" />\n</footer>'
8104
+ },
8105
+ {
8106
+ title: "Login Page Logo",
8107
+ code: '<div class="flex flex-col items-center py-8">\n <LogoMain variant="stacked" size="lg" subtitle="MY HOME" />\n <h1 class="mt-4 text-2xl font-bold">Sign In</h1>\n</div>'
8108
+ },
8109
+ {
8110
+ title: "Sidebar Collapsed Logo",
8111
+ code: `<LogoMain variant={sidebarCollapsed ? 'icon' : 'horizontal'} size="md" />`
8112
+ },
8113
+ {
8114
+ title: "Development Environment",
8115
+ code: "<LogoMain environment={import.meta.env.MODE === 'production' ? undefined : 'dev'} />"
8116
+ }
8117
+ ],
8118
+ relatedComponents: [
8119
+ "LoadingLogo",
8120
+ "Header",
8121
+ "Sidebar"
8122
+ ]
8123
+ },
8124
+ {
8125
+ name: "MediaCarousel",
8126
+ description: "Swipeable media slides with dots, thumbnails, and optional autoplay",
8127
+ category: "media",
8128
+ importPath: "@classic-homes/theme-svelte",
8129
+ props: [
8130
+ {
8131
+ name: "items",
8132
+ type: "MediaItem[]",
8133
+ required: false,
8134
+ description: "Slides to display"
8135
+ },
8136
+ {
8137
+ name: "label",
8138
+ type: "string",
8139
+ default: "'Media carousel'",
8140
+ required: false,
8141
+ description: "Accessible name for the carousel"
8142
+ },
8143
+ {
8144
+ name: "index",
8145
+ type: "number",
8146
+ default: "0",
8147
+ required: false,
8148
+ description: "Current slide index (bindable)"
8149
+ },
8150
+ {
8151
+ name: "ratio",
8152
+ type: "'square' | 'video' | 'photo' | 'portrait' | 'wide' | number",
8153
+ default: "'video'",
8154
+ required: false,
8155
+ description: "Aspect ratio of each slide"
8156
+ },
8157
+ {
8158
+ name: "loop",
8159
+ type: "boolean",
8160
+ default: "false",
8161
+ required: false,
8162
+ description: "Wrap from the last slide back to the first"
8163
+ },
8164
+ {
8165
+ name: "showDots",
8166
+ type: "boolean",
8167
+ default: "true",
8168
+ required: false,
8169
+ description: "Show dot indicators below the track"
8170
+ },
8171
+ {
8172
+ name: "showThumbnails",
8173
+ type: "boolean",
8174
+ default: "false",
8175
+ required: false,
8176
+ description: "Show a thumbnail strip instead of the dots"
8177
+ },
8178
+ {
8179
+ name: "showCaption",
8180
+ type: "boolean",
8181
+ default: "true",
8182
+ required: false,
8183
+ description: "Show the active slide's caption"
8184
+ },
8185
+ {
8186
+ name: "autoplay",
8187
+ type: "boolean",
8188
+ default: "false",
8189
+ required: false,
8190
+ description: "Advance automatically"
8191
+ },
8192
+ {
8193
+ name: "autoplayInterval",
8194
+ type: "number",
8195
+ default: "5000",
8196
+ required: false,
8197
+ description: "Milliseconds between automatic advances"
8198
+ },
8199
+ {
8200
+ name: "onIndexChange",
8201
+ type: "(index: number) => void",
8202
+ required: false,
8203
+ description: "Called when the active slide changes"
8204
+ },
8205
+ {
8206
+ name: "class",
8207
+ type: "string",
8208
+ required: false,
8209
+ description: "Additional CSS classes"
8210
+ }
8211
+ ],
8212
+ variants: [
8213
+ {
8214
+ name: "ratio",
8215
+ values: [
8216
+ "square",
8217
+ "video",
8218
+ "photo",
8219
+ "portrait",
8220
+ "wide"
8221
+ ],
8222
+ default: "video"
8223
+ }
8224
+ ],
8225
+ slots: [
8226
+ {
8227
+ name: "children",
8228
+ description: "Main content",
8229
+ required: false
8230
+ }
8231
+ ],
8232
+ events: [],
8233
+ examples: [
8234
+ {
8235
+ title: "Basic Usage",
8236
+ code: '<MediaCarousel items={photos} label="Project gallery" />'
8237
+ }
8238
+ ],
8239
+ relatedComponents: [
8240
+ "MediaGrid",
8241
+ "Lightbox",
8242
+ "Image",
8243
+ "Video"
8244
+ ]
8245
+ },
8246
+ {
8247
+ name: "MediaEmbed",
8248
+ description: "Lazy YouTube, Vimeo, Cloudflare Stream, and Matterport embeds that load nothing until clicked",
8249
+ category: "media",
8250
+ importPath: "@classic-homes/theme-svelte",
8251
+ props: [
8252
+ {
8253
+ name: "url",
8254
+ type: "string",
8255
+ required: false,
8256
+ description: "Full provider URL; ignored when `provider` and `videoId` are set"
8257
+ },
8258
+ {
8259
+ name: "provider",
8260
+ type: "'youtube' | 'vimeo' | 'cloudflare' | 'matterport'",
8261
+ required: false,
8262
+ description: "Hosting provider"
8263
+ },
8264
+ {
8265
+ name: "videoId",
8266
+ type: "string",
8267
+ required: false,
8268
+ description: "Provider-specific video identifier"
8269
+ },
8270
+ {
8271
+ name: "title",
8272
+ type: "string",
8273
+ required: false,
8274
+ description: "Accessible name for the player; required"
8275
+ },
8276
+ {
8277
+ name: "poster",
8278
+ type: "string",
8279
+ required: false,
8280
+ description: "Poster image; derived for YouTube and Stream, required for Vimeo"
8281
+ },
8282
+ {
8283
+ name: "privacy",
8284
+ type: "boolean",
8285
+ default: "true",
8286
+ required: false,
8287
+ description: "Route YouTube through the no-cookie domain"
8288
+ },
8289
+ {
8290
+ name: "start",
8291
+ type: "number",
8292
+ required: false,
8293
+ description: "Start offset in seconds"
8294
+ },
8295
+ {
8296
+ name: "showRelated",
8297
+ type: "boolean",
8298
+ default: "false",
8299
+ required: false,
8300
+ description: "Show the provider's related-video suggestions"
8301
+ },
8302
+ {
8303
+ name: "customerCode",
8304
+ type: "string",
8305
+ required: false,
8306
+ description: "Cloudflare Stream customer code; required for that provider"
8307
+ },
8308
+ {
8309
+ name: "domain",
8310
+ type: "string",
8311
+ required: false,
8312
+ description: "Custom hostname serving Cloudflare Stream"
8313
+ },
8314
+ {
8315
+ name: "primaryColor",
8316
+ type: "string",
8317
+ required: false,
8318
+ description: "Accent colour for the Cloudflare player UI"
8319
+ },
8320
+ {
8321
+ name: "letterboxColor",
8322
+ type: "string",
8323
+ required: false,
8324
+ description: "Letterbox colour for the Cloudflare player"
8325
+ },
8326
+ {
8327
+ name: "defaultTextTrack",
8328
+ type: "string",
8329
+ required: false,
8330
+ description: "BCP-47 code of the captions track the Cloudflare player enables"
8331
+ },
8332
+ {
8333
+ name: "modelId",
8334
+ type: "string",
8335
+ required: false,
8336
+ description: "Matterport space id; an alias for `videoId`"
8337
+ },
8338
+ {
8339
+ name: "matterport",
8340
+ type: "MatterportPlayerOptions",
8341
+ required: false,
8342
+ description: "Showcase options for the Matterport player"
8343
+ },
8344
+ {
8345
+ name: "fetchMetadata",
8346
+ type: "boolean",
8347
+ default: "false",
8348
+ required: false,
8349
+ description: "Look up the space's preview image and name from Matterport"
8350
+ },
8351
+ {
8352
+ name: "ratio",
8353
+ type: "'square' | 'video' | 'photo' | 'portrait' | 'wide' | number",
8354
+ default: "'video'",
8355
+ required: false,
8356
+ description: "Aspect ratio of the embed box"
8357
+ },
8358
+ {
8359
+ name: "eager",
8360
+ type: "boolean",
8361
+ default: "false",
8362
+ required: false,
8363
+ description: "Load the iframe immediately instead of showing a facade"
8364
+ },
8365
+ {
8366
+ name: "class",
8367
+ type: "string",
8368
+ required: false,
8369
+ description: "Additional CSS classes"
8370
+ }
8371
+ ],
8372
+ variants: [
8373
+ {
8374
+ name: "provider",
8375
+ values: [
8376
+ "youtube",
8377
+ "vimeo",
8378
+ "cloudflare",
8379
+ "matterport"
8380
+ ]
8381
+ },
8382
+ {
8383
+ name: "ratio",
8384
+ values: [
8385
+ "square",
8386
+ "video",
8387
+ "photo",
8388
+ "portrait",
8389
+ "wide"
8390
+ ],
8391
+ default: "video"
8392
+ }
8393
+ ],
8394
+ slots: [
8395
+ {
8396
+ name: "children",
8397
+ description: "Main content",
8398
+ required: false
8399
+ }
8400
+ ],
8401
+ events: [],
8402
+ examples: [
8403
+ {
8404
+ title: "Basic Usage",
8405
+ code: '<MediaEmbed url="https://youtu.be/dQw4w9WgXcQ" title="Never Gonna Give You Up" />'
8406
+ },
8407
+ {
8408
+ title: "Tour thumbnails",
8409
+ description: "Matterport publishes no oEmbed endpoint and no derivable thumbnail URL, so a tour facade shows a deliberate placeholder unless you give it one:",
8410
+ code: '<MediaEmbed provider="matterport" modelId="SxQL3iGyoDo" title="Show home" poster="/tour.jpg" />'
8411
+ }
8412
+ ],
8413
+ relatedComponents: [
8414
+ "Video",
8415
+ "AspectRatio",
8416
+ "MediaCarousel"
8417
+ ]
8418
+ },
8419
+ {
8420
+ name: "MediaGrid",
8421
+ description: "Responsive gallery of media thumbnails with keyboard navigation",
8422
+ category: "media",
8423
+ importPath: "@classic-homes/theme-svelte",
8424
+ props: [
8425
+ {
8426
+ name: "items",
8427
+ type: "MediaItem[]",
8428
+ required: false,
8429
+ description: "Items to display"
8430
+ },
8431
+ {
8432
+ name: "label",
8433
+ type: "string",
8434
+ default: "'Media gallery'",
8435
+ required: false,
8436
+ description: "Accessible name for the gallery list"
8437
+ },
8438
+ {
8439
+ name: "variant",
8440
+ type: "'grid' | 'masonry'",
8441
+ default: "'grid'",
8442
+ required: false,
8443
+ description: "Uniform tiles, or natural heights via CSS columns"
8444
+ },
8445
+ {
8446
+ name: "columns",
8447
+ type: "MediaGridColumns",
8448
+ default: "{ base: 2, md: 3, lg: 4 }",
8449
+ required: false,
8450
+ description: "Column counts per breakpoint"
8451
+ },
8452
+ {
8453
+ name: "gap",
8454
+ type: "'none' | 'sm' | 'md' | 'lg'",
8455
+ default: "'md'",
8456
+ required: false,
8457
+ description: "Gap between tiles"
8458
+ },
8459
+ {
8460
+ name: "ratio",
8461
+ type: "'square' | 'video' | 'photo' | 'portrait' | 'wide' | number",
8462
+ default: "'square'",
8463
+ required: false,
8464
+ description: "Aspect ratio of each tile; ignored in `masonry`"
8465
+ },
8466
+ {
8467
+ name: "lightbox",
8468
+ type: "boolean",
8469
+ default: "true",
8470
+ required: false,
8471
+ description: "Open the built-in lightbox on selection"
8472
+ },
8473
+ {
8474
+ name: "singleTabStop",
8475
+ type: "boolean",
8476
+ default: "true",
8477
+ required: false,
8478
+ description: "Keep the gallery to one tab stop and move with the arrow keys"
8479
+ },
8480
+ {
8481
+ name: "onSelect",
8482
+ type: "(index: number, item: MediaItem) => void",
8483
+ required: false,
8484
+ description: "Called with the selected index and item"
8485
+ },
8486
+ {
8487
+ name: "class",
8488
+ type: "string",
8489
+ required: false,
8490
+ description: "Additional CSS classes"
8491
+ }
8492
+ ],
8493
+ variants: [
7612
8494
  {
7613
- title: "Login Page Logo",
7614
- code: '<div class="flex flex-col items-center py-8">\n <LogoMain variant="stacked" size="lg" subtitle="MY HOME" />\n <h1 class="mt-4 text-2xl font-bold">Sign In</h1>\n</div>'
8495
+ name: "variant",
8496
+ values: [
8497
+ "grid",
8498
+ "masonry"
8499
+ ],
8500
+ default: "grid"
7615
8501
  },
7616
8502
  {
7617
- title: "Sidebar Collapsed Logo",
7618
- code: `<LogoMain variant={sidebarCollapsed ? 'icon' : 'horizontal'} size="md" />`
8503
+ name: "gap",
8504
+ values: [
8505
+ "none",
8506
+ "sm",
8507
+ "md",
8508
+ "lg"
8509
+ ],
8510
+ default: "md"
7619
8511
  },
7620
8512
  {
7621
- title: "Development Environment",
7622
- code: "<LogoMain environment={import.meta.env.MODE === 'production' ? undefined : 'dev'} />"
8513
+ name: "ratio",
8514
+ values: [
8515
+ "square",
8516
+ "video",
8517
+ "photo",
8518
+ "portrait",
8519
+ "wide"
8520
+ ],
8521
+ default: "square"
8522
+ }
8523
+ ],
8524
+ slots: [
8525
+ {
8526
+ name: "children",
8527
+ description: "Main content",
8528
+ required: false
8529
+ }
8530
+ ],
8531
+ events: [],
8532
+ examples: [
8533
+ {
8534
+ title: "Basic Usage",
8535
+ code: `<script>
8536
+ const photos = [
8537
+ { id: '1', kind: 'image', src: '/one.jpg', alt: 'Front elevation' },
8538
+ { id: '2', kind: 'image', src: '/two.jpg', alt: 'Kitchen' },
8539
+ { id: '3', kind: 'video', src: '/tour.mp4', poster: '/tour.jpg', title: 'Walkthrough' },
8540
+ ];
8541
+ </script>
8542
+
8543
+ <MediaGrid items={photos} label="Project photos" />`
7623
8544
  }
7624
8545
  ],
7625
8546
  relatedComponents: [
7626
- "LoadingLogo",
7627
- "Header",
7628
- "Sidebar"
8547
+ "Lightbox",
8548
+ "MediaCarousel",
8549
+ "Image",
8550
+ "AspectRatio"
7629
8551
  ]
7630
8552
  },
7631
8553
  {
@@ -10393,7 +11315,27 @@ var component_catalog_default = {
10393
11315
  name: "userRoles",
10394
11316
  type: "string[]",
10395
11317
  required: false,
10396
- description: "User roles for filtering"
11318
+ description: "Every role the user holds"
11319
+ },
11320
+ {
11321
+ name: "userPermissions",
11322
+ type: "string[]",
11323
+ required: false,
11324
+ description: "Every permission the user holds"
11325
+ },
11326
+ {
11327
+ name: "requireAllRoles",
11328
+ type: "boolean",
11329
+ default: "false",
11330
+ required: false,
11331
+ description: "Require ALL of an item's roles rather than any"
11332
+ },
11333
+ {
11334
+ name: "requireAllPermissions",
11335
+ type: "boolean",
11336
+ default: "false",
11337
+ required: false,
11338
+ description: "Require ALL of an item's permissions rather than any"
10397
11339
  },
10398
11340
  {
10399
11341
  name: "collapsed",
@@ -12449,6 +13391,204 @@ var component_catalog_default = {
12449
13391
  "PieChart",
12450
13392
  "SankeyChart"
12451
13393
  ]
13394
+ },
13395
+ {
13396
+ name: "Video",
13397
+ description: "Video player with themed controls and full keyboard support",
13398
+ category: "media",
13399
+ importPath: "@classic-homes/theme-svelte",
13400
+ props: [
13401
+ {
13402
+ name: "item",
13403
+ type: "VideoMediaItem",
13404
+ required: false,
13405
+ description: "Supplies `src`, `poster`, `tracks`, and the label in one object"
13406
+ },
13407
+ {
13408
+ name: "src",
13409
+ type: "string | MediaSource[]",
13410
+ required: false,
13411
+ description: "A single URL, or several sources for format fallback"
13412
+ },
13413
+ {
13414
+ name: "poster",
13415
+ type: "string",
13416
+ required: false,
13417
+ description: "Image shown before playback starts"
13418
+ },
13419
+ {
13420
+ name: "tracks",
13421
+ type: "MediaTextTrack[]",
13422
+ default: "[]",
13423
+ required: false,
13424
+ description: "Caption and subtitle tracks"
13425
+ },
13426
+ {
13427
+ name: "label",
13428
+ type: "string",
13429
+ default: "'Video player'",
13430
+ required: false,
13431
+ description: "Accessible name for the player region"
13432
+ },
13433
+ {
13434
+ name: "ratio",
13435
+ type: "'square' | 'video' | 'photo' | 'portrait' | 'wide' | number",
13436
+ default: "'video'",
13437
+ required: false,
13438
+ description: "Aspect ratio; pass `null` to size from the content"
13439
+ },
13440
+ {
13441
+ name: "fit",
13442
+ type: "'cover' | 'contain' | 'fill' | 'none' | 'scale-down'",
13443
+ default: "'contain'",
13444
+ required: false,
13445
+ description: "How the video fills its box"
13446
+ },
13447
+ {
13448
+ name: "autoplay",
13449
+ type: "boolean",
13450
+ default: "false",
13451
+ required: false,
13452
+ description: "Start playing automatically; implies `muted`"
13453
+ },
13454
+ {
13455
+ name: "muted",
13456
+ type: "boolean",
13457
+ default: "false",
13458
+ required: false,
13459
+ description: "Start muted"
13460
+ },
13461
+ {
13462
+ name: "loop",
13463
+ type: "boolean",
13464
+ default: "false",
13465
+ required: false,
13466
+ description: "Loop playback"
13467
+ },
13468
+ {
13469
+ name: "volume",
13470
+ type: "number",
13471
+ default: "1",
13472
+ required: false,
13473
+ description: "Initial volume, 0 to 1"
13474
+ },
13475
+ {
13476
+ name: "preload",
13477
+ type: "'none' | 'metadata' | 'auto'",
13478
+ default: "'metadata'",
13479
+ required: false,
13480
+ description: "How much to preload"
13481
+ },
13482
+ {
13483
+ name: "hideControls",
13484
+ type: "boolean",
13485
+ default: "false",
13486
+ required: false,
13487
+ description: "Hide the control bar entirely"
13488
+ },
13489
+ {
13490
+ name: "showPictureInPicture",
13491
+ type: "boolean",
13492
+ default: "true",
13493
+ required: false,
13494
+ description: "Show the picture-in-picture button"
13495
+ },
13496
+ {
13497
+ name: "showFullscreen",
13498
+ type: "boolean",
13499
+ default: "true",
13500
+ required: false,
13501
+ description: "Show the fullscreen button"
13502
+ },
13503
+ {
13504
+ name: "onEnded",
13505
+ type: "() => void",
13506
+ required: false,
13507
+ description: "Called when playback ends"
13508
+ },
13509
+ {
13510
+ name: "onTimeUpdate",
13511
+ type: "(currentTime: number) => void",
13512
+ required: false,
13513
+ description: "Called on each time update, with seconds elapsed"
13514
+ },
13515
+ {
13516
+ name: "hlsLoader",
13517
+ type: "() => Promise<HlsConstructor>",
13518
+ required: false,
13519
+ description: "Per-player hls.js loader, overriding the registered one"
13520
+ },
13521
+ {
13522
+ name: "hlsConfig",
13523
+ type: "Record<string, unknown>",
13524
+ required: false,
13525
+ description: "Extra hls.js configuration"
13526
+ },
13527
+ {
13528
+ name: "class",
13529
+ type: "string",
13530
+ required: false,
13531
+ description: "Additional CSS classes"
13532
+ }
13533
+ ],
13534
+ variants: [
13535
+ {
13536
+ name: "ratio",
13537
+ values: [
13538
+ "square",
13539
+ "video",
13540
+ "photo",
13541
+ "portrait",
13542
+ "wide"
13543
+ ],
13544
+ default: "video"
13545
+ },
13546
+ {
13547
+ name: "fit",
13548
+ values: [
13549
+ "cover",
13550
+ "contain",
13551
+ "fill",
13552
+ "none",
13553
+ "scale-down"
13554
+ ],
13555
+ default: "contain"
13556
+ },
13557
+ {
13558
+ name: "preload",
13559
+ values: [
13560
+ "none",
13561
+ "metadata",
13562
+ "auto"
13563
+ ],
13564
+ default: "metadata"
13565
+ }
13566
+ ],
13567
+ slots: [
13568
+ {
13569
+ name: "children",
13570
+ description: "Main content",
13571
+ required: false
13572
+ }
13573
+ ],
13574
+ events: [],
13575
+ examples: [
13576
+ {
13577
+ title: "Basic Usage",
13578
+ code: `<Video
13579
+ src="/walkthrough.mp4"
13580
+ poster="/walkthrough.jpg"
13581
+ label="Product walkthrough"
13582
+ tracks={[{ src: '/walkthrough.en.vtt', srclang: 'en', label: 'English', default: true }]}
13583
+ />`
13584
+ }
13585
+ ],
13586
+ relatedComponents: [
13587
+ "Audio",
13588
+ "MediaEmbed",
13589
+ "Lightbox",
13590
+ "MediaCarousel"
13591
+ ]
12452
13592
  }
12453
13593
  ]
12454
13594
  };
@@ -12533,7 +13673,7 @@ function registerComponentResources(server) {
12533
13673
 
12534
13674
  // src/data/token-definitions.json
12535
13675
  var token_definitions_default = {
12536
- version: "0.1.38",
13676
+ version: "0.2.0",
12537
13677
  colors: {
12538
13678
  brand: [
12539
13679
  {
@@ -13480,7 +14620,7 @@ function registerTokenResources(server) {
13480
14620
 
13481
14621
  // src/data/styles-catalog.json
13482
14622
  var styles_catalog_default = {
13483
- version: "0.1.38",
14623
+ version: "0.2.0",
13484
14624
  package: "@classic-homes/theme-styles",
13485
14625
  description: "Base CSS styles, accessibility features, and utility classes for the Classic Theme design system",
13486
14626
  integration: {
@@ -13853,7 +14993,7 @@ import { ResourceTemplate as ResourceTemplate2 } from "@modelcontextprotocol/sdk
13853
14993
 
13854
14994
  // src/data/pattern-library.json
13855
14995
  var pattern_library_default = {
13856
- version: "0.1.38",
14996
+ version: "0.2.0",
13857
14997
  layouts: [
13858
14998
  {
13859
14999
  id: "dashboard-page",
@@ -14963,7 +16103,7 @@ function registerLayoutResources(server) {
14963
16103
 
14964
16104
  // src/data/schema-catalog.json
14965
16105
  var schema_catalog_default = {
14966
- version: "0.1.38",
16106
+ version: "0.2.0",
14967
16107
  packageName: "@classic-homes/theme-svelte",
14968
16108
  importPath: "@classic-homes/theme-svelte",
14969
16109
  generatedFrom: "packages/svelte/src/lib/schemas/index.ts",
@@ -15095,6 +16235,11 @@ var schema_catalog_default = {
15095
16235
  description: "Auth Tokens type export",
15096
16236
  importPath: "@classic-homes/theme-svelte"
15097
16237
  },
16238
+ {
16239
+ name: "AuthUser",
16240
+ description: "Auth User type export",
16241
+ importPath: "@classic-homes/theme-svelte"
16242
+ },
15098
16243
  {
15099
16244
  name: "ChangePasswordFormData",
15100
16245
  description: "Change Password Form Data type export",
@@ -15144,11 +16289,6 @@ var schema_catalog_default = {
15144
16289
  name: "ResetPasswordFormData",
15145
16290
  description: "Reset Password Form Data type export",
15146
16291
  importPath: "@classic-homes/theme-svelte"
15147
- },
15148
- {
15149
- name: "User",
15150
- description: "User type export",
15151
- importPath: "@classic-homes/theme-svelte"
15152
16292
  }
15153
16293
  ]
15154
16294
  },
@@ -15401,6 +16541,11 @@ var schema_catalog_default = {
15401
16541
  description: "Auth tokens validation (accessToken, refreshToken)",
15402
16542
  importPath: "@classic-homes/theme-svelte"
15403
16543
  },
16544
+ {
16545
+ name: "AuthUser",
16546
+ description: "Auth User type export",
16547
+ importPath: "@classic-homes/theme-svelte"
16548
+ },
15404
16549
  {
15405
16550
  name: "ChangePasswordFormData",
15406
16551
  description: "Change Password Form Data type export",
@@ -15701,11 +16846,6 @@ var schema_catalog_default = {
15701
16846
  description: "URL validation",
15702
16847
  importPath: "@classic-homes/theme-svelte"
15703
16848
  },
15704
- {
15705
- name: "User",
15706
- description: "User type export",
15707
- importPath: "@classic-homes/theme-svelte"
15708
- },
15709
16849
  {
15710
16850
  name: "usernameSchema",
15711
16851
  description: "Username validation (3-30 chars, alphanumeric)",
@@ -15771,7 +16911,7 @@ import { ResourceTemplate as ResourceTemplate3 } from "@modelcontextprotocol/sdk
15771
16911
 
15772
16912
  // src/data/auth-catalog.json
15773
16913
  var auth_catalog_default = {
15774
- version: "0.1.38",
16914
+ version: "0.2.0",
15775
16915
  packageName: "@classic-homes/auth",
15776
16916
  description: "Authentication services and Svelte bindings for Classic Theme apps",
15777
16917
  subpackages: {
@@ -16137,6 +17277,30 @@ var auth_catalog_default = {
16137
17277
  name: "authApi.regenerateBackupCodes",
16138
17278
  signature: "(password: string) => Promise<{ backupCodes: string[] }>",
16139
17279
  description: "Regenerate MFA backup codes"
17280
+ },
17281
+ {
17282
+ name: "authApi.getUserRoles",
17283
+ signature: "(userId: string, customFetch?: typeof fetch) => Promise<UserRolesResponse>",
17284
+ description: "List a user's roles. Requires users:read.",
17285
+ example: "const { roles, primaryRole } = await authApi.getUserRoles(userId);"
17286
+ },
17287
+ {
17288
+ name: "authApi.grantUserRole",
17289
+ signature: "(userId: string, role: string) => Promise<UserRolesResponse>",
17290
+ description: "Grant a role to a user; idempotent. Requires users:update. Takes effect on that user's next token refresh, not their next request. The server rejects granting a role at or above the acting user's own level.",
17291
+ example: "await authApi.grantUserRole(userId, 'agent');"
17292
+ },
17293
+ {
17294
+ name: "authApi.revokeUserRole",
17295
+ signature: "(userId: string, role: string) => Promise<UserRolesResponse>",
17296
+ description: "Revoke a role from a user. Requires users:update. The server rejects removing a user's last role.",
17297
+ example: "await authApi.revokeUserRole(userId, 'agent');"
17298
+ },
17299
+ {
17300
+ name: "authApi.setUserRoles",
17301
+ signature: "(userId: string, roles: string[]) => Promise<User>",
17302
+ description: "Replace a user's entire role set. Roles absent from the array are revoked, so read-modify-write against getUserRoles rather than passing a set built from stale state.",
17303
+ example: "await authApi.setUserRoles(userId, ['manager', 'agent']);"
16140
17304
  }
16141
17305
  ]
16142
17306
  },
@@ -16277,6 +17441,65 @@ var auth_catalog_default = {
16277
17441
  }
16278
17442
  ]
16279
17443
  },
17444
+ roles: {
17445
+ description: "Role taxonomy and membership checks. A user holds a set of roles; their permissions are the union across all of them.",
17446
+ functions: [
17447
+ {
17448
+ name: "getUserRoles",
17449
+ signature: "(user: Pick<User, 'roles'> | null | undefined) => string[]",
17450
+ description: "Read a user's role set, returning [] for a null user or an absent field",
17451
+ example: "import { getUserRoles } from '@classic-homes/auth/core';\n\ngetUserRoles(user); // ['manager', 'agent']"
17452
+ },
17453
+ {
17454
+ name: "computePrimaryRole",
17455
+ signature: "(roles: readonly string[]) => RoleName",
17456
+ description: "Highest-tier role held, for display. A label, not a capability - never gate on it. Ties break by ROLE_NAMES order; empty or unknown sets return 'guest'.",
17457
+ example: "import { computePrimaryRole } from '@classic-homes/auth/core';\n\ncomputePrimaryRole(['user', 'admin']); // 'admin'\ncomputePrimaryRole([]); // 'guest'"
17458
+ },
17459
+ {
17460
+ name: "getEffectiveLevel",
17461
+ signature: "(roles: readonly string[]) => number",
17462
+ description: "Effective privilege level - the max across all roles held. Unknown roles count as 0.",
17463
+ example: "import { getEffectiveLevel } from '@classic-homes/auth/core';\n\ngetEffectiveLevel(['user', 'manager']); // 3"
17464
+ },
17465
+ {
17466
+ name: "hasRole",
17467
+ signature: "(user: Pick<User, 'roles'> | null | undefined, role: string) => boolean",
17468
+ description: "Whether the user holds a role. Exact membership - holding 'admin' does not imply 'agent'. Matches the API's requireRole so the UI cannot offer what the server will reject.",
17469
+ example: "import { hasRole } from '@classic-homes/auth/core';\n\nhasRole(user, 'agent'); // true only if 'agent' is in user.roles"
17470
+ },
17471
+ {
17472
+ name: "hasAnyRole",
17473
+ signature: "(user: Pick<User, 'roles'> | null | undefined, roles: readonly string[]) => boolean",
17474
+ description: "Whether the user holds at least one of the given roles. An empty list matches nothing.",
17475
+ example: "import { hasAnyRole } from '@classic-homes/auth/core';\n\nhasAnyRole(user, ['admin', 'agent']);"
17476
+ },
17477
+ {
17478
+ name: "hasAllRoles",
17479
+ signature: "(user: Pick<User, 'roles'> | null | undefined, roles: readonly string[]) => boolean",
17480
+ description: "Whether the user holds every one of the given roles. An empty list matches vacuously.",
17481
+ example: "import { hasAllRoles } from '@classic-homes/auth/core';\n\nhasAllRoles(user, ['manager', 'agent']);"
17482
+ }
17483
+ ],
17484
+ constants: [
17485
+ {
17486
+ name: "ROLE_NAMES",
17487
+ type: "readonly RoleName[]",
17488
+ description: "Every role name, ordered most to least privileged: admin, manager, agent, builder, customer_service, demo, stormwater, accounting_staff, architecture_staff, construction_staff, crl_staff, design_staff, hr_staff, it_staff, landdev_staff, marketing_staff, purchasing_staff, sales_staff, warranty_staff, employee, user, vendor, customer, subcontractor, guest. Order is load-bearing - computePrimaryRole takes the first match."
17489
+ },
17490
+ {
17491
+ name: "ROLE_HIERARCHY",
17492
+ type: "Record<string, number>",
17493
+ description: "Privilege level per role: guest 0; user/vendor/customer/subcontractor 1; employee/agent/builder/customer_service/demo/stormwater and every <department>_staff 2; manager 3; admin 4."
17494
+ }
17495
+ ],
17496
+ types: [
17497
+ {
17498
+ name: "RoleName",
17499
+ description: "A known role name. Role values stay `string` at API boundaries - the server can add a role before this package ships a matching release, and an unknown role degrades rather than breaking. For authoring ergonomics, not runtime validation."
17500
+ }
17501
+ ]
17502
+ },
16280
17503
  errors: {
16281
17504
  description: "Custom error types for authentication operations",
16282
17505
  functions: [
@@ -16462,23 +17685,17 @@ formatUserRoles(user, { lowercase: true }); // "admin, manager"`
16462
17685
  required: false,
16463
17686
  description: "Phone number"
16464
17687
  },
16465
- {
16466
- name: "role",
16467
- type: "string",
16468
- required: true,
16469
- description: "Primary role"
16470
- },
16471
17688
  {
16472
17689
  name: "roles",
16473
17690
  type: "string[]",
16474
- required: false,
16475
- description: "All assigned roles"
17691
+ required: true,
17692
+ description: "Every role the user holds. Permissions are the union across all of them, so access is broader than any single role. Use computePrimaryRole(user.roles) when you need one role to display."
16476
17693
  },
16477
17694
  {
16478
17695
  name: "permissions",
16479
17696
  type: "string[]",
16480
17697
  required: true,
16481
- description: "User permissions"
17698
+ description: "Union of the permissions granted by every role in roles"
16482
17699
  },
16483
17700
  {
16484
17701
  name: "isActive",
@@ -17441,6 +18658,30 @@ formatUserRoles(user, { lowercase: true }); // "admin, manager"`
17441
18658
  description: "Total pages"
17442
18659
  }
17443
18660
  ]
18661
+ },
18662
+ {
18663
+ name: "UserRolesResponse",
18664
+ description: "The result of reading or changing a user's roles",
18665
+ properties: [
18666
+ {
18667
+ name: "userId",
18668
+ type: "string",
18669
+ required: true,
18670
+ description: "The user whose roles these are"
18671
+ },
18672
+ {
18673
+ name: "roles",
18674
+ type: "string[]",
18675
+ required: true,
18676
+ description: "The user's full role set after the operation"
18677
+ },
18678
+ {
18679
+ name: "primaryRole",
18680
+ type: "string",
18681
+ required: true,
18682
+ description: "Highest-tier role in roles, as resolved by the server. A display label - actual access is the union of every role."
18683
+ }
18684
+ ]
17444
18685
  }
17445
18686
  ]
17446
18687
  },
@@ -18707,7 +19948,7 @@ import { ResourceTemplate as ResourceTemplate4 } from "@modelcontextprotocol/sdk
18707
19948
 
18708
19949
  // src/data/notifications-catalog.json
18709
19950
  var notifications_catalog_default = {
18710
- version: "0.1.38",
19951
+ version: "0.2.0",
18711
19952
  packageName: "@classic-homes/notifications",
18712
19953
  description: "Notification services and Svelte bindings for Classic Theme apps",
18713
19954
  subpackages: {
@@ -19619,7 +20860,7 @@ function registerNotificationsResources(server) {
19619
20860
 
19620
20861
  // src/data/docs-catalog.json
19621
20862
  var docs_catalog_default = {
19622
- version: "0.1.38",
20863
+ version: "0.2.0",
19623
20864
  packageName: "@classic-homes/theme-docs",
19624
20865
  description: "Markdown documentation components for the Classic theme system",
19625
20866
  exports: {
@@ -20547,7 +21788,7 @@ function registerDocsResources(server) {
20547
21788
 
20548
21789
  // src/data/charts-catalog.json
20549
21790
  var charts_catalog_default = {
20550
- version: "0.1.38",
21791
+ version: "0.2.0",
20551
21792
  packageName: "@classic-homes/charts-core",
20552
21793
  description: "Core utilities, types, and themes for Classic Theme chart components",
20553
21794
  subpackages: {
@@ -22384,7 +23625,7 @@ interface SankeyData {
22384
23625
 
22385
23626
  // src/data/maps-catalog.json
22386
23627
  var maps_catalog_default = {
22387
- version: "0.1.38",
23628
+ version: "0.2.0",
22388
23629
  packageName: "@classic-homes/maps-core",
22389
23630
  description: "Core utilities, types, and themes for Classic Theme MapLibre GL components",
22390
23631
  subpackages: {
@@ -27519,7 +28760,7 @@ ${catalog5.quickReference.tailwindConfig}
27519
28760
 
27520
28761
  // src/data/native-catalog.json
27521
28762
  var native_catalog_default = {
27522
- version: "0.1.38",
28763
+ version: "0.2.0",
27523
28764
  packageName: "@classic-homes/native",
27524
28765
  description: "Native device APIs for iOS and Android mobile apps. Uses Capacitor for native functionality with web fallbacks.",
27525
28766
  subpackages: {
@@ -29894,7 +31135,7 @@ function registerPrompts(server) {
29894
31135
  // package.json
29895
31136
  var package_default = {
29896
31137
  name: "@classic-homes/theme-mcp",
29897
- version: "0.1.38",
31138
+ version: "0.2.0",
29898
31139
  description: "MCP server for Classic Theme design system - enables AI assistants to understand and correctly use components, tokens, and patterns",
29899
31140
  type: "module",
29900
31141
  main: "dist/index.js",
@@ -29944,6 +31185,7 @@ var package_default = {
29944
31185
  start: "node dist/cli.js",
29945
31186
  typecheck: "tsc --noEmit",
29946
31187
  validate: "tsx scripts/validate-catalog-integrity.ts",
31188
+ test: "npm run validate",
29947
31189
  clean: "node ../../scripts/rm.mjs dist",
29948
31190
  prepublishOnly: "npm run build"
29949
31191
  },