@classic-homes/theme-mcp 0.3.3 → 0.3.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -6,7 +6,7 @@ import { ResourceTemplate } from "@modelcontextprotocol/sdk/server/mcp.js";
6
6
 
7
7
  // src/data/component-catalog.json
8
8
  var component_catalog_default = {
9
- version: "0.3.3",
9
+ version: "0.3.5",
10
10
  components: [
11
11
  {
12
12
  name: "ActionHeader",
@@ -684,6 +684,49 @@ var component_catalog_default = {
684
684
  required: false,
685
685
  description: "Apply gradient fill to areas"
686
686
  },
687
+ {
688
+ name: "showLabels",
689
+ type: "boolean",
690
+ default: "false",
691
+ required: false,
692
+ description: "Show data labels"
693
+ },
694
+ {
695
+ name: "labelFormatter",
696
+ type: "string | ((params: LabelFormatterParams) => string)",
697
+ required: false,
698
+ description: "Data label template or function"
699
+ },
700
+ {
701
+ name: "xAxisConfig",
702
+ type: "AxisConfig",
703
+ required: false,
704
+ description: "Horizontal axis name, tick formatter, rotation and range"
705
+ },
706
+ {
707
+ name: "yAxisConfig",
708
+ type: "AxisConfig",
709
+ required: false,
710
+ description: "Vertical axis name, tick formatter, rotation and range"
711
+ },
712
+ {
713
+ name: "legend",
714
+ type: "ChartLegendConfig",
715
+ required: false,
716
+ description: "Built-in legend position, alignment, icon and formatter"
717
+ },
718
+ {
719
+ name: "onLegendChange",
720
+ type: "(visible: Record<string, boolean>) => void",
721
+ required: false,
722
+ description: "Called when legend items are shown or hidden"
723
+ },
724
+ {
725
+ name: "renderLegend",
726
+ type: "Snippet<[LegendRenderProps]>",
727
+ required: false,
728
+ description: "Custom HTML legend (e.g. `ChartLegend`) instead of the built-in one; React takes a function returning a node"
729
+ },
687
730
  {
688
731
  name: "onClick",
689
732
  type: "(params: DataPointEventParams) => void",
@@ -730,6 +773,24 @@ var component_catalog_default = {
730
773
  default: "true",
731
774
  required: false,
732
775
  description: "Show grid lines"
776
+ },
777
+ {
778
+ name: "tooltipFormatter",
779
+ type: "string | ((items: TooltipFormatterParams[]) => string)",
780
+ required: false,
781
+ description: "Custom tooltip template or HTML function"
782
+ },
783
+ {
784
+ name: "tooltipValueFormatter",
785
+ type: "(value: number) => string",
786
+ required: false,
787
+ description: "Format values in the default tooltip"
788
+ },
789
+ {
790
+ name: "option",
791
+ type: "EChartsOption",
792
+ required: false,
793
+ description: "Raw ECharts option deep-merged over the generated one"
733
794
  }
734
795
  ],
735
796
  variants: [
@@ -804,19 +865,7 @@ var component_catalog_default = {
804
865
  description: "Additional CSS classes for the content box"
805
866
  }
806
867
  ],
807
- variants: [
808
- {
809
- name: "ratio",
810
- values: [
811
- "square",
812
- "video",
813
- "photo",
814
- "portrait",
815
- "wide"
816
- ],
817
- default: "video"
818
- }
819
- ],
868
+ variants: [],
820
869
  slots: [
821
870
  {
822
871
  name: "children",
@@ -1520,6 +1569,42 @@ var component_catalog_default = {
1520
1569
  required: false,
1521
1570
  description: "Show value labels on bars"
1522
1571
  },
1572
+ {
1573
+ name: "labelFormatter",
1574
+ type: "string | ((params: LabelFormatterParams) => string)",
1575
+ required: false,
1576
+ description: "Data label template or function"
1577
+ },
1578
+ {
1579
+ name: "xAxisConfig",
1580
+ type: "AxisConfig",
1581
+ required: false,
1582
+ description: "Horizontal axis name, tick formatter, rotation and range"
1583
+ },
1584
+ {
1585
+ name: "yAxisConfig",
1586
+ type: "AxisConfig",
1587
+ required: false,
1588
+ description: "Vertical axis name, tick formatter, rotation and range"
1589
+ },
1590
+ {
1591
+ name: "legend",
1592
+ type: "ChartLegendConfig",
1593
+ required: false,
1594
+ description: "Built-in legend position, alignment, icon and formatter"
1595
+ },
1596
+ {
1597
+ name: "onLegendChange",
1598
+ type: "(visible: Record<string, boolean>) => void",
1599
+ required: false,
1600
+ description: "Called when legend items are shown or hidden"
1601
+ },
1602
+ {
1603
+ name: "renderLegend",
1604
+ type: "Snippet<[LegendRenderProps]>",
1605
+ required: false,
1606
+ description: "Custom HTML legend (e.g. `ChartLegend`) instead of the built-in one; React takes a function returning a node"
1607
+ },
1523
1608
  {
1524
1609
  name: "onClick",
1525
1610
  type: "(params: DataPointEventParams) => void",
@@ -1572,6 +1657,24 @@ var component_catalog_default = {
1572
1657
  default: "true",
1573
1658
  required: false,
1574
1659
  description: "Show grid lines"
1660
+ },
1661
+ {
1662
+ name: "tooltipFormatter",
1663
+ type: "string | ((items: TooltipFormatterParams[]) => string)",
1664
+ required: false,
1665
+ description: "Custom tooltip template or HTML function"
1666
+ },
1667
+ {
1668
+ name: "tooltipValueFormatter",
1669
+ type: "(value: number) => string",
1670
+ required: false,
1671
+ description: "Format values in the default tooltip"
1672
+ },
1673
+ {
1674
+ name: "option",
1675
+ type: "EChartsOption",
1676
+ required: false,
1677
+ description: "Raw ECharts option deep-merged over the generated one"
1575
1678
  }
1576
1679
  ],
1577
1680
  variants: [
@@ -1623,6 +1726,10 @@ var component_catalog_default = {
1623
1726
  {
1624
1727
  title: "With Value Labels",
1625
1728
  code: '<BarChart title="Monthly Performance" {data} showValues height={400} />'
1729
+ },
1730
+ {
1731
+ title: "Legend Placement",
1732
+ code: `<BarChart title="Weekly Sales" {data} legend={{ position: 'right', icon: 'circle' }} />`
1626
1733
  }
1627
1734
  ],
1628
1735
  relatedComponents: [
@@ -1810,6 +1917,18 @@ var component_catalog_default = {
1810
1917
  required: false,
1811
1918
  description: "Display volume bars below chart"
1812
1919
  },
1920
+ {
1921
+ name: "xAxisConfig",
1922
+ type: "AxisConfig",
1923
+ required: false,
1924
+ description: "Horizontal axis name, tick formatter, rotation and range"
1925
+ },
1926
+ {
1927
+ name: "yAxisConfig",
1928
+ type: "AxisConfig",
1929
+ required: false,
1930
+ description: "Vertical axis name, tick formatter, rotation and range"
1931
+ },
1813
1932
  {
1814
1933
  name: "onClick",
1815
1934
  type: "(params: CandlestickEventParams) => void",
@@ -1849,6 +1968,24 @@ var component_catalog_default = {
1849
1968
  default: "true",
1850
1969
  required: false,
1851
1970
  description: "Show grid lines"
1971
+ },
1972
+ {
1973
+ name: "tooltipFormatter",
1974
+ type: "string | ((items: TooltipFormatterParams[]) => string)",
1975
+ required: false,
1976
+ description: "Custom tooltip template or HTML function"
1977
+ },
1978
+ {
1979
+ name: "tooltipValueFormatter",
1980
+ type: "(value: number) => string",
1981
+ required: false,
1982
+ description: "Format values in the default tooltip"
1983
+ },
1984
+ {
1985
+ name: "option",
1986
+ type: "EChartsOption",
1987
+ required: false,
1988
+ description: "Raw ECharts option deep-merged over the generated one"
1852
1989
  }
1853
1990
  ],
1854
1991
  variants: [
@@ -1915,8 +2052,56 @@ var component_catalog_default = {
1915
2052
  description: "Container component for grouping related content",
1916
2053
  category: "layout",
1917
2054
  importPath: "@classic-homes/theme-svelte",
1918
- props: [],
1919
- variants: [],
2055
+ props: [
2056
+ {
2057
+ name: "variant",
2058
+ type: "'default' | 'featured' | 'highlight' | 'warning'",
2059
+ default: "'default'",
2060
+ required: false,
2061
+ description: "Card style variant"
2062
+ },
2063
+ {
2064
+ name: "borderColor",
2065
+ type: "'default' | 'primary' | 'muted'",
2066
+ default: "'default'",
2067
+ required: false,
2068
+ description: "Border color (ignored for highlight/warning)"
2069
+ },
2070
+ {
2071
+ name: "interactive",
2072
+ type: "boolean",
2073
+ default: "false",
2074
+ required: false,
2075
+ description: "Enables hover shadow effect"
2076
+ },
2077
+ {
2078
+ name: "class",
2079
+ type: "string",
2080
+ required: false,
2081
+ description: "Additional CSS classes"
2082
+ }
2083
+ ],
2084
+ variants: [
2085
+ {
2086
+ name: "variant",
2087
+ values: [
2088
+ "default",
2089
+ "featured",
2090
+ "highlight",
2091
+ "warning"
2092
+ ],
2093
+ default: "default"
2094
+ },
2095
+ {
2096
+ name: "borderColor",
2097
+ values: [
2098
+ "default",
2099
+ "primary",
2100
+ "muted"
2101
+ ],
2102
+ default: "default"
2103
+ }
2104
+ ],
1920
2105
  slots: [
1921
2106
  {
1922
2107
  name: "children",
@@ -2314,9 +2499,33 @@ var component_catalog_default = {
2314
2499
  type: "string",
2315
2500
  required: false,
2316
2501
  description: "Additional CSS classes for outer wrapper"
2502
+ },
2503
+ {
2504
+ name: "legend",
2505
+ type: "Snippet",
2506
+ required: false,
2507
+ description: 'Custom legend rendered beside the chart, outside the `role="img"` element'
2508
+ },
2509
+ {
2510
+ name: "legendPosition",
2511
+ type: "'top' | 'right' | 'bottom' | 'left'",
2512
+ default: "'bottom'",
2513
+ required: false,
2514
+ description: "Where the custom legend sits"
2515
+ }
2516
+ ],
2517
+ variants: [
2518
+ {
2519
+ name: "legendPosition",
2520
+ values: [
2521
+ "top",
2522
+ "right",
2523
+ "bottom",
2524
+ "left"
2525
+ ],
2526
+ default: "bottom"
2317
2527
  }
2318
2528
  ],
2319
- variants: [],
2320
2529
  slots: [],
2321
2530
  events: [],
2322
2531
  examples: [
@@ -2555,6 +2764,89 @@ var component_catalog_default = {
2555
2764
  "ChartSkeleton"
2556
2765
  ]
2557
2766
  },
2767
+ {
2768
+ name: "ChartLegend",
2769
+ description: "Accessible HTML legend for charts, used with the renderLegend prop",
2770
+ category: "chart",
2771
+ importPath: "@classic-homes/charts-svelte",
2772
+ props: [
2773
+ {
2774
+ name: "items",
2775
+ type: "LegendItem[]",
2776
+ required: true,
2777
+ description: "Entries with `name`, `color` and `visible`"
2778
+ },
2779
+ {
2780
+ name: "toggle",
2781
+ type: "(name: string) => void",
2782
+ required: true,
2783
+ description: "Show or hide an item"
2784
+ },
2785
+ {
2786
+ name: "position",
2787
+ type: "'top' | 'right' | 'bottom' | 'left'",
2788
+ default: "'bottom'",
2789
+ required: false,
2790
+ description: "Placement, used to pick the orientation"
2791
+ },
2792
+ {
2793
+ name: "chartTitle",
2794
+ type: "string",
2795
+ required: false,
2796
+ description: 'Labels the list as "{chartTitle} legend"'
2797
+ },
2798
+ {
2799
+ name: "orientation",
2800
+ type: "'horizontal' | 'vertical'",
2801
+ default: "vertical for left and right",
2802
+ required: false,
2803
+ description: "Item flow"
2804
+ },
2805
+ {
2806
+ name: "class",
2807
+ type: "string",
2808
+ required: false,
2809
+ description: "Additional classes (`className` in React)"
2810
+ }
2811
+ ],
2812
+ variants: [
2813
+ {
2814
+ name: "position",
2815
+ values: [
2816
+ "top",
2817
+ "right",
2818
+ "bottom",
2819
+ "left"
2820
+ ],
2821
+ default: "bottom"
2822
+ },
2823
+ {
2824
+ name: "orientation",
2825
+ values: [
2826
+ "horizontal",
2827
+ "vertical"
2828
+ ],
2829
+ default: "vertical for left and right"
2830
+ }
2831
+ ],
2832
+ slots: [],
2833
+ events: [],
2834
+ examples: [
2835
+ {
2836
+ title: "Basic Usage",
2837
+ code: `<script>
2838
+ import { LineChart, ChartLegend } from '@classic-homes/charts-svelte';
2839
+ </script>
2840
+
2841
+ {#snippet legend(props)}
2842
+ <ChartLegend {...props} />
2843
+ {/snippet}
2844
+
2845
+ <LineChart title="Revenue" {data} renderLegend={legend} legend={{ position: 'right' }} />`
2846
+ }
2847
+ ],
2848
+ relatedComponents: []
2849
+ },
2558
2850
  {
2559
2851
  name: "ChartSkeleton",
2560
2852
  description: "Loading skeleton placeholder for charts with animated bars",
@@ -2784,6 +3076,114 @@ var component_catalog_default = {
2784
3076
  "Label"
2785
3077
  ]
2786
3078
  },
3079
+ {
3080
+ name: "CodeField",
3081
+ description: "Monospaced text area for code, markup or diagram source, where Tab indents",
3082
+ category: "form",
3083
+ importPath: "@classic-homes/theme-svelte",
3084
+ props: [
3085
+ {
3086
+ name: "value",
3087
+ type: "string",
3088
+ default: "''",
3089
+ required: false,
3090
+ description: "The text (bindable)"
3091
+ },
3092
+ {
3093
+ name: "label",
3094
+ type: "string",
3095
+ required: false,
3096
+ description: "Accessible name; or use `aria-labelledby`"
3097
+ },
3098
+ {
3099
+ name: "id",
3100
+ type: "string",
3101
+ required: false,
3102
+ description: "For a visible `<Label for>`"
3103
+ },
3104
+ {
3105
+ name: "rows",
3106
+ type: "number",
3107
+ default: "8",
3108
+ required: false,
3109
+ description: "Visible lines"
3110
+ },
3111
+ {
3112
+ name: "indent",
3113
+ type: "number",
3114
+ default: "2",
3115
+ required: false,
3116
+ description: "Spaces per indent level"
3117
+ },
3118
+ {
3119
+ name: "wrap",
3120
+ type: "boolean",
3121
+ default: "false",
3122
+ required: false,
3123
+ description: "Soft-wrap long lines instead of scrolling sideways"
3124
+ },
3125
+ {
3126
+ name: "placeholder",
3127
+ type: "string",
3128
+ required: false,
3129
+ description: "Placeholder text"
3130
+ },
3131
+ {
3132
+ name: "disabled",
3133
+ type: "boolean",
3134
+ default: "false",
3135
+ required: false,
3136
+ description: "Disable the field"
3137
+ },
3138
+ {
3139
+ name: "readonly",
3140
+ type: "boolean",
3141
+ default: "false",
3142
+ required: false,
3143
+ description: "Read only; Tab moves focus as usual"
3144
+ },
3145
+ {
3146
+ name: "aria-invalid",
3147
+ type: "boolean",
3148
+ required: false,
3149
+ description: "Error styling"
3150
+ },
3151
+ {
3152
+ name: "aria-describedby",
3153
+ type: "string",
3154
+ required: false,
3155
+ description: "Extra description ids (the Tab hint is always added)"
3156
+ },
3157
+ {
3158
+ name: "onValueChange",
3159
+ type: "(value: string) => void",
3160
+ required: false,
3161
+ description: "Called on every change"
3162
+ }
3163
+ ],
3164
+ variants: [],
3165
+ slots: [
3166
+ {
3167
+ name: "children",
3168
+ description: "Main content",
3169
+ required: false
3170
+ }
3171
+ ],
3172
+ events: [],
3173
+ examples: [
3174
+ {
3175
+ title: "Basic Usage",
3176
+ code: `<script>
3177
+ import { CodeField } from '@classic-homes/theme-svelte';
3178
+
3179
+ let source = $state('flowchart TD\\n A --> B');
3180
+ </script>
3181
+
3182
+ <CodeField label="Diagram source" bind:value={source} rows={6} />`
3183
+ }
3184
+ ],
3185
+ relatedComponents: []
3186
+ },
2787
3187
  {
2788
3188
  name: "Combobox",
2789
3189
  description: "Searchable select with async loading support",
@@ -3869,13 +4269,6 @@ var component_catalog_default = {
3869
4269
  "desc"
3870
4270
  ],
3871
4271
  default: "asc"
3872
- },
3873
- {
3874
- name: "onSort",
3875
- values: [
3876
- "asc",
3877
- "desc"
3878
- ]
3879
4272
  }
3880
4273
  ],
3881
4274
  slots: [
@@ -4911,7 +5304,7 @@ var component_catalog_default = {
4911
5304
  {
4912
5305
  name: "showLabels",
4913
5306
  type: "boolean",
4914
- default: "false",
5307
+ default: "true",
4915
5308
  required: false,
4916
5309
  description: "Show labels on slices"
4917
5310
  },
@@ -4941,6 +5334,30 @@ var component_catalog_default = {
4941
5334
  required: false,
4942
5335
  description: "Value displayed in the center"
4943
5336
  },
5337
+ {
5338
+ name: "labelFormatter",
5339
+ type: "string | ((params: LabelFormatterParams) => string)",
5340
+ required: false,
5341
+ description: "Data label template or function"
5342
+ },
5343
+ {
5344
+ name: "legend",
5345
+ type: "ChartLegendConfig",
5346
+ required: false,
5347
+ description: "Built-in legend position, alignment, icon and formatter"
5348
+ },
5349
+ {
5350
+ name: "onLegendChange",
5351
+ type: "(visible: Record<string, boolean>) => void",
5352
+ required: false,
5353
+ description: "Called when legend items are shown or hidden"
5354
+ },
5355
+ {
5356
+ name: "renderLegend",
5357
+ type: "Snippet<[LegendRenderProps]>",
5358
+ required: false,
5359
+ description: "Custom HTML legend (e.g. `ChartLegend`) instead of the built-in one; React takes a function returning a node"
5360
+ },
4944
5361
  {
4945
5362
  name: "onClick",
4946
5363
  type: "(params: SliceEventParams) => void",
@@ -4980,6 +5397,24 @@ var component_catalog_default = {
4980
5397
  default: "true",
4981
5398
  required: false,
4982
5399
  description: "Show tooltip on hover"
5400
+ },
5401
+ {
5402
+ name: "tooltipFormatter",
5403
+ type: "string | ((items: TooltipFormatterParams[]) => string)",
5404
+ required: false,
5405
+ description: "Custom tooltip template or HTML function"
5406
+ },
5407
+ {
5408
+ name: "tooltipValueFormatter",
5409
+ type: "(value: number) => string",
5410
+ required: false,
5411
+ description: "Format values in the default tooltip"
5412
+ },
5413
+ {
5414
+ name: "option",
5415
+ type: "EChartsOption",
5416
+ required: false,
5417
+ description: "Raw ECharts option deep-merged over the generated one"
4983
5418
  }
4984
5419
  ],
4985
5420
  variants: [
@@ -5365,6 +5800,132 @@ var component_catalog_default = {
5365
5800
  "AppShell"
5366
5801
  ]
5367
5802
  },
5803
+ {
5804
+ name: "FeedbackWidget",
5805
+ description: "Edge tab and dialog that sends page feedback, quoted passages and screenshots to chapi",
5806
+ category: "feedback",
5807
+ importPath: "@classic-homes/feedback-svelte",
5808
+ props: [
5809
+ {
5810
+ name: "apiBase",
5811
+ type: "string",
5812
+ required: false,
5813
+ description: "chapi origin. `/v2/feedback` is appended; a trailing `/v1` or `/` is stripped (required)"
5814
+ },
5815
+ {
5816
+ name: "source",
5817
+ type: "string",
5818
+ required: false,
5819
+ description: "Host app id, `/^[a-z0-9-]{1,40}$/`, e.g. `app`, `field-app`, `homeowner-guide` (required)"
5820
+ },
5821
+ {
5822
+ name: "getToken",
5823
+ type: "() => Promise<string | null> | string | null",
5824
+ required: false,
5825
+ description: "Bearer token for chapi. Return `null` for anonymous use"
5826
+ },
5827
+ {
5828
+ name: "user",
5829
+ type: "{ name?: string; email?: string }",
5830
+ required: false,
5831
+ description: "Prefills name and email. Without it the fields are marked optional"
5832
+ },
5833
+ {
5834
+ name: "turnstileSiteKey",
5835
+ type: "string",
5836
+ required: false,
5837
+ description: "Cloudflare Turnstile site key, used when there is no bearer token"
5838
+ },
5839
+ {
5840
+ name: "selection",
5841
+ type: "{ container: string } | false",
5842
+ default: "false",
5843
+ required: false,
5844
+ description: "Enables comments on selected text inside `container`"
5845
+ },
5846
+ {
5847
+ name: "categories",
5848
+ type: "FeedbackCategoryOption[]",
5849
+ default: "see below",
5850
+ required: false,
5851
+ description: "Category chips. `value` is sent as `payload.category`"
5852
+ },
5853
+ {
5854
+ name: "getContext",
5855
+ type: "() => Record<string, string | undefined>",
5856
+ required: false,
5857
+ description: "Host context added to `payload.metadata` at submit time"
5858
+ },
5859
+ {
5860
+ name: "trigger",
5861
+ type: "'tab' | 'none'",
5862
+ default: "'tab'",
5863
+ required: false,
5864
+ description: "`'none'` hides the edge tab; open the dialog with `openFeedback()`"
5865
+ },
5866
+ {
5867
+ name: "tabLabel",
5868
+ type: "string",
5869
+ default: "'Feedback'",
5870
+ required: false,
5871
+ description: "Edge tab text"
5872
+ },
5873
+ {
5874
+ name: "maxAttachments",
5875
+ type: "number",
5876
+ default: "1",
5877
+ required: false,
5878
+ description: "Screenshots per submission, 0 to 3"
5879
+ },
5880
+ {
5881
+ name: "allowScreenshotCapture",
5882
+ type: "boolean",
5883
+ default: "true",
5884
+ required: false,
5885
+ description: 'Shows "Capture this page"'
5886
+ },
5887
+ {
5888
+ name: "submit",
5889
+ type: "(payload: FeedbackPayload, files: Blob[]) => Promise<SubmitResult>",
5890
+ required: false,
5891
+ description: "Replaces the built-in POST, e.g. with an offline queue"
5892
+ },
5893
+ {
5894
+ name: "onSubmitted",
5895
+ type: "(result: SubmitResult) => void",
5896
+ required: false,
5897
+ description: "Called after a successful (or queued) submission"
5898
+ }
5899
+ ],
5900
+ variants: [
5901
+ {
5902
+ name: "trigger",
5903
+ values: [
5904
+ "tab",
5905
+ "none"
5906
+ ],
5907
+ default: "tab"
5908
+ }
5909
+ ],
5910
+ slots: [
5911
+ {
5912
+ name: "children",
5913
+ description: "Main content",
5914
+ required: false
5915
+ }
5916
+ ],
5917
+ events: [],
5918
+ examples: [
5919
+ {
5920
+ title: "Open from an error card",
5921
+ code: "<script>\n import { openFeedback } from '@classic-homes/feedback-svelte';\n</script>\n\n<button onclick={() => openFeedback({ context: { card: 'schedule', error: 'E_TIMEOUT' } })}>\n Report this problem\n</button>"
5922
+ }
5923
+ ],
5924
+ relatedComponents: [
5925
+ "Dialog",
5926
+ "FileUpload"
5927
+ ]
5928
+ },
5368
5929
  {
5369
5930
  name: "FileUpload",
5370
5931
  description: "File upload component with drag-and-drop support",
@@ -6185,6 +6746,30 @@ var component_catalog_default = {
6185
6746
  required: false,
6186
6747
  description: "Show value labels"
6187
6748
  },
6749
+ {
6750
+ name: "labelFormatter",
6751
+ type: "string | ((params: LabelFormatterParams) => string)",
6752
+ required: false,
6753
+ description: "Data label template or function"
6754
+ },
6755
+ {
6756
+ name: "legend",
6757
+ type: "ChartLegendConfig",
6758
+ required: false,
6759
+ description: "Built-in legend position, alignment, icon and formatter"
6760
+ },
6761
+ {
6762
+ name: "onLegendChange",
6763
+ type: "(visible: Record<string, boolean>) => void",
6764
+ required: false,
6765
+ description: "Called when legend items are shown or hidden"
6766
+ },
6767
+ {
6768
+ name: "renderLegend",
6769
+ type: "Snippet<[LegendRenderProps]>",
6770
+ required: false,
6771
+ description: "Custom HTML legend (e.g. `ChartLegend`) instead of the built-in one; React takes a function returning a node"
6772
+ },
6188
6773
  {
6189
6774
  name: "onClick",
6190
6775
  type: "(params: SliceEventParams) => void",
@@ -6224,6 +6809,24 @@ var component_catalog_default = {
6224
6809
  default: "true",
6225
6810
  required: false,
6226
6811
  description: "Show tooltip on hover"
6812
+ },
6813
+ {
6814
+ name: "tooltipFormatter",
6815
+ type: "string | ((items: TooltipFormatterParams[]) => string)",
6816
+ required: false,
6817
+ description: "Custom tooltip template or HTML function"
6818
+ },
6819
+ {
6820
+ name: "tooltipValueFormatter",
6821
+ type: "(value: number) => string",
6822
+ required: false,
6823
+ description: "Format values in the default tooltip"
6824
+ },
6825
+ {
6826
+ name: "option",
6827
+ type: "EChartsOption",
6828
+ required: false,
6829
+ description: "Raw ECharts option deep-merged over the generated one"
6227
6830
  }
6228
6831
  ],
6229
6832
  variants: [
@@ -6369,6 +6972,24 @@ var component_catalog_default = {
6369
6972
  default: "true",
6370
6973
  required: false,
6371
6974
  description: "Enable/disable animations"
6975
+ },
6976
+ {
6977
+ name: "tooltipFormatter",
6978
+ type: "string | ((items: TooltipFormatterParams[]) => string)",
6979
+ required: false,
6980
+ description: "Custom tooltip template or HTML function"
6981
+ },
6982
+ {
6983
+ name: "tooltipValueFormatter",
6984
+ type: "(value: number) => string",
6985
+ required: false,
6986
+ description: "Format values in the default tooltip"
6987
+ },
6988
+ {
6989
+ name: "option",
6990
+ type: "EChartsOption",
6991
+ required: false,
6992
+ description: "Raw ECharts option deep-merged over the generated one"
6372
6993
  }
6373
6994
  ],
6374
6995
  variants: [
@@ -6548,15 +7169,6 @@ var component_catalog_default = {
6548
7169
  "lg"
6549
7170
  ],
6550
7171
  default: "lg"
6551
- },
6552
- {
6553
- name: "maxWidth",
6554
- values: [
6555
- "none",
6556
- "sm",
6557
- "7xl"
6558
- ],
6559
- default: "none"
6560
7172
  }
6561
7173
  ],
6562
7174
  slots: [
@@ -6801,6 +7413,24 @@ var component_catalog_default = {
6801
7413
  required: false,
6802
7414
  description: "Display values in cells"
6803
7415
  },
7416
+ {
7417
+ name: "labelFormatter",
7418
+ type: "string | ((params: LabelFormatterParams) => string)",
7419
+ required: false,
7420
+ description: "Data label template or function"
7421
+ },
7422
+ {
7423
+ name: "xAxisConfig",
7424
+ type: "AxisConfig",
7425
+ required: false,
7426
+ description: "Horizontal axis name, tick formatter, rotation and range"
7427
+ },
7428
+ {
7429
+ name: "yAxisConfig",
7430
+ type: "AxisConfig",
7431
+ required: false,
7432
+ description: "Vertical axis name, tick formatter, rotation and range"
7433
+ },
6804
7434
  {
6805
7435
  name: "onClick",
6806
7436
  type: "(params: HeatmapEventParams) => void",
@@ -6833,6 +7463,24 @@ var component_catalog_default = {
6833
7463
  default: "true",
6834
7464
  required: false,
6835
7465
  description: "Show tooltip on hover"
7466
+ },
7467
+ {
7468
+ name: "tooltipFormatter",
7469
+ type: "string | ((items: TooltipFormatterParams[]) => string)",
7470
+ required: false,
7471
+ description: "Custom tooltip template or HTML function"
7472
+ },
7473
+ {
7474
+ name: "tooltipValueFormatter",
7475
+ type: "(value: number) => string",
7476
+ required: false,
7477
+ description: "Format values in the default tooltip"
7478
+ },
7479
+ {
7480
+ name: "option",
7481
+ type: "EChartsOption",
7482
+ required: false,
7483
+ description: "Raw ECharts option deep-merged over the generated one"
6836
7484
  }
6837
7485
  ],
6838
7486
  variants: [
@@ -7144,16 +7792,6 @@ var component_catalog_default = {
7144
7792
  }
7145
7793
  ],
7146
7794
  variants: [
7147
- {
7148
- name: "ratio",
7149
- values: [
7150
- "square",
7151
- "video",
7152
- "photo",
7153
- "portrait",
7154
- "wide"
7155
- ]
7156
- },
7157
7795
  {
7158
7796
  name: "fit",
7159
7797
  values: [
@@ -7618,6 +8256,49 @@ var component_catalog_default = {
7618
8256
  required: false,
7619
8257
  description: "Stack multiple series on top of each other"
7620
8258
  },
8259
+ {
8260
+ name: "showLabels",
8261
+ type: "boolean",
8262
+ default: "false",
8263
+ required: false,
8264
+ description: "Show data labels"
8265
+ },
8266
+ {
8267
+ name: "labelFormatter",
8268
+ type: "string | ((params: LabelFormatterParams) => string)",
8269
+ required: false,
8270
+ description: "Data label template or function"
8271
+ },
8272
+ {
8273
+ name: "xAxisConfig",
8274
+ type: "AxisConfig",
8275
+ required: false,
8276
+ description: "Horizontal axis name, tick formatter, rotation and range"
8277
+ },
8278
+ {
8279
+ name: "yAxisConfig",
8280
+ type: "AxisConfig",
8281
+ required: false,
8282
+ description: "Vertical axis name, tick formatter, rotation and range"
8283
+ },
8284
+ {
8285
+ name: "legend",
8286
+ type: "ChartLegendConfig",
8287
+ required: false,
8288
+ description: "Built-in legend position, alignment, icon and formatter"
8289
+ },
8290
+ {
8291
+ name: "onLegendChange",
8292
+ type: "(visible: Record<string, boolean>) => void",
8293
+ required: false,
8294
+ description: "Called when legend items are shown or hidden"
8295
+ },
8296
+ {
8297
+ name: "renderLegend",
8298
+ type: "Snippet<[LegendRenderProps]>",
8299
+ required: false,
8300
+ description: "Custom HTML legend (e.g. `ChartLegend`) instead of the built-in one; React takes a function returning a node"
8301
+ },
7621
8302
  {
7622
8303
  name: "onClick",
7623
8304
  type: "(params: DataPointEventParams) => void",
@@ -7702,6 +8383,24 @@ var component_catalog_default = {
7702
8383
  type: "string",
7703
8384
  required: false,
7704
8385
  description: "Custom CSS class"
8386
+ },
8387
+ {
8388
+ name: "tooltipFormatter",
8389
+ type: "string | ((items: TooltipFormatterParams[]) => string)",
8390
+ required: false,
8391
+ description: "Custom tooltip template or HTML function"
8392
+ },
8393
+ {
8394
+ name: "tooltipValueFormatter",
8395
+ type: "(value: number) => string",
8396
+ required: false,
8397
+ description: "Format values in the default tooltip"
8398
+ },
8399
+ {
8400
+ name: "option",
8401
+ type: "EChartsOption",
8402
+ required: false,
8403
+ description: "Raw ECharts option deep-merged over the generated one"
7705
8404
  }
7706
8405
  ],
7707
8406
  variants: [
@@ -7759,6 +8458,20 @@ var component_catalog_default = {
7759
8458
  </script>
7760
8459
 
7761
8460
  <LineChart title="Interactive Chart" {data} onClick={handleClick} />`
8461
+ },
8462
+ {
8463
+ title: "Formatted Tooltip and Top Legend",
8464
+ code: "<LineChart\n title=\"Visitors\"\n {data}\n legend={{ position: 'top', align: 'end' }}\n tooltipValueFormatter={(v) => `${v.toLocaleString()} visits`}\n/>"
8465
+ },
8466
+ {
8467
+ title: "Annotating Points",
8468
+ code: `<LineChart
8469
+ title="Visitors"
8470
+ data={{
8471
+ categories: ['Mon', 'Tue', 'Wed'],
8472
+ series: [{ name: 'Visits', data: [120, 340, 180], labels: [null, 'Launch'] }],
8473
+ }}
8474
+ />`
7762
8475
  }
7763
8476
  ],
7764
8477
  relatedComponents: [
@@ -8616,19 +9329,7 @@ var component_catalog_default = {
8616
9329
  description: "Additional CSS classes"
8617
9330
  }
8618
9331
  ],
8619
- variants: [
8620
- {
8621
- name: "ratio",
8622
- values: [
8623
- "square",
8624
- "video",
8625
- "photo",
8626
- "portrait",
8627
- "wide"
8628
- ],
8629
- default: "video"
8630
- }
8631
- ],
9332
+ variants: [],
8632
9333
  slots: [
8633
9334
  {
8634
9335
  name: "children",
@@ -8785,17 +9486,6 @@ var component_catalog_default = {
8785
9486
  "cloudflare",
8786
9487
  "matterport"
8787
9488
  ]
8788
- },
8789
- {
8790
- name: "ratio",
8791
- values: [
8792
- "square",
8793
- "video",
8794
- "photo",
8795
- "portrait",
8796
- "wide"
8797
- ],
8798
- default: "video"
8799
9489
  }
8800
9490
  ],
8801
9491
  slots: [
@@ -8915,17 +9605,6 @@ var component_catalog_default = {
8915
9605
  "lg"
8916
9606
  ],
8917
9607
  default: "md"
8918
- },
8919
- {
8920
- name: "ratio",
8921
- values: [
8922
- "square",
8923
- "video",
8924
- "photo",
8925
- "portrait",
8926
- "wide"
8927
- ],
8928
- default: "square"
8929
9608
  }
8930
9609
  ],
8931
9610
  slots: [
@@ -10283,7 +10962,7 @@ var component_catalog_default = {
10283
10962
  {
10284
10963
  name: "showLabels",
10285
10964
  type: "boolean",
10286
- default: "false",
10965
+ default: "true",
10287
10966
  required: false,
10288
10967
  description: "Show labels on slices"
10289
10968
  },
@@ -10301,6 +10980,30 @@ var component_catalog_default = {
10301
10980
  required: false,
10302
10981
  description: "Inner radius (0 for solid pie)"
10303
10982
  },
10983
+ {
10984
+ name: "labelFormatter",
10985
+ type: "string | ((params: LabelFormatterParams) => string)",
10986
+ required: false,
10987
+ description: "Data label template or function"
10988
+ },
10989
+ {
10990
+ name: "legend",
10991
+ type: "ChartLegendConfig",
10992
+ required: false,
10993
+ description: "Built-in legend position, alignment, icon and formatter"
10994
+ },
10995
+ {
10996
+ name: "onLegendChange",
10997
+ type: "(visible: Record<string, boolean>) => void",
10998
+ required: false,
10999
+ description: "Called when legend items are shown or hidden"
11000
+ },
11001
+ {
11002
+ name: "renderLegend",
11003
+ type: "Snippet<[LegendRenderProps]>",
11004
+ required: false,
11005
+ description: "Custom HTML legend (e.g. `ChartLegend`) instead of the built-in one; React takes a function returning a node"
11006
+ },
10304
11007
  {
10305
11008
  name: "onClick",
10306
11009
  type: "(params: SliceEventParams) => void",
@@ -10340,6 +11043,24 @@ var component_catalog_default = {
10340
11043
  default: "true",
10341
11044
  required: false,
10342
11045
  description: "Show tooltip on hover"
11046
+ },
11047
+ {
11048
+ name: "tooltipFormatter",
11049
+ type: "string | ((items: TooltipFormatterParams[]) => string)",
11050
+ required: false,
11051
+ description: "Custom tooltip template or HTML function"
11052
+ },
11053
+ {
11054
+ name: "tooltipValueFormatter",
11055
+ type: "(value: number) => string",
11056
+ required: false,
11057
+ description: "Format values in the default tooltip"
11058
+ },
11059
+ {
11060
+ name: "option",
11061
+ type: "EChartsOption",
11062
+ required: false,
11063
+ description: "Raw ECharts option deep-merged over the generated one"
10343
11064
  }
10344
11065
  ],
10345
11066
  variants: [
@@ -10396,6 +11117,29 @@ var component_catalog_default = {
10396
11117
  </script>
10397
11118
 
10398
11119
  <PieChart title="Interactive Pie" {data} onClick={handleClick} />`
11120
+ },
11121
+ {
11122
+ title: "Custom Labels",
11123
+ code: `<PieChart
11124
+ title="Market Share"
11125
+ data={[
11126
+ { name: 'Product A', value: 335, label: 'Leader' },
11127
+ { name: 'Product B', value: 310 },
11128
+ ]}
11129
+ labelFormatter={'{b}\\n{d}%'}
11130
+ />`
11131
+ },
11132
+ {
11133
+ title: "Custom Legend on the Right",
11134
+ code: `<script>
11135
+ import { PieChart, ChartLegend } from '@classic-homes/charts-svelte';
11136
+ </script>
11137
+
11138
+ {#snippet legend(props)}
11139
+ <ChartLegend {...props} />
11140
+ {/snippet}
11141
+
11142
+ <PieChart title="Market Share" {data} renderLegend={legend} legend={{ position: 'right' }} />`
10399
11143
  }
10400
11144
  ],
10401
11145
  relatedComponents: [
@@ -10824,6 +11568,37 @@ var component_catalog_default = {
10824
11568
  required: false,
10825
11569
  description: "Shape of the radar grid"
10826
11570
  },
11571
+ {
11572
+ name: "showLabels",
11573
+ type: "boolean",
11574
+ default: "false",
11575
+ required: false,
11576
+ description: "Show data labels"
11577
+ },
11578
+ {
11579
+ name: "labelFormatter",
11580
+ type: "string | ((params: LabelFormatterParams) => string)",
11581
+ required: false,
11582
+ description: "Data label template or function"
11583
+ },
11584
+ {
11585
+ name: "legend",
11586
+ type: "ChartLegendConfig",
11587
+ required: false,
11588
+ description: "Built-in legend position, alignment, icon and formatter"
11589
+ },
11590
+ {
11591
+ name: "onLegendChange",
11592
+ type: "(visible: Record<string, boolean>) => void",
11593
+ required: false,
11594
+ description: "Called when legend items are shown or hidden"
11595
+ },
11596
+ {
11597
+ name: "renderLegend",
11598
+ type: "Snippet<[LegendRenderProps]>",
11599
+ required: false,
11600
+ description: "Custom HTML legend (e.g. `ChartLegend`) instead of the built-in one; React takes a function returning a node"
11601
+ },
10827
11602
  {
10828
11603
  name: "title",
10829
11604
  type: "string",
@@ -10857,6 +11632,24 @@ var component_catalog_default = {
10857
11632
  default: "true",
10858
11633
  required: false,
10859
11634
  description: "Show tooltip on hover"
11635
+ },
11636
+ {
11637
+ name: "tooltipFormatter",
11638
+ type: "string | ((items: TooltipFormatterParams[]) => string)",
11639
+ required: false,
11640
+ description: "Custom tooltip template or HTML function"
11641
+ },
11642
+ {
11643
+ name: "tooltipValueFormatter",
11644
+ type: "(value: number) => string",
11645
+ required: false,
11646
+ description: "Format values in the default tooltip"
11647
+ },
11648
+ {
11649
+ name: "option",
11650
+ type: "EChartsOption",
11651
+ required: false,
11652
+ description: "Raw ECharts option deep-merged over the generated one"
10860
11653
  }
10861
11654
  ],
10862
11655
  variants: [
@@ -11141,6 +11934,12 @@ var component_catalog_default = {
11141
11934
  required: false,
11142
11935
  description: "Flow direction"
11143
11936
  },
11937
+ {
11938
+ name: "labelFormatter",
11939
+ type: "string | ((params: LabelFormatterParams) => string)",
11940
+ required: false,
11941
+ description: "Data label template or function"
11942
+ },
11144
11943
  {
11145
11944
  name: "onClick",
11146
11945
  type: "(params: SankeyEventParams) => void",
@@ -11173,6 +11972,24 @@ var component_catalog_default = {
11173
11972
  default: "true",
11174
11973
  required: false,
11175
11974
  description: "Show tooltip on hover"
11975
+ },
11976
+ {
11977
+ name: "tooltipFormatter",
11978
+ type: "string | ((items: TooltipFormatterParams[]) => string)",
11979
+ required: false,
11980
+ description: "Custom tooltip template or HTML function"
11981
+ },
11982
+ {
11983
+ name: "tooltipValueFormatter",
11984
+ type: "(value: number) => string",
11985
+ required: false,
11986
+ description: "Format values in the default tooltip"
11987
+ },
11988
+ {
11989
+ name: "option",
11990
+ type: "EChartsOption",
11991
+ required: false,
11992
+ description: "Raw ECharts option deep-merged over the generated one"
11176
11993
  }
11177
11994
  ],
11178
11995
  variants: [
@@ -11297,6 +12114,49 @@ var component_catalog_default = {
11297
12114
  required: false,
11298
12115
  description: "Point size (fixed or dynamic)"
11299
12116
  },
12117
+ {
12118
+ name: "showLabels",
12119
+ type: "boolean",
12120
+ default: "false",
12121
+ required: false,
12122
+ description: "Show data labels"
12123
+ },
12124
+ {
12125
+ name: "labelFormatter",
12126
+ type: "string | ((params: LabelFormatterParams) => string)",
12127
+ required: false,
12128
+ description: "Data label template or function"
12129
+ },
12130
+ {
12131
+ name: "xAxisConfig",
12132
+ type: "AxisConfig",
12133
+ required: false,
12134
+ description: "Horizontal axis name, tick formatter, rotation and range"
12135
+ },
12136
+ {
12137
+ name: "yAxisConfig",
12138
+ type: "AxisConfig",
12139
+ required: false,
12140
+ description: "Vertical axis name, tick formatter, rotation and range"
12141
+ },
12142
+ {
12143
+ name: "legend",
12144
+ type: "ChartLegendConfig",
12145
+ required: false,
12146
+ description: "Built-in legend position, alignment, icon and formatter"
12147
+ },
12148
+ {
12149
+ name: "onLegendChange",
12150
+ type: "(visible: Record<string, boolean>) => void",
12151
+ required: false,
12152
+ description: "Called when legend items are shown or hidden"
12153
+ },
12154
+ {
12155
+ name: "renderLegend",
12156
+ type: "Snippet<[LegendRenderProps]>",
12157
+ required: false,
12158
+ description: "Custom HTML legend (e.g. `ChartLegend`) instead of the built-in one; React takes a function returning a node"
12159
+ },
11300
12160
  {
11301
12161
  name: "onClick",
11302
12162
  type: "(params: DataPointEventParams) => void",
@@ -11336,6 +12196,24 @@ var component_catalog_default = {
11336
12196
  default: "true",
11337
12197
  required: false,
11338
12198
  description: "Show tooltip on hover"
12199
+ },
12200
+ {
12201
+ name: "tooltipFormatter",
12202
+ type: "string | ((items: TooltipFormatterParams[]) => string)",
12203
+ required: false,
12204
+ description: "Custom tooltip template or HTML function"
12205
+ },
12206
+ {
12207
+ name: "tooltipValueFormatter",
12208
+ type: "(value: number) => string",
12209
+ required: false,
12210
+ description: "Format values in the default tooltip"
12211
+ },
12212
+ {
12213
+ name: "option",
12214
+ type: "EChartsOption",
12215
+ required: false,
12216
+ description: "Raw ECharts option deep-merged over the generated one"
11339
12217
  }
11340
12218
  ],
11341
12219
  variants: [
@@ -14261,6 +15139,12 @@ var component_catalog_default = {
14261
15139
  required: false,
14262
15140
  description: "Visual configuration for each level"
14263
15141
  },
15142
+ {
15143
+ name: "labelFormatter",
15144
+ type: "string | ((params: LabelFormatterParams) => string)",
15145
+ required: false,
15146
+ description: "Data label template or function"
15147
+ },
14264
15148
  {
14265
15149
  name: "onClick",
14266
15150
  type: "(params: TreemapEventParams) => void",
@@ -14293,6 +15177,24 @@ var component_catalog_default = {
14293
15177
  default: "true",
14294
15178
  required: false,
14295
15179
  description: "Show tooltip on hover"
15180
+ },
15181
+ {
15182
+ name: "tooltipFormatter",
15183
+ type: "string | ((items: TooltipFormatterParams[]) => string)",
15184
+ required: false,
15185
+ description: "Custom tooltip template or HTML function"
15186
+ },
15187
+ {
15188
+ name: "tooltipValueFormatter",
15189
+ type: "(value: number) => string",
15190
+ required: false,
15191
+ description: "Format values in the default tooltip"
15192
+ },
15193
+ {
15194
+ name: "option",
15195
+ type: "EChartsOption",
15196
+ required: false,
15197
+ description: "Raw ECharts option deep-merged over the generated one"
14296
15198
  }
14297
15199
  ],
14298
15200
  variants: [
@@ -14527,17 +15429,6 @@ var component_catalog_default = {
14527
15429
  }
14528
15430
  ],
14529
15431
  variants: [
14530
- {
14531
- name: "ratio",
14532
- values: [
14533
- "square",
14534
- "video",
14535
- "photo",
14536
- "portrait",
14537
- "wide"
14538
- ],
14539
- default: "video"
14540
- },
14541
15432
  {
14542
15433
  name: "fit",
14543
15434
  values: [
@@ -14746,7 +15637,7 @@ function registerComponentResources(server) {
14746
15637
 
14747
15638
  // src/data/token-definitions.json
14748
15639
  var token_definitions_default = {
14749
- version: "0.3.3",
15640
+ version: "0.3.5",
14750
15641
  colors: {
14751
15642
  brand: [
14752
15643
  {
@@ -15729,7 +16620,7 @@ function registerTokenResources(server) {
15729
16620
 
15730
16621
  // src/data/styles-catalog.json
15731
16622
  var styles_catalog_default = {
15732
- version: "0.3.3",
16623
+ version: "0.3.5",
15733
16624
  package: "@classic-homes/theme-styles",
15734
16625
  description: "Base CSS styles, accessibility features, and utility classes for the Classic Theme design system",
15735
16626
  integration: {
@@ -16112,7 +17003,7 @@ import { ResourceTemplate as ResourceTemplate2 } from "@modelcontextprotocol/sdk
16112
17003
 
16113
17004
  // src/data/pattern-library.json
16114
17005
  var pattern_library_default = {
16115
- version: "0.3.3",
17006
+ version: "0.3.5",
16116
17007
  layouts: [
16117
17008
  {
16118
17009
  id: "dashboard-page",
@@ -17206,7 +18097,7 @@ function registerLayoutResources(server) {
17206
18097
 
17207
18098
  // src/data/schema-catalog.json
17208
18099
  var schema_catalog_default = {
17209
- version: "0.3.3",
18100
+ version: "0.3.5",
17210
18101
  packageName: "@classic-homes/theme-svelte",
17211
18102
  importPath: "@classic-homes/theme-svelte",
17212
18103
  generatedFrom: "packages/svelte/src/lib/schemas/index.ts",
@@ -18014,7 +18905,7 @@ import { ResourceTemplate as ResourceTemplate3 } from "@modelcontextprotocol/sdk
18014
18905
 
18015
18906
  // src/data/auth-catalog.json
18016
18907
  var auth_catalog_default = {
18017
- version: "0.3.3",
18908
+ version: "0.3.5",
18018
18909
  packageName: "@classic-homes/auth",
18019
18910
  description: "Authentication services and Svelte bindings for Classic Theme apps",
18020
18911
  subpackages: {
@@ -18588,12 +19479,12 @@ var auth_catalog_default = {
18588
19479
  {
18589
19480
  name: "ROLE_NAMES",
18590
19481
  type: "readonly RoleName[]",
18591
- 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, stormwater_staff, warranty_staff, hotsheet_editor, employee, user, vendor, customer, subcontractor, guest. Order is load-bearing - computePrimaryRole takes the first match."
19482
+ 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, stormwater_staff, warranty_staff, hotsheet_editor, office_admin, employee, user, vendor, customer, subcontractor, guest. Order is load-bearing - computePrimaryRole takes the first match."
18592
19483
  },
18593
19484
  {
18594
19485
  name: "ROLE_HIERARCHY",
18595
19486
  type: "Record<string, number>",
18596
- description: "Privilege level per role: guest 0; user/vendor/customer/subcontractor 1; employee/agent/builder/customer_service/demo/stormwater, every <department>_staff and hotsheet_editor 2; manager 3; admin 4."
19487
+ description: "Privilege level per role: guest 0; user/vendor/customer/subcontractor 1; employee/agent/builder/customer_service/demo/stormwater, every <department>_staff, hotsheet_editor and office_admin 2; manager 3; admin 4."
18597
19488
  }
18598
19489
  ],
18599
19490
  types: [
@@ -21051,7 +21942,7 @@ import { ResourceTemplate as ResourceTemplate4 } from "@modelcontextprotocol/sdk
21051
21942
 
21052
21943
  // src/data/notifications-catalog.json
21053
21944
  var notifications_catalog_default = {
21054
- version: "0.3.3",
21945
+ version: "0.3.5",
21055
21946
  packageName: "@classic-homes/notifications",
21056
21947
  description: "Notification services and Svelte bindings for Classic Theme apps",
21057
21948
  subpackages: {
@@ -21162,7 +22053,7 @@ var notifications_catalog_default = {
21162
22053
  {
21163
22054
  name: "getNotificationIconColor",
21164
22055
  signature: "(type: NotificationType) => string",
21165
- description: "Get the Tailwind color class for a notification type (security\u2192text-red-500, system\u2192text-blue-500, feature\u2192text-purple-500, update\u2192text-green-500, alert\u2192text-yellow-500, info\u2192text-gray-500)"
22056
+ description: "Get the Tailwind color class for a notification type (security\u2192text-destructive, system\u2192text-info, feature\u2192text-primary, update\u2192text-success, alert\u2192text-warning, info\u2192text-muted-foreground)"
21166
22057
  },
21167
22058
  {
21168
22059
  name: "getPriorityBadgeVariant",
@@ -21944,7 +22835,7 @@ function registerNotificationsResources(server) {
21944
22835
  description: "Direct API access without Svelte store"
21945
22836
  },
21946
22837
  utilities: {
21947
- code: "import {\n getNotificationIconName,\n getNotificationIconColor,\n getPriorityBadgeVariant,\n formatRelativeTime,\n} from '@classic-homes/notifications/core';\n\ngetNotificationIconName('security'); // 'shield'\ngetNotificationIconColor('security'); // 'text-red-500'\ngetPriorityBadgeVariant('urgent'); // 'destructive'\nformatRelativeTime('2024-01-22T10:00:00Z'); // '2h ago'",
22838
+ code: "import {\n getNotificationIconName,\n getNotificationIconColor,\n getPriorityBadgeVariant,\n formatRelativeTime,\n} from '@classic-homes/notifications/core';\n\ngetNotificationIconName('security'); // 'shield'\ngetNotificationIconColor('security'); // 'text-destructive'\ngetPriorityBadgeVariant('urgent'); // 'destructive'\nformatRelativeTime('2024-01-22T10:00:00Z'); // '2h ago'",
21948
22839
  description: "Utility functions for display"
21949
22840
  },
21950
22841
  preferences: {
@@ -21963,7 +22854,7 @@ function registerNotificationsResources(server) {
21963
22854
 
21964
22855
  // src/data/docs-catalog.json
21965
22856
  var docs_catalog_default = {
21966
- version: "0.3.3",
22857
+ version: "0.3.5",
21967
22858
  packageName: "@classic-homes/theme-docs",
21968
22859
  description: "Markdown documentation components for the Classic theme system",
21969
22860
  exports: {
@@ -21975,14 +22866,26 @@ var docs_catalog_default = {
21975
22866
  importPath: "@classic-homes/theme-docs/parser",
21976
22867
  description: "Markdown pipeline without Svelte imports (parseMarkdown, extractToc, createSlugger, extensions) for Node build scripts, server loaders and CMS previews"
21977
22868
  },
22869
+ "./prose": {
22870
+ importPath: "@classic-homes/theme-docs/prose",
22871
+ description: "Subpath export for prose"
22872
+ },
21978
22873
  "./sanitize": {
21979
22874
  importPath: "@classic-homes/theme-docs/sanitize",
21980
22875
  description: "sanitizeDocsHtml: allowlist sanitizer for parseMarkdown output (server/build-time only)"
21981
22876
  },
22877
+ "./sanitize/browser": {
22878
+ importPath: "@classic-homes/theme-docs/sanitize/browser",
22879
+ description: "Subpath export for sanitize/browser"
22880
+ },
21982
22881
  "./content": {
21983
22882
  importPath: "@classic-homes/theme-docs/content",
21984
22883
  description: "loadDocs/renderDocs: a Docusaurus-style docs directory as routes, autogenerated sidebars, generated-index pages, tags and rendered HTML (Node, build time)"
21985
22884
  },
22885
+ "./content/core": {
22886
+ importPath: "@classic-homes/theme-docs/content/core",
22887
+ description: "Subpath export for content/core"
22888
+ },
21986
22889
  "./nav": {
21987
22890
  importPath: "@classic-homes/theme-docs/nav",
21988
22891
  description: "Sidebar helpers (neighbours, breadcrumbs, flattenNav, tagCounts) and content-model types, browser-safe"
@@ -22050,6 +22953,154 @@ var docs_catalog_default = {
22050
22953
  ],
22051
22954
  example: '<MarkdownPage content={markdownString} theme="github-dark">\n {#snippet header(frontmatter)}\n <h1>{frontmatter.title}</h1>\n {/snippet}\n</MarkdownPage>'
22052
22955
  },
22956
+ {
22957
+ name: "ProseEditor",
22958
+ description: "Rich-text field that reads and writes markdown prose (paragraphs, lists, bold, italic, code, links, kbd). Authors see formatted text and a toolbar, never markdown syntax. Check the value with isProseMarkdown first and offer a source editor for anything else.",
22959
+ category: "content",
22960
+ props: [
22961
+ {
22962
+ name: "value",
22963
+ type: "string",
22964
+ required: true,
22965
+ description: "Markdown. Changes from outside replace the content."
22966
+ },
22967
+ {
22968
+ name: "onChange",
22969
+ type: "(markdown: string, doc: ProseNode) => void",
22970
+ required: false,
22971
+ description: "Called on every edit with the new markdown and the document behind it"
22972
+ },
22973
+ {
22974
+ name: "label",
22975
+ type: "string",
22976
+ required: true,
22977
+ description: "Accessible name for the text area"
22978
+ },
22979
+ {
22980
+ name: "placeholder",
22981
+ type: "string",
22982
+ required: false,
22983
+ description: "Placeholder shown while empty"
22984
+ },
22985
+ {
22986
+ name: "hardBreak",
22987
+ type: "'backslash' | 'html'",
22988
+ required: false,
22989
+ default: "'backslash'",
22990
+ description: "How line breaks are written; html for single-line contexts such as table cells"
22991
+ },
22992
+ {
22993
+ name: "inline",
22994
+ type: "boolean",
22995
+ required: false,
22996
+ default: "false",
22997
+ description: "Hide list buttons, for fields where a list makes no sense"
22998
+ },
22999
+ {
23000
+ name: "disabled",
23001
+ type: "boolean",
23002
+ required: false,
23003
+ default: "false",
23004
+ description: "Read-only"
23005
+ },
23006
+ {
23007
+ name: "variant",
23008
+ type: "'field' | 'bare'",
23009
+ required: false,
23010
+ default: "'field'",
23011
+ description: "field is a form field; bare edits in place on a rendered page with a floating (or docked) toolbar"
23012
+ },
23013
+ {
23014
+ name: "singleLine",
23015
+ type: "boolean",
23016
+ required: false,
23017
+ default: "false",
23018
+ description: "One paragraph only, no lists; Enter calls onEnter"
23019
+ },
23020
+ {
23021
+ name: "as",
23022
+ type: "'p' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6'",
23023
+ required: false,
23024
+ default: "'p'",
23025
+ description: "Element the paragraph renders as, e.g. h2 to edit a heading in place"
23026
+ },
23027
+ {
23028
+ name: "onEnter",
23029
+ type: "() => void",
23030
+ required: false,
23031
+ description: "Enter in a single-line editor, e.g. move on to the next block"
23032
+ },
23033
+ {
23034
+ name: "onDeleteEmpty",
23035
+ type: "() => void",
23036
+ required: false,
23037
+ description: "Backspace while the editor is empty, e.g. remove the block"
23038
+ },
23039
+ {
23040
+ name: "onExit",
23041
+ type: "(direction: 'up' | 'down') => boolean | void",
23042
+ required: false,
23043
+ description: "Arrow keys past the first or last line; return false to decline"
23044
+ },
23045
+ {
23046
+ name: "class",
23047
+ type: "string",
23048
+ required: false,
23049
+ description: "Additional CSS classes"
23050
+ }
23051
+ ],
23052
+ features: [
23053
+ "Markdown in and out in the house style (proseToMarkdown)",
23054
+ "Keyboard: Mod-B/I/E bold/italic/code, Mod-K link, Shift-Enter line break, Tab/Shift-Tab list indent",
23055
+ "Typing '- ' or '1. ' starts a list",
23056
+ "Links limited to http(s), mailto, tel and relative addresses",
23057
+ "focus({ x, y }) places the caret at a point on screen",
23058
+ "Under setProseToolbar(createProseToolbar()), bare editors lend their tools to a docked ProseToolbar"
23059
+ ],
23060
+ example: `<script lang="ts">
23061
+ import { ProseEditor } from '@classic-homes/theme-docs';
23062
+ import { isProseMarkdown } from '@classic-homes/theme-docs/prose';
23063
+
23064
+ let body = $state('Open **Start**, then *Settings*.');
23065
+ </script>
23066
+
23067
+ {#if isProseMarkdown(body)}
23068
+ <ProseEditor label="Body" value={body} onChange={(md) => (body = md)} />
23069
+ {/if}`
23070
+ },
23071
+ {
23072
+ name: "ProseToolbar",
23073
+ description: 'Formatting buttons docked outside the text for in-place (variant="bare") ProseEditors. Acts on whichever editor has focus; with none, every button is shown disabled so the bar never changes size. Needs setProseToolbar(createProseToolbar()) in a parent component.',
23074
+ category: "content",
23075
+ props: [
23076
+ {
23077
+ name: "label",
23078
+ type: "string",
23079
+ required: false,
23080
+ default: "'Formatting'",
23081
+ description: "Accessible name for the toolbar group"
23082
+ },
23083
+ {
23084
+ name: "class",
23085
+ type: "string",
23086
+ required: false,
23087
+ description: "Additional CSS classes"
23088
+ }
23089
+ ],
23090
+ features: [
23091
+ "Shares one toolbar between many bare ProseEditors",
23092
+ "Stable layout: unavailable tools stay in place, disabled"
23093
+ ],
23094
+ example: `<script lang="ts">
23095
+ import { ProseEditor, ProseToolbar, createProseToolbar, setProseToolbar } from '@classic-homes/theme-docs';
23096
+
23097
+ setProseToolbar(createProseToolbar());
23098
+ let title = $state('Getting started');
23099
+ </script>
23100
+
23101
+ <ProseToolbar class="sticky top-0" />
23102
+ <ProseEditor variant="bare" singleLine as="h1" label="Title" value={title} onChange={(md) => (title = md)} />`
23103
+ },
22053
23104
  {
22054
23105
  name: "CodeBlock",
22055
23106
  description: "Standalone syntax-highlighted code block using Shiki",
@@ -22261,6 +23312,13 @@ var docs_catalog_default = {
22261
23312
  default: "'lg'",
22262
23313
  description: "Breakpoint for desktop sidebar display"
22263
23314
  },
23315
+ {
23316
+ name: "desktopPosition",
23317
+ type: "'fixed' | 'inline'",
23318
+ required: false,
23319
+ default: "'fixed'",
23320
+ description: "Desktop sidebar pinned to the viewport's right edge, or a sticky column in the parent flex row (DocPage uses 'inline')"
23321
+ },
22264
23322
  {
22265
23323
  name: "class",
22266
23324
  type: "string",
@@ -23293,9 +24351,18 @@ var docs_catalog_default = {
23293
24351
  dependencies: {
23294
24352
  "@classic-homes/theme-tokens": "*",
23295
24353
  clsx: "^2.1.0",
24354
+ dompurify: "3.4.16",
23296
24355
  "js-yaml": "^4.3.2",
23297
24356
  marked: "^17.0.0",
23298
24357
  minisearch: "7.2.0",
24358
+ "prosemirror-commands": "1.7.2",
24359
+ "prosemirror-history": "1.5.1",
24360
+ "prosemirror-inputrules": "1.5.1",
24361
+ "prosemirror-keymap": "1.2.3",
24362
+ "prosemirror-model": "1.25.12",
24363
+ "prosemirror-schema-list": "1.5.1",
24364
+ "prosemirror-state": "1.4.4",
24365
+ "prosemirror-view": "1.42.6",
23299
24366
  "sanitize-html": "2.18.0",
23300
24367
  shiki: "^1.0.0",
23301
24368
  "tailwind-merge": "^2.2.0",
@@ -23459,7 +24526,7 @@ function registerDocsResources(server) {
23459
24526
 
23460
24527
  // src/data/charts-catalog.json
23461
24528
  var charts_catalog_default = {
23462
- version: "0.3.3",
24529
+ version: "0.3.5",
23463
24530
  packageName: "@classic-homes/charts-core",
23464
24531
  description: "Core utilities, types, and themes for Classic Theme chart components",
23465
24532
  subpackages: {
@@ -23538,6 +24605,16 @@ var charts_catalog_default = {
23538
24605
  name: "createTooltipFormatter",
23539
24606
  signature: "(options?: { showSeriesName?: boolean; valueFormatter?: (value: number) => string; showPercent?: boolean }) => TooltipFormatter",
23540
24607
  description: "Create an ECharts-compatible tooltip formatter function"
24608
+ },
24609
+ {
24610
+ name: "escapeHtml",
24611
+ signature: "(value: unknown) => string",
24612
+ description: "Escape a value for HTML. Use it on user data in custom function tooltip formatters, whose output ECharts renders as innerHTML"
24613
+ },
24614
+ {
24615
+ name: "getReplaceMerge",
24616
+ signature: "(prev: object | null | undefined, next: object, isComponentType: (mainType: string) => boolean) => string[]",
24617
+ description: "replaceMerge list for setOption when a complete option supersedes the previous one: always series and graphic, plus component types that were removed or shrank. Pass echarts.ComponentModel.hasClass as isComponentType. Keeps legend selection and dataZoom state, unlike notMerge"
23541
24618
  }
23542
24619
  ]
23543
24620
  },
@@ -23570,6 +24647,47 @@ var charts_catalog_default = {
23570
24647
  description: "Generate hidden HTML data table for screen readers (uses sr-only class)"
23571
24648
  }
23572
24649
  ]
24650
+ },
24651
+ options: {
24652
+ description: "Builders for labels, axes, tooltips, legends and option overrides (used by charts-react and charts-svelte)",
24653
+ functions: [
24654
+ {
24655
+ name: "mergeChartOption",
24656
+ signature: "<T extends object>(generated: T, override?: object) => T",
24657
+ description: "Deep-merge a user ECharts option over a generated one; top-level arrays merge by index, nested arrays replace",
24658
+ example: "mergeChartOption(option, { series: [{ label: { show: true } }] })"
24659
+ },
24660
+ {
24661
+ name: "buildLegend",
24662
+ signature: "(names: string[], config: ChartLegendConfig | undefined, opts: { show: boolean; custom?: boolean; defaults?: object }) => object | undefined",
24663
+ description: "Build an ECharts legend; `custom` keeps it hidden so legend actions still work"
24664
+ },
24665
+ {
24666
+ name: "buildAxis",
24667
+ signature: "<T>(base: T, config?: AxisConfig) => T",
24668
+ description: "Apply AxisConfig to a generated axis"
24669
+ },
24670
+ {
24671
+ name: "buildDataLabel",
24672
+ signature: "(base: object, hidden: object | undefined, opts: { show: boolean; formatter?: ChartFormatter<LabelFormatterParams>; getLabel?: PointLabelLookup }) => object | undefined",
24673
+ description: "Build a series label block"
24674
+ },
24675
+ {
24676
+ name: "buildTooltip",
24677
+ signature: "(base: object, opts: { show: boolean; formatter?; valueFormatter?; getLabel? }) => object | undefined",
24678
+ description: "Build a tooltip with formatter / valueFormatter"
24679
+ },
24680
+ {
24681
+ name: "getLegendItems",
24682
+ signature: "(names: string[], palette: string[], overrides: (string | undefined)[], visible: Record<string, boolean>) => LegendItem[]",
24683
+ description: "Legend entries with their drawn colours"
24684
+ },
24685
+ {
24686
+ name: "withPointLabels",
24687
+ signature: "(values, labels, formatter) => data items",
24688
+ description: "Attach per-point label overrides to labelled points"
24689
+ }
24690
+ ]
23573
24691
  }
23574
24692
  }
23575
24693
  },
@@ -23609,6 +24727,26 @@ var charts_catalog_default = {
23609
24727
  name: "THEME_DARK",
23610
24728
  signature: "'classic-dark'",
23611
24729
  description: "Theme name constant"
24730
+ },
24731
+ {
24732
+ name: "getChartColors",
24733
+ signature: "(themeName: string) => ChartSemanticColors",
24734
+ description: "Token-derived per-element chart colours (series palette, foreground, mutedForeground, axisPointerLabel, divider, success, destructive) for THEME_LIGHT or THEME_DARK"
24735
+ },
24736
+ {
24737
+ name: "lightChartColors",
24738
+ signature: "ChartSemanticColors",
24739
+ description: "Semantic chart colours for the light theme"
24740
+ },
24741
+ {
24742
+ name: "darkChartColors",
24743
+ signature: "ChartSemanticColors",
24744
+ description: "Semantic chart colours for the dark theme"
24745
+ },
24746
+ {
24747
+ name: "colorWithAlpha",
24748
+ signature: "(color: string, alpha: number) => string",
24749
+ description: "Convert a #rgb/#rrggbb colour to rgba() with the given alpha; other colour strings are returned unchanged"
23612
24750
  }
23613
24751
  ]
23614
24752
  }
@@ -23706,6 +24844,24 @@ var charts_catalog_default = {
23706
24844
  required: false,
23707
24845
  description: "Show grid lines (where applicable)"
23708
24846
  },
24847
+ {
24848
+ name: "tooltipFormatter",
24849
+ type: "string | ((items: TooltipFormatterParams[]) => string)",
24850
+ required: false,
24851
+ description: "Custom tooltip content: an ECharts template or a function returning HTML (always receives an array). Escape interpolated data with escapeHtml"
24852
+ },
24853
+ {
24854
+ name: "tooltipValueFormatter",
24855
+ type: "(value: number) => string",
24856
+ required: false,
24857
+ description: "Format the values in the default tooltip, e.g. as currency"
24858
+ },
24859
+ {
24860
+ name: "option",
24861
+ type: "EChartsOption",
24862
+ required: false,
24863
+ description: "Raw ECharts option deep-merged over the generated one (top-level arrays such as series merge by index; nested arrays replace)"
24864
+ },
23709
24865
  {
23710
24866
  name: "class",
23711
24867
  type: "string",
@@ -23748,6 +24904,48 @@ var charts_catalog_default = {
23748
24904
  required: false,
23749
24905
  description: "Stack multiple series"
23750
24906
  },
24907
+ {
24908
+ name: "legend",
24909
+ type: "ChartLegendConfig",
24910
+ required: false,
24911
+ description: "Built-in legend placement and formatting (position, align, orient, icon, formatter, scroll)"
24912
+ },
24913
+ {
24914
+ name: "onLegendChange",
24915
+ type: "(visible: Record<string, boolean>) => void",
24916
+ required: false,
24917
+ description: "Called when legend items are shown or hidden"
24918
+ },
24919
+ {
24920
+ name: "renderLegend",
24921
+ type: "React: (legend: LegendRenderProps) => ReactNode; Svelte: Snippet<[LegendRenderProps]>",
24922
+ required: false,
24923
+ description: "Render a custom HTML legend (e.g. ChartLegend) beside the chart instead of the built-in one"
24924
+ },
24925
+ {
24926
+ name: "labelFormatter",
24927
+ type: "string | ((params: LabelFormatterParams) => string)",
24928
+ required: false,
24929
+ description: "Data label text: an ECharts template or a function (params include per-point `label`)"
24930
+ },
24931
+ {
24932
+ name: "xAxisConfig",
24933
+ type: "AxisConfig",
24934
+ required: false,
24935
+ description: "Horizontal axis customisation (name, formatter, rotate, min, max, interval, show)"
24936
+ },
24937
+ {
24938
+ name: "yAxisConfig",
24939
+ type: "AxisConfig",
24940
+ required: false,
24941
+ description: "Vertical axis customisation (name, formatter, rotate, min, max, interval, show)"
24942
+ },
24943
+ {
24944
+ name: "showLabels",
24945
+ type: "boolean",
24946
+ required: false,
24947
+ description: "Show data labels (default false)"
24948
+ },
23751
24949
  {
23752
24950
  name: "onClick",
23753
24951
  type: "(params: DataPointEventParams) => void",
@@ -23790,6 +24988,42 @@ var charts_catalog_default = {
23790
24988
  required: false,
23791
24989
  description: "Show value labels on bars"
23792
24990
  },
24991
+ {
24992
+ name: "legend",
24993
+ type: "ChartLegendConfig",
24994
+ required: false,
24995
+ description: "Built-in legend placement and formatting (position, align, orient, icon, formatter, scroll)"
24996
+ },
24997
+ {
24998
+ name: "onLegendChange",
24999
+ type: "(visible: Record<string, boolean>) => void",
25000
+ required: false,
25001
+ description: "Called when legend items are shown or hidden"
25002
+ },
25003
+ {
25004
+ name: "renderLegend",
25005
+ type: "React: (legend: LegendRenderProps) => ReactNode; Svelte: Snippet<[LegendRenderProps]>",
25006
+ required: false,
25007
+ description: "Render a custom HTML legend (e.g. ChartLegend) beside the chart instead of the built-in one"
25008
+ },
25009
+ {
25010
+ name: "labelFormatter",
25011
+ type: "string | ((params: LabelFormatterParams) => string)",
25012
+ required: false,
25013
+ description: "Data label text: an ECharts template or a function (params include per-point `label`)"
25014
+ },
25015
+ {
25016
+ name: "xAxisConfig",
25017
+ type: "AxisConfig",
25018
+ required: false,
25019
+ description: "Horizontal axis customisation (name, formatter, rotate, min, max, interval, show)"
25020
+ },
25021
+ {
25022
+ name: "yAxisConfig",
25023
+ type: "AxisConfig",
25024
+ required: false,
25025
+ description: "Vertical axis customisation (name, formatter, rotate, min, max, interval, show)"
25026
+ },
23793
25027
  {
23794
25028
  name: "onClick",
23795
25029
  type: "(params: DataPointEventParams) => void",
@@ -23826,6 +25060,30 @@ var charts_catalog_default = {
23826
25060
  required: false,
23827
25061
  description: "Inner radius (0 for pie, percentage for donut)"
23828
25062
  },
25063
+ {
25064
+ name: "legend",
25065
+ type: "ChartLegendConfig",
25066
+ required: false,
25067
+ description: "Built-in legend placement and formatting (position, align, orient, icon, formatter, scroll)"
25068
+ },
25069
+ {
25070
+ name: "onLegendChange",
25071
+ type: "(visible: Record<string, boolean>) => void",
25072
+ required: false,
25073
+ description: "Called when legend items are shown or hidden"
25074
+ },
25075
+ {
25076
+ name: "renderLegend",
25077
+ type: "React: (legend: LegendRenderProps) => ReactNode; Svelte: Snippet<[LegendRenderProps]>",
25078
+ required: false,
25079
+ description: "Render a custom HTML legend (e.g. ChartLegend) beside the chart instead of the built-in one"
25080
+ },
25081
+ {
25082
+ name: "labelFormatter",
25083
+ type: "string | ((params: LabelFormatterParams) => string)",
25084
+ required: false,
25085
+ description: "Data label text: an ECharts template or a function (params include per-point `label`)"
25086
+ },
23829
25087
  {
23830
25088
  name: "onClick",
23831
25089
  type: "(params: SliceEventParams) => void",
@@ -23886,6 +25144,48 @@ var charts_catalog_default = {
23886
25144
  required: false,
23887
25145
  description: "Use gradient fill"
23888
25146
  },
25147
+ {
25148
+ name: "legend",
25149
+ type: "ChartLegendConfig",
25150
+ required: false,
25151
+ description: "Built-in legend placement and formatting (position, align, orient, icon, formatter, scroll)"
25152
+ },
25153
+ {
25154
+ name: "onLegendChange",
25155
+ type: "(visible: Record<string, boolean>) => void",
25156
+ required: false,
25157
+ description: "Called when legend items are shown or hidden"
25158
+ },
25159
+ {
25160
+ name: "renderLegend",
25161
+ type: "React: (legend: LegendRenderProps) => ReactNode; Svelte: Snippet<[LegendRenderProps]>",
25162
+ required: false,
25163
+ description: "Render a custom HTML legend (e.g. ChartLegend) beside the chart instead of the built-in one"
25164
+ },
25165
+ {
25166
+ name: "labelFormatter",
25167
+ type: "string | ((params: LabelFormatterParams) => string)",
25168
+ required: false,
25169
+ description: "Data label text: an ECharts template or a function (params include per-point `label`)"
25170
+ },
25171
+ {
25172
+ name: "xAxisConfig",
25173
+ type: "AxisConfig",
25174
+ required: false,
25175
+ description: "Horizontal axis customisation (name, formatter, rotate, min, max, interval, show)"
25176
+ },
25177
+ {
25178
+ name: "yAxisConfig",
25179
+ type: "AxisConfig",
25180
+ required: false,
25181
+ description: "Vertical axis customisation (name, formatter, rotate, min, max, interval, show)"
25182
+ },
25183
+ {
25184
+ name: "showLabels",
25185
+ type: "boolean",
25186
+ required: false,
25187
+ description: "Show data labels (default false)"
25188
+ },
23889
25189
  {
23890
25190
  name: "onClick",
23891
25191
  type: "(params: DataPointEventParams) => void",
@@ -23916,6 +25216,48 @@ var charts_catalog_default = {
23916
25216
  required: false,
23917
25217
  description: "Symbol size (fixed or function)"
23918
25218
  },
25219
+ {
25220
+ name: "legend",
25221
+ type: "ChartLegendConfig",
25222
+ required: false,
25223
+ description: "Built-in legend placement and formatting (position, align, orient, icon, formatter, scroll)"
25224
+ },
25225
+ {
25226
+ name: "onLegendChange",
25227
+ type: "(visible: Record<string, boolean>) => void",
25228
+ required: false,
25229
+ description: "Called when legend items are shown or hidden"
25230
+ },
25231
+ {
25232
+ name: "renderLegend",
25233
+ type: "React: (legend: LegendRenderProps) => ReactNode; Svelte: Snippet<[LegendRenderProps]>",
25234
+ required: false,
25235
+ description: "Render a custom HTML legend (e.g. ChartLegend) beside the chart instead of the built-in one"
25236
+ },
25237
+ {
25238
+ name: "labelFormatter",
25239
+ type: "string | ((params: LabelFormatterParams) => string)",
25240
+ required: false,
25241
+ description: "Data label text: an ECharts template or a function (params include per-point `label`)"
25242
+ },
25243
+ {
25244
+ name: "xAxisConfig",
25245
+ type: "AxisConfig",
25246
+ required: false,
25247
+ description: "Horizontal axis customisation (name, formatter, rotate, min, max, interval, show)"
25248
+ },
25249
+ {
25250
+ name: "yAxisConfig",
25251
+ type: "AxisConfig",
25252
+ required: false,
25253
+ description: "Vertical axis customisation (name, formatter, rotate, min, max, interval, show)"
25254
+ },
25255
+ {
25256
+ name: "showLabels",
25257
+ type: "boolean",
25258
+ required: false,
25259
+ description: "Show data labels (default false)"
25260
+ },
23919
25261
  {
23920
25262
  name: "onClick",
23921
25263
  type: "(params: DataPointEventParams) => void",
@@ -23945,6 +25287,36 @@ var charts_catalog_default = {
23945
25287
  type: "'polygon' | 'circle'",
23946
25288
  required: false,
23947
25289
  description: "Radar shape"
25290
+ },
25291
+ {
25292
+ name: "legend",
25293
+ type: "ChartLegendConfig",
25294
+ required: false,
25295
+ description: "Built-in legend placement and formatting (position, align, orient, icon, formatter, scroll)"
25296
+ },
25297
+ {
25298
+ name: "onLegendChange",
25299
+ type: "(visible: Record<string, boolean>) => void",
25300
+ required: false,
25301
+ description: "Called when legend items are shown or hidden"
25302
+ },
25303
+ {
25304
+ name: "renderLegend",
25305
+ type: "React: (legend: LegendRenderProps) => ReactNode; Svelte: Snippet<[LegendRenderProps]>",
25306
+ required: false,
25307
+ description: "Render a custom HTML legend (e.g. ChartLegend) beside the chart instead of the built-in one"
25308
+ },
25309
+ {
25310
+ name: "labelFormatter",
25311
+ type: "string | ((params: LabelFormatterParams) => string)",
25312
+ required: false,
25313
+ description: "Data label text: an ECharts template or a function (params include per-point `label`)"
25314
+ },
25315
+ {
25316
+ name: "showLabels",
25317
+ type: "boolean",
25318
+ required: false,
25319
+ description: "Show data labels (default false)"
23948
25320
  }
23949
25321
  ]
23950
25322
  },
@@ -23976,6 +25348,30 @@ var charts_catalog_default = {
23976
25348
  required: false,
23977
25349
  description: "Show value labels"
23978
25350
  },
25351
+ {
25352
+ name: "legend",
25353
+ type: "ChartLegendConfig",
25354
+ required: false,
25355
+ description: "Built-in legend placement and formatting (position, align, orient, icon, formatter, scroll)"
25356
+ },
25357
+ {
25358
+ name: "onLegendChange",
25359
+ type: "(visible: Record<string, boolean>) => void",
25360
+ required: false,
25361
+ description: "Called when legend items are shown or hidden"
25362
+ },
25363
+ {
25364
+ name: "renderLegend",
25365
+ type: "React: (legend: LegendRenderProps) => ReactNode; Svelte: Snippet<[LegendRenderProps]>",
25366
+ required: false,
25367
+ description: "Render a custom HTML legend (e.g. ChartLegend) beside the chart instead of the built-in one"
25368
+ },
25369
+ {
25370
+ name: "labelFormatter",
25371
+ type: "string | ((params: LabelFormatterParams) => string)",
25372
+ required: false,
25373
+ description: "Data label text: an ECharts template or a function (params include per-point `label`)"
25374
+ },
23979
25375
  {
23980
25376
  name: "onClick",
23981
25377
  type: "(params: SliceEventParams) => void",
@@ -24054,6 +25450,24 @@ var charts_catalog_default = {
24054
25450
  required: false,
24055
25451
  description: "Show values in cells"
24056
25452
  },
25453
+ {
25454
+ name: "labelFormatter",
25455
+ type: "string | ((params: LabelFormatterParams) => string)",
25456
+ required: false,
25457
+ description: "Data label text: an ECharts template or a function (params include per-point `label`)"
25458
+ },
25459
+ {
25460
+ name: "xAxisConfig",
25461
+ type: "AxisConfig",
25462
+ required: false,
25463
+ description: "Horizontal axis customisation (name, formatter, rotate, min, max, interval, show)"
25464
+ },
25465
+ {
25466
+ name: "yAxisConfig",
25467
+ type: "AxisConfig",
25468
+ required: false,
25469
+ description: "Vertical axis customisation (name, formatter, rotate, min, max, interval, show)"
25470
+ },
24057
25471
  {
24058
25472
  name: "onClick",
24059
25473
  type: "(params: HeatmapEventParams) => void",
@@ -24078,6 +25492,12 @@ var charts_catalog_default = {
24078
25492
  required: false,
24079
25493
  description: "Level configurations"
24080
25494
  },
25495
+ {
25496
+ name: "labelFormatter",
25497
+ type: "string | ((params: LabelFormatterParams) => string)",
25498
+ required: false,
25499
+ description: "Data label text: an ECharts template or a function (params include per-point `label`)"
25500
+ },
24081
25501
  {
24082
25502
  name: "onClick",
24083
25503
  type: "(params: TreemapEventParams) => void",
@@ -24102,6 +25522,18 @@ var charts_catalog_default = {
24102
25522
  required: false,
24103
25523
  description: "Show volume bars"
24104
25524
  },
25525
+ {
25526
+ name: "xAxisConfig",
25527
+ type: "AxisConfig",
25528
+ required: false,
25529
+ description: "Horizontal axis customisation (name, formatter, rotate, min, max, interval, show)"
25530
+ },
25531
+ {
25532
+ name: "yAxisConfig",
25533
+ type: "AxisConfig",
25534
+ required: false,
25535
+ description: "Vertical axis customisation (name, formatter, rotate, min, max, interval, show)"
25536
+ },
24105
25537
  {
24106
25538
  name: "onClick",
24107
25539
  type: "(params: CandlestickEventParams) => void",
@@ -24126,6 +25558,12 @@ var charts_catalog_default = {
24126
25558
  required: false,
24127
25559
  description: "Flow orientation"
24128
25560
  },
25561
+ {
25562
+ name: "labelFormatter",
25563
+ type: "string | ((params: LabelFormatterParams) => string)",
25564
+ required: false,
25565
+ description: "Data label text: an ECharts template or a function (params include per-point `label`)"
25566
+ },
24129
25567
  {
24130
25568
  name: "onClick",
24131
25569
  type: "(params: SankeyEventParams) => void",
@@ -24133,6 +25571,210 @@ var charts_catalog_default = {
24133
25571
  description: "Click event handler"
24134
25572
  }
24135
25573
  ]
25574
+ },
25575
+ {
25576
+ name: "AxisConfig",
25577
+ description: "Axis customisation for cartesian charts (refers to the visual axis)",
25578
+ properties: [
25579
+ {
25580
+ name: "show",
25581
+ type: "boolean",
25582
+ required: false,
25583
+ description: "Show the axis"
25584
+ },
25585
+ {
25586
+ name: "name",
25587
+ type: "string",
25588
+ required: false,
25589
+ description: "Axis title"
25590
+ },
25591
+ {
25592
+ name: "nameLocation",
25593
+ type: "'start' | 'middle' | 'end'",
25594
+ required: false,
25595
+ description: "Axis title position (default 'middle')"
25596
+ },
25597
+ {
25598
+ name: "nameGap",
25599
+ type: "number",
25600
+ required: false,
25601
+ description: "Gap between title and axis line"
25602
+ },
25603
+ {
25604
+ name: "formatter",
25605
+ type: "string | ((value: string | number, index: number) => string)",
25606
+ required: false,
25607
+ description: "Tick label template (e.g. '{value} kg') or function"
25608
+ },
25609
+ {
25610
+ name: "rotate",
25611
+ type: "number",
25612
+ required: false,
25613
+ description: "Tick label rotation in degrees"
25614
+ },
25615
+ {
25616
+ name: "min",
25617
+ type: "number | 'dataMin'",
25618
+ required: false,
25619
+ description: "Axis minimum"
25620
+ },
25621
+ {
25622
+ name: "max",
25623
+ type: "number | 'dataMax'",
25624
+ required: false,
25625
+ description: "Axis maximum"
25626
+ },
25627
+ {
25628
+ name: "interval",
25629
+ type: "number",
25630
+ required: false,
25631
+ description: "Fixed tick interval"
25632
+ }
25633
+ ]
25634
+ },
25635
+ {
25636
+ name: "ChartLegendConfig",
25637
+ description: "Built-in legend customisation",
25638
+ properties: [
25639
+ {
25640
+ name: "position",
25641
+ type: "'top' | 'right' | 'bottom' | 'left'",
25642
+ required: false,
25643
+ description: "Legend placement (default 'bottom')"
25644
+ },
25645
+ {
25646
+ name: "align",
25647
+ type: "'start' | 'center' | 'end'",
25648
+ required: false,
25649
+ description: "Alignment along the edge (default 'center')"
25650
+ },
25651
+ {
25652
+ name: "orient",
25653
+ type: "'horizontal' | 'vertical'",
25654
+ required: false,
25655
+ description: "Item flow (default horizontal for top/bottom, vertical for left/right)"
25656
+ },
25657
+ {
25658
+ name: "icon",
25659
+ type: "'circle' | 'rect' | 'roundRect' | 'line' | 'none'",
25660
+ required: false,
25661
+ description: "Marker shape"
25662
+ },
25663
+ {
25664
+ name: "formatter",
25665
+ type: "string | ((name: string) => string)",
25666
+ required: false,
25667
+ description: "Item text template ('{name}') or function"
25668
+ },
25669
+ {
25670
+ name: "scroll",
25671
+ type: "boolean",
25672
+ required: false,
25673
+ description: "Page items instead of wrapping"
25674
+ }
25675
+ ]
25676
+ },
25677
+ {
25678
+ name: "LabelFormatterParams",
25679
+ description: "Normalised params passed to labelFormatter (and, with marker/axisValue, tooltipFormatter as TooltipFormatterParams)",
25680
+ properties: [
25681
+ {
25682
+ name: "name",
25683
+ type: "string",
25684
+ required: true,
25685
+ description: "Category, slice or node name"
25686
+ },
25687
+ {
25688
+ name: "value",
25689
+ type: "number | number[]",
25690
+ required: true,
25691
+ description: "Data value"
25692
+ },
25693
+ {
25694
+ name: "seriesName",
25695
+ type: "string",
25696
+ required: true,
25697
+ description: "Series name"
25698
+ },
25699
+ {
25700
+ name: "seriesIndex",
25701
+ type: "number",
25702
+ required: true,
25703
+ description: "Series index"
25704
+ },
25705
+ {
25706
+ name: "dataIndex",
25707
+ type: "number",
25708
+ required: true,
25709
+ description: "Data index"
25710
+ },
25711
+ {
25712
+ name: "percent",
25713
+ type: "number",
25714
+ required: false,
25715
+ description: "Share of total (pie, donut, funnel)"
25716
+ },
25717
+ {
25718
+ name: "color",
25719
+ type: "string",
25720
+ required: false,
25721
+ description: "Point colour"
25722
+ },
25723
+ {
25724
+ name: "label",
25725
+ type: "string",
25726
+ required: false,
25727
+ description: "Per-point label text from the data"
25728
+ }
25729
+ ]
25730
+ },
25731
+ {
25732
+ name: "LegendRenderProps",
25733
+ description: "Passed to renderLegend; spread into ChartLegend for the default accessible HTML legend",
25734
+ properties: [
25735
+ {
25736
+ name: "items",
25737
+ type: "LegendItem[]",
25738
+ required: true,
25739
+ description: "{ name, color, visible } per entry"
25740
+ },
25741
+ {
25742
+ name: "position",
25743
+ type: "ChartLegendPosition",
25744
+ required: true,
25745
+ description: "Requested placement"
25746
+ },
25747
+ {
25748
+ name: "chartTitle",
25749
+ type: "string",
25750
+ required: true,
25751
+ description: "Chart title"
25752
+ },
25753
+ {
25754
+ name: "toggle",
25755
+ type: "(name: string) => void",
25756
+ required: true,
25757
+ description: "Show/hide an item"
25758
+ },
25759
+ {
25760
+ name: "setVisible",
25761
+ type: "(name: string, visible: boolean) => void",
25762
+ required: true,
25763
+ description: "Set an item's visibility"
25764
+ },
25765
+ {
25766
+ name: "showOnly",
25767
+ type: "(name: string) => void",
25768
+ required: true,
25769
+ description: "Show only this item"
25770
+ },
25771
+ {
25772
+ name: "showAll",
25773
+ type: "() => void",
25774
+ required: true,
25775
+ description: "Show every item"
25776
+ }
25777
+ ]
24136
25778
  }
24137
25779
  ]
24138
25780
  },
@@ -24178,6 +25820,12 @@ var charts_catalog_default = {
24178
25820
  type: "string",
24179
25821
  required: false,
24180
25822
  description: "Override theme color for this series"
25823
+ },
25824
+ {
25825
+ name: "labels",
25826
+ type: "(string | null | undefined)[]",
25827
+ required: false,
25828
+ description: "Per-point label text by data index (shown on those points; templates allowed)"
24181
25829
  }
24182
25830
  ]
24183
25831
  },
@@ -24220,6 +25868,12 @@ var charts_catalog_default = {
24220
25868
  type: "string",
24221
25869
  required: false,
24222
25870
  description: "Override theme color for this series"
25871
+ },
25872
+ {
25873
+ name: "labels",
25874
+ type: "(string | null | undefined)[]",
25875
+ required: false,
25876
+ description: "Per-point label text by data index (shown on those points; templates allowed)"
24223
25877
  }
24224
25878
  ]
24225
25879
  },
@@ -24244,6 +25898,12 @@ var charts_catalog_default = {
24244
25898
  type: "string",
24245
25899
  required: false,
24246
25900
  description: "Override theme color"
25901
+ },
25902
+ {
25903
+ name: "label",
25904
+ type: "string",
25905
+ required: false,
25906
+ description: "Label text shown instead of the default (templates allowed)"
24247
25907
  }
24248
25908
  ]
24249
25909
  },
@@ -24286,6 +25946,12 @@ var charts_catalog_default = {
24286
25946
  type: "string",
24287
25947
  required: false,
24288
25948
  description: "Override theme color for this series"
25949
+ },
25950
+ {
25951
+ name: "labels",
25952
+ type: "(string | null | undefined)[]",
25953
+ required: false,
25954
+ description: "Per-point label text by data index (shown on those points; templates allowed)"
24289
25955
  }
24290
25956
  ]
24291
25957
  },
@@ -24322,6 +25988,12 @@ var charts_catalog_default = {
24322
25988
  type: "string",
24323
25989
  required: false,
24324
25990
  description: "Override theme color"
25991
+ },
25992
+ {
25993
+ name: "labels",
25994
+ type: "(string | null | undefined)[]",
25995
+ required: false,
25996
+ description: "Per-point label text by data index (shown on those points; templates allowed)"
24325
25997
  }
24326
25998
  ]
24327
25999
  },
@@ -24406,6 +26078,12 @@ var charts_catalog_default = {
24406
26078
  type: "string",
24407
26079
  required: false,
24408
26080
  description: "Override theme color"
26081
+ },
26082
+ {
26083
+ name: "label",
26084
+ type: "string",
26085
+ required: false,
26086
+ description: "Label text shown instead of the default (templates allowed)"
24409
26087
  }
24410
26088
  ]
24411
26089
  },
@@ -24460,6 +26138,12 @@ var charts_catalog_default = {
24460
26138
  type: "string",
24461
26139
  required: false,
24462
26140
  description: "Override theme color"
26141
+ },
26142
+ {
26143
+ name: "label",
26144
+ type: "string",
26145
+ required: false,
26146
+ description: "Label text shown instead of the default (templates allowed)"
24463
26147
  }
24464
26148
  ]
24465
26149
  },
@@ -24574,6 +26258,12 @@ var charts_catalog_default = {
24574
26258
  type: "string",
24575
26259
  required: false,
24576
26260
  description: "Override theme color"
26261
+ },
26262
+ {
26263
+ name: "label",
26264
+ type: "string",
26265
+ required: false,
26266
+ description: "Label text shown instead of the default (templates allowed)"
24577
26267
  }
24578
26268
  ]
24579
26269
  },
@@ -25199,6 +26889,8 @@ AreaChart, BarChart, LineChart, PieChart, DonutChart, CandlestickChart, FunnelCh
25199
26889
  - \`darkTheme\` - Pre-generated dark theme
25200
26890
  - \`THEME_LIGHT\` - Constant: 'classic-light'
25201
26891
  - \`THEME_DARK\` - Constant: 'classic-dark'
26892
+ - \`getChartColors(themeName)\` - Token-derived per-element colours for a theme
26893
+ - \`colorWithAlpha(color, alpha)\` - Hex colour to rgba()
25202
26894
 
25203
26895
  ## Formatting Utilities
25204
26896
 
@@ -25208,6 +26900,8 @@ AreaChart, BarChart, LineChart, PieChart, DonutChart, CandlestickChart, FunnelCh
25208
26900
  - \`formatDate(date, options?, locale?)\` - Format date
25209
26901
  - \`abbreviateNumber(value, decimals?)\` - Abbreviate to K/M/B/T
25210
26902
  - \`createTooltipFormatter(options?)\` - Create ECharts tooltip formatter
26903
+ - \`escapeHtml(value)\` - Escape user data in custom tooltip formatters
26904
+ - \`getReplaceMerge(prev, next, isComponentType)\` - setOption replaceMerge list that drops removed series/components but keeps legend and dataZoom state
25211
26905
 
25212
26906
  ## Accessibility Utilities
25213
26907
 
@@ -25296,7 +26990,7 @@ interface SankeyData {
25296
26990
 
25297
26991
  // src/data/maps-catalog.json
25298
26992
  var maps_catalog_default = {
25299
- version: "0.3.3",
26993
+ version: "0.3.5",
25300
26994
  packageName: "@classic-homes/maps-core",
25301
26995
  description: "Core utilities, types, and themes for Classic Theme MapLibre GL components",
25302
26996
  subpackages: {
@@ -30627,7 +32321,7 @@ ${catalog5.quickReference.tailwindConfig}
30627
32321
 
30628
32322
  // src/data/native-catalog.json
30629
32323
  var native_catalog_default = {
30630
- version: "0.3.3",
32324
+ version: "0.3.5",
30631
32325
  packageName: "@classic-homes/native",
30632
32326
  description: "Native device APIs for iOS and Android mobile apps. Uses Capacitor for native functionality with web fallbacks.",
30633
32327
  subpackages: {
@@ -32347,19 +34041,10 @@ function registerResources(server) {
32347
34041
  // src/tools/searchComponents.ts
32348
34042
  import { z } from "zod";
32349
34043
  var catalog7 = component_catalog_default;
34044
+ var categories = [...new Set(catalog7.components.map((c) => c.category))].sort();
32350
34045
  var SearchComponentsSchema = z.object({
32351
34046
  query: z.string().describe("Search query (component name, description, or functionality)"),
32352
- category: z.enum([
32353
- "core",
32354
- "form",
32355
- "layout",
32356
- "feedback",
32357
- "data",
32358
- "overlay",
32359
- "navigation",
32360
- "branding",
32361
- "chart"
32362
- ]).optional().describe("Filter by component category"),
34047
+ category: z.enum(categories).optional().describe("Filter by component category"),
32363
34048
  limit: z.number().min(1).max(50).default(10).describe("Maximum number of results")
32364
34049
  });
32365
34050
  function registerSearchComponentsTool(server) {
@@ -32503,34 +34188,15 @@ function registerGetComponentPropsTool(server) {
32503
34188
  // src/tools/suggestPattern.ts
32504
34189
  import { z as z3 } from "zod";
32505
34190
  var patterns2 = pattern_library_default;
34191
+ var patternIds = [
34192
+ ...patterns2.layouts,
34193
+ ...patterns2.forms,
34194
+ ...patterns2.auth ?? [],
34195
+ ...patterns2.notifications ?? [],
34196
+ ...patterns2.panels ?? []
34197
+ ].map((p) => p.id);
32506
34198
  var SuggestPatternSchema = z3.object({
32507
- useCase: z3.enum([
32508
- // Layout patterns
32509
- "dashboard-page",
32510
- "public-page",
32511
- "auth-page",
32512
- "error-page",
32513
- "form-page",
32514
- // Form patterns
32515
- "login-form",
32516
- "registration-form",
32517
- "contact-form",
32518
- // MFA and password form patterns
32519
- "mfa-verification-form",
32520
- "mfa-setup-form",
32521
- "profile-update-form",
32522
- "change-password-form",
32523
- "forgot-password-form",
32524
- "reset-password-form",
32525
- // Auth flow patterns
32526
- "login-with-mfa",
32527
- "sso-login",
32528
- "session-management",
32529
- "protected-route",
32530
- // Notification patterns
32531
- "notification-center",
32532
- "notification-dropdown"
32533
- ]).describe("The use case you need a pattern for"),
34199
+ useCase: z3.enum(patternIds).describe("The use case you need a pattern for"),
32534
34200
  requirements: z3.array(z3.string()).optional().describe("Additional requirements or constraints")
32535
34201
  });
32536
34202
  function registerSuggestPatternTool(server) {
@@ -32544,7 +34210,8 @@ function registerSuggestPatternTool(server) {
32544
34210
  const form = patterns2.forms.find((f) => f.id === useCase);
32545
34211
  const auth = patterns2.auth?.find((a) => a.id === useCase);
32546
34212
  const notification = patterns2.notifications?.find((n) => n.id === useCase);
32547
- const pattern = layout || form || auth || notification;
34213
+ const panel = patterns2.panels?.find((p) => p.id === useCase);
34214
+ const pattern = layout || form || auth || notification || panel;
32548
34215
  if (!pattern) {
32549
34216
  const availablePatterns = [
32550
34217
  ...patterns2.layouts.map((l) => ({ id: l.id, type: "layout", name: l.name })),
@@ -32554,7 +34221,8 @@ function registerSuggestPatternTool(server) {
32554
34221
  id: n.id,
32555
34222
  type: "notification",
32556
34223
  name: n.name
32557
- })) || []
34224
+ })) || [],
34225
+ ...patterns2.panels?.map((p) => ({ id: p.id, type: "panel", name: p.name })) || []
32558
34226
  ];
32559
34227
  return {
32560
34228
  content: [
@@ -32606,6 +34274,18 @@ var ValidateUsageSchema = z4.object({
32606
34274
  props: z4.record(z4.unknown()).describe("Props being passed to the component"),
32607
34275
  context: z4.string().optional().describe('Where the component is being used (e.g., "inside a form", "in modal")')
32608
34276
  });
34277
+ var GLOBAL_ATTRIBUTES = /* @__PURE__ */ new Set([
34278
+ "class",
34279
+ "children",
34280
+ "id",
34281
+ "style",
34282
+ "title",
34283
+ "role",
34284
+ "tabindex"
34285
+ ]);
34286
+ function isPassThroughAttribute(name) {
34287
+ return GLOBAL_ATTRIBUTES.has(name) || /^(aria-|data-|on[a-z])/.test(name);
34288
+ }
32609
34289
  function registerValidateUsageTool(server) {
32610
34290
  server.tool(
32611
34291
  "validate_component_usage",
@@ -32636,7 +34316,7 @@ function registerValidateUsageTool(server) {
32636
34316
  const issues = [];
32637
34317
  const knownProps = new Set(component.props.map((p) => p.name));
32638
34318
  for (const propName of Object.keys(props)) {
32639
- if (!knownProps.has(propName) && propName !== "class" && propName !== "children") {
34319
+ if (!knownProps.has(propName) && !isPassThroughAttribute(propName)) {
32640
34320
  issues.push({
32641
34321
  type: "warning",
32642
34322
  message: `Unknown prop "${propName}" - not in component API`,
@@ -33002,7 +34682,7 @@ function registerPrompts(server) {
33002
34682
  // package.json
33003
34683
  var package_default = {
33004
34684
  name: "@classic-homes/theme-mcp",
33005
- version: "0.3.3",
34685
+ version: "0.3.5",
33006
34686
  description: "MCP server for Classic Theme design system - enables AI assistants to understand and correctly use components, tokens, and patterns",
33007
34687
  type: "module",
33008
34688
  main: "dist/index.js",
@@ -33052,7 +34732,7 @@ var package_default = {
33052
34732
  start: "node dist/cli.js",
33053
34733
  typecheck: "tsc --noEmit",
33054
34734
  validate: "tsx scripts/validate-catalog-integrity.ts",
33055
- test: "npm run validate",
34735
+ test: "npm run validate && vitest run",
33056
34736
  clean: "node ../../scripts/rm.mjs dist",
33057
34737
  prepublishOnly: "npm run build"
33058
34738
  },