@classic-homes/theme-mcp 0.1.39 → 0.2.1

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.39",
9
+ version: "0.2.1",
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",
@@ -2879,6 +3060,13 @@ var component_catalog_default = {
2879
3060
  required: false,
2880
3061
  description: "Distance to drag before detaching (px)"
2881
3062
  },
3063
+ {
3064
+ name: "mobileBreakpoint",
3065
+ type: "number",
3066
+ default: "640",
3067
+ required: false,
3068
+ description: "Viewport width (px) below which the panel uses mobile behaviors (card scrim, focus trap, card drag). Pass 768 for apps that switch layouts at md"
3069
+ },
2882
3070
  {
2883
3071
  name: "class",
2884
3072
  type: "string",
@@ -3248,12 +3436,39 @@ var component_catalog_default = {
3248
3436
  required: false,
3249
3437
  description: "Tab label text"
3250
3438
  },
3439
+ {
3440
+ name: "subtitle",
3441
+ type: "string",
3442
+ required: false,
3443
+ description: "Secondary line under the title"
3444
+ },
3251
3445
  {
3252
3446
  name: "edge",
3253
3447
  type: "'left' | 'right' | 'top' | 'bottom'",
3254
3448
  required: false,
3255
3449
  description: "Edge position (required)"
3256
3450
  },
3451
+ {
3452
+ name: "tabWidth",
3453
+ type: "number",
3454
+ default: "220",
3455
+ required: false,
3456
+ description: "Tab length (px) along its edge"
3457
+ },
3458
+ {
3459
+ name: "tabInset",
3460
+ type: "number",
3461
+ default: "0",
3462
+ required: false,
3463
+ description: "Distance (px) from the pinned edge"
3464
+ },
3465
+ {
3466
+ name: "offset",
3467
+ type: "number",
3468
+ default: "0",
3469
+ required: false,
3470
+ description: "Shift (px) along the edge"
3471
+ },
3257
3472
  {
3258
3473
  name: "onclick",
3259
3474
  type: "() => void",
@@ -6427,102 +6642,157 @@ var component_catalog_default = {
6427
6642
  ]
6428
6643
  },
6429
6644
  {
6430
- name: "Input",
6431
- description: "Text input field for single-line data entry with various input modes",
6432
- category: "form",
6645
+ name: "Image",
6646
+ description: "Responsive image with lazy loading, placeholders, and error fallback",
6647
+ category: "media",
6433
6648
  importPath: "@classic-homes/theme-svelte",
6434
6649
  props: [
6435
6650
  {
6436
- name: "type",
6651
+ name: "src",
6437
6652
  type: "string",
6438
- default: "'text'",
6439
6653
  required: false,
6440
- description: "HTML input type"
6654
+ description: "Image URL"
6441
6655
  },
6442
6656
  {
6443
- name: "value",
6444
- type: "string | number",
6445
- default: "''",
6657
+ name: "alt",
6658
+ type: "string",
6446
6659
  required: false,
6447
- description: "Input value (bindable)"
6660
+ description: "Alternative text; required, empty string for decorative images"
6661
+ },
6662
+ {
6663
+ name: "ratio",
6664
+ type: "'square' | 'video' | 'photo' | 'portrait' | 'wide' | number",
6665
+ required: false,
6666
+ description: "Constrain the image to a ratio box"
6667
+ },
6668
+ {
6669
+ name: "fit",
6670
+ type: "'cover' | 'contain' | 'fill' | 'none' | 'scale-down'",
6671
+ default: "'cover'",
6672
+ required: false,
6673
+ description: "How the image fills its box"
6674
+ },
6675
+ {
6676
+ name: "rounded",
6677
+ type: "'none' | 'sm' | 'md' | 'lg' | 'xl' | 'full'",
6678
+ default: "'none'",
6679
+ required: false,
6680
+ description: "Corner rounding"
6448
6681
  },
6449
6682
  {
6450
6683
  name: "placeholder",
6451
6684
  type: "string",
6452
6685
  required: false,
6453
- description: "Placeholder text"
6686
+ description: "Low-resolution data URL blurred in while loading"
6454
6687
  },
6455
6688
  {
6456
- name: "disabled",
6689
+ name: "showSkeleton",
6457
6690
  type: "boolean",
6458
- default: "false",
6691
+ default: "true",
6459
6692
  required: false,
6460
- description: "Disables the input"
6693
+ description: "Show a skeleton while loading (ignored when `placeholder` is set)"
6461
6694
  },
6462
6695
  {
6463
- name: "readonly",
6464
- type: "boolean",
6465
- default: "false",
6696
+ name: "loading",
6697
+ type: "'lazy' | 'eager'",
6698
+ default: "'lazy'",
6466
6699
  required: false,
6467
- description: "Makes the input read-only"
6700
+ description: "Native loading strategy"
6468
6701
  },
6469
6702
  {
6470
- name: "required",
6471
- type: "boolean",
6472
- default: "false",
6703
+ name: "decoding",
6704
+ type: "'async' | 'sync' | 'auto'",
6705
+ default: "'async'",
6473
6706
  required: false,
6474
- description: "Marks as required"
6707
+ description: "Native decoding hint"
6475
6708
  },
6476
6709
  {
6477
- name: "name",
6710
+ name: "srcset",
6478
6711
  type: "string",
6479
6712
  required: false,
6480
- description: "Input name for forms"
6713
+ description: "Responsive candidate list"
6481
6714
  },
6482
6715
  {
6483
- name: "id",
6716
+ name: "sizes",
6484
6717
  type: "string",
6485
6718
  required: false,
6486
- description: "Input ID for label association"
6719
+ description: "Sizes attribute paired with `srcset`"
6487
6720
  },
6488
6721
  {
6489
- name: "autocomplete",
6490
- type: "AutoFill",
6722
+ name: "onload",
6723
+ type: "(event: Event) => void",
6491
6724
  required: false,
6492
- description: "Browser autocomplete hint"
6725
+ description: "Called once the image loads"
6493
6726
  },
6494
6727
  {
6495
- name: "inputmode",
6496
- type: "'none' | 'text' | 'tel' | 'url' | 'email' | 'numeric' | 'decimal' | 'search'",
6728
+ name: "onerror",
6729
+ type: "(event: Event) => void",
6497
6730
  required: false,
6498
- description: "Mobile keyboard hint"
6731
+ description: "Called when the image fails to load"
6499
6732
  },
6500
6733
  {
6501
6734
  name: "class",
6502
6735
  type: "string",
6503
6736
  required: false,
6504
- description: "Additional CSS classes"
6737
+ description: "Additional classes for the wrapper"
6505
6738
  },
6506
6739
  {
6507
- name: "onValueChange",
6508
- type: "(value: string) => void",
6740
+ name: "imgClass",
6741
+ type: "string",
6509
6742
  required: false,
6510
- description: "Callback when value changes"
6743
+ description: "Additional classes for the `<img>` element"
6511
6744
  }
6512
6745
  ],
6513
6746
  variants: [
6514
6747
  {
6515
- name: "inputmode",
6748
+ name: "ratio",
6516
6749
  values: [
6517
- "none",
6518
- "text",
6519
- "tel",
6520
- "url",
6521
- "email",
6522
- "numeric",
6523
- "decimal",
6524
- "search"
6750
+ "square",
6751
+ "video",
6752
+ "photo",
6753
+ "portrait",
6754
+ "wide"
6525
6755
  ]
6756
+ },
6757
+ {
6758
+ name: "fit",
6759
+ values: [
6760
+ "cover",
6761
+ "contain",
6762
+ "fill",
6763
+ "none",
6764
+ "scale-down"
6765
+ ],
6766
+ default: "cover"
6767
+ },
6768
+ {
6769
+ name: "rounded",
6770
+ values: [
6771
+ "none",
6772
+ "sm",
6773
+ "md",
6774
+ "lg",
6775
+ "xl",
6776
+ "full"
6777
+ ],
6778
+ default: "none"
6779
+ },
6780
+ {
6781
+ name: "loading",
6782
+ values: [
6783
+ "lazy",
6784
+ "eager"
6785
+ ],
6786
+ default: "lazy"
6787
+ },
6788
+ {
6789
+ name: "decoding",
6790
+ values: [
6791
+ "async",
6792
+ "sync",
6793
+ "auto"
6794
+ ],
6795
+ default: "async"
6526
6796
  }
6527
6797
  ],
6528
6798
  slots: [
@@ -6536,14 +6806,135 @@ var component_catalog_default = {
6536
6806
  examples: [
6537
6807
  {
6538
6808
  title: "Basic Usage",
6539
- code: '<Input placeholder="Enter text..." />'
6540
- },
6809
+ code: '<Image src="/photo.jpg" alt="Sunrise over the harbour" ratio="photo" />'
6810
+ }
6811
+ ],
6812
+ relatedComponents: [
6813
+ "AspectRatio",
6814
+ "MediaGrid",
6815
+ "Lightbox",
6816
+ "Avatar",
6817
+ "Skeleton"
6818
+ ]
6819
+ },
6820
+ {
6821
+ name: "Input",
6822
+ description: "Text input field for single-line data entry with various input modes",
6823
+ category: "form",
6824
+ importPath: "@classic-homes/theme-svelte",
6825
+ props: [
6541
6826
  {
6542
- title: "Text (Default)",
6543
- code: '<Input type="text" placeholder="Enter name" />'
6827
+ name: "type",
6828
+ type: "string",
6829
+ default: "'text'",
6830
+ required: false,
6831
+ description: "HTML input type"
6544
6832
  },
6545
6833
  {
6546
- title: "Email",
6834
+ name: "value",
6835
+ type: "string | number",
6836
+ default: "''",
6837
+ required: false,
6838
+ description: "Input value (bindable)"
6839
+ },
6840
+ {
6841
+ name: "placeholder",
6842
+ type: "string",
6843
+ required: false,
6844
+ description: "Placeholder text"
6845
+ },
6846
+ {
6847
+ name: "disabled",
6848
+ type: "boolean",
6849
+ default: "false",
6850
+ required: false,
6851
+ description: "Disables the input"
6852
+ },
6853
+ {
6854
+ name: "readonly",
6855
+ type: "boolean",
6856
+ default: "false",
6857
+ required: false,
6858
+ description: "Makes the input read-only"
6859
+ },
6860
+ {
6861
+ name: "required",
6862
+ type: "boolean",
6863
+ default: "false",
6864
+ required: false,
6865
+ description: "Marks as required"
6866
+ },
6867
+ {
6868
+ name: "name",
6869
+ type: "string",
6870
+ required: false,
6871
+ description: "Input name for forms"
6872
+ },
6873
+ {
6874
+ name: "id",
6875
+ type: "string",
6876
+ required: false,
6877
+ description: "Input ID for label association"
6878
+ },
6879
+ {
6880
+ name: "autocomplete",
6881
+ type: "AutoFill",
6882
+ required: false,
6883
+ description: "Browser autocomplete hint"
6884
+ },
6885
+ {
6886
+ name: "inputmode",
6887
+ type: "'none' | 'text' | 'tel' | 'url' | 'email' | 'numeric' | 'decimal' | 'search'",
6888
+ required: false,
6889
+ description: "Mobile keyboard hint"
6890
+ },
6891
+ {
6892
+ name: "class",
6893
+ type: "string",
6894
+ required: false,
6895
+ description: "Additional CSS classes"
6896
+ },
6897
+ {
6898
+ name: "onValueChange",
6899
+ type: "(value: string) => void",
6900
+ required: false,
6901
+ description: "Callback when value changes"
6902
+ }
6903
+ ],
6904
+ variants: [
6905
+ {
6906
+ name: "inputmode",
6907
+ values: [
6908
+ "none",
6909
+ "text",
6910
+ "tel",
6911
+ "url",
6912
+ "email",
6913
+ "numeric",
6914
+ "decimal",
6915
+ "search"
6916
+ ]
6917
+ }
6918
+ ],
6919
+ slots: [
6920
+ {
6921
+ name: "children",
6922
+ description: "Main content",
6923
+ required: false
6924
+ }
6925
+ ],
6926
+ events: [],
6927
+ examples: [
6928
+ {
6929
+ title: "Basic Usage",
6930
+ code: '<Input placeholder="Enter text..." />'
6931
+ },
6932
+ {
6933
+ title: "Text (Default)",
6934
+ code: '<Input type="text" placeholder="Enter name" />'
6935
+ },
6936
+ {
6937
+ title: "Email",
6547
6938
  code: '<Input type="email" placeholder="your@email.com" autocomplete="email" />'
6548
6939
  },
6549
6940
  {
@@ -6678,6 +7069,115 @@ var component_catalog_default = {
6678
7069
  "FormField"
6679
7070
  ]
6680
7071
  },
7072
+ {
7073
+ name: "Lightbox",
7074
+ description: "Full-screen media viewer with zoom, pan, and keyboard navigation",
7075
+ category: "media",
7076
+ importPath: "@classic-homes/theme-svelte",
7077
+ props: [
7078
+ {
7079
+ name: "items",
7080
+ type: "MediaItem[]",
7081
+ required: false,
7082
+ description: "Items to page through"
7083
+ },
7084
+ {
7085
+ name: "open",
7086
+ type: "boolean",
7087
+ default: "false",
7088
+ required: false,
7089
+ description: "Whether the viewer is open (bindable)"
7090
+ },
7091
+ {
7092
+ name: "index",
7093
+ type: "number",
7094
+ default: "0",
7095
+ required: false,
7096
+ description: "Index of the visible item (bindable)"
7097
+ },
7098
+ {
7099
+ name: "loop",
7100
+ type: "boolean",
7101
+ default: "true",
7102
+ required: false,
7103
+ description: "Wrap from the last item back to the first"
7104
+ },
7105
+ {
7106
+ name: "showThumbnails",
7107
+ type: "boolean",
7108
+ default: "false",
7109
+ required: false,
7110
+ description: "Show the thumbnail strip along the bottom"
7111
+ },
7112
+ {
7113
+ name: "showCaption",
7114
+ type: "boolean",
7115
+ default: "true",
7116
+ required: false,
7117
+ description: "Show the caption beneath the media"
7118
+ },
7119
+ {
7120
+ name: "showCounter",
7121
+ type: "boolean",
7122
+ default: "true",
7123
+ required: false,
7124
+ description: 'Show the "n of m" counter'
7125
+ },
7126
+ {
7127
+ name: "zoomable",
7128
+ type: "boolean",
7129
+ default: "true",
7130
+ required: false,
7131
+ description: "Allow zooming and panning images"
7132
+ },
7133
+ {
7134
+ name: "downloadable",
7135
+ type: "boolean",
7136
+ default: "false",
7137
+ required: false,
7138
+ description: "Show a download link for items that expose a URL"
7139
+ },
7140
+ {
7141
+ name: "onOpenChange",
7142
+ type: "(open: boolean) => void",
7143
+ required: false,
7144
+ description: "Called when the open state changes"
7145
+ },
7146
+ {
7147
+ name: "onIndexChange",
7148
+ type: "(index: number) => void",
7149
+ required: false,
7150
+ description: "Called when the visible item changes"
7151
+ },
7152
+ {
7153
+ name: "class",
7154
+ type: "string",
7155
+ required: false,
7156
+ description: "Additional CSS classes for the surface"
7157
+ }
7158
+ ],
7159
+ variants: [],
7160
+ slots: [
7161
+ {
7162
+ name: "children",
7163
+ description: "Main content",
7164
+ required: false
7165
+ }
7166
+ ],
7167
+ events: [],
7168
+ examples: [
7169
+ {
7170
+ title: "Basic Usage",
7171
+ 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 />"
7172
+ }
7173
+ ],
7174
+ relatedComponents: [
7175
+ "MediaGrid",
7176
+ "MediaCarousel",
7177
+ "Dialog",
7178
+ "Image"
7179
+ ]
7180
+ },
6681
7181
  {
6682
7182
  name: "LineChart",
6683
7183
  description: "Display trends over time with smooth curves and area fill options",
@@ -7597,35 +8097,464 @@ var component_catalog_default = {
7597
8097
  code: '<LogoMain color="mono-dark" />'
7598
8098
  },
7599
8099
  {
7600
- title: "Mono Light",
7601
- description: "White monochrome for dark backgrounds:",
7602
- code: '<div class="bg-primary p-4">\n <LogoMain color="mono-light" />\n</div>'
8100
+ title: "Mono Light",
8101
+ description: "White monochrome for dark backgrounds:",
8102
+ code: '<div class="bg-primary p-4">\n <LogoMain color="mono-light" />\n</div>'
8103
+ },
8104
+ {
8105
+ title: "Header Logo",
8106
+ 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>'
8107
+ },
8108
+ {
8109
+ title: "Footer Logo",
8110
+ code: '<footer class="bg-gray-900 py-8">\n <LogoMain color="light" size="sm" />\n</footer>'
8111
+ },
8112
+ {
8113
+ title: "Login Page Logo",
8114
+ 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>'
8115
+ },
8116
+ {
8117
+ title: "Sidebar Collapsed Logo",
8118
+ code: `<LogoMain variant={sidebarCollapsed ? 'icon' : 'horizontal'} size="md" />`
8119
+ },
8120
+ {
8121
+ title: "Development Environment",
8122
+ code: "<LogoMain environment={import.meta.env.MODE === 'production' ? undefined : 'dev'} />"
8123
+ }
8124
+ ],
8125
+ relatedComponents: [
8126
+ "LoadingLogo",
8127
+ "Header",
8128
+ "Sidebar"
8129
+ ]
8130
+ },
8131
+ {
8132
+ name: "MediaCarousel",
8133
+ description: "Swipeable media slides with dots, thumbnails, and optional autoplay",
8134
+ category: "media",
8135
+ importPath: "@classic-homes/theme-svelte",
8136
+ props: [
8137
+ {
8138
+ name: "items",
8139
+ type: "MediaItem[]",
8140
+ required: false,
8141
+ description: "Slides to display"
8142
+ },
8143
+ {
8144
+ name: "label",
8145
+ type: "string",
8146
+ default: "'Media carousel'",
8147
+ required: false,
8148
+ description: "Accessible name for the carousel"
8149
+ },
8150
+ {
8151
+ name: "index",
8152
+ type: "number",
8153
+ default: "0",
8154
+ required: false,
8155
+ description: "Current slide index (bindable)"
8156
+ },
8157
+ {
8158
+ name: "ratio",
8159
+ type: "'square' | 'video' | 'photo' | 'portrait' | 'wide' | number",
8160
+ default: "'video'",
8161
+ required: false,
8162
+ description: "Aspect ratio of each slide"
8163
+ },
8164
+ {
8165
+ name: "loop",
8166
+ type: "boolean",
8167
+ default: "false",
8168
+ required: false,
8169
+ description: "Wrap from the last slide back to the first"
8170
+ },
8171
+ {
8172
+ name: "showDots",
8173
+ type: "boolean",
8174
+ default: "true",
8175
+ required: false,
8176
+ description: "Show dot indicators below the track"
8177
+ },
8178
+ {
8179
+ name: "showThumbnails",
8180
+ type: "boolean",
8181
+ default: "false",
8182
+ required: false,
8183
+ description: "Show a thumbnail strip instead of the dots"
8184
+ },
8185
+ {
8186
+ name: "showCaption",
8187
+ type: "boolean",
8188
+ default: "true",
8189
+ required: false,
8190
+ description: "Show the active slide's caption"
8191
+ },
8192
+ {
8193
+ name: "autoplay",
8194
+ type: "boolean",
8195
+ default: "false",
8196
+ required: false,
8197
+ description: "Advance automatically"
8198
+ },
8199
+ {
8200
+ name: "autoplayInterval",
8201
+ type: "number",
8202
+ default: "5000",
8203
+ required: false,
8204
+ description: "Milliseconds between automatic advances"
8205
+ },
8206
+ {
8207
+ name: "onIndexChange",
8208
+ type: "(index: number) => void",
8209
+ required: false,
8210
+ description: "Called when the active slide changes"
8211
+ },
8212
+ {
8213
+ name: "class",
8214
+ type: "string",
8215
+ required: false,
8216
+ description: "Additional CSS classes"
8217
+ }
8218
+ ],
8219
+ variants: [
8220
+ {
8221
+ name: "ratio",
8222
+ values: [
8223
+ "square",
8224
+ "video",
8225
+ "photo",
8226
+ "portrait",
8227
+ "wide"
8228
+ ],
8229
+ default: "video"
8230
+ }
8231
+ ],
8232
+ slots: [
8233
+ {
8234
+ name: "children",
8235
+ description: "Main content",
8236
+ required: false
8237
+ }
8238
+ ],
8239
+ events: [],
8240
+ examples: [
8241
+ {
8242
+ title: "Basic Usage",
8243
+ code: '<MediaCarousel items={photos} label="Project gallery" />'
8244
+ }
8245
+ ],
8246
+ relatedComponents: [
8247
+ "MediaGrid",
8248
+ "Lightbox",
8249
+ "Image",
8250
+ "Video"
8251
+ ]
8252
+ },
8253
+ {
8254
+ name: "MediaEmbed",
8255
+ description: "Lazy YouTube, Vimeo, Cloudflare Stream, and Matterport embeds that load nothing until clicked",
8256
+ category: "media",
8257
+ importPath: "@classic-homes/theme-svelte",
8258
+ props: [
8259
+ {
8260
+ name: "url",
8261
+ type: "string",
8262
+ required: false,
8263
+ description: "Full provider URL; ignored when `provider` and `videoId` are set"
8264
+ },
8265
+ {
8266
+ name: "provider",
8267
+ type: "'youtube' | 'vimeo' | 'cloudflare' | 'matterport'",
8268
+ required: false,
8269
+ description: "Hosting provider"
8270
+ },
8271
+ {
8272
+ name: "videoId",
8273
+ type: "string",
8274
+ required: false,
8275
+ description: "Provider-specific video identifier"
8276
+ },
8277
+ {
8278
+ name: "title",
8279
+ type: "string",
8280
+ required: false,
8281
+ description: "Accessible name for the player; required"
8282
+ },
8283
+ {
8284
+ name: "poster",
8285
+ type: "string",
8286
+ required: false,
8287
+ description: "Poster image; derived for YouTube and Stream, required for Vimeo"
8288
+ },
8289
+ {
8290
+ name: "privacy",
8291
+ type: "boolean",
8292
+ default: "true",
8293
+ required: false,
8294
+ description: "Route YouTube through the no-cookie domain"
8295
+ },
8296
+ {
8297
+ name: "start",
8298
+ type: "number",
8299
+ required: false,
8300
+ description: "Start offset in seconds"
8301
+ },
8302
+ {
8303
+ name: "showRelated",
8304
+ type: "boolean",
8305
+ default: "false",
8306
+ required: false,
8307
+ description: "Show the provider's related-video suggestions"
8308
+ },
8309
+ {
8310
+ name: "customerCode",
8311
+ type: "string",
8312
+ required: false,
8313
+ description: "Cloudflare Stream customer code; required for that provider"
8314
+ },
8315
+ {
8316
+ name: "domain",
8317
+ type: "string",
8318
+ required: false,
8319
+ description: "Custom hostname serving Cloudflare Stream"
8320
+ },
8321
+ {
8322
+ name: "primaryColor",
8323
+ type: "string",
8324
+ required: false,
8325
+ description: "Accent colour for the Cloudflare player UI"
8326
+ },
8327
+ {
8328
+ name: "letterboxColor",
8329
+ type: "string",
8330
+ required: false,
8331
+ description: "Letterbox colour for the Cloudflare player"
8332
+ },
8333
+ {
8334
+ name: "defaultTextTrack",
8335
+ type: "string",
8336
+ required: false,
8337
+ description: "BCP-47 code of the captions track the Cloudflare player enables"
8338
+ },
8339
+ {
8340
+ name: "modelId",
8341
+ type: "string",
8342
+ required: false,
8343
+ description: "Matterport space id; an alias for `videoId`"
8344
+ },
8345
+ {
8346
+ name: "matterport",
8347
+ type: "MatterportPlayerOptions",
8348
+ required: false,
8349
+ description: "Showcase options for the Matterport player"
8350
+ },
8351
+ {
8352
+ name: "fetchMetadata",
8353
+ type: "boolean",
8354
+ default: "false",
8355
+ required: false,
8356
+ description: "Look up the space's preview image and name from Matterport"
8357
+ },
8358
+ {
8359
+ name: "ratio",
8360
+ type: "'square' | 'video' | 'photo' | 'portrait' | 'wide' | number",
8361
+ default: "'video'",
8362
+ required: false,
8363
+ description: "Aspect ratio of the embed box"
8364
+ },
8365
+ {
8366
+ name: "eager",
8367
+ type: "boolean",
8368
+ default: "false",
8369
+ required: false,
8370
+ description: "Load the iframe immediately instead of showing a facade"
8371
+ },
8372
+ {
8373
+ name: "class",
8374
+ type: "string",
8375
+ required: false,
8376
+ description: "Additional CSS classes"
8377
+ }
8378
+ ],
8379
+ variants: [
8380
+ {
8381
+ name: "provider",
8382
+ values: [
8383
+ "youtube",
8384
+ "vimeo",
8385
+ "cloudflare",
8386
+ "matterport"
8387
+ ]
8388
+ },
8389
+ {
8390
+ name: "ratio",
8391
+ values: [
8392
+ "square",
8393
+ "video",
8394
+ "photo",
8395
+ "portrait",
8396
+ "wide"
8397
+ ],
8398
+ default: "video"
8399
+ }
8400
+ ],
8401
+ slots: [
8402
+ {
8403
+ name: "children",
8404
+ description: "Main content",
8405
+ required: false
8406
+ }
8407
+ ],
8408
+ events: [],
8409
+ examples: [
8410
+ {
8411
+ title: "Basic Usage",
8412
+ code: '<MediaEmbed url="https://youtu.be/dQw4w9WgXcQ" title="Never Gonna Give You Up" />'
8413
+ },
8414
+ {
8415
+ title: "Tour thumbnails",
8416
+ description: "Matterport publishes no oEmbed endpoint and no derivable thumbnail URL, so a tour facade shows a deliberate placeholder unless you give it one:",
8417
+ code: '<MediaEmbed provider="matterport" modelId="SxQL3iGyoDo" title="Show home" poster="/tour.jpg" />'
8418
+ }
8419
+ ],
8420
+ relatedComponents: [
8421
+ "Video",
8422
+ "AspectRatio",
8423
+ "MediaCarousel"
8424
+ ]
8425
+ },
8426
+ {
8427
+ name: "MediaGrid",
8428
+ description: "Responsive gallery of media thumbnails with keyboard navigation",
8429
+ category: "media",
8430
+ importPath: "@classic-homes/theme-svelte",
8431
+ props: [
8432
+ {
8433
+ name: "items",
8434
+ type: "MediaItem[]",
8435
+ required: false,
8436
+ description: "Items to display"
8437
+ },
8438
+ {
8439
+ name: "label",
8440
+ type: "string",
8441
+ default: "'Media gallery'",
8442
+ required: false,
8443
+ description: "Accessible name for the gallery list"
8444
+ },
8445
+ {
8446
+ name: "variant",
8447
+ type: "'grid' | 'masonry'",
8448
+ default: "'grid'",
8449
+ required: false,
8450
+ description: "Uniform tiles, or natural heights via CSS columns"
8451
+ },
8452
+ {
8453
+ name: "columns",
8454
+ type: "MediaGridColumns",
8455
+ default: "{ base: 2, md: 3, lg: 4 }",
8456
+ required: false,
8457
+ description: "Column counts per breakpoint"
8458
+ },
8459
+ {
8460
+ name: "gap",
8461
+ type: "'none' | 'sm' | 'md' | 'lg'",
8462
+ default: "'md'",
8463
+ required: false,
8464
+ description: "Gap between tiles"
8465
+ },
8466
+ {
8467
+ name: "ratio",
8468
+ type: "'square' | 'video' | 'photo' | 'portrait' | 'wide' | number",
8469
+ default: "'square'",
8470
+ required: false,
8471
+ description: "Aspect ratio of each tile; ignored in `masonry`"
8472
+ },
8473
+ {
8474
+ name: "lightbox",
8475
+ type: "boolean",
8476
+ default: "true",
8477
+ required: false,
8478
+ description: "Open the built-in lightbox on selection"
7603
8479
  },
7604
8480
  {
7605
- title: "Header Logo",
7606
- 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>'
8481
+ name: "singleTabStop",
8482
+ type: "boolean",
8483
+ default: "true",
8484
+ required: false,
8485
+ description: "Keep the gallery to one tab stop and move with the arrow keys"
7607
8486
  },
7608
8487
  {
7609
- title: "Footer Logo",
7610
- code: '<footer class="bg-gray-900 py-8">\n <LogoMain color="light" size="sm" />\n</footer>'
8488
+ name: "onSelect",
8489
+ type: "(index: number, item: MediaItem) => void",
8490
+ required: false,
8491
+ description: "Called with the selected index and item"
7611
8492
  },
7612
8493
  {
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>'
8494
+ name: "class",
8495
+ type: "string",
8496
+ required: false,
8497
+ description: "Additional CSS classes"
8498
+ }
8499
+ ],
8500
+ variants: [
8501
+ {
8502
+ name: "variant",
8503
+ values: [
8504
+ "grid",
8505
+ "masonry"
8506
+ ],
8507
+ default: "grid"
7615
8508
  },
7616
8509
  {
7617
- title: "Sidebar Collapsed Logo",
7618
- code: `<LogoMain variant={sidebarCollapsed ? 'icon' : 'horizontal'} size="md" />`
8510
+ name: "gap",
8511
+ values: [
8512
+ "none",
8513
+ "sm",
8514
+ "md",
8515
+ "lg"
8516
+ ],
8517
+ default: "md"
7619
8518
  },
7620
8519
  {
7621
- title: "Development Environment",
7622
- code: "<LogoMain environment={import.meta.env.MODE === 'production' ? undefined : 'dev'} />"
8520
+ name: "ratio",
8521
+ values: [
8522
+ "square",
8523
+ "video",
8524
+ "photo",
8525
+ "portrait",
8526
+ "wide"
8527
+ ],
8528
+ default: "square"
8529
+ }
8530
+ ],
8531
+ slots: [
8532
+ {
8533
+ name: "children",
8534
+ description: "Main content",
8535
+ required: false
8536
+ }
8537
+ ],
8538
+ events: [],
8539
+ examples: [
8540
+ {
8541
+ title: "Basic Usage",
8542
+ code: `<script>
8543
+ const photos = [
8544
+ { id: '1', kind: 'image', src: '/one.jpg', alt: 'Front elevation' },
8545
+ { id: '2', kind: 'image', src: '/two.jpg', alt: 'Kitchen' },
8546
+ { id: '3', kind: 'video', src: '/tour.mp4', poster: '/tour.jpg', title: 'Walkthrough' },
8547
+ ];
8548
+ </script>
8549
+
8550
+ <MediaGrid items={photos} label="Project photos" />`
7623
8551
  }
7624
8552
  ],
7625
8553
  relatedComponents: [
7626
- "LoadingLogo",
7627
- "Header",
7628
- "Sidebar"
8554
+ "Lightbox",
8555
+ "MediaCarousel",
8556
+ "Image",
8557
+ "AspectRatio"
7629
8558
  ]
7630
8559
  },
7631
8560
  {
@@ -10393,7 +11322,27 @@ var component_catalog_default = {
10393
11322
  name: "userRoles",
10394
11323
  type: "string[]",
10395
11324
  required: false,
10396
- description: "User roles for filtering"
11325
+ description: "Every role the user holds"
11326
+ },
11327
+ {
11328
+ name: "userPermissions",
11329
+ type: "string[]",
11330
+ required: false,
11331
+ description: "Every permission the user holds"
11332
+ },
11333
+ {
11334
+ name: "requireAllRoles",
11335
+ type: "boolean",
11336
+ default: "false",
11337
+ required: false,
11338
+ description: "Require ALL of an item's roles rather than any"
11339
+ },
11340
+ {
11341
+ name: "requireAllPermissions",
11342
+ type: "boolean",
11343
+ default: "false",
11344
+ required: false,
11345
+ description: "Require ALL of an item's permissions rather than any"
10397
11346
  },
10398
11347
  {
10399
11348
  name: "collapsed",
@@ -12355,99 +13304,297 @@ var component_catalog_default = {
12355
13304
  type: "boolean",
12356
13305
  default: "true",
12357
13306
  required: false,
12358
- description: "Show tooltip on hover"
13307
+ description: "Show tooltip on hover"
13308
+ }
13309
+ ],
13310
+ variants: [
13311
+ {
13312
+ name: "theme",
13313
+ values: [
13314
+ "light",
13315
+ "dark",
13316
+ "auto"
13317
+ ],
13318
+ default: "auto"
13319
+ }
13320
+ ],
13321
+ slots: [],
13322
+ events: [],
13323
+ examples: [
13324
+ {
13325
+ title: "Basic Usage",
13326
+ code: `<script>
13327
+ import { TreemapChart } from '@classic-homes/charts-svelte';
13328
+
13329
+ const data = [
13330
+ {
13331
+ name: 'Frontend',
13332
+ children: [
13333
+ { name: 'React', value: 40 },
13334
+ { name: 'Vue', value: 30 },
13335
+ { name: 'Svelte', value: 20 },
13336
+ ],
13337
+ },
13338
+ {
13339
+ name: 'Backend',
13340
+ children: [
13341
+ { name: 'Node.js', value: 35 },
13342
+ { name: 'Python', value: 25 },
13343
+ ],
13344
+ },
13345
+ ];
13346
+ </script>
13347
+
13348
+ <TreemapChart title="Tech Stack" {data} height={400} />`
13349
+ },
13350
+ {
13351
+ title: "File System",
13352
+ code: `<TreemapChart
13353
+ title="Disk Usage"
13354
+ data={[
13355
+ {
13356
+ name: 'Documents',
13357
+ children: [
13358
+ { name: 'PDFs', value: 500 },
13359
+ { name: 'Images', value: 300 },
13360
+ { name: 'Videos', value: 2000 },
13361
+ ],
13362
+ },
13363
+ {
13364
+ name: 'Applications',
13365
+ children: [
13366
+ { name: 'Development', value: 1500 },
13367
+ { name: 'Productivity', value: 800 },
13368
+ ],
13369
+ },
13370
+ ]}
13371
+ />`
13372
+ },
13373
+ {
13374
+ title: "Budget Breakdown",
13375
+ code: `<TreemapChart
13376
+ title="Department Budget"
13377
+ data={[
13378
+ {
13379
+ name: 'Engineering',
13380
+ children: [
13381
+ { name: 'Salaries', value: 500000 },
13382
+ { name: 'Equipment', value: 100000 },
13383
+ { name: 'Training', value: 50000 },
13384
+ ],
13385
+ },
13386
+ {
13387
+ name: 'Marketing',
13388
+ children: [
13389
+ { name: 'Advertising', value: 200000 },
13390
+ { name: 'Events', value: 75000 },
13391
+ ],
13392
+ },
13393
+ ]}
13394
+ />`
13395
+ }
13396
+ ],
13397
+ relatedComponents: [
13398
+ "PieChart",
13399
+ "SankeyChart"
13400
+ ]
13401
+ },
13402
+ {
13403
+ name: "Video",
13404
+ description: "Video player with themed controls and full keyboard support",
13405
+ category: "media",
13406
+ importPath: "@classic-homes/theme-svelte",
13407
+ props: [
13408
+ {
13409
+ name: "item",
13410
+ type: "VideoMediaItem",
13411
+ required: false,
13412
+ description: "Supplies `src`, `poster`, `tracks`, and the label in one object"
13413
+ },
13414
+ {
13415
+ name: "src",
13416
+ type: "string | MediaSource[]",
13417
+ required: false,
13418
+ description: "A single URL, or several sources for format fallback"
13419
+ },
13420
+ {
13421
+ name: "poster",
13422
+ type: "string",
13423
+ required: false,
13424
+ description: "Image shown before playback starts"
13425
+ },
13426
+ {
13427
+ name: "tracks",
13428
+ type: "MediaTextTrack[]",
13429
+ default: "[]",
13430
+ required: false,
13431
+ description: "Caption and subtitle tracks"
13432
+ },
13433
+ {
13434
+ name: "label",
13435
+ type: "string",
13436
+ default: "'Video player'",
13437
+ required: false,
13438
+ description: "Accessible name for the player region"
13439
+ },
13440
+ {
13441
+ name: "ratio",
13442
+ type: "'square' | 'video' | 'photo' | 'portrait' | 'wide' | number",
13443
+ default: "'video'",
13444
+ required: false,
13445
+ description: "Aspect ratio; pass `null` to size from the content"
13446
+ },
13447
+ {
13448
+ name: "fit",
13449
+ type: "'cover' | 'contain' | 'fill' | 'none' | 'scale-down'",
13450
+ default: "'contain'",
13451
+ required: false,
13452
+ description: "How the video fills its box"
13453
+ },
13454
+ {
13455
+ name: "autoplay",
13456
+ type: "boolean",
13457
+ default: "false",
13458
+ required: false,
13459
+ description: "Start playing automatically; implies `muted`"
13460
+ },
13461
+ {
13462
+ name: "muted",
13463
+ type: "boolean",
13464
+ default: "false",
13465
+ required: false,
13466
+ description: "Start muted"
13467
+ },
13468
+ {
13469
+ name: "loop",
13470
+ type: "boolean",
13471
+ default: "false",
13472
+ required: false,
13473
+ description: "Loop playback"
13474
+ },
13475
+ {
13476
+ name: "volume",
13477
+ type: "number",
13478
+ default: "1",
13479
+ required: false,
13480
+ description: "Initial volume, 0 to 1"
13481
+ },
13482
+ {
13483
+ name: "preload",
13484
+ type: "'none' | 'metadata' | 'auto'",
13485
+ default: "'metadata'",
13486
+ required: false,
13487
+ description: "How much to preload"
13488
+ },
13489
+ {
13490
+ name: "hideControls",
13491
+ type: "boolean",
13492
+ default: "false",
13493
+ required: false,
13494
+ description: "Hide the control bar entirely"
13495
+ },
13496
+ {
13497
+ name: "showPictureInPicture",
13498
+ type: "boolean",
13499
+ default: "true",
13500
+ required: false,
13501
+ description: "Show the picture-in-picture button"
13502
+ },
13503
+ {
13504
+ name: "showFullscreen",
13505
+ type: "boolean",
13506
+ default: "true",
13507
+ required: false,
13508
+ description: "Show the fullscreen button"
13509
+ },
13510
+ {
13511
+ name: "onEnded",
13512
+ type: "() => void",
13513
+ required: false,
13514
+ description: "Called when playback ends"
13515
+ },
13516
+ {
13517
+ name: "onTimeUpdate",
13518
+ type: "(currentTime: number) => void",
13519
+ required: false,
13520
+ description: "Called on each time update, with seconds elapsed"
13521
+ },
13522
+ {
13523
+ name: "hlsLoader",
13524
+ type: "() => Promise<HlsConstructor>",
13525
+ required: false,
13526
+ description: "Per-player hls.js loader, overriding the registered one"
13527
+ },
13528
+ {
13529
+ name: "hlsConfig",
13530
+ type: "Record<string, unknown>",
13531
+ required: false,
13532
+ description: "Extra hls.js configuration"
13533
+ },
13534
+ {
13535
+ name: "class",
13536
+ type: "string",
13537
+ required: false,
13538
+ description: "Additional CSS classes"
12359
13539
  }
12360
13540
  ],
12361
13541
  variants: [
12362
13542
  {
12363
- name: "theme",
13543
+ name: "ratio",
12364
13544
  values: [
12365
- "light",
12366
- "dark",
13545
+ "square",
13546
+ "video",
13547
+ "photo",
13548
+ "portrait",
13549
+ "wide"
13550
+ ],
13551
+ default: "video"
13552
+ },
13553
+ {
13554
+ name: "fit",
13555
+ values: [
13556
+ "cover",
13557
+ "contain",
13558
+ "fill",
13559
+ "none",
13560
+ "scale-down"
13561
+ ],
13562
+ default: "contain"
13563
+ },
13564
+ {
13565
+ name: "preload",
13566
+ values: [
13567
+ "none",
13568
+ "metadata",
12367
13569
  "auto"
12368
13570
  ],
12369
- default: "auto"
13571
+ default: "metadata"
13572
+ }
13573
+ ],
13574
+ slots: [
13575
+ {
13576
+ name: "children",
13577
+ description: "Main content",
13578
+ required: false
12370
13579
  }
12371
13580
  ],
12372
- slots: [],
12373
13581
  events: [],
12374
13582
  examples: [
12375
13583
  {
12376
13584
  title: "Basic Usage",
12377
- code: `<script>
12378
- import { TreemapChart } from '@classic-homes/charts-svelte';
12379
-
12380
- const data = [
12381
- {
12382
- name: 'Frontend',
12383
- children: [
12384
- { name: 'React', value: 40 },
12385
- { name: 'Vue', value: 30 },
12386
- { name: 'Svelte', value: 20 },
12387
- ],
12388
- },
12389
- {
12390
- name: 'Backend',
12391
- children: [
12392
- { name: 'Node.js', value: 35 },
12393
- { name: 'Python', value: 25 },
12394
- ],
12395
- },
12396
- ];
12397
- </script>
12398
-
12399
- <TreemapChart title="Tech Stack" {data} height={400} />`
12400
- },
12401
- {
12402
- title: "File System",
12403
- code: `<TreemapChart
12404
- title="Disk Usage"
12405
- data={[
12406
- {
12407
- name: 'Documents',
12408
- children: [
12409
- { name: 'PDFs', value: 500 },
12410
- { name: 'Images', value: 300 },
12411
- { name: 'Videos', value: 2000 },
12412
- ],
12413
- },
12414
- {
12415
- name: 'Applications',
12416
- children: [
12417
- { name: 'Development', value: 1500 },
12418
- { name: 'Productivity', value: 800 },
12419
- ],
12420
- },
12421
- ]}
12422
- />`
12423
- },
12424
- {
12425
- title: "Budget Breakdown",
12426
- code: `<TreemapChart
12427
- title="Department Budget"
12428
- data={[
12429
- {
12430
- name: 'Engineering',
12431
- children: [
12432
- { name: 'Salaries', value: 500000 },
12433
- { name: 'Equipment', value: 100000 },
12434
- { name: 'Training', value: 50000 },
12435
- ],
12436
- },
12437
- {
12438
- name: 'Marketing',
12439
- children: [
12440
- { name: 'Advertising', value: 200000 },
12441
- { name: 'Events', value: 75000 },
12442
- ],
12443
- },
12444
- ]}
13585
+ code: `<Video
13586
+ src="/walkthrough.mp4"
13587
+ poster="/walkthrough.jpg"
13588
+ label="Product walkthrough"
13589
+ tracks={[{ src: '/walkthrough.en.vtt', srclang: 'en', label: 'English', default: true }]}
12445
13590
  />`
12446
13591
  }
12447
13592
  ],
12448
13593
  relatedComponents: [
12449
- "PieChart",
12450
- "SankeyChart"
13594
+ "Audio",
13595
+ "MediaEmbed",
13596
+ "Lightbox",
13597
+ "MediaCarousel"
12451
13598
  ]
12452
13599
  }
12453
13600
  ]
@@ -12533,7 +13680,7 @@ function registerComponentResources(server) {
12533
13680
 
12534
13681
  // src/data/token-definitions.json
12535
13682
  var token_definitions_default = {
12536
- version: "0.1.39",
13683
+ version: "0.2.1",
12537
13684
  colors: {
12538
13685
  brand: [
12539
13686
  {
@@ -13480,7 +14627,7 @@ function registerTokenResources(server) {
13480
14627
 
13481
14628
  // src/data/styles-catalog.json
13482
14629
  var styles_catalog_default = {
13483
- version: "0.1.39",
14630
+ version: "0.2.1",
13484
14631
  package: "@classic-homes/theme-styles",
13485
14632
  description: "Base CSS styles, accessibility features, and utility classes for the Classic Theme design system",
13486
14633
  integration: {
@@ -13853,7 +15000,7 @@ import { ResourceTemplate as ResourceTemplate2 } from "@modelcontextprotocol/sdk
13853
15000
 
13854
15001
  // src/data/pattern-library.json
13855
15002
  var pattern_library_default = {
13856
- version: "0.1.39",
15003
+ version: "0.2.1",
13857
15004
  layouts: [
13858
15005
  {
13859
15006
  id: "dashboard-page",
@@ -14963,7 +16110,7 @@ function registerLayoutResources(server) {
14963
16110
 
14964
16111
  // src/data/schema-catalog.json
14965
16112
  var schema_catalog_default = {
14966
- version: "0.1.39",
16113
+ version: "0.2.1",
14967
16114
  packageName: "@classic-homes/theme-svelte",
14968
16115
  importPath: "@classic-homes/theme-svelte",
14969
16116
  generatedFrom: "packages/svelte/src/lib/schemas/index.ts",
@@ -15095,6 +16242,11 @@ var schema_catalog_default = {
15095
16242
  description: "Auth Tokens type export",
15096
16243
  importPath: "@classic-homes/theme-svelte"
15097
16244
  },
16245
+ {
16246
+ name: "AuthUser",
16247
+ description: "Auth User type export",
16248
+ importPath: "@classic-homes/theme-svelte"
16249
+ },
15098
16250
  {
15099
16251
  name: "ChangePasswordFormData",
15100
16252
  description: "Change Password Form Data type export",
@@ -15144,11 +16296,6 @@ var schema_catalog_default = {
15144
16296
  name: "ResetPasswordFormData",
15145
16297
  description: "Reset Password Form Data type export",
15146
16298
  importPath: "@classic-homes/theme-svelte"
15147
- },
15148
- {
15149
- name: "User",
15150
- description: "User type export",
15151
- importPath: "@classic-homes/theme-svelte"
15152
16299
  }
15153
16300
  ]
15154
16301
  },
@@ -15401,6 +16548,11 @@ var schema_catalog_default = {
15401
16548
  description: "Auth tokens validation (accessToken, refreshToken)",
15402
16549
  importPath: "@classic-homes/theme-svelte"
15403
16550
  },
16551
+ {
16552
+ name: "AuthUser",
16553
+ description: "Auth User type export",
16554
+ importPath: "@classic-homes/theme-svelte"
16555
+ },
15404
16556
  {
15405
16557
  name: "ChangePasswordFormData",
15406
16558
  description: "Change Password Form Data type export",
@@ -15701,11 +16853,6 @@ var schema_catalog_default = {
15701
16853
  description: "URL validation",
15702
16854
  importPath: "@classic-homes/theme-svelte"
15703
16855
  },
15704
- {
15705
- name: "User",
15706
- description: "User type export",
15707
- importPath: "@classic-homes/theme-svelte"
15708
- },
15709
16856
  {
15710
16857
  name: "usernameSchema",
15711
16858
  description: "Username validation (3-30 chars, alphanumeric)",
@@ -15771,7 +16918,7 @@ import { ResourceTemplate as ResourceTemplate3 } from "@modelcontextprotocol/sdk
15771
16918
 
15772
16919
  // src/data/auth-catalog.json
15773
16920
  var auth_catalog_default = {
15774
- version: "0.1.39",
16921
+ version: "0.2.1",
15775
16922
  packageName: "@classic-homes/auth",
15776
16923
  description: "Authentication services and Svelte bindings for Classic Theme apps",
15777
16924
  subpackages: {
@@ -16137,6 +17284,30 @@ var auth_catalog_default = {
16137
17284
  name: "authApi.regenerateBackupCodes",
16138
17285
  signature: "(password: string) => Promise<{ backupCodes: string[] }>",
16139
17286
  description: "Regenerate MFA backup codes"
17287
+ },
17288
+ {
17289
+ name: "authApi.getUserRoles",
17290
+ signature: "(userId: string, customFetch?: typeof fetch) => Promise<UserRolesResponse>",
17291
+ description: "List a user's roles. Requires users:read.",
17292
+ example: "const { roles, primaryRole } = await authApi.getUserRoles(userId);"
17293
+ },
17294
+ {
17295
+ name: "authApi.grantUserRole",
17296
+ signature: "(userId: string, role: string) => Promise<UserRolesResponse>",
17297
+ 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.",
17298
+ example: "await authApi.grantUserRole(userId, 'agent');"
17299
+ },
17300
+ {
17301
+ name: "authApi.revokeUserRole",
17302
+ signature: "(userId: string, role: string) => Promise<UserRolesResponse>",
17303
+ description: "Revoke a role from a user. Requires users:update. The server rejects removing a user's last role.",
17304
+ example: "await authApi.revokeUserRole(userId, 'agent');"
17305
+ },
17306
+ {
17307
+ name: "authApi.setUserRoles",
17308
+ signature: "(userId: string, roles: string[]) => Promise<User>",
17309
+ 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.",
17310
+ example: "await authApi.setUserRoles(userId, ['manager', 'agent']);"
16140
17311
  }
16141
17312
  ]
16142
17313
  },
@@ -16277,6 +17448,65 @@ var auth_catalog_default = {
16277
17448
  }
16278
17449
  ]
16279
17450
  },
17451
+ roles: {
17452
+ description: "Role taxonomy and membership checks. A user holds a set of roles; their permissions are the union across all of them.",
17453
+ functions: [
17454
+ {
17455
+ name: "getUserRoles",
17456
+ signature: "(user: Pick<User, 'roles'> | null | undefined) => string[]",
17457
+ description: "Read a user's role set, returning [] for a null user or an absent field",
17458
+ example: "import { getUserRoles } from '@classic-homes/auth/core';\n\ngetUserRoles(user); // ['manager', 'agent']"
17459
+ },
17460
+ {
17461
+ name: "computePrimaryRole",
17462
+ signature: "(roles: readonly string[]) => RoleName",
17463
+ 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'.",
17464
+ example: "import { computePrimaryRole } from '@classic-homes/auth/core';\n\ncomputePrimaryRole(['user', 'admin']); // 'admin'\ncomputePrimaryRole([]); // 'guest'"
17465
+ },
17466
+ {
17467
+ name: "getEffectiveLevel",
17468
+ signature: "(roles: readonly string[]) => number",
17469
+ description: "Effective privilege level - the max across all roles held. Unknown roles count as 0.",
17470
+ example: "import { getEffectiveLevel } from '@classic-homes/auth/core';\n\ngetEffectiveLevel(['user', 'manager']); // 3"
17471
+ },
17472
+ {
17473
+ name: "hasRole",
17474
+ signature: "(user: Pick<User, 'roles'> | null | undefined, role: string) => boolean",
17475
+ 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.",
17476
+ example: "import { hasRole } from '@classic-homes/auth/core';\n\nhasRole(user, 'agent'); // true only if 'agent' is in user.roles"
17477
+ },
17478
+ {
17479
+ name: "hasAnyRole",
17480
+ signature: "(user: Pick<User, 'roles'> | null | undefined, roles: readonly string[]) => boolean",
17481
+ description: "Whether the user holds at least one of the given roles. An empty list matches nothing.",
17482
+ example: "import { hasAnyRole } from '@classic-homes/auth/core';\n\nhasAnyRole(user, ['admin', 'agent']);"
17483
+ },
17484
+ {
17485
+ name: "hasAllRoles",
17486
+ signature: "(user: Pick<User, 'roles'> | null | undefined, roles: readonly string[]) => boolean",
17487
+ description: "Whether the user holds every one of the given roles. An empty list matches vacuously.",
17488
+ example: "import { hasAllRoles } from '@classic-homes/auth/core';\n\nhasAllRoles(user, ['manager', 'agent']);"
17489
+ }
17490
+ ],
17491
+ constants: [
17492
+ {
17493
+ name: "ROLE_NAMES",
17494
+ type: "readonly RoleName[]",
17495
+ 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."
17496
+ },
17497
+ {
17498
+ name: "ROLE_HIERARCHY",
17499
+ type: "Record<string, number>",
17500
+ 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."
17501
+ }
17502
+ ],
17503
+ types: [
17504
+ {
17505
+ name: "RoleName",
17506
+ 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."
17507
+ }
17508
+ ]
17509
+ },
16280
17510
  errors: {
16281
17511
  description: "Custom error types for authentication operations",
16282
17512
  functions: [
@@ -16462,23 +17692,17 @@ formatUserRoles(user, { lowercase: true }); // "admin, manager"`
16462
17692
  required: false,
16463
17693
  description: "Phone number"
16464
17694
  },
16465
- {
16466
- name: "role",
16467
- type: "string",
16468
- required: true,
16469
- description: "Primary role"
16470
- },
16471
17695
  {
16472
17696
  name: "roles",
16473
17697
  type: "string[]",
16474
- required: false,
16475
- description: "All assigned roles"
17698
+ required: true,
17699
+ 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
17700
  },
16477
17701
  {
16478
17702
  name: "permissions",
16479
17703
  type: "string[]",
16480
17704
  required: true,
16481
- description: "User permissions"
17705
+ description: "Union of the permissions granted by every role in roles"
16482
17706
  },
16483
17707
  {
16484
17708
  name: "isActive",
@@ -17441,6 +18665,30 @@ formatUserRoles(user, { lowercase: true }); // "admin, manager"`
17441
18665
  description: "Total pages"
17442
18666
  }
17443
18667
  ]
18668
+ },
18669
+ {
18670
+ name: "UserRolesResponse",
18671
+ description: "The result of reading or changing a user's roles",
18672
+ properties: [
18673
+ {
18674
+ name: "userId",
18675
+ type: "string",
18676
+ required: true,
18677
+ description: "The user whose roles these are"
18678
+ },
18679
+ {
18680
+ name: "roles",
18681
+ type: "string[]",
18682
+ required: true,
18683
+ description: "The user's full role set after the operation"
18684
+ },
18685
+ {
18686
+ name: "primaryRole",
18687
+ type: "string",
18688
+ required: true,
18689
+ description: "Highest-tier role in roles, as resolved by the server. A display label - actual access is the union of every role."
18690
+ }
18691
+ ]
17444
18692
  }
17445
18693
  ]
17446
18694
  },
@@ -18707,7 +19955,7 @@ import { ResourceTemplate as ResourceTemplate4 } from "@modelcontextprotocol/sdk
18707
19955
 
18708
19956
  // src/data/notifications-catalog.json
18709
19957
  var notifications_catalog_default = {
18710
- version: "0.1.39",
19958
+ version: "0.2.1",
18711
19959
  packageName: "@classic-homes/notifications",
18712
19960
  description: "Notification services and Svelte bindings for Classic Theme apps",
18713
19961
  subpackages: {
@@ -19619,7 +20867,7 @@ function registerNotificationsResources(server) {
19619
20867
 
19620
20868
  // src/data/docs-catalog.json
19621
20869
  var docs_catalog_default = {
19622
- version: "0.1.39",
20870
+ version: "0.2.1",
19623
20871
  packageName: "@classic-homes/theme-docs",
19624
20872
  description: "Markdown documentation components for the Classic theme system",
19625
20873
  exports: {
@@ -20406,7 +21654,7 @@ var docs_catalog_default = {
20406
21654
  dependencies: {
20407
21655
  "@classic-homes/theme-tokens": "*",
20408
21656
  clsx: "^2.1.0",
20409
- "js-yaml": "^4.1.0",
21657
+ "js-yaml": "^4.3.2",
20410
21658
  marked: "^17.0.0",
20411
21659
  shiki: "^1.0.0",
20412
21660
  "tailwind-merge": "^2.2.0",
@@ -20547,7 +21795,7 @@ function registerDocsResources(server) {
20547
21795
 
20548
21796
  // src/data/charts-catalog.json
20549
21797
  var charts_catalog_default = {
20550
- version: "0.1.39",
21798
+ version: "0.2.1",
20551
21799
  packageName: "@classic-homes/charts-core",
20552
21800
  description: "Core utilities, types, and themes for Classic Theme chart components",
20553
21801
  subpackages: {
@@ -22384,7 +23632,7 @@ interface SankeyData {
22384
23632
 
22385
23633
  // src/data/maps-catalog.json
22386
23634
  var maps_catalog_default = {
22387
- version: "0.1.39",
23635
+ version: "0.2.1",
22388
23636
  packageName: "@classic-homes/maps-core",
22389
23637
  description: "Core utilities, types, and themes for Classic Theme MapLibre GL components",
22390
23638
  subpackages: {
@@ -23284,6 +24532,178 @@ var maps_catalog_default = {
23284
24532
  }
23285
24533
  }
23286
24534
  },
24535
+ route: {
24536
+ importPath: "@classic-homes/maps-core/route",
24537
+ description: "Multi-stop route planning: crow-flies distance, stop ordering, and Google/Apple Maps deep links. Framework-free - imports no maplibre-gl and touches no DOM, so it runs in a browser, a Cloudflare Worker or a test.",
24538
+ modules: {
24539
+ geo: {
24540
+ description: "Great-circle distance math. Crow-flies, NOT driving distance - label anything shown to a user as approximate.",
24541
+ functions: [
24542
+ {
24543
+ name: "haversineMiles",
24544
+ signature: "(a: LatLng, b: LatLng) => number",
24545
+ description: "Great-circle distance in statute miles. Returns NaN for non-finite input (null, undefined and numeric strings all count as non-finite)."
24546
+ },
24547
+ {
24548
+ name: "haversineKm",
24549
+ signature: "(a: LatLng, b: LatLng) => number",
24550
+ description: "Great-circle distance in kilometres"
24551
+ },
24552
+ {
24553
+ name: "distanceMatrix",
24554
+ signature: "(points: LatLng[]) => number[][]",
24555
+ description: "Symmetric distance matrix in miles with a zero diagonal"
24556
+ },
24557
+ {
24558
+ name: "EARTH_RADIUS_MILES",
24559
+ signature: "number",
24560
+ description: "Mean earth radius in statute miles (3958.7613)"
24561
+ },
24562
+ {
24563
+ name: "EARTH_RADIUS_KM",
24564
+ signature: "number",
24565
+ description: "Mean earth radius in kilometres (6371.0088)"
24566
+ }
24567
+ ],
24568
+ example: "import { haversineMiles } from '@classic-homes/maps-core/route';\n\nconst miles = haversineMiles(\n { lat: 38.8339, lng: -104.8214 },\n { lat: 39.7392, lng: -104.9903 }\n); // ~62.9 - approximate, not a drive time"
24569
+ },
24570
+ optimize: {
24571
+ description: "Stop ordering: greedy nearest-neighbour, then an open-path 2-opt pass. There is no return edge to the origin, because a tour ends at the last stop.",
24572
+ functions: [
24573
+ {
24574
+ name: "optimizeOrder",
24575
+ signature: "(origin: LatLng, points: LatLng[], opts?: { twoOpt?: boolean; maxPasses?: number }) => OrderResult",
24576
+ description: "Nearest-neighbour then 2-opt. The one function most callers need."
24577
+ },
24578
+ {
24579
+ name: "nearestNeighborOrder",
24580
+ signature: "(origin: LatLng, points: LatLng[]) => OrderResult",
24581
+ description: "Greedy nearest-neighbour ordering. Deterministic - ties break on the lower index. Non-finite coordinates are appended in input order, never dropped."
24582
+ },
24583
+ {
24584
+ name: "twoOptImprove",
24585
+ signature: "(origin: LatLng, points: LatLng[], order: number[], matrix: number[][], opts?: { maxPasses?: number }) => number[]",
24586
+ description: "Open-path 2-opt improvement over an existing order. O(n^2) per pass."
24587
+ },
24588
+ {
24589
+ name: "measureOrder",
24590
+ signature: "(origin: LatLng, points: LatLng[], order: number[]) => OrderResult",
24591
+ description: "Leg distances for an order the caller chose - no reordering"
24592
+ }
24593
+ ],
24594
+ example: "import { optimizeOrder } from '@classic-homes/maps-core/route';\n\nconst { order, legMiles, totalMiles } = optimizeOrder(userLocation, stops);\nconst visitOrder = order.map((i) => stops[i]);"
24595
+ },
24596
+ mapsLinks: {
24597
+ description: "Deep links into Google Maps and Apple Maps. Google renders at most 9 intermediate waypoints; the Apple Maps URL scheme has no waypoint parameter at all.",
24598
+ functions: [
24599
+ {
24600
+ name: "googleDirectionsUrl",
24601
+ signature: "(stops: DirectionsTarget[], origin?: DirectionsTarget | null, travelmode?: TravelMode) => string",
24602
+ description: "Google Maps directions URL - last stop is the destination, the rest are waypoints. Returns '' when no target is usable."
24603
+ },
24604
+ {
24605
+ name: "googleDirectionsLegUrls",
24606
+ signature: "(stops: DirectionsTarget[], origin?: DirectionsTarget | null, travelmode?: TravelMode) => string[]",
24607
+ description: "One URL per leg for routes past Google's waypoint budget, each leg resuming where the last ended. Use instead of truncating."
24608
+ },
24609
+ {
24610
+ name: "appleDirectionsUrl",
24611
+ signature: "(stops: DirectionsTarget[], origin?: DirectionsTarget | null, dirflg?: 'd' | 'w' | 'r') => string",
24612
+ description: "Apple Maps URL. Multi-stop input returns the leg to the FIRST stop only - label the affordance accordingly."
24613
+ },
24614
+ {
24615
+ name: "googleSearchUrl",
24616
+ signature: "(query: string) => string",
24617
+ description: "Google Maps search URL - the fallback for a stop with no coordinate"
24618
+ },
24619
+ {
24620
+ name: "splitIntoLegs",
24621
+ signature: "<T>(stops: T[], maxPerLeg?: number) => T[][]",
24622
+ description: "Chunk stops to fit a waypoint budget, repeating each leg's last stop as the next leg's first"
24623
+ },
24624
+ {
24625
+ name: "targetFromCoords",
24626
+ signature: "(coords: LatLng, address?: string) => DirectionsTarget",
24627
+ description: "Convenience: a directions target from a coordinate"
24628
+ },
24629
+ {
24630
+ name: "GOOGLE_MAX_WAYPOINTS",
24631
+ signature: "number",
24632
+ description: "Google's intermediate waypoint limit (9)"
24633
+ },
24634
+ {
24635
+ name: "GOOGLE_MAX_LEG_STOPS",
24636
+ signature: "number",
24637
+ description: "Targets per leg, counting the destination (10)"
24638
+ }
24639
+ ],
24640
+ example: "import { googleDirectionsUrl, appleDirectionsUrl } from '@classic-homes/maps-core/route';\n\nconst google = googleDirectionsUrl(stops, userLocation, 'driving');\nconst apple = appleDirectionsUrl(stops, userLocation); // first stop only - label it"
24641
+ },
24642
+ coords: {
24643
+ description: "LatLng is an object, deliberately NOT the LngLat tuple the rest of maps-core uses: a silently transposed tuple produces a plausible route on the wrong side of the planet. Convert at the map boundary.",
24644
+ functions: [
24645
+ {
24646
+ name: "toLngLat",
24647
+ signature: "(point: LatLng) => LngLat",
24648
+ description: "Convert to the [lng, lat] tuple MapLibre and the rest of maps-core expect"
24649
+ },
24650
+ {
24651
+ name: "fromLngLat",
24652
+ signature: "(point: LngLat) => LatLng",
24653
+ description: "Convert from the [lng, lat] tuple form"
24654
+ },
24655
+ {
24656
+ name: "isValidLatLng",
24657
+ signature: "(point: unknown) => point is LatLng",
24658
+ description: "True when both components are numeric, finite and in range"
24659
+ },
24660
+ {
24661
+ name: "isFiniteNumber",
24662
+ signature: "(value: unknown) => value is number",
24663
+ description: "True only for a real finite number. Use over the global isFinite, which coerces null and '' to 0 - a real place in the Gulf of Guinea."
24664
+ }
24665
+ ],
24666
+ example: "import { toLngLat, isValidLatLng } from '@classic-homes/maps-core/route';\n\nconst stops = rows.filter((row) => isValidLatLng(row.coords));\nmap.setCenter(toLngLat(stops[0].coords));"
24667
+ }
24668
+ }
24669
+ },
24670
+ geocoding: {
24671
+ importPath: "@classic-homes/maps-core/geocoding",
24672
+ description: "Forward geocoding. The API key and fetch are both injected by the caller, so the key can stay server-side - a key compiled into a client bundle is a public key, and geocoding is billed per request. MapTiler is the only adapter today.",
24673
+ modules: {
24674
+ maptiler: {
24675
+ description: "MapTiler forward geocoding. The request builder and the response parser are separate pure functions, so a caller can put its own cache or retry layer between them.",
24676
+ functions: [
24677
+ {
24678
+ name: "geocodeForward",
24679
+ signature: "(query: string, opts: GeocodeOptions, fetchFn: typeof fetch) => Promise<GeocodeResult | null>",
24680
+ description: "Forward-geocode a query, returning the best match. Resolves null on a miss, a non-2xx, a malformed body, an abort or a network error - pass onError to see which."
24681
+ },
24682
+ {
24683
+ name: "geocodeForwardMany",
24684
+ signature: "(query: string, opts: GeocodeOptions, fetchFn: typeof fetch) => Promise<GeocodeResult[]>",
24685
+ description: "Same, returning every match best-first. Set opts.limit above 1 or MapTiler sends a single feature."
24686
+ },
24687
+ {
24688
+ name: "buildMapTilerGeocodeUrl",
24689
+ signature: "(query: string, opts: GeocodeOptions) => string",
24690
+ description: "Build the request URL. Throws RangeError on an empty query or key."
24691
+ },
24692
+ {
24693
+ name: "parseMapTilerGeocodeResponse",
24694
+ signature: "(body: unknown) => GeocodeResult | null",
24695
+ description: "Parse the best match. Handles the [lng, lat] to {lat, lng} swap."
24696
+ },
24697
+ {
24698
+ name: "parseMapTilerGeocodeResults",
24699
+ signature: "(body: unknown) => GeocodeResult[]",
24700
+ description: "Parse every usable feature, skipping malformed ones rather than failing the batch"
24701
+ }
24702
+ ],
24703
+ example: "import { geocodeForward } from '@classic-homes/maps-core/geocoding';\n\n// Key held server-side; this runs in a Worker or a route handler\nconst match = await geocodeForward(address, {\n key: env.MAPTILER_KEY,\n proximity: { lat: 38.8339, lng: -104.8214 },\n country: 'us',\n signal: AbortSignal.timeout(5000),\n onError: (err) => console.error('geocode', err),\n}, fetch);\n\nif (match) map.setCenter([match.coords.lng, match.coords.lat]);"
24704
+ }
24705
+ }
24706
+ },
23287
24707
  workers: {
23288
24708
  importPath: "@classic-homes/maps-core/workers",
23289
24709
  description: "Web Worker infrastructure for off-main-thread spatial processing",
@@ -23503,6 +24923,12 @@ var maps_catalog_default = {
23503
24923
  required: false,
23504
24924
  description: "Enable keyboard navigation"
23505
24925
  },
24926
+ {
24927
+ name: "cooperativeGestures",
24928
+ type: "boolean",
24929
+ required: false,
24930
+ description: "Require two-finger touch panning and Ctrl/Cmd + scroll wheel zooming, showing MapLibre's built-in help overlay otherwise. Prevents map scroll-jacking on touch pages. Default: undefined (off)"
24931
+ },
23506
24932
  {
23507
24933
  name: "navigationControl",
23508
24934
  type: "boolean",
@@ -27257,6 +28683,24 @@ function registerMapsResources(server) {
27257
28683
  }
27258
28684
  ]
27259
28685
  }));
28686
+ server.resource("Maps Route Planning", "maps://route", async (uri) => ({
28687
+ contents: [
28688
+ {
28689
+ uri: uri.href,
28690
+ mimeType: "application/json",
28691
+ text: JSON.stringify(catalog5.subpackages.route, null, 2)
28692
+ }
28693
+ ]
28694
+ }));
28695
+ server.resource("Maps Geocoding", "maps://geocoding", async (uri) => ({
28696
+ contents: [
28697
+ {
28698
+ uri: uri.href,
28699
+ mimeType: "application/json",
28700
+ text: JSON.stringify(catalog5.subpackages.geocoding, null, 2)
28701
+ }
28702
+ ]
28703
+ }));
27260
28704
  server.resource("Maps Components", "maps://components", async (uri) => ({
27261
28705
  contents: [
27262
28706
  {
@@ -27519,7 +28963,7 @@ ${catalog5.quickReference.tailwindConfig}
27519
28963
 
27520
28964
  // src/data/native-catalog.json
27521
28965
  var native_catalog_default = {
27522
- version: "0.1.39",
28966
+ version: "0.2.1",
27523
28967
  packageName: "@classic-homes/native",
27524
28968
  description: "Native device APIs for iOS and Android mobile apps. Uses Capacitor for native functionality with web fallbacks.",
27525
28969
  subpackages: {
@@ -29894,7 +31338,7 @@ function registerPrompts(server) {
29894
31338
  // package.json
29895
31339
  var package_default = {
29896
31340
  name: "@classic-homes/theme-mcp",
29897
- version: "0.1.39",
31341
+ version: "0.2.1",
29898
31342
  description: "MCP server for Classic Theme design system - enables AI assistants to understand and correctly use components, tokens, and patterns",
29899
31343
  type: "module",
29900
31344
  main: "dist/index.js",