@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/README.md +2 -0
- package/dist/cli.js +1619 -175
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.js +1619 -175
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -11,7 +11,7 @@ import { ResourceTemplate } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
|
11
11
|
|
|
12
12
|
// src/data/component-catalog.json
|
|
13
13
|
var component_catalog_default = {
|
|
14
|
-
version: "0.1
|
|
14
|
+
version: "0.2.1",
|
|
15
15
|
components: [
|
|
16
16
|
{
|
|
17
17
|
name: "Alert",
|
|
@@ -546,6 +546,187 @@ var component_catalog_default = {
|
|
|
546
546
|
"BarChart"
|
|
547
547
|
]
|
|
548
548
|
},
|
|
549
|
+
{
|
|
550
|
+
name: "AspectRatio",
|
|
551
|
+
description: "Constrains content to a fixed width-to-height ratio",
|
|
552
|
+
category: "media",
|
|
553
|
+
importPath: "@classic-homes/theme-svelte",
|
|
554
|
+
props: [
|
|
555
|
+
{
|
|
556
|
+
name: "ratio",
|
|
557
|
+
type: "'square' | 'video' | 'photo' | 'portrait' | 'wide' | number",
|
|
558
|
+
default: "'video'",
|
|
559
|
+
required: false,
|
|
560
|
+
description: "Width-to-height ratio, named or as a raw number"
|
|
561
|
+
},
|
|
562
|
+
{
|
|
563
|
+
name: "class",
|
|
564
|
+
type: "string",
|
|
565
|
+
required: false,
|
|
566
|
+
description: "Additional CSS classes for the content box"
|
|
567
|
+
}
|
|
568
|
+
],
|
|
569
|
+
variants: [
|
|
570
|
+
{
|
|
571
|
+
name: "ratio",
|
|
572
|
+
values: [
|
|
573
|
+
"square",
|
|
574
|
+
"video",
|
|
575
|
+
"photo",
|
|
576
|
+
"portrait",
|
|
577
|
+
"wide"
|
|
578
|
+
],
|
|
579
|
+
default: "video"
|
|
580
|
+
}
|
|
581
|
+
],
|
|
582
|
+
slots: [
|
|
583
|
+
{
|
|
584
|
+
name: "children",
|
|
585
|
+
description: "Main content",
|
|
586
|
+
required: false
|
|
587
|
+
}
|
|
588
|
+
],
|
|
589
|
+
events: [],
|
|
590
|
+
examples: [
|
|
591
|
+
{
|
|
592
|
+
title: "Basic Usage",
|
|
593
|
+
code: '<AspectRatio ratio="video">\n <img src="/cover.jpg" alt="Cover art" class="h-full w-full object-cover" />\n</AspectRatio>'
|
|
594
|
+
}
|
|
595
|
+
],
|
|
596
|
+
relatedComponents: [
|
|
597
|
+
"Image",
|
|
598
|
+
"MediaEmbed",
|
|
599
|
+
"MediaGrid"
|
|
600
|
+
]
|
|
601
|
+
},
|
|
602
|
+
{
|
|
603
|
+
name: "Audio",
|
|
604
|
+
description: "Compact audio player with themed controls and keyboard support",
|
|
605
|
+
category: "media",
|
|
606
|
+
importPath: "@classic-homes/theme-svelte",
|
|
607
|
+
props: [
|
|
608
|
+
{
|
|
609
|
+
name: "src",
|
|
610
|
+
type: "string | MediaSource[]",
|
|
611
|
+
required: false,
|
|
612
|
+
description: "A single URL, or several sources for format fallback"
|
|
613
|
+
},
|
|
614
|
+
{
|
|
615
|
+
name: "title",
|
|
616
|
+
type: "string",
|
|
617
|
+
required: false,
|
|
618
|
+
description: "Track title shown above the controls"
|
|
619
|
+
},
|
|
620
|
+
{
|
|
621
|
+
name: "artist",
|
|
622
|
+
type: "string",
|
|
623
|
+
required: false,
|
|
624
|
+
description: "Performer or author shown beside the title"
|
|
625
|
+
},
|
|
626
|
+
{
|
|
627
|
+
name: "artwork",
|
|
628
|
+
type: "string",
|
|
629
|
+
required: false,
|
|
630
|
+
description: "Artwork image URL"
|
|
631
|
+
},
|
|
632
|
+
{
|
|
633
|
+
name: "label",
|
|
634
|
+
type: "string",
|
|
635
|
+
required: false,
|
|
636
|
+
description: "Accessible name; defaults to the title"
|
|
637
|
+
},
|
|
638
|
+
{
|
|
639
|
+
name: "tracks",
|
|
640
|
+
type: "MediaTextTrack[]",
|
|
641
|
+
default: "[]",
|
|
642
|
+
required: false,
|
|
643
|
+
description: "Transcript or caption tracks"
|
|
644
|
+
},
|
|
645
|
+
{
|
|
646
|
+
name: "autoplay",
|
|
647
|
+
type: "boolean",
|
|
648
|
+
default: "false",
|
|
649
|
+
required: false,
|
|
650
|
+
description: "Start playing automatically"
|
|
651
|
+
},
|
|
652
|
+
{
|
|
653
|
+
name: "muted",
|
|
654
|
+
type: "boolean",
|
|
655
|
+
default: "false",
|
|
656
|
+
required: false,
|
|
657
|
+
description: "Start muted"
|
|
658
|
+
},
|
|
659
|
+
{
|
|
660
|
+
name: "loop",
|
|
661
|
+
type: "boolean",
|
|
662
|
+
default: "false",
|
|
663
|
+
required: false,
|
|
664
|
+
description: "Loop playback"
|
|
665
|
+
},
|
|
666
|
+
{
|
|
667
|
+
name: "volume",
|
|
668
|
+
type: "number",
|
|
669
|
+
default: "1",
|
|
670
|
+
required: false,
|
|
671
|
+
description: "Initial volume, 0 to 1"
|
|
672
|
+
},
|
|
673
|
+
{
|
|
674
|
+
name: "preload",
|
|
675
|
+
type: "'none' | 'metadata' | 'auto'",
|
|
676
|
+
default: "'metadata'",
|
|
677
|
+
required: false,
|
|
678
|
+
description: "How much to preload"
|
|
679
|
+
},
|
|
680
|
+
{
|
|
681
|
+
name: "onEnded",
|
|
682
|
+
type: "() => void",
|
|
683
|
+
required: false,
|
|
684
|
+
description: "Called when playback ends"
|
|
685
|
+
},
|
|
686
|
+
{
|
|
687
|
+
name: "onTimeUpdate",
|
|
688
|
+
type: "(currentTime: number) => void",
|
|
689
|
+
required: false,
|
|
690
|
+
description: "Called on each time update, with seconds elapsed"
|
|
691
|
+
},
|
|
692
|
+
{
|
|
693
|
+
name: "class",
|
|
694
|
+
type: "string",
|
|
695
|
+
required: false,
|
|
696
|
+
description: "Additional CSS classes"
|
|
697
|
+
}
|
|
698
|
+
],
|
|
699
|
+
variants: [
|
|
700
|
+
{
|
|
701
|
+
name: "preload",
|
|
702
|
+
values: [
|
|
703
|
+
"none",
|
|
704
|
+
"metadata",
|
|
705
|
+
"auto"
|
|
706
|
+
],
|
|
707
|
+
default: "metadata"
|
|
708
|
+
}
|
|
709
|
+
],
|
|
710
|
+
slots: [
|
|
711
|
+
{
|
|
712
|
+
name: "children",
|
|
713
|
+
description: "Main content",
|
|
714
|
+
required: false
|
|
715
|
+
}
|
|
716
|
+
],
|
|
717
|
+
events: [],
|
|
718
|
+
examples: [
|
|
719
|
+
{
|
|
720
|
+
title: "Basic Usage",
|
|
721
|
+
code: '<Audio src="/episode-12.mp3" title="Episode 12" artist="Design Notes" artwork="/cover.jpg" />'
|
|
722
|
+
}
|
|
723
|
+
],
|
|
724
|
+
relatedComponents: [
|
|
725
|
+
"Video",
|
|
726
|
+
"MediaGrid",
|
|
727
|
+
"Lightbox"
|
|
728
|
+
]
|
|
729
|
+
},
|
|
549
730
|
{
|
|
550
731
|
name: "AuthLayout",
|
|
551
732
|
description: "Centered card layout for authentication pages",
|
|
@@ -2884,6 +3065,13 @@ var component_catalog_default = {
|
|
|
2884
3065
|
required: false,
|
|
2885
3066
|
description: "Distance to drag before detaching (px)"
|
|
2886
3067
|
},
|
|
3068
|
+
{
|
|
3069
|
+
name: "mobileBreakpoint",
|
|
3070
|
+
type: "number",
|
|
3071
|
+
default: "640",
|
|
3072
|
+
required: false,
|
|
3073
|
+
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"
|
|
3074
|
+
},
|
|
2887
3075
|
{
|
|
2888
3076
|
name: "class",
|
|
2889
3077
|
type: "string",
|
|
@@ -3253,12 +3441,39 @@ var component_catalog_default = {
|
|
|
3253
3441
|
required: false,
|
|
3254
3442
|
description: "Tab label text"
|
|
3255
3443
|
},
|
|
3444
|
+
{
|
|
3445
|
+
name: "subtitle",
|
|
3446
|
+
type: "string",
|
|
3447
|
+
required: false,
|
|
3448
|
+
description: "Secondary line under the title"
|
|
3449
|
+
},
|
|
3256
3450
|
{
|
|
3257
3451
|
name: "edge",
|
|
3258
3452
|
type: "'left' | 'right' | 'top' | 'bottom'",
|
|
3259
3453
|
required: false,
|
|
3260
3454
|
description: "Edge position (required)"
|
|
3261
3455
|
},
|
|
3456
|
+
{
|
|
3457
|
+
name: "tabWidth",
|
|
3458
|
+
type: "number",
|
|
3459
|
+
default: "220",
|
|
3460
|
+
required: false,
|
|
3461
|
+
description: "Tab length (px) along its edge"
|
|
3462
|
+
},
|
|
3463
|
+
{
|
|
3464
|
+
name: "tabInset",
|
|
3465
|
+
type: "number",
|
|
3466
|
+
default: "0",
|
|
3467
|
+
required: false,
|
|
3468
|
+
description: "Distance (px) from the pinned edge"
|
|
3469
|
+
},
|
|
3470
|
+
{
|
|
3471
|
+
name: "offset",
|
|
3472
|
+
type: "number",
|
|
3473
|
+
default: "0",
|
|
3474
|
+
required: false,
|
|
3475
|
+
description: "Shift (px) along the edge"
|
|
3476
|
+
},
|
|
3262
3477
|
{
|
|
3263
3478
|
name: "onclick",
|
|
3264
3479
|
type: "() => void",
|
|
@@ -6432,102 +6647,157 @@ var component_catalog_default = {
|
|
|
6432
6647
|
]
|
|
6433
6648
|
},
|
|
6434
6649
|
{
|
|
6435
|
-
name: "
|
|
6436
|
-
description: "
|
|
6437
|
-
category: "
|
|
6650
|
+
name: "Image",
|
|
6651
|
+
description: "Responsive image with lazy loading, placeholders, and error fallback",
|
|
6652
|
+
category: "media",
|
|
6438
6653
|
importPath: "@classic-homes/theme-svelte",
|
|
6439
6654
|
props: [
|
|
6440
6655
|
{
|
|
6441
|
-
name: "
|
|
6656
|
+
name: "src",
|
|
6442
6657
|
type: "string",
|
|
6443
|
-
default: "'text'",
|
|
6444
6658
|
required: false,
|
|
6445
|
-
description: "
|
|
6659
|
+
description: "Image URL"
|
|
6446
6660
|
},
|
|
6447
6661
|
{
|
|
6448
|
-
name: "
|
|
6449
|
-
type: "string
|
|
6450
|
-
default: "''",
|
|
6662
|
+
name: "alt",
|
|
6663
|
+
type: "string",
|
|
6451
6664
|
required: false,
|
|
6452
|
-
description: "
|
|
6665
|
+
description: "Alternative text; required, empty string for decorative images"
|
|
6666
|
+
},
|
|
6667
|
+
{
|
|
6668
|
+
name: "ratio",
|
|
6669
|
+
type: "'square' | 'video' | 'photo' | 'portrait' | 'wide' | number",
|
|
6670
|
+
required: false,
|
|
6671
|
+
description: "Constrain the image to a ratio box"
|
|
6672
|
+
},
|
|
6673
|
+
{
|
|
6674
|
+
name: "fit",
|
|
6675
|
+
type: "'cover' | 'contain' | 'fill' | 'none' | 'scale-down'",
|
|
6676
|
+
default: "'cover'",
|
|
6677
|
+
required: false,
|
|
6678
|
+
description: "How the image fills its box"
|
|
6679
|
+
},
|
|
6680
|
+
{
|
|
6681
|
+
name: "rounded",
|
|
6682
|
+
type: "'none' | 'sm' | 'md' | 'lg' | 'xl' | 'full'",
|
|
6683
|
+
default: "'none'",
|
|
6684
|
+
required: false,
|
|
6685
|
+
description: "Corner rounding"
|
|
6453
6686
|
},
|
|
6454
6687
|
{
|
|
6455
6688
|
name: "placeholder",
|
|
6456
6689
|
type: "string",
|
|
6457
6690
|
required: false,
|
|
6458
|
-
description: "
|
|
6691
|
+
description: "Low-resolution data URL blurred in while loading"
|
|
6459
6692
|
},
|
|
6460
6693
|
{
|
|
6461
|
-
name: "
|
|
6694
|
+
name: "showSkeleton",
|
|
6462
6695
|
type: "boolean",
|
|
6463
|
-
default: "
|
|
6696
|
+
default: "true",
|
|
6464
6697
|
required: false,
|
|
6465
|
-
description: "
|
|
6698
|
+
description: "Show a skeleton while loading (ignored when `placeholder` is set)"
|
|
6466
6699
|
},
|
|
6467
6700
|
{
|
|
6468
|
-
name: "
|
|
6469
|
-
type: "
|
|
6470
|
-
default: "
|
|
6701
|
+
name: "loading",
|
|
6702
|
+
type: "'lazy' | 'eager'",
|
|
6703
|
+
default: "'lazy'",
|
|
6471
6704
|
required: false,
|
|
6472
|
-
description: "
|
|
6705
|
+
description: "Native loading strategy"
|
|
6473
6706
|
},
|
|
6474
6707
|
{
|
|
6475
|
-
name: "
|
|
6476
|
-
type: "
|
|
6477
|
-
default: "
|
|
6708
|
+
name: "decoding",
|
|
6709
|
+
type: "'async' | 'sync' | 'auto'",
|
|
6710
|
+
default: "'async'",
|
|
6478
6711
|
required: false,
|
|
6479
|
-
description: "
|
|
6712
|
+
description: "Native decoding hint"
|
|
6480
6713
|
},
|
|
6481
6714
|
{
|
|
6482
|
-
name: "
|
|
6715
|
+
name: "srcset",
|
|
6483
6716
|
type: "string",
|
|
6484
6717
|
required: false,
|
|
6485
|
-
description: "
|
|
6718
|
+
description: "Responsive candidate list"
|
|
6486
6719
|
},
|
|
6487
6720
|
{
|
|
6488
|
-
name: "
|
|
6721
|
+
name: "sizes",
|
|
6489
6722
|
type: "string",
|
|
6490
6723
|
required: false,
|
|
6491
|
-
description: "
|
|
6724
|
+
description: "Sizes attribute paired with `srcset`"
|
|
6492
6725
|
},
|
|
6493
6726
|
{
|
|
6494
|
-
name: "
|
|
6495
|
-
type: "
|
|
6727
|
+
name: "onload",
|
|
6728
|
+
type: "(event: Event) => void",
|
|
6496
6729
|
required: false,
|
|
6497
|
-
description: "
|
|
6730
|
+
description: "Called once the image loads"
|
|
6498
6731
|
},
|
|
6499
6732
|
{
|
|
6500
|
-
name: "
|
|
6501
|
-
type: "
|
|
6733
|
+
name: "onerror",
|
|
6734
|
+
type: "(event: Event) => void",
|
|
6502
6735
|
required: false,
|
|
6503
|
-
description: "
|
|
6736
|
+
description: "Called when the image fails to load"
|
|
6504
6737
|
},
|
|
6505
6738
|
{
|
|
6506
6739
|
name: "class",
|
|
6507
6740
|
type: "string",
|
|
6508
6741
|
required: false,
|
|
6509
|
-
description: "Additional
|
|
6742
|
+
description: "Additional classes for the wrapper"
|
|
6510
6743
|
},
|
|
6511
6744
|
{
|
|
6512
|
-
name: "
|
|
6513
|
-
type: "
|
|
6745
|
+
name: "imgClass",
|
|
6746
|
+
type: "string",
|
|
6514
6747
|
required: false,
|
|
6515
|
-
description: "
|
|
6748
|
+
description: "Additional classes for the `<img>` element"
|
|
6516
6749
|
}
|
|
6517
6750
|
],
|
|
6518
6751
|
variants: [
|
|
6519
6752
|
{
|
|
6520
|
-
name: "
|
|
6753
|
+
name: "ratio",
|
|
6521
6754
|
values: [
|
|
6522
|
-
"
|
|
6523
|
-
"
|
|
6524
|
-
"
|
|
6525
|
-
"
|
|
6526
|
-
"
|
|
6527
|
-
"numeric",
|
|
6528
|
-
"decimal",
|
|
6529
|
-
"search"
|
|
6755
|
+
"square",
|
|
6756
|
+
"video",
|
|
6757
|
+
"photo",
|
|
6758
|
+
"portrait",
|
|
6759
|
+
"wide"
|
|
6530
6760
|
]
|
|
6761
|
+
},
|
|
6762
|
+
{
|
|
6763
|
+
name: "fit",
|
|
6764
|
+
values: [
|
|
6765
|
+
"cover",
|
|
6766
|
+
"contain",
|
|
6767
|
+
"fill",
|
|
6768
|
+
"none",
|
|
6769
|
+
"scale-down"
|
|
6770
|
+
],
|
|
6771
|
+
default: "cover"
|
|
6772
|
+
},
|
|
6773
|
+
{
|
|
6774
|
+
name: "rounded",
|
|
6775
|
+
values: [
|
|
6776
|
+
"none",
|
|
6777
|
+
"sm",
|
|
6778
|
+
"md",
|
|
6779
|
+
"lg",
|
|
6780
|
+
"xl",
|
|
6781
|
+
"full"
|
|
6782
|
+
],
|
|
6783
|
+
default: "none"
|
|
6784
|
+
},
|
|
6785
|
+
{
|
|
6786
|
+
name: "loading",
|
|
6787
|
+
values: [
|
|
6788
|
+
"lazy",
|
|
6789
|
+
"eager"
|
|
6790
|
+
],
|
|
6791
|
+
default: "lazy"
|
|
6792
|
+
},
|
|
6793
|
+
{
|
|
6794
|
+
name: "decoding",
|
|
6795
|
+
values: [
|
|
6796
|
+
"async",
|
|
6797
|
+
"sync",
|
|
6798
|
+
"auto"
|
|
6799
|
+
],
|
|
6800
|
+
default: "async"
|
|
6531
6801
|
}
|
|
6532
6802
|
],
|
|
6533
6803
|
slots: [
|
|
@@ -6541,14 +6811,135 @@ var component_catalog_default = {
|
|
|
6541
6811
|
examples: [
|
|
6542
6812
|
{
|
|
6543
6813
|
title: "Basic Usage",
|
|
6544
|
-
code: '<
|
|
6545
|
-
}
|
|
6814
|
+
code: '<Image src="/photo.jpg" alt="Sunrise over the harbour" ratio="photo" />'
|
|
6815
|
+
}
|
|
6816
|
+
],
|
|
6817
|
+
relatedComponents: [
|
|
6818
|
+
"AspectRatio",
|
|
6819
|
+
"MediaGrid",
|
|
6820
|
+
"Lightbox",
|
|
6821
|
+
"Avatar",
|
|
6822
|
+
"Skeleton"
|
|
6823
|
+
]
|
|
6824
|
+
},
|
|
6825
|
+
{
|
|
6826
|
+
name: "Input",
|
|
6827
|
+
description: "Text input field for single-line data entry with various input modes",
|
|
6828
|
+
category: "form",
|
|
6829
|
+
importPath: "@classic-homes/theme-svelte",
|
|
6830
|
+
props: [
|
|
6546
6831
|
{
|
|
6547
|
-
|
|
6548
|
-
|
|
6832
|
+
name: "type",
|
|
6833
|
+
type: "string",
|
|
6834
|
+
default: "'text'",
|
|
6835
|
+
required: false,
|
|
6836
|
+
description: "HTML input type"
|
|
6549
6837
|
},
|
|
6550
6838
|
{
|
|
6551
|
-
|
|
6839
|
+
name: "value",
|
|
6840
|
+
type: "string | number",
|
|
6841
|
+
default: "''",
|
|
6842
|
+
required: false,
|
|
6843
|
+
description: "Input value (bindable)"
|
|
6844
|
+
},
|
|
6845
|
+
{
|
|
6846
|
+
name: "placeholder",
|
|
6847
|
+
type: "string",
|
|
6848
|
+
required: false,
|
|
6849
|
+
description: "Placeholder text"
|
|
6850
|
+
},
|
|
6851
|
+
{
|
|
6852
|
+
name: "disabled",
|
|
6853
|
+
type: "boolean",
|
|
6854
|
+
default: "false",
|
|
6855
|
+
required: false,
|
|
6856
|
+
description: "Disables the input"
|
|
6857
|
+
},
|
|
6858
|
+
{
|
|
6859
|
+
name: "readonly",
|
|
6860
|
+
type: "boolean",
|
|
6861
|
+
default: "false",
|
|
6862
|
+
required: false,
|
|
6863
|
+
description: "Makes the input read-only"
|
|
6864
|
+
},
|
|
6865
|
+
{
|
|
6866
|
+
name: "required",
|
|
6867
|
+
type: "boolean",
|
|
6868
|
+
default: "false",
|
|
6869
|
+
required: false,
|
|
6870
|
+
description: "Marks as required"
|
|
6871
|
+
},
|
|
6872
|
+
{
|
|
6873
|
+
name: "name",
|
|
6874
|
+
type: "string",
|
|
6875
|
+
required: false,
|
|
6876
|
+
description: "Input name for forms"
|
|
6877
|
+
},
|
|
6878
|
+
{
|
|
6879
|
+
name: "id",
|
|
6880
|
+
type: "string",
|
|
6881
|
+
required: false,
|
|
6882
|
+
description: "Input ID for label association"
|
|
6883
|
+
},
|
|
6884
|
+
{
|
|
6885
|
+
name: "autocomplete",
|
|
6886
|
+
type: "AutoFill",
|
|
6887
|
+
required: false,
|
|
6888
|
+
description: "Browser autocomplete hint"
|
|
6889
|
+
},
|
|
6890
|
+
{
|
|
6891
|
+
name: "inputmode",
|
|
6892
|
+
type: "'none' | 'text' | 'tel' | 'url' | 'email' | 'numeric' | 'decimal' | 'search'",
|
|
6893
|
+
required: false,
|
|
6894
|
+
description: "Mobile keyboard hint"
|
|
6895
|
+
},
|
|
6896
|
+
{
|
|
6897
|
+
name: "class",
|
|
6898
|
+
type: "string",
|
|
6899
|
+
required: false,
|
|
6900
|
+
description: "Additional CSS classes"
|
|
6901
|
+
},
|
|
6902
|
+
{
|
|
6903
|
+
name: "onValueChange",
|
|
6904
|
+
type: "(value: string) => void",
|
|
6905
|
+
required: false,
|
|
6906
|
+
description: "Callback when value changes"
|
|
6907
|
+
}
|
|
6908
|
+
],
|
|
6909
|
+
variants: [
|
|
6910
|
+
{
|
|
6911
|
+
name: "inputmode",
|
|
6912
|
+
values: [
|
|
6913
|
+
"none",
|
|
6914
|
+
"text",
|
|
6915
|
+
"tel",
|
|
6916
|
+
"url",
|
|
6917
|
+
"email",
|
|
6918
|
+
"numeric",
|
|
6919
|
+
"decimal",
|
|
6920
|
+
"search"
|
|
6921
|
+
]
|
|
6922
|
+
}
|
|
6923
|
+
],
|
|
6924
|
+
slots: [
|
|
6925
|
+
{
|
|
6926
|
+
name: "children",
|
|
6927
|
+
description: "Main content",
|
|
6928
|
+
required: false
|
|
6929
|
+
}
|
|
6930
|
+
],
|
|
6931
|
+
events: [],
|
|
6932
|
+
examples: [
|
|
6933
|
+
{
|
|
6934
|
+
title: "Basic Usage",
|
|
6935
|
+
code: '<Input placeholder="Enter text..." />'
|
|
6936
|
+
},
|
|
6937
|
+
{
|
|
6938
|
+
title: "Text (Default)",
|
|
6939
|
+
code: '<Input type="text" placeholder="Enter name" />'
|
|
6940
|
+
},
|
|
6941
|
+
{
|
|
6942
|
+
title: "Email",
|
|
6552
6943
|
code: '<Input type="email" placeholder="your@email.com" autocomplete="email" />'
|
|
6553
6944
|
},
|
|
6554
6945
|
{
|
|
@@ -6683,6 +7074,115 @@ var component_catalog_default = {
|
|
|
6683
7074
|
"FormField"
|
|
6684
7075
|
]
|
|
6685
7076
|
},
|
|
7077
|
+
{
|
|
7078
|
+
name: "Lightbox",
|
|
7079
|
+
description: "Full-screen media viewer with zoom, pan, and keyboard navigation",
|
|
7080
|
+
category: "media",
|
|
7081
|
+
importPath: "@classic-homes/theme-svelte",
|
|
7082
|
+
props: [
|
|
7083
|
+
{
|
|
7084
|
+
name: "items",
|
|
7085
|
+
type: "MediaItem[]",
|
|
7086
|
+
required: false,
|
|
7087
|
+
description: "Items to page through"
|
|
7088
|
+
},
|
|
7089
|
+
{
|
|
7090
|
+
name: "open",
|
|
7091
|
+
type: "boolean",
|
|
7092
|
+
default: "false",
|
|
7093
|
+
required: false,
|
|
7094
|
+
description: "Whether the viewer is open (bindable)"
|
|
7095
|
+
},
|
|
7096
|
+
{
|
|
7097
|
+
name: "index",
|
|
7098
|
+
type: "number",
|
|
7099
|
+
default: "0",
|
|
7100
|
+
required: false,
|
|
7101
|
+
description: "Index of the visible item (bindable)"
|
|
7102
|
+
},
|
|
7103
|
+
{
|
|
7104
|
+
name: "loop",
|
|
7105
|
+
type: "boolean",
|
|
7106
|
+
default: "true",
|
|
7107
|
+
required: false,
|
|
7108
|
+
description: "Wrap from the last item back to the first"
|
|
7109
|
+
},
|
|
7110
|
+
{
|
|
7111
|
+
name: "showThumbnails",
|
|
7112
|
+
type: "boolean",
|
|
7113
|
+
default: "false",
|
|
7114
|
+
required: false,
|
|
7115
|
+
description: "Show the thumbnail strip along the bottom"
|
|
7116
|
+
},
|
|
7117
|
+
{
|
|
7118
|
+
name: "showCaption",
|
|
7119
|
+
type: "boolean",
|
|
7120
|
+
default: "true",
|
|
7121
|
+
required: false,
|
|
7122
|
+
description: "Show the caption beneath the media"
|
|
7123
|
+
},
|
|
7124
|
+
{
|
|
7125
|
+
name: "showCounter",
|
|
7126
|
+
type: "boolean",
|
|
7127
|
+
default: "true",
|
|
7128
|
+
required: false,
|
|
7129
|
+
description: 'Show the "n of m" counter'
|
|
7130
|
+
},
|
|
7131
|
+
{
|
|
7132
|
+
name: "zoomable",
|
|
7133
|
+
type: "boolean",
|
|
7134
|
+
default: "true",
|
|
7135
|
+
required: false,
|
|
7136
|
+
description: "Allow zooming and panning images"
|
|
7137
|
+
},
|
|
7138
|
+
{
|
|
7139
|
+
name: "downloadable",
|
|
7140
|
+
type: "boolean",
|
|
7141
|
+
default: "false",
|
|
7142
|
+
required: false,
|
|
7143
|
+
description: "Show a download link for items that expose a URL"
|
|
7144
|
+
},
|
|
7145
|
+
{
|
|
7146
|
+
name: "onOpenChange",
|
|
7147
|
+
type: "(open: boolean) => void",
|
|
7148
|
+
required: false,
|
|
7149
|
+
description: "Called when the open state changes"
|
|
7150
|
+
},
|
|
7151
|
+
{
|
|
7152
|
+
name: "onIndexChange",
|
|
7153
|
+
type: "(index: number) => void",
|
|
7154
|
+
required: false,
|
|
7155
|
+
description: "Called when the visible item changes"
|
|
7156
|
+
},
|
|
7157
|
+
{
|
|
7158
|
+
name: "class",
|
|
7159
|
+
type: "string",
|
|
7160
|
+
required: false,
|
|
7161
|
+
description: "Additional CSS classes for the surface"
|
|
7162
|
+
}
|
|
7163
|
+
],
|
|
7164
|
+
variants: [],
|
|
7165
|
+
slots: [
|
|
7166
|
+
{
|
|
7167
|
+
name: "children",
|
|
7168
|
+
description: "Main content",
|
|
7169
|
+
required: false
|
|
7170
|
+
}
|
|
7171
|
+
],
|
|
7172
|
+
events: [],
|
|
7173
|
+
examples: [
|
|
7174
|
+
{
|
|
7175
|
+
title: "Basic Usage",
|
|
7176
|
+
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 />"
|
|
7177
|
+
}
|
|
7178
|
+
],
|
|
7179
|
+
relatedComponents: [
|
|
7180
|
+
"MediaGrid",
|
|
7181
|
+
"MediaCarousel",
|
|
7182
|
+
"Dialog",
|
|
7183
|
+
"Image"
|
|
7184
|
+
]
|
|
7185
|
+
},
|
|
6686
7186
|
{
|
|
6687
7187
|
name: "LineChart",
|
|
6688
7188
|
description: "Display trends over time with smooth curves and area fill options",
|
|
@@ -7602,35 +8102,464 @@ var component_catalog_default = {
|
|
|
7602
8102
|
code: '<LogoMain color="mono-dark" />'
|
|
7603
8103
|
},
|
|
7604
8104
|
{
|
|
7605
|
-
title: "Mono Light",
|
|
7606
|
-
description: "White monochrome for dark backgrounds:",
|
|
7607
|
-
code: '<div class="bg-primary p-4">\n <LogoMain color="mono-light" />\n</div>'
|
|
8105
|
+
title: "Mono Light",
|
|
8106
|
+
description: "White monochrome for dark backgrounds:",
|
|
8107
|
+
code: '<div class="bg-primary p-4">\n <LogoMain color="mono-light" />\n</div>'
|
|
8108
|
+
},
|
|
8109
|
+
{
|
|
8110
|
+
title: "Header Logo",
|
|
8111
|
+
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>'
|
|
8112
|
+
},
|
|
8113
|
+
{
|
|
8114
|
+
title: "Footer Logo",
|
|
8115
|
+
code: '<footer class="bg-gray-900 py-8">\n <LogoMain color="light" size="sm" />\n</footer>'
|
|
8116
|
+
},
|
|
8117
|
+
{
|
|
8118
|
+
title: "Login Page Logo",
|
|
8119
|
+
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>'
|
|
8120
|
+
},
|
|
8121
|
+
{
|
|
8122
|
+
title: "Sidebar Collapsed Logo",
|
|
8123
|
+
code: `<LogoMain variant={sidebarCollapsed ? 'icon' : 'horizontal'} size="md" />`
|
|
8124
|
+
},
|
|
8125
|
+
{
|
|
8126
|
+
title: "Development Environment",
|
|
8127
|
+
code: "<LogoMain environment={import.meta.env.MODE === 'production' ? undefined : 'dev'} />"
|
|
8128
|
+
}
|
|
8129
|
+
],
|
|
8130
|
+
relatedComponents: [
|
|
8131
|
+
"LoadingLogo",
|
|
8132
|
+
"Header",
|
|
8133
|
+
"Sidebar"
|
|
8134
|
+
]
|
|
8135
|
+
},
|
|
8136
|
+
{
|
|
8137
|
+
name: "MediaCarousel",
|
|
8138
|
+
description: "Swipeable media slides with dots, thumbnails, and optional autoplay",
|
|
8139
|
+
category: "media",
|
|
8140
|
+
importPath: "@classic-homes/theme-svelte",
|
|
8141
|
+
props: [
|
|
8142
|
+
{
|
|
8143
|
+
name: "items",
|
|
8144
|
+
type: "MediaItem[]",
|
|
8145
|
+
required: false,
|
|
8146
|
+
description: "Slides to display"
|
|
8147
|
+
},
|
|
8148
|
+
{
|
|
8149
|
+
name: "label",
|
|
8150
|
+
type: "string",
|
|
8151
|
+
default: "'Media carousel'",
|
|
8152
|
+
required: false,
|
|
8153
|
+
description: "Accessible name for the carousel"
|
|
8154
|
+
},
|
|
8155
|
+
{
|
|
8156
|
+
name: "index",
|
|
8157
|
+
type: "number",
|
|
8158
|
+
default: "0",
|
|
8159
|
+
required: false,
|
|
8160
|
+
description: "Current slide index (bindable)"
|
|
8161
|
+
},
|
|
8162
|
+
{
|
|
8163
|
+
name: "ratio",
|
|
8164
|
+
type: "'square' | 'video' | 'photo' | 'portrait' | 'wide' | number",
|
|
8165
|
+
default: "'video'",
|
|
8166
|
+
required: false,
|
|
8167
|
+
description: "Aspect ratio of each slide"
|
|
8168
|
+
},
|
|
8169
|
+
{
|
|
8170
|
+
name: "loop",
|
|
8171
|
+
type: "boolean",
|
|
8172
|
+
default: "false",
|
|
8173
|
+
required: false,
|
|
8174
|
+
description: "Wrap from the last slide back to the first"
|
|
8175
|
+
},
|
|
8176
|
+
{
|
|
8177
|
+
name: "showDots",
|
|
8178
|
+
type: "boolean",
|
|
8179
|
+
default: "true",
|
|
8180
|
+
required: false,
|
|
8181
|
+
description: "Show dot indicators below the track"
|
|
8182
|
+
},
|
|
8183
|
+
{
|
|
8184
|
+
name: "showThumbnails",
|
|
8185
|
+
type: "boolean",
|
|
8186
|
+
default: "false",
|
|
8187
|
+
required: false,
|
|
8188
|
+
description: "Show a thumbnail strip instead of the dots"
|
|
8189
|
+
},
|
|
8190
|
+
{
|
|
8191
|
+
name: "showCaption",
|
|
8192
|
+
type: "boolean",
|
|
8193
|
+
default: "true",
|
|
8194
|
+
required: false,
|
|
8195
|
+
description: "Show the active slide's caption"
|
|
8196
|
+
},
|
|
8197
|
+
{
|
|
8198
|
+
name: "autoplay",
|
|
8199
|
+
type: "boolean",
|
|
8200
|
+
default: "false",
|
|
8201
|
+
required: false,
|
|
8202
|
+
description: "Advance automatically"
|
|
8203
|
+
},
|
|
8204
|
+
{
|
|
8205
|
+
name: "autoplayInterval",
|
|
8206
|
+
type: "number",
|
|
8207
|
+
default: "5000",
|
|
8208
|
+
required: false,
|
|
8209
|
+
description: "Milliseconds between automatic advances"
|
|
8210
|
+
},
|
|
8211
|
+
{
|
|
8212
|
+
name: "onIndexChange",
|
|
8213
|
+
type: "(index: number) => void",
|
|
8214
|
+
required: false,
|
|
8215
|
+
description: "Called when the active slide changes"
|
|
8216
|
+
},
|
|
8217
|
+
{
|
|
8218
|
+
name: "class",
|
|
8219
|
+
type: "string",
|
|
8220
|
+
required: false,
|
|
8221
|
+
description: "Additional CSS classes"
|
|
8222
|
+
}
|
|
8223
|
+
],
|
|
8224
|
+
variants: [
|
|
8225
|
+
{
|
|
8226
|
+
name: "ratio",
|
|
8227
|
+
values: [
|
|
8228
|
+
"square",
|
|
8229
|
+
"video",
|
|
8230
|
+
"photo",
|
|
8231
|
+
"portrait",
|
|
8232
|
+
"wide"
|
|
8233
|
+
],
|
|
8234
|
+
default: "video"
|
|
8235
|
+
}
|
|
8236
|
+
],
|
|
8237
|
+
slots: [
|
|
8238
|
+
{
|
|
8239
|
+
name: "children",
|
|
8240
|
+
description: "Main content",
|
|
8241
|
+
required: false
|
|
8242
|
+
}
|
|
8243
|
+
],
|
|
8244
|
+
events: [],
|
|
8245
|
+
examples: [
|
|
8246
|
+
{
|
|
8247
|
+
title: "Basic Usage",
|
|
8248
|
+
code: '<MediaCarousel items={photos} label="Project gallery" />'
|
|
8249
|
+
}
|
|
8250
|
+
],
|
|
8251
|
+
relatedComponents: [
|
|
8252
|
+
"MediaGrid",
|
|
8253
|
+
"Lightbox",
|
|
8254
|
+
"Image",
|
|
8255
|
+
"Video"
|
|
8256
|
+
]
|
|
8257
|
+
},
|
|
8258
|
+
{
|
|
8259
|
+
name: "MediaEmbed",
|
|
8260
|
+
description: "Lazy YouTube, Vimeo, Cloudflare Stream, and Matterport embeds that load nothing until clicked",
|
|
8261
|
+
category: "media",
|
|
8262
|
+
importPath: "@classic-homes/theme-svelte",
|
|
8263
|
+
props: [
|
|
8264
|
+
{
|
|
8265
|
+
name: "url",
|
|
8266
|
+
type: "string",
|
|
8267
|
+
required: false,
|
|
8268
|
+
description: "Full provider URL; ignored when `provider` and `videoId` are set"
|
|
8269
|
+
},
|
|
8270
|
+
{
|
|
8271
|
+
name: "provider",
|
|
8272
|
+
type: "'youtube' | 'vimeo' | 'cloudflare' | 'matterport'",
|
|
8273
|
+
required: false,
|
|
8274
|
+
description: "Hosting provider"
|
|
8275
|
+
},
|
|
8276
|
+
{
|
|
8277
|
+
name: "videoId",
|
|
8278
|
+
type: "string",
|
|
8279
|
+
required: false,
|
|
8280
|
+
description: "Provider-specific video identifier"
|
|
8281
|
+
},
|
|
8282
|
+
{
|
|
8283
|
+
name: "title",
|
|
8284
|
+
type: "string",
|
|
8285
|
+
required: false,
|
|
8286
|
+
description: "Accessible name for the player; required"
|
|
8287
|
+
},
|
|
8288
|
+
{
|
|
8289
|
+
name: "poster",
|
|
8290
|
+
type: "string",
|
|
8291
|
+
required: false,
|
|
8292
|
+
description: "Poster image; derived for YouTube and Stream, required for Vimeo"
|
|
8293
|
+
},
|
|
8294
|
+
{
|
|
8295
|
+
name: "privacy",
|
|
8296
|
+
type: "boolean",
|
|
8297
|
+
default: "true",
|
|
8298
|
+
required: false,
|
|
8299
|
+
description: "Route YouTube through the no-cookie domain"
|
|
8300
|
+
},
|
|
8301
|
+
{
|
|
8302
|
+
name: "start",
|
|
8303
|
+
type: "number",
|
|
8304
|
+
required: false,
|
|
8305
|
+
description: "Start offset in seconds"
|
|
8306
|
+
},
|
|
8307
|
+
{
|
|
8308
|
+
name: "showRelated",
|
|
8309
|
+
type: "boolean",
|
|
8310
|
+
default: "false",
|
|
8311
|
+
required: false,
|
|
8312
|
+
description: "Show the provider's related-video suggestions"
|
|
8313
|
+
},
|
|
8314
|
+
{
|
|
8315
|
+
name: "customerCode",
|
|
8316
|
+
type: "string",
|
|
8317
|
+
required: false,
|
|
8318
|
+
description: "Cloudflare Stream customer code; required for that provider"
|
|
8319
|
+
},
|
|
8320
|
+
{
|
|
8321
|
+
name: "domain",
|
|
8322
|
+
type: "string",
|
|
8323
|
+
required: false,
|
|
8324
|
+
description: "Custom hostname serving Cloudflare Stream"
|
|
8325
|
+
},
|
|
8326
|
+
{
|
|
8327
|
+
name: "primaryColor",
|
|
8328
|
+
type: "string",
|
|
8329
|
+
required: false,
|
|
8330
|
+
description: "Accent colour for the Cloudflare player UI"
|
|
8331
|
+
},
|
|
8332
|
+
{
|
|
8333
|
+
name: "letterboxColor",
|
|
8334
|
+
type: "string",
|
|
8335
|
+
required: false,
|
|
8336
|
+
description: "Letterbox colour for the Cloudflare player"
|
|
8337
|
+
},
|
|
8338
|
+
{
|
|
8339
|
+
name: "defaultTextTrack",
|
|
8340
|
+
type: "string",
|
|
8341
|
+
required: false,
|
|
8342
|
+
description: "BCP-47 code of the captions track the Cloudflare player enables"
|
|
8343
|
+
},
|
|
8344
|
+
{
|
|
8345
|
+
name: "modelId",
|
|
8346
|
+
type: "string",
|
|
8347
|
+
required: false,
|
|
8348
|
+
description: "Matterport space id; an alias for `videoId`"
|
|
8349
|
+
},
|
|
8350
|
+
{
|
|
8351
|
+
name: "matterport",
|
|
8352
|
+
type: "MatterportPlayerOptions",
|
|
8353
|
+
required: false,
|
|
8354
|
+
description: "Showcase options for the Matterport player"
|
|
8355
|
+
},
|
|
8356
|
+
{
|
|
8357
|
+
name: "fetchMetadata",
|
|
8358
|
+
type: "boolean",
|
|
8359
|
+
default: "false",
|
|
8360
|
+
required: false,
|
|
8361
|
+
description: "Look up the space's preview image and name from Matterport"
|
|
8362
|
+
},
|
|
8363
|
+
{
|
|
8364
|
+
name: "ratio",
|
|
8365
|
+
type: "'square' | 'video' | 'photo' | 'portrait' | 'wide' | number",
|
|
8366
|
+
default: "'video'",
|
|
8367
|
+
required: false,
|
|
8368
|
+
description: "Aspect ratio of the embed box"
|
|
8369
|
+
},
|
|
8370
|
+
{
|
|
8371
|
+
name: "eager",
|
|
8372
|
+
type: "boolean",
|
|
8373
|
+
default: "false",
|
|
8374
|
+
required: false,
|
|
8375
|
+
description: "Load the iframe immediately instead of showing a facade"
|
|
8376
|
+
},
|
|
8377
|
+
{
|
|
8378
|
+
name: "class",
|
|
8379
|
+
type: "string",
|
|
8380
|
+
required: false,
|
|
8381
|
+
description: "Additional CSS classes"
|
|
8382
|
+
}
|
|
8383
|
+
],
|
|
8384
|
+
variants: [
|
|
8385
|
+
{
|
|
8386
|
+
name: "provider",
|
|
8387
|
+
values: [
|
|
8388
|
+
"youtube",
|
|
8389
|
+
"vimeo",
|
|
8390
|
+
"cloudflare",
|
|
8391
|
+
"matterport"
|
|
8392
|
+
]
|
|
8393
|
+
},
|
|
8394
|
+
{
|
|
8395
|
+
name: "ratio",
|
|
8396
|
+
values: [
|
|
8397
|
+
"square",
|
|
8398
|
+
"video",
|
|
8399
|
+
"photo",
|
|
8400
|
+
"portrait",
|
|
8401
|
+
"wide"
|
|
8402
|
+
],
|
|
8403
|
+
default: "video"
|
|
8404
|
+
}
|
|
8405
|
+
],
|
|
8406
|
+
slots: [
|
|
8407
|
+
{
|
|
8408
|
+
name: "children",
|
|
8409
|
+
description: "Main content",
|
|
8410
|
+
required: false
|
|
8411
|
+
}
|
|
8412
|
+
],
|
|
8413
|
+
events: [],
|
|
8414
|
+
examples: [
|
|
8415
|
+
{
|
|
8416
|
+
title: "Basic Usage",
|
|
8417
|
+
code: '<MediaEmbed url="https://youtu.be/dQw4w9WgXcQ" title="Never Gonna Give You Up" />'
|
|
8418
|
+
},
|
|
8419
|
+
{
|
|
8420
|
+
title: "Tour thumbnails",
|
|
8421
|
+
description: "Matterport publishes no oEmbed endpoint and no derivable thumbnail URL, so a tour facade shows a deliberate placeholder unless you give it one:",
|
|
8422
|
+
code: '<MediaEmbed provider="matterport" modelId="SxQL3iGyoDo" title="Show home" poster="/tour.jpg" />'
|
|
8423
|
+
}
|
|
8424
|
+
],
|
|
8425
|
+
relatedComponents: [
|
|
8426
|
+
"Video",
|
|
8427
|
+
"AspectRatio",
|
|
8428
|
+
"MediaCarousel"
|
|
8429
|
+
]
|
|
8430
|
+
},
|
|
8431
|
+
{
|
|
8432
|
+
name: "MediaGrid",
|
|
8433
|
+
description: "Responsive gallery of media thumbnails with keyboard navigation",
|
|
8434
|
+
category: "media",
|
|
8435
|
+
importPath: "@classic-homes/theme-svelte",
|
|
8436
|
+
props: [
|
|
8437
|
+
{
|
|
8438
|
+
name: "items",
|
|
8439
|
+
type: "MediaItem[]",
|
|
8440
|
+
required: false,
|
|
8441
|
+
description: "Items to display"
|
|
8442
|
+
},
|
|
8443
|
+
{
|
|
8444
|
+
name: "label",
|
|
8445
|
+
type: "string",
|
|
8446
|
+
default: "'Media gallery'",
|
|
8447
|
+
required: false,
|
|
8448
|
+
description: "Accessible name for the gallery list"
|
|
8449
|
+
},
|
|
8450
|
+
{
|
|
8451
|
+
name: "variant",
|
|
8452
|
+
type: "'grid' | 'masonry'",
|
|
8453
|
+
default: "'grid'",
|
|
8454
|
+
required: false,
|
|
8455
|
+
description: "Uniform tiles, or natural heights via CSS columns"
|
|
8456
|
+
},
|
|
8457
|
+
{
|
|
8458
|
+
name: "columns",
|
|
8459
|
+
type: "MediaGridColumns",
|
|
8460
|
+
default: "{ base: 2, md: 3, lg: 4 }",
|
|
8461
|
+
required: false,
|
|
8462
|
+
description: "Column counts per breakpoint"
|
|
8463
|
+
},
|
|
8464
|
+
{
|
|
8465
|
+
name: "gap",
|
|
8466
|
+
type: "'none' | 'sm' | 'md' | 'lg'",
|
|
8467
|
+
default: "'md'",
|
|
8468
|
+
required: false,
|
|
8469
|
+
description: "Gap between tiles"
|
|
8470
|
+
},
|
|
8471
|
+
{
|
|
8472
|
+
name: "ratio",
|
|
8473
|
+
type: "'square' | 'video' | 'photo' | 'portrait' | 'wide' | number",
|
|
8474
|
+
default: "'square'",
|
|
8475
|
+
required: false,
|
|
8476
|
+
description: "Aspect ratio of each tile; ignored in `masonry`"
|
|
8477
|
+
},
|
|
8478
|
+
{
|
|
8479
|
+
name: "lightbox",
|
|
8480
|
+
type: "boolean",
|
|
8481
|
+
default: "true",
|
|
8482
|
+
required: false,
|
|
8483
|
+
description: "Open the built-in lightbox on selection"
|
|
7608
8484
|
},
|
|
7609
8485
|
{
|
|
7610
|
-
|
|
7611
|
-
|
|
8486
|
+
name: "singleTabStop",
|
|
8487
|
+
type: "boolean",
|
|
8488
|
+
default: "true",
|
|
8489
|
+
required: false,
|
|
8490
|
+
description: "Keep the gallery to one tab stop and move with the arrow keys"
|
|
7612
8491
|
},
|
|
7613
8492
|
{
|
|
7614
|
-
|
|
7615
|
-
|
|
8493
|
+
name: "onSelect",
|
|
8494
|
+
type: "(index: number, item: MediaItem) => void",
|
|
8495
|
+
required: false,
|
|
8496
|
+
description: "Called with the selected index and item"
|
|
7616
8497
|
},
|
|
7617
8498
|
{
|
|
7618
|
-
|
|
7619
|
-
|
|
8499
|
+
name: "class",
|
|
8500
|
+
type: "string",
|
|
8501
|
+
required: false,
|
|
8502
|
+
description: "Additional CSS classes"
|
|
8503
|
+
}
|
|
8504
|
+
],
|
|
8505
|
+
variants: [
|
|
8506
|
+
{
|
|
8507
|
+
name: "variant",
|
|
8508
|
+
values: [
|
|
8509
|
+
"grid",
|
|
8510
|
+
"masonry"
|
|
8511
|
+
],
|
|
8512
|
+
default: "grid"
|
|
7620
8513
|
},
|
|
7621
8514
|
{
|
|
7622
|
-
|
|
7623
|
-
|
|
8515
|
+
name: "gap",
|
|
8516
|
+
values: [
|
|
8517
|
+
"none",
|
|
8518
|
+
"sm",
|
|
8519
|
+
"md",
|
|
8520
|
+
"lg"
|
|
8521
|
+
],
|
|
8522
|
+
default: "md"
|
|
7624
8523
|
},
|
|
7625
8524
|
{
|
|
7626
|
-
|
|
7627
|
-
|
|
8525
|
+
name: "ratio",
|
|
8526
|
+
values: [
|
|
8527
|
+
"square",
|
|
8528
|
+
"video",
|
|
8529
|
+
"photo",
|
|
8530
|
+
"portrait",
|
|
8531
|
+
"wide"
|
|
8532
|
+
],
|
|
8533
|
+
default: "square"
|
|
8534
|
+
}
|
|
8535
|
+
],
|
|
8536
|
+
slots: [
|
|
8537
|
+
{
|
|
8538
|
+
name: "children",
|
|
8539
|
+
description: "Main content",
|
|
8540
|
+
required: false
|
|
8541
|
+
}
|
|
8542
|
+
],
|
|
8543
|
+
events: [],
|
|
8544
|
+
examples: [
|
|
8545
|
+
{
|
|
8546
|
+
title: "Basic Usage",
|
|
8547
|
+
code: `<script>
|
|
8548
|
+
const photos = [
|
|
8549
|
+
{ id: '1', kind: 'image', src: '/one.jpg', alt: 'Front elevation' },
|
|
8550
|
+
{ id: '2', kind: 'image', src: '/two.jpg', alt: 'Kitchen' },
|
|
8551
|
+
{ id: '3', kind: 'video', src: '/tour.mp4', poster: '/tour.jpg', title: 'Walkthrough' },
|
|
8552
|
+
];
|
|
8553
|
+
</script>
|
|
8554
|
+
|
|
8555
|
+
<MediaGrid items={photos} label="Project photos" />`
|
|
7628
8556
|
}
|
|
7629
8557
|
],
|
|
7630
8558
|
relatedComponents: [
|
|
7631
|
-
"
|
|
7632
|
-
"
|
|
7633
|
-
"
|
|
8559
|
+
"Lightbox",
|
|
8560
|
+
"MediaCarousel",
|
|
8561
|
+
"Image",
|
|
8562
|
+
"AspectRatio"
|
|
7634
8563
|
]
|
|
7635
8564
|
},
|
|
7636
8565
|
{
|
|
@@ -10398,7 +11327,27 @@ var component_catalog_default = {
|
|
|
10398
11327
|
name: "userRoles",
|
|
10399
11328
|
type: "string[]",
|
|
10400
11329
|
required: false,
|
|
10401
|
-
description: "
|
|
11330
|
+
description: "Every role the user holds"
|
|
11331
|
+
},
|
|
11332
|
+
{
|
|
11333
|
+
name: "userPermissions",
|
|
11334
|
+
type: "string[]",
|
|
11335
|
+
required: false,
|
|
11336
|
+
description: "Every permission the user holds"
|
|
11337
|
+
},
|
|
11338
|
+
{
|
|
11339
|
+
name: "requireAllRoles",
|
|
11340
|
+
type: "boolean",
|
|
11341
|
+
default: "false",
|
|
11342
|
+
required: false,
|
|
11343
|
+
description: "Require ALL of an item's roles rather than any"
|
|
11344
|
+
},
|
|
11345
|
+
{
|
|
11346
|
+
name: "requireAllPermissions",
|
|
11347
|
+
type: "boolean",
|
|
11348
|
+
default: "false",
|
|
11349
|
+
required: false,
|
|
11350
|
+
description: "Require ALL of an item's permissions rather than any"
|
|
10402
11351
|
},
|
|
10403
11352
|
{
|
|
10404
11353
|
name: "collapsed",
|
|
@@ -12360,99 +13309,297 @@ var component_catalog_default = {
|
|
|
12360
13309
|
type: "boolean",
|
|
12361
13310
|
default: "true",
|
|
12362
13311
|
required: false,
|
|
12363
|
-
description: "Show tooltip on hover"
|
|
13312
|
+
description: "Show tooltip on hover"
|
|
13313
|
+
}
|
|
13314
|
+
],
|
|
13315
|
+
variants: [
|
|
13316
|
+
{
|
|
13317
|
+
name: "theme",
|
|
13318
|
+
values: [
|
|
13319
|
+
"light",
|
|
13320
|
+
"dark",
|
|
13321
|
+
"auto"
|
|
13322
|
+
],
|
|
13323
|
+
default: "auto"
|
|
13324
|
+
}
|
|
13325
|
+
],
|
|
13326
|
+
slots: [],
|
|
13327
|
+
events: [],
|
|
13328
|
+
examples: [
|
|
13329
|
+
{
|
|
13330
|
+
title: "Basic Usage",
|
|
13331
|
+
code: `<script>
|
|
13332
|
+
import { TreemapChart } from '@classic-homes/charts-svelte';
|
|
13333
|
+
|
|
13334
|
+
const data = [
|
|
13335
|
+
{
|
|
13336
|
+
name: 'Frontend',
|
|
13337
|
+
children: [
|
|
13338
|
+
{ name: 'React', value: 40 },
|
|
13339
|
+
{ name: 'Vue', value: 30 },
|
|
13340
|
+
{ name: 'Svelte', value: 20 },
|
|
13341
|
+
],
|
|
13342
|
+
},
|
|
13343
|
+
{
|
|
13344
|
+
name: 'Backend',
|
|
13345
|
+
children: [
|
|
13346
|
+
{ name: 'Node.js', value: 35 },
|
|
13347
|
+
{ name: 'Python', value: 25 },
|
|
13348
|
+
],
|
|
13349
|
+
},
|
|
13350
|
+
];
|
|
13351
|
+
</script>
|
|
13352
|
+
|
|
13353
|
+
<TreemapChart title="Tech Stack" {data} height={400} />`
|
|
13354
|
+
},
|
|
13355
|
+
{
|
|
13356
|
+
title: "File System",
|
|
13357
|
+
code: `<TreemapChart
|
|
13358
|
+
title="Disk Usage"
|
|
13359
|
+
data={[
|
|
13360
|
+
{
|
|
13361
|
+
name: 'Documents',
|
|
13362
|
+
children: [
|
|
13363
|
+
{ name: 'PDFs', value: 500 },
|
|
13364
|
+
{ name: 'Images', value: 300 },
|
|
13365
|
+
{ name: 'Videos', value: 2000 },
|
|
13366
|
+
],
|
|
13367
|
+
},
|
|
13368
|
+
{
|
|
13369
|
+
name: 'Applications',
|
|
13370
|
+
children: [
|
|
13371
|
+
{ name: 'Development', value: 1500 },
|
|
13372
|
+
{ name: 'Productivity', value: 800 },
|
|
13373
|
+
],
|
|
13374
|
+
},
|
|
13375
|
+
]}
|
|
13376
|
+
/>`
|
|
13377
|
+
},
|
|
13378
|
+
{
|
|
13379
|
+
title: "Budget Breakdown",
|
|
13380
|
+
code: `<TreemapChart
|
|
13381
|
+
title="Department Budget"
|
|
13382
|
+
data={[
|
|
13383
|
+
{
|
|
13384
|
+
name: 'Engineering',
|
|
13385
|
+
children: [
|
|
13386
|
+
{ name: 'Salaries', value: 500000 },
|
|
13387
|
+
{ name: 'Equipment', value: 100000 },
|
|
13388
|
+
{ name: 'Training', value: 50000 },
|
|
13389
|
+
],
|
|
13390
|
+
},
|
|
13391
|
+
{
|
|
13392
|
+
name: 'Marketing',
|
|
13393
|
+
children: [
|
|
13394
|
+
{ name: 'Advertising', value: 200000 },
|
|
13395
|
+
{ name: 'Events', value: 75000 },
|
|
13396
|
+
],
|
|
13397
|
+
},
|
|
13398
|
+
]}
|
|
13399
|
+
/>`
|
|
13400
|
+
}
|
|
13401
|
+
],
|
|
13402
|
+
relatedComponents: [
|
|
13403
|
+
"PieChart",
|
|
13404
|
+
"SankeyChart"
|
|
13405
|
+
]
|
|
13406
|
+
},
|
|
13407
|
+
{
|
|
13408
|
+
name: "Video",
|
|
13409
|
+
description: "Video player with themed controls and full keyboard support",
|
|
13410
|
+
category: "media",
|
|
13411
|
+
importPath: "@classic-homes/theme-svelte",
|
|
13412
|
+
props: [
|
|
13413
|
+
{
|
|
13414
|
+
name: "item",
|
|
13415
|
+
type: "VideoMediaItem",
|
|
13416
|
+
required: false,
|
|
13417
|
+
description: "Supplies `src`, `poster`, `tracks`, and the label in one object"
|
|
13418
|
+
},
|
|
13419
|
+
{
|
|
13420
|
+
name: "src",
|
|
13421
|
+
type: "string | MediaSource[]",
|
|
13422
|
+
required: false,
|
|
13423
|
+
description: "A single URL, or several sources for format fallback"
|
|
13424
|
+
},
|
|
13425
|
+
{
|
|
13426
|
+
name: "poster",
|
|
13427
|
+
type: "string",
|
|
13428
|
+
required: false,
|
|
13429
|
+
description: "Image shown before playback starts"
|
|
13430
|
+
},
|
|
13431
|
+
{
|
|
13432
|
+
name: "tracks",
|
|
13433
|
+
type: "MediaTextTrack[]",
|
|
13434
|
+
default: "[]",
|
|
13435
|
+
required: false,
|
|
13436
|
+
description: "Caption and subtitle tracks"
|
|
13437
|
+
},
|
|
13438
|
+
{
|
|
13439
|
+
name: "label",
|
|
13440
|
+
type: "string",
|
|
13441
|
+
default: "'Video player'",
|
|
13442
|
+
required: false,
|
|
13443
|
+
description: "Accessible name for the player region"
|
|
13444
|
+
},
|
|
13445
|
+
{
|
|
13446
|
+
name: "ratio",
|
|
13447
|
+
type: "'square' | 'video' | 'photo' | 'portrait' | 'wide' | number",
|
|
13448
|
+
default: "'video'",
|
|
13449
|
+
required: false,
|
|
13450
|
+
description: "Aspect ratio; pass `null` to size from the content"
|
|
13451
|
+
},
|
|
13452
|
+
{
|
|
13453
|
+
name: "fit",
|
|
13454
|
+
type: "'cover' | 'contain' | 'fill' | 'none' | 'scale-down'",
|
|
13455
|
+
default: "'contain'",
|
|
13456
|
+
required: false,
|
|
13457
|
+
description: "How the video fills its box"
|
|
13458
|
+
},
|
|
13459
|
+
{
|
|
13460
|
+
name: "autoplay",
|
|
13461
|
+
type: "boolean",
|
|
13462
|
+
default: "false",
|
|
13463
|
+
required: false,
|
|
13464
|
+
description: "Start playing automatically; implies `muted`"
|
|
13465
|
+
},
|
|
13466
|
+
{
|
|
13467
|
+
name: "muted",
|
|
13468
|
+
type: "boolean",
|
|
13469
|
+
default: "false",
|
|
13470
|
+
required: false,
|
|
13471
|
+
description: "Start muted"
|
|
13472
|
+
},
|
|
13473
|
+
{
|
|
13474
|
+
name: "loop",
|
|
13475
|
+
type: "boolean",
|
|
13476
|
+
default: "false",
|
|
13477
|
+
required: false,
|
|
13478
|
+
description: "Loop playback"
|
|
13479
|
+
},
|
|
13480
|
+
{
|
|
13481
|
+
name: "volume",
|
|
13482
|
+
type: "number",
|
|
13483
|
+
default: "1",
|
|
13484
|
+
required: false,
|
|
13485
|
+
description: "Initial volume, 0 to 1"
|
|
13486
|
+
},
|
|
13487
|
+
{
|
|
13488
|
+
name: "preload",
|
|
13489
|
+
type: "'none' | 'metadata' | 'auto'",
|
|
13490
|
+
default: "'metadata'",
|
|
13491
|
+
required: false,
|
|
13492
|
+
description: "How much to preload"
|
|
13493
|
+
},
|
|
13494
|
+
{
|
|
13495
|
+
name: "hideControls",
|
|
13496
|
+
type: "boolean",
|
|
13497
|
+
default: "false",
|
|
13498
|
+
required: false,
|
|
13499
|
+
description: "Hide the control bar entirely"
|
|
13500
|
+
},
|
|
13501
|
+
{
|
|
13502
|
+
name: "showPictureInPicture",
|
|
13503
|
+
type: "boolean",
|
|
13504
|
+
default: "true",
|
|
13505
|
+
required: false,
|
|
13506
|
+
description: "Show the picture-in-picture button"
|
|
13507
|
+
},
|
|
13508
|
+
{
|
|
13509
|
+
name: "showFullscreen",
|
|
13510
|
+
type: "boolean",
|
|
13511
|
+
default: "true",
|
|
13512
|
+
required: false,
|
|
13513
|
+
description: "Show the fullscreen button"
|
|
13514
|
+
},
|
|
13515
|
+
{
|
|
13516
|
+
name: "onEnded",
|
|
13517
|
+
type: "() => void",
|
|
13518
|
+
required: false,
|
|
13519
|
+
description: "Called when playback ends"
|
|
13520
|
+
},
|
|
13521
|
+
{
|
|
13522
|
+
name: "onTimeUpdate",
|
|
13523
|
+
type: "(currentTime: number) => void",
|
|
13524
|
+
required: false,
|
|
13525
|
+
description: "Called on each time update, with seconds elapsed"
|
|
13526
|
+
},
|
|
13527
|
+
{
|
|
13528
|
+
name: "hlsLoader",
|
|
13529
|
+
type: "() => Promise<HlsConstructor>",
|
|
13530
|
+
required: false,
|
|
13531
|
+
description: "Per-player hls.js loader, overriding the registered one"
|
|
13532
|
+
},
|
|
13533
|
+
{
|
|
13534
|
+
name: "hlsConfig",
|
|
13535
|
+
type: "Record<string, unknown>",
|
|
13536
|
+
required: false,
|
|
13537
|
+
description: "Extra hls.js configuration"
|
|
13538
|
+
},
|
|
13539
|
+
{
|
|
13540
|
+
name: "class",
|
|
13541
|
+
type: "string",
|
|
13542
|
+
required: false,
|
|
13543
|
+
description: "Additional CSS classes"
|
|
12364
13544
|
}
|
|
12365
13545
|
],
|
|
12366
13546
|
variants: [
|
|
12367
13547
|
{
|
|
12368
|
-
name: "
|
|
13548
|
+
name: "ratio",
|
|
12369
13549
|
values: [
|
|
12370
|
-
"
|
|
12371
|
-
"
|
|
13550
|
+
"square",
|
|
13551
|
+
"video",
|
|
13552
|
+
"photo",
|
|
13553
|
+
"portrait",
|
|
13554
|
+
"wide"
|
|
13555
|
+
],
|
|
13556
|
+
default: "video"
|
|
13557
|
+
},
|
|
13558
|
+
{
|
|
13559
|
+
name: "fit",
|
|
13560
|
+
values: [
|
|
13561
|
+
"cover",
|
|
13562
|
+
"contain",
|
|
13563
|
+
"fill",
|
|
13564
|
+
"none",
|
|
13565
|
+
"scale-down"
|
|
13566
|
+
],
|
|
13567
|
+
default: "contain"
|
|
13568
|
+
},
|
|
13569
|
+
{
|
|
13570
|
+
name: "preload",
|
|
13571
|
+
values: [
|
|
13572
|
+
"none",
|
|
13573
|
+
"metadata",
|
|
12372
13574
|
"auto"
|
|
12373
13575
|
],
|
|
12374
|
-
default: "
|
|
13576
|
+
default: "metadata"
|
|
13577
|
+
}
|
|
13578
|
+
],
|
|
13579
|
+
slots: [
|
|
13580
|
+
{
|
|
13581
|
+
name: "children",
|
|
13582
|
+
description: "Main content",
|
|
13583
|
+
required: false
|
|
12375
13584
|
}
|
|
12376
13585
|
],
|
|
12377
|
-
slots: [],
|
|
12378
13586
|
events: [],
|
|
12379
13587
|
examples: [
|
|
12380
13588
|
{
|
|
12381
13589
|
title: "Basic Usage",
|
|
12382
|
-
code: `<
|
|
12383
|
-
|
|
12384
|
-
|
|
12385
|
-
|
|
12386
|
-
|
|
12387
|
-
name: 'Frontend',
|
|
12388
|
-
children: [
|
|
12389
|
-
{ name: 'React', value: 40 },
|
|
12390
|
-
{ name: 'Vue', value: 30 },
|
|
12391
|
-
{ name: 'Svelte', value: 20 },
|
|
12392
|
-
],
|
|
12393
|
-
},
|
|
12394
|
-
{
|
|
12395
|
-
name: 'Backend',
|
|
12396
|
-
children: [
|
|
12397
|
-
{ name: 'Node.js', value: 35 },
|
|
12398
|
-
{ name: 'Python', value: 25 },
|
|
12399
|
-
],
|
|
12400
|
-
},
|
|
12401
|
-
];
|
|
12402
|
-
</script>
|
|
12403
|
-
|
|
12404
|
-
<TreemapChart title="Tech Stack" {data} height={400} />`
|
|
12405
|
-
},
|
|
12406
|
-
{
|
|
12407
|
-
title: "File System",
|
|
12408
|
-
code: `<TreemapChart
|
|
12409
|
-
title="Disk Usage"
|
|
12410
|
-
data={[
|
|
12411
|
-
{
|
|
12412
|
-
name: 'Documents',
|
|
12413
|
-
children: [
|
|
12414
|
-
{ name: 'PDFs', value: 500 },
|
|
12415
|
-
{ name: 'Images', value: 300 },
|
|
12416
|
-
{ name: 'Videos', value: 2000 },
|
|
12417
|
-
],
|
|
12418
|
-
},
|
|
12419
|
-
{
|
|
12420
|
-
name: 'Applications',
|
|
12421
|
-
children: [
|
|
12422
|
-
{ name: 'Development', value: 1500 },
|
|
12423
|
-
{ name: 'Productivity', value: 800 },
|
|
12424
|
-
],
|
|
12425
|
-
},
|
|
12426
|
-
]}
|
|
12427
|
-
/>`
|
|
12428
|
-
},
|
|
12429
|
-
{
|
|
12430
|
-
title: "Budget Breakdown",
|
|
12431
|
-
code: `<TreemapChart
|
|
12432
|
-
title="Department Budget"
|
|
12433
|
-
data={[
|
|
12434
|
-
{
|
|
12435
|
-
name: 'Engineering',
|
|
12436
|
-
children: [
|
|
12437
|
-
{ name: 'Salaries', value: 500000 },
|
|
12438
|
-
{ name: 'Equipment', value: 100000 },
|
|
12439
|
-
{ name: 'Training', value: 50000 },
|
|
12440
|
-
],
|
|
12441
|
-
},
|
|
12442
|
-
{
|
|
12443
|
-
name: 'Marketing',
|
|
12444
|
-
children: [
|
|
12445
|
-
{ name: 'Advertising', value: 200000 },
|
|
12446
|
-
{ name: 'Events', value: 75000 },
|
|
12447
|
-
],
|
|
12448
|
-
},
|
|
12449
|
-
]}
|
|
13590
|
+
code: `<Video
|
|
13591
|
+
src="/walkthrough.mp4"
|
|
13592
|
+
poster="/walkthrough.jpg"
|
|
13593
|
+
label="Product walkthrough"
|
|
13594
|
+
tracks={[{ src: '/walkthrough.en.vtt', srclang: 'en', label: 'English', default: true }]}
|
|
12450
13595
|
/>`
|
|
12451
13596
|
}
|
|
12452
13597
|
],
|
|
12453
13598
|
relatedComponents: [
|
|
12454
|
-
"
|
|
12455
|
-
"
|
|
13599
|
+
"Audio",
|
|
13600
|
+
"MediaEmbed",
|
|
13601
|
+
"Lightbox",
|
|
13602
|
+
"MediaCarousel"
|
|
12456
13603
|
]
|
|
12457
13604
|
}
|
|
12458
13605
|
]
|
|
@@ -12538,7 +13685,7 @@ function registerComponentResources(server) {
|
|
|
12538
13685
|
|
|
12539
13686
|
// src/data/token-definitions.json
|
|
12540
13687
|
var token_definitions_default = {
|
|
12541
|
-
version: "0.1
|
|
13688
|
+
version: "0.2.1",
|
|
12542
13689
|
colors: {
|
|
12543
13690
|
brand: [
|
|
12544
13691
|
{
|
|
@@ -13485,7 +14632,7 @@ function registerTokenResources(server) {
|
|
|
13485
14632
|
|
|
13486
14633
|
// src/data/styles-catalog.json
|
|
13487
14634
|
var styles_catalog_default = {
|
|
13488
|
-
version: "0.1
|
|
14635
|
+
version: "0.2.1",
|
|
13489
14636
|
package: "@classic-homes/theme-styles",
|
|
13490
14637
|
description: "Base CSS styles, accessibility features, and utility classes for the Classic Theme design system",
|
|
13491
14638
|
integration: {
|
|
@@ -13858,7 +15005,7 @@ import { ResourceTemplate as ResourceTemplate2 } from "@modelcontextprotocol/sdk
|
|
|
13858
15005
|
|
|
13859
15006
|
// src/data/pattern-library.json
|
|
13860
15007
|
var pattern_library_default = {
|
|
13861
|
-
version: "0.1
|
|
15008
|
+
version: "0.2.1",
|
|
13862
15009
|
layouts: [
|
|
13863
15010
|
{
|
|
13864
15011
|
id: "dashboard-page",
|
|
@@ -14968,7 +16115,7 @@ function registerLayoutResources(server) {
|
|
|
14968
16115
|
|
|
14969
16116
|
// src/data/schema-catalog.json
|
|
14970
16117
|
var schema_catalog_default = {
|
|
14971
|
-
version: "0.1
|
|
16118
|
+
version: "0.2.1",
|
|
14972
16119
|
packageName: "@classic-homes/theme-svelte",
|
|
14973
16120
|
importPath: "@classic-homes/theme-svelte",
|
|
14974
16121
|
generatedFrom: "packages/svelte/src/lib/schemas/index.ts",
|
|
@@ -15100,6 +16247,11 @@ var schema_catalog_default = {
|
|
|
15100
16247
|
description: "Auth Tokens type export",
|
|
15101
16248
|
importPath: "@classic-homes/theme-svelte"
|
|
15102
16249
|
},
|
|
16250
|
+
{
|
|
16251
|
+
name: "AuthUser",
|
|
16252
|
+
description: "Auth User type export",
|
|
16253
|
+
importPath: "@classic-homes/theme-svelte"
|
|
16254
|
+
},
|
|
15103
16255
|
{
|
|
15104
16256
|
name: "ChangePasswordFormData",
|
|
15105
16257
|
description: "Change Password Form Data type export",
|
|
@@ -15149,11 +16301,6 @@ var schema_catalog_default = {
|
|
|
15149
16301
|
name: "ResetPasswordFormData",
|
|
15150
16302
|
description: "Reset Password Form Data type export",
|
|
15151
16303
|
importPath: "@classic-homes/theme-svelte"
|
|
15152
|
-
},
|
|
15153
|
-
{
|
|
15154
|
-
name: "User",
|
|
15155
|
-
description: "User type export",
|
|
15156
|
-
importPath: "@classic-homes/theme-svelte"
|
|
15157
16304
|
}
|
|
15158
16305
|
]
|
|
15159
16306
|
},
|
|
@@ -15406,6 +16553,11 @@ var schema_catalog_default = {
|
|
|
15406
16553
|
description: "Auth tokens validation (accessToken, refreshToken)",
|
|
15407
16554
|
importPath: "@classic-homes/theme-svelte"
|
|
15408
16555
|
},
|
|
16556
|
+
{
|
|
16557
|
+
name: "AuthUser",
|
|
16558
|
+
description: "Auth User type export",
|
|
16559
|
+
importPath: "@classic-homes/theme-svelte"
|
|
16560
|
+
},
|
|
15409
16561
|
{
|
|
15410
16562
|
name: "ChangePasswordFormData",
|
|
15411
16563
|
description: "Change Password Form Data type export",
|
|
@@ -15706,11 +16858,6 @@ var schema_catalog_default = {
|
|
|
15706
16858
|
description: "URL validation",
|
|
15707
16859
|
importPath: "@classic-homes/theme-svelte"
|
|
15708
16860
|
},
|
|
15709
|
-
{
|
|
15710
|
-
name: "User",
|
|
15711
|
-
description: "User type export",
|
|
15712
|
-
importPath: "@classic-homes/theme-svelte"
|
|
15713
|
-
},
|
|
15714
16861
|
{
|
|
15715
16862
|
name: "usernameSchema",
|
|
15716
16863
|
description: "Username validation (3-30 chars, alphanumeric)",
|
|
@@ -15776,7 +16923,7 @@ import { ResourceTemplate as ResourceTemplate3 } from "@modelcontextprotocol/sdk
|
|
|
15776
16923
|
|
|
15777
16924
|
// src/data/auth-catalog.json
|
|
15778
16925
|
var auth_catalog_default = {
|
|
15779
|
-
version: "0.1
|
|
16926
|
+
version: "0.2.1",
|
|
15780
16927
|
packageName: "@classic-homes/auth",
|
|
15781
16928
|
description: "Authentication services and Svelte bindings for Classic Theme apps",
|
|
15782
16929
|
subpackages: {
|
|
@@ -16142,6 +17289,30 @@ var auth_catalog_default = {
|
|
|
16142
17289
|
name: "authApi.regenerateBackupCodes",
|
|
16143
17290
|
signature: "(password: string) => Promise<{ backupCodes: string[] }>",
|
|
16144
17291
|
description: "Regenerate MFA backup codes"
|
|
17292
|
+
},
|
|
17293
|
+
{
|
|
17294
|
+
name: "authApi.getUserRoles",
|
|
17295
|
+
signature: "(userId: string, customFetch?: typeof fetch) => Promise<UserRolesResponse>",
|
|
17296
|
+
description: "List a user's roles. Requires users:read.",
|
|
17297
|
+
example: "const { roles, primaryRole } = await authApi.getUserRoles(userId);"
|
|
17298
|
+
},
|
|
17299
|
+
{
|
|
17300
|
+
name: "authApi.grantUserRole",
|
|
17301
|
+
signature: "(userId: string, role: string) => Promise<UserRolesResponse>",
|
|
17302
|
+
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.",
|
|
17303
|
+
example: "await authApi.grantUserRole(userId, 'agent');"
|
|
17304
|
+
},
|
|
17305
|
+
{
|
|
17306
|
+
name: "authApi.revokeUserRole",
|
|
17307
|
+
signature: "(userId: string, role: string) => Promise<UserRolesResponse>",
|
|
17308
|
+
description: "Revoke a role from a user. Requires users:update. The server rejects removing a user's last role.",
|
|
17309
|
+
example: "await authApi.revokeUserRole(userId, 'agent');"
|
|
17310
|
+
},
|
|
17311
|
+
{
|
|
17312
|
+
name: "authApi.setUserRoles",
|
|
17313
|
+
signature: "(userId: string, roles: string[]) => Promise<User>",
|
|
17314
|
+
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.",
|
|
17315
|
+
example: "await authApi.setUserRoles(userId, ['manager', 'agent']);"
|
|
16145
17316
|
}
|
|
16146
17317
|
]
|
|
16147
17318
|
},
|
|
@@ -16282,6 +17453,65 @@ var auth_catalog_default = {
|
|
|
16282
17453
|
}
|
|
16283
17454
|
]
|
|
16284
17455
|
},
|
|
17456
|
+
roles: {
|
|
17457
|
+
description: "Role taxonomy and membership checks. A user holds a set of roles; their permissions are the union across all of them.",
|
|
17458
|
+
functions: [
|
|
17459
|
+
{
|
|
17460
|
+
name: "getUserRoles",
|
|
17461
|
+
signature: "(user: Pick<User, 'roles'> | null | undefined) => string[]",
|
|
17462
|
+
description: "Read a user's role set, returning [] for a null user or an absent field",
|
|
17463
|
+
example: "import { getUserRoles } from '@classic-homes/auth/core';\n\ngetUserRoles(user); // ['manager', 'agent']"
|
|
17464
|
+
},
|
|
17465
|
+
{
|
|
17466
|
+
name: "computePrimaryRole",
|
|
17467
|
+
signature: "(roles: readonly string[]) => RoleName",
|
|
17468
|
+
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'.",
|
|
17469
|
+
example: "import { computePrimaryRole } from '@classic-homes/auth/core';\n\ncomputePrimaryRole(['user', 'admin']); // 'admin'\ncomputePrimaryRole([]); // 'guest'"
|
|
17470
|
+
},
|
|
17471
|
+
{
|
|
17472
|
+
name: "getEffectiveLevel",
|
|
17473
|
+
signature: "(roles: readonly string[]) => number",
|
|
17474
|
+
description: "Effective privilege level - the max across all roles held. Unknown roles count as 0.",
|
|
17475
|
+
example: "import { getEffectiveLevel } from '@classic-homes/auth/core';\n\ngetEffectiveLevel(['user', 'manager']); // 3"
|
|
17476
|
+
},
|
|
17477
|
+
{
|
|
17478
|
+
name: "hasRole",
|
|
17479
|
+
signature: "(user: Pick<User, 'roles'> | null | undefined, role: string) => boolean",
|
|
17480
|
+
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.",
|
|
17481
|
+
example: "import { hasRole } from '@classic-homes/auth/core';\n\nhasRole(user, 'agent'); // true only if 'agent' is in user.roles"
|
|
17482
|
+
},
|
|
17483
|
+
{
|
|
17484
|
+
name: "hasAnyRole",
|
|
17485
|
+
signature: "(user: Pick<User, 'roles'> | null | undefined, roles: readonly string[]) => boolean",
|
|
17486
|
+
description: "Whether the user holds at least one of the given roles. An empty list matches nothing.",
|
|
17487
|
+
example: "import { hasAnyRole } from '@classic-homes/auth/core';\n\nhasAnyRole(user, ['admin', 'agent']);"
|
|
17488
|
+
},
|
|
17489
|
+
{
|
|
17490
|
+
name: "hasAllRoles",
|
|
17491
|
+
signature: "(user: Pick<User, 'roles'> | null | undefined, roles: readonly string[]) => boolean",
|
|
17492
|
+
description: "Whether the user holds every one of the given roles. An empty list matches vacuously.",
|
|
17493
|
+
example: "import { hasAllRoles } from '@classic-homes/auth/core';\n\nhasAllRoles(user, ['manager', 'agent']);"
|
|
17494
|
+
}
|
|
17495
|
+
],
|
|
17496
|
+
constants: [
|
|
17497
|
+
{
|
|
17498
|
+
name: "ROLE_NAMES",
|
|
17499
|
+
type: "readonly RoleName[]",
|
|
17500
|
+
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."
|
|
17501
|
+
},
|
|
17502
|
+
{
|
|
17503
|
+
name: "ROLE_HIERARCHY",
|
|
17504
|
+
type: "Record<string, number>",
|
|
17505
|
+
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."
|
|
17506
|
+
}
|
|
17507
|
+
],
|
|
17508
|
+
types: [
|
|
17509
|
+
{
|
|
17510
|
+
name: "RoleName",
|
|
17511
|
+
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."
|
|
17512
|
+
}
|
|
17513
|
+
]
|
|
17514
|
+
},
|
|
16285
17515
|
errors: {
|
|
16286
17516
|
description: "Custom error types for authentication operations",
|
|
16287
17517
|
functions: [
|
|
@@ -16467,23 +17697,17 @@ formatUserRoles(user, { lowercase: true }); // "admin, manager"`
|
|
|
16467
17697
|
required: false,
|
|
16468
17698
|
description: "Phone number"
|
|
16469
17699
|
},
|
|
16470
|
-
{
|
|
16471
|
-
name: "role",
|
|
16472
|
-
type: "string",
|
|
16473
|
-
required: true,
|
|
16474
|
-
description: "Primary role"
|
|
16475
|
-
},
|
|
16476
17700
|
{
|
|
16477
17701
|
name: "roles",
|
|
16478
17702
|
type: "string[]",
|
|
16479
|
-
required:
|
|
16480
|
-
description: "
|
|
17703
|
+
required: true,
|
|
17704
|
+
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."
|
|
16481
17705
|
},
|
|
16482
17706
|
{
|
|
16483
17707
|
name: "permissions",
|
|
16484
17708
|
type: "string[]",
|
|
16485
17709
|
required: true,
|
|
16486
|
-
description: "
|
|
17710
|
+
description: "Union of the permissions granted by every role in roles"
|
|
16487
17711
|
},
|
|
16488
17712
|
{
|
|
16489
17713
|
name: "isActive",
|
|
@@ -17446,6 +18670,30 @@ formatUserRoles(user, { lowercase: true }); // "admin, manager"`
|
|
|
17446
18670
|
description: "Total pages"
|
|
17447
18671
|
}
|
|
17448
18672
|
]
|
|
18673
|
+
},
|
|
18674
|
+
{
|
|
18675
|
+
name: "UserRolesResponse",
|
|
18676
|
+
description: "The result of reading or changing a user's roles",
|
|
18677
|
+
properties: [
|
|
18678
|
+
{
|
|
18679
|
+
name: "userId",
|
|
18680
|
+
type: "string",
|
|
18681
|
+
required: true,
|
|
18682
|
+
description: "The user whose roles these are"
|
|
18683
|
+
},
|
|
18684
|
+
{
|
|
18685
|
+
name: "roles",
|
|
18686
|
+
type: "string[]",
|
|
18687
|
+
required: true,
|
|
18688
|
+
description: "The user's full role set after the operation"
|
|
18689
|
+
},
|
|
18690
|
+
{
|
|
18691
|
+
name: "primaryRole",
|
|
18692
|
+
type: "string",
|
|
18693
|
+
required: true,
|
|
18694
|
+
description: "Highest-tier role in roles, as resolved by the server. A display label - actual access is the union of every role."
|
|
18695
|
+
}
|
|
18696
|
+
]
|
|
17449
18697
|
}
|
|
17450
18698
|
]
|
|
17451
18699
|
},
|
|
@@ -18712,7 +19960,7 @@ import { ResourceTemplate as ResourceTemplate4 } from "@modelcontextprotocol/sdk
|
|
|
18712
19960
|
|
|
18713
19961
|
// src/data/notifications-catalog.json
|
|
18714
19962
|
var notifications_catalog_default = {
|
|
18715
|
-
version: "0.1
|
|
19963
|
+
version: "0.2.1",
|
|
18716
19964
|
packageName: "@classic-homes/notifications",
|
|
18717
19965
|
description: "Notification services and Svelte bindings for Classic Theme apps",
|
|
18718
19966
|
subpackages: {
|
|
@@ -19624,7 +20872,7 @@ function registerNotificationsResources(server) {
|
|
|
19624
20872
|
|
|
19625
20873
|
// src/data/docs-catalog.json
|
|
19626
20874
|
var docs_catalog_default = {
|
|
19627
|
-
version: "0.1
|
|
20875
|
+
version: "0.2.1",
|
|
19628
20876
|
packageName: "@classic-homes/theme-docs",
|
|
19629
20877
|
description: "Markdown documentation components for the Classic theme system",
|
|
19630
20878
|
exports: {
|
|
@@ -20411,7 +21659,7 @@ var docs_catalog_default = {
|
|
|
20411
21659
|
dependencies: {
|
|
20412
21660
|
"@classic-homes/theme-tokens": "*",
|
|
20413
21661
|
clsx: "^2.1.0",
|
|
20414
|
-
"js-yaml": "^4.
|
|
21662
|
+
"js-yaml": "^4.3.2",
|
|
20415
21663
|
marked: "^17.0.0",
|
|
20416
21664
|
shiki: "^1.0.0",
|
|
20417
21665
|
"tailwind-merge": "^2.2.0",
|
|
@@ -20552,7 +21800,7 @@ function registerDocsResources(server) {
|
|
|
20552
21800
|
|
|
20553
21801
|
// src/data/charts-catalog.json
|
|
20554
21802
|
var charts_catalog_default = {
|
|
20555
|
-
version: "0.1
|
|
21803
|
+
version: "0.2.1",
|
|
20556
21804
|
packageName: "@classic-homes/charts-core",
|
|
20557
21805
|
description: "Core utilities, types, and themes for Classic Theme chart components",
|
|
20558
21806
|
subpackages: {
|
|
@@ -22389,7 +23637,7 @@ interface SankeyData {
|
|
|
22389
23637
|
|
|
22390
23638
|
// src/data/maps-catalog.json
|
|
22391
23639
|
var maps_catalog_default = {
|
|
22392
|
-
version: "0.1
|
|
23640
|
+
version: "0.2.1",
|
|
22393
23641
|
packageName: "@classic-homes/maps-core",
|
|
22394
23642
|
description: "Core utilities, types, and themes for Classic Theme MapLibre GL components",
|
|
22395
23643
|
subpackages: {
|
|
@@ -23289,6 +24537,178 @@ var maps_catalog_default = {
|
|
|
23289
24537
|
}
|
|
23290
24538
|
}
|
|
23291
24539
|
},
|
|
24540
|
+
route: {
|
|
24541
|
+
importPath: "@classic-homes/maps-core/route",
|
|
24542
|
+
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.",
|
|
24543
|
+
modules: {
|
|
24544
|
+
geo: {
|
|
24545
|
+
description: "Great-circle distance math. Crow-flies, NOT driving distance - label anything shown to a user as approximate.",
|
|
24546
|
+
functions: [
|
|
24547
|
+
{
|
|
24548
|
+
name: "haversineMiles",
|
|
24549
|
+
signature: "(a: LatLng, b: LatLng) => number",
|
|
24550
|
+
description: "Great-circle distance in statute miles. Returns NaN for non-finite input (null, undefined and numeric strings all count as non-finite)."
|
|
24551
|
+
},
|
|
24552
|
+
{
|
|
24553
|
+
name: "haversineKm",
|
|
24554
|
+
signature: "(a: LatLng, b: LatLng) => number",
|
|
24555
|
+
description: "Great-circle distance in kilometres"
|
|
24556
|
+
},
|
|
24557
|
+
{
|
|
24558
|
+
name: "distanceMatrix",
|
|
24559
|
+
signature: "(points: LatLng[]) => number[][]",
|
|
24560
|
+
description: "Symmetric distance matrix in miles with a zero diagonal"
|
|
24561
|
+
},
|
|
24562
|
+
{
|
|
24563
|
+
name: "EARTH_RADIUS_MILES",
|
|
24564
|
+
signature: "number",
|
|
24565
|
+
description: "Mean earth radius in statute miles (3958.7613)"
|
|
24566
|
+
},
|
|
24567
|
+
{
|
|
24568
|
+
name: "EARTH_RADIUS_KM",
|
|
24569
|
+
signature: "number",
|
|
24570
|
+
description: "Mean earth radius in kilometres (6371.0088)"
|
|
24571
|
+
}
|
|
24572
|
+
],
|
|
24573
|
+
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"
|
|
24574
|
+
},
|
|
24575
|
+
optimize: {
|
|
24576
|
+
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.",
|
|
24577
|
+
functions: [
|
|
24578
|
+
{
|
|
24579
|
+
name: "optimizeOrder",
|
|
24580
|
+
signature: "(origin: LatLng, points: LatLng[], opts?: { twoOpt?: boolean; maxPasses?: number }) => OrderResult",
|
|
24581
|
+
description: "Nearest-neighbour then 2-opt. The one function most callers need."
|
|
24582
|
+
},
|
|
24583
|
+
{
|
|
24584
|
+
name: "nearestNeighborOrder",
|
|
24585
|
+
signature: "(origin: LatLng, points: LatLng[]) => OrderResult",
|
|
24586
|
+
description: "Greedy nearest-neighbour ordering. Deterministic - ties break on the lower index. Non-finite coordinates are appended in input order, never dropped."
|
|
24587
|
+
},
|
|
24588
|
+
{
|
|
24589
|
+
name: "twoOptImprove",
|
|
24590
|
+
signature: "(origin: LatLng, points: LatLng[], order: number[], matrix: number[][], opts?: { maxPasses?: number }) => number[]",
|
|
24591
|
+
description: "Open-path 2-opt improvement over an existing order. O(n^2) per pass."
|
|
24592
|
+
},
|
|
24593
|
+
{
|
|
24594
|
+
name: "measureOrder",
|
|
24595
|
+
signature: "(origin: LatLng, points: LatLng[], order: number[]) => OrderResult",
|
|
24596
|
+
description: "Leg distances for an order the caller chose - no reordering"
|
|
24597
|
+
}
|
|
24598
|
+
],
|
|
24599
|
+
example: "import { optimizeOrder } from '@classic-homes/maps-core/route';\n\nconst { order, legMiles, totalMiles } = optimizeOrder(userLocation, stops);\nconst visitOrder = order.map((i) => stops[i]);"
|
|
24600
|
+
},
|
|
24601
|
+
mapsLinks: {
|
|
24602
|
+
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.",
|
|
24603
|
+
functions: [
|
|
24604
|
+
{
|
|
24605
|
+
name: "googleDirectionsUrl",
|
|
24606
|
+
signature: "(stops: DirectionsTarget[], origin?: DirectionsTarget | null, travelmode?: TravelMode) => string",
|
|
24607
|
+
description: "Google Maps directions URL - last stop is the destination, the rest are waypoints. Returns '' when no target is usable."
|
|
24608
|
+
},
|
|
24609
|
+
{
|
|
24610
|
+
name: "googleDirectionsLegUrls",
|
|
24611
|
+
signature: "(stops: DirectionsTarget[], origin?: DirectionsTarget | null, travelmode?: TravelMode) => string[]",
|
|
24612
|
+
description: "One URL per leg for routes past Google's waypoint budget, each leg resuming where the last ended. Use instead of truncating."
|
|
24613
|
+
},
|
|
24614
|
+
{
|
|
24615
|
+
name: "appleDirectionsUrl",
|
|
24616
|
+
signature: "(stops: DirectionsTarget[], origin?: DirectionsTarget | null, dirflg?: 'd' | 'w' | 'r') => string",
|
|
24617
|
+
description: "Apple Maps URL. Multi-stop input returns the leg to the FIRST stop only - label the affordance accordingly."
|
|
24618
|
+
},
|
|
24619
|
+
{
|
|
24620
|
+
name: "googleSearchUrl",
|
|
24621
|
+
signature: "(query: string) => string",
|
|
24622
|
+
description: "Google Maps search URL - the fallback for a stop with no coordinate"
|
|
24623
|
+
},
|
|
24624
|
+
{
|
|
24625
|
+
name: "splitIntoLegs",
|
|
24626
|
+
signature: "<T>(stops: T[], maxPerLeg?: number) => T[][]",
|
|
24627
|
+
description: "Chunk stops to fit a waypoint budget, repeating each leg's last stop as the next leg's first"
|
|
24628
|
+
},
|
|
24629
|
+
{
|
|
24630
|
+
name: "targetFromCoords",
|
|
24631
|
+
signature: "(coords: LatLng, address?: string) => DirectionsTarget",
|
|
24632
|
+
description: "Convenience: a directions target from a coordinate"
|
|
24633
|
+
},
|
|
24634
|
+
{
|
|
24635
|
+
name: "GOOGLE_MAX_WAYPOINTS",
|
|
24636
|
+
signature: "number",
|
|
24637
|
+
description: "Google's intermediate waypoint limit (9)"
|
|
24638
|
+
},
|
|
24639
|
+
{
|
|
24640
|
+
name: "GOOGLE_MAX_LEG_STOPS",
|
|
24641
|
+
signature: "number",
|
|
24642
|
+
description: "Targets per leg, counting the destination (10)"
|
|
24643
|
+
}
|
|
24644
|
+
],
|
|
24645
|
+
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"
|
|
24646
|
+
},
|
|
24647
|
+
coords: {
|
|
24648
|
+
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.",
|
|
24649
|
+
functions: [
|
|
24650
|
+
{
|
|
24651
|
+
name: "toLngLat",
|
|
24652
|
+
signature: "(point: LatLng) => LngLat",
|
|
24653
|
+
description: "Convert to the [lng, lat] tuple MapLibre and the rest of maps-core expect"
|
|
24654
|
+
},
|
|
24655
|
+
{
|
|
24656
|
+
name: "fromLngLat",
|
|
24657
|
+
signature: "(point: LngLat) => LatLng",
|
|
24658
|
+
description: "Convert from the [lng, lat] tuple form"
|
|
24659
|
+
},
|
|
24660
|
+
{
|
|
24661
|
+
name: "isValidLatLng",
|
|
24662
|
+
signature: "(point: unknown) => point is LatLng",
|
|
24663
|
+
description: "True when both components are numeric, finite and in range"
|
|
24664
|
+
},
|
|
24665
|
+
{
|
|
24666
|
+
name: "isFiniteNumber",
|
|
24667
|
+
signature: "(value: unknown) => value is number",
|
|
24668
|
+
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."
|
|
24669
|
+
}
|
|
24670
|
+
],
|
|
24671
|
+
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));"
|
|
24672
|
+
}
|
|
24673
|
+
}
|
|
24674
|
+
},
|
|
24675
|
+
geocoding: {
|
|
24676
|
+
importPath: "@classic-homes/maps-core/geocoding",
|
|
24677
|
+
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.",
|
|
24678
|
+
modules: {
|
|
24679
|
+
maptiler: {
|
|
24680
|
+
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.",
|
|
24681
|
+
functions: [
|
|
24682
|
+
{
|
|
24683
|
+
name: "geocodeForward",
|
|
24684
|
+
signature: "(query: string, opts: GeocodeOptions, fetchFn: typeof fetch) => Promise<GeocodeResult | null>",
|
|
24685
|
+
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."
|
|
24686
|
+
},
|
|
24687
|
+
{
|
|
24688
|
+
name: "geocodeForwardMany",
|
|
24689
|
+
signature: "(query: string, opts: GeocodeOptions, fetchFn: typeof fetch) => Promise<GeocodeResult[]>",
|
|
24690
|
+
description: "Same, returning every match best-first. Set opts.limit above 1 or MapTiler sends a single feature."
|
|
24691
|
+
},
|
|
24692
|
+
{
|
|
24693
|
+
name: "buildMapTilerGeocodeUrl",
|
|
24694
|
+
signature: "(query: string, opts: GeocodeOptions) => string",
|
|
24695
|
+
description: "Build the request URL. Throws RangeError on an empty query or key."
|
|
24696
|
+
},
|
|
24697
|
+
{
|
|
24698
|
+
name: "parseMapTilerGeocodeResponse",
|
|
24699
|
+
signature: "(body: unknown) => GeocodeResult | null",
|
|
24700
|
+
description: "Parse the best match. Handles the [lng, lat] to {lat, lng} swap."
|
|
24701
|
+
},
|
|
24702
|
+
{
|
|
24703
|
+
name: "parseMapTilerGeocodeResults",
|
|
24704
|
+
signature: "(body: unknown) => GeocodeResult[]",
|
|
24705
|
+
description: "Parse every usable feature, skipping malformed ones rather than failing the batch"
|
|
24706
|
+
}
|
|
24707
|
+
],
|
|
24708
|
+
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]);"
|
|
24709
|
+
}
|
|
24710
|
+
}
|
|
24711
|
+
},
|
|
23292
24712
|
workers: {
|
|
23293
24713
|
importPath: "@classic-homes/maps-core/workers",
|
|
23294
24714
|
description: "Web Worker infrastructure for off-main-thread spatial processing",
|
|
@@ -23508,6 +24928,12 @@ var maps_catalog_default = {
|
|
|
23508
24928
|
required: false,
|
|
23509
24929
|
description: "Enable keyboard navigation"
|
|
23510
24930
|
},
|
|
24931
|
+
{
|
|
24932
|
+
name: "cooperativeGestures",
|
|
24933
|
+
type: "boolean",
|
|
24934
|
+
required: false,
|
|
24935
|
+
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)"
|
|
24936
|
+
},
|
|
23511
24937
|
{
|
|
23512
24938
|
name: "navigationControl",
|
|
23513
24939
|
type: "boolean",
|
|
@@ -27262,6 +28688,24 @@ function registerMapsResources(server) {
|
|
|
27262
28688
|
}
|
|
27263
28689
|
]
|
|
27264
28690
|
}));
|
|
28691
|
+
server.resource("Maps Route Planning", "maps://route", async (uri) => ({
|
|
28692
|
+
contents: [
|
|
28693
|
+
{
|
|
28694
|
+
uri: uri.href,
|
|
28695
|
+
mimeType: "application/json",
|
|
28696
|
+
text: JSON.stringify(catalog5.subpackages.route, null, 2)
|
|
28697
|
+
}
|
|
28698
|
+
]
|
|
28699
|
+
}));
|
|
28700
|
+
server.resource("Maps Geocoding", "maps://geocoding", async (uri) => ({
|
|
28701
|
+
contents: [
|
|
28702
|
+
{
|
|
28703
|
+
uri: uri.href,
|
|
28704
|
+
mimeType: "application/json",
|
|
28705
|
+
text: JSON.stringify(catalog5.subpackages.geocoding, null, 2)
|
|
28706
|
+
}
|
|
28707
|
+
]
|
|
28708
|
+
}));
|
|
27265
28709
|
server.resource("Maps Components", "maps://components", async (uri) => ({
|
|
27266
28710
|
contents: [
|
|
27267
28711
|
{
|
|
@@ -27524,7 +28968,7 @@ ${catalog5.quickReference.tailwindConfig}
|
|
|
27524
28968
|
|
|
27525
28969
|
// src/data/native-catalog.json
|
|
27526
28970
|
var native_catalog_default = {
|
|
27527
|
-
version: "0.1
|
|
28971
|
+
version: "0.2.1",
|
|
27528
28972
|
packageName: "@classic-homes/native",
|
|
27529
28973
|
description: "Native device APIs for iOS and Android mobile apps. Uses Capacitor for native functionality with web fallbacks.",
|
|
27530
28974
|
subpackages: {
|
|
@@ -29899,7 +31343,7 @@ function registerPrompts(server) {
|
|
|
29899
31343
|
// package.json
|
|
29900
31344
|
var package_default = {
|
|
29901
31345
|
name: "@classic-homes/theme-mcp",
|
|
29902
|
-
version: "0.1
|
|
31346
|
+
version: "0.2.1",
|
|
29903
31347
|
description: "MCP server for Classic Theme design system - enables AI assistants to understand and correctly use components, tokens, and patterns",
|
|
29904
31348
|
type: "module",
|
|
29905
31349
|
main: "dist/index.js",
|