@classic-homes/theme-mcp 0.3.4 → 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/cli.js CHANGED
@@ -11,7 +11,7 @@ import { ResourceTemplate } from "@modelcontextprotocol/sdk/server/mcp.js";
11
11
 
12
12
  // src/data/component-catalog.json
13
13
  var component_catalog_default = {
14
- version: "0.3.4",
14
+ version: "0.3.5",
15
15
  components: [
16
16
  {
17
17
  name: "ActionHeader",
@@ -689,6 +689,49 @@ var component_catalog_default = {
689
689
  required: false,
690
690
  description: "Apply gradient fill to areas"
691
691
  },
692
+ {
693
+ name: "showLabels",
694
+ type: "boolean",
695
+ default: "false",
696
+ required: false,
697
+ description: "Show data labels"
698
+ },
699
+ {
700
+ name: "labelFormatter",
701
+ type: "string | ((params: LabelFormatterParams) => string)",
702
+ required: false,
703
+ description: "Data label template or function"
704
+ },
705
+ {
706
+ name: "xAxisConfig",
707
+ type: "AxisConfig",
708
+ required: false,
709
+ description: "Horizontal axis name, tick formatter, rotation and range"
710
+ },
711
+ {
712
+ name: "yAxisConfig",
713
+ type: "AxisConfig",
714
+ required: false,
715
+ description: "Vertical axis name, tick formatter, rotation and range"
716
+ },
717
+ {
718
+ name: "legend",
719
+ type: "ChartLegendConfig",
720
+ required: false,
721
+ description: "Built-in legend position, alignment, icon and formatter"
722
+ },
723
+ {
724
+ name: "onLegendChange",
725
+ type: "(visible: Record<string, boolean>) => void",
726
+ required: false,
727
+ description: "Called when legend items are shown or hidden"
728
+ },
729
+ {
730
+ name: "renderLegend",
731
+ type: "Snippet<[LegendRenderProps]>",
732
+ required: false,
733
+ description: "Custom HTML legend (e.g. `ChartLegend`) instead of the built-in one; React takes a function returning a node"
734
+ },
692
735
  {
693
736
  name: "onClick",
694
737
  type: "(params: DataPointEventParams) => void",
@@ -735,6 +778,24 @@ var component_catalog_default = {
735
778
  default: "true",
736
779
  required: false,
737
780
  description: "Show grid lines"
781
+ },
782
+ {
783
+ name: "tooltipFormatter",
784
+ type: "string | ((items: TooltipFormatterParams[]) => string)",
785
+ required: false,
786
+ description: "Custom tooltip template or HTML function"
787
+ },
788
+ {
789
+ name: "tooltipValueFormatter",
790
+ type: "(value: number) => string",
791
+ required: false,
792
+ description: "Format values in the default tooltip"
793
+ },
794
+ {
795
+ name: "option",
796
+ type: "EChartsOption",
797
+ required: false,
798
+ description: "Raw ECharts option deep-merged over the generated one"
738
799
  }
739
800
  ],
740
801
  variants: [
@@ -1513,6 +1574,42 @@ var component_catalog_default = {
1513
1574
  required: false,
1514
1575
  description: "Show value labels on bars"
1515
1576
  },
1577
+ {
1578
+ name: "labelFormatter",
1579
+ type: "string | ((params: LabelFormatterParams) => string)",
1580
+ required: false,
1581
+ description: "Data label template or function"
1582
+ },
1583
+ {
1584
+ name: "xAxisConfig",
1585
+ type: "AxisConfig",
1586
+ required: false,
1587
+ description: "Horizontal axis name, tick formatter, rotation and range"
1588
+ },
1589
+ {
1590
+ name: "yAxisConfig",
1591
+ type: "AxisConfig",
1592
+ required: false,
1593
+ description: "Vertical axis name, tick formatter, rotation and range"
1594
+ },
1595
+ {
1596
+ name: "legend",
1597
+ type: "ChartLegendConfig",
1598
+ required: false,
1599
+ description: "Built-in legend position, alignment, icon and formatter"
1600
+ },
1601
+ {
1602
+ name: "onLegendChange",
1603
+ type: "(visible: Record<string, boolean>) => void",
1604
+ required: false,
1605
+ description: "Called when legend items are shown or hidden"
1606
+ },
1607
+ {
1608
+ name: "renderLegend",
1609
+ type: "Snippet<[LegendRenderProps]>",
1610
+ required: false,
1611
+ description: "Custom HTML legend (e.g. `ChartLegend`) instead of the built-in one; React takes a function returning a node"
1612
+ },
1516
1613
  {
1517
1614
  name: "onClick",
1518
1615
  type: "(params: DataPointEventParams) => void",
@@ -1565,6 +1662,24 @@ var component_catalog_default = {
1565
1662
  default: "true",
1566
1663
  required: false,
1567
1664
  description: "Show grid lines"
1665
+ },
1666
+ {
1667
+ name: "tooltipFormatter",
1668
+ type: "string | ((items: TooltipFormatterParams[]) => string)",
1669
+ required: false,
1670
+ description: "Custom tooltip template or HTML function"
1671
+ },
1672
+ {
1673
+ name: "tooltipValueFormatter",
1674
+ type: "(value: number) => string",
1675
+ required: false,
1676
+ description: "Format values in the default tooltip"
1677
+ },
1678
+ {
1679
+ name: "option",
1680
+ type: "EChartsOption",
1681
+ required: false,
1682
+ description: "Raw ECharts option deep-merged over the generated one"
1568
1683
  }
1569
1684
  ],
1570
1685
  variants: [
@@ -1616,6 +1731,10 @@ var component_catalog_default = {
1616
1731
  {
1617
1732
  title: "With Value Labels",
1618
1733
  code: '<BarChart title="Monthly Performance" {data} showValues height={400} />'
1734
+ },
1735
+ {
1736
+ title: "Legend Placement",
1737
+ code: `<BarChart title="Weekly Sales" {data} legend={{ position: 'right', icon: 'circle' }} />`
1619
1738
  }
1620
1739
  ],
1621
1740
  relatedComponents: [
@@ -1803,6 +1922,18 @@ var component_catalog_default = {
1803
1922
  required: false,
1804
1923
  description: "Display volume bars below chart"
1805
1924
  },
1925
+ {
1926
+ name: "xAxisConfig",
1927
+ type: "AxisConfig",
1928
+ required: false,
1929
+ description: "Horizontal axis name, tick formatter, rotation and range"
1930
+ },
1931
+ {
1932
+ name: "yAxisConfig",
1933
+ type: "AxisConfig",
1934
+ required: false,
1935
+ description: "Vertical axis name, tick formatter, rotation and range"
1936
+ },
1806
1937
  {
1807
1938
  name: "onClick",
1808
1939
  type: "(params: CandlestickEventParams) => void",
@@ -1842,6 +1973,24 @@ var component_catalog_default = {
1842
1973
  default: "true",
1843
1974
  required: false,
1844
1975
  description: "Show grid lines"
1976
+ },
1977
+ {
1978
+ name: "tooltipFormatter",
1979
+ type: "string | ((items: TooltipFormatterParams[]) => string)",
1980
+ required: false,
1981
+ description: "Custom tooltip template or HTML function"
1982
+ },
1983
+ {
1984
+ name: "tooltipValueFormatter",
1985
+ type: "(value: number) => string",
1986
+ required: false,
1987
+ description: "Format values in the default tooltip"
1988
+ },
1989
+ {
1990
+ name: "option",
1991
+ type: "EChartsOption",
1992
+ required: false,
1993
+ description: "Raw ECharts option deep-merged over the generated one"
1845
1994
  }
1846
1995
  ],
1847
1996
  variants: [
@@ -2355,9 +2504,33 @@ var component_catalog_default = {
2355
2504
  type: "string",
2356
2505
  required: false,
2357
2506
  description: "Additional CSS classes for outer wrapper"
2507
+ },
2508
+ {
2509
+ name: "legend",
2510
+ type: "Snippet",
2511
+ required: false,
2512
+ description: 'Custom legend rendered beside the chart, outside the `role="img"` element'
2513
+ },
2514
+ {
2515
+ name: "legendPosition",
2516
+ type: "'top' | 'right' | 'bottom' | 'left'",
2517
+ default: "'bottom'",
2518
+ required: false,
2519
+ description: "Where the custom legend sits"
2520
+ }
2521
+ ],
2522
+ variants: [
2523
+ {
2524
+ name: "legendPosition",
2525
+ values: [
2526
+ "top",
2527
+ "right",
2528
+ "bottom",
2529
+ "left"
2530
+ ],
2531
+ default: "bottom"
2358
2532
  }
2359
2533
  ],
2360
- variants: [],
2361
2534
  slots: [],
2362
2535
  events: [],
2363
2536
  examples: [
@@ -2596,6 +2769,89 @@ var component_catalog_default = {
2596
2769
  "ChartSkeleton"
2597
2770
  ]
2598
2771
  },
2772
+ {
2773
+ name: "ChartLegend",
2774
+ description: "Accessible HTML legend for charts, used with the renderLegend prop",
2775
+ category: "chart",
2776
+ importPath: "@classic-homes/charts-svelte",
2777
+ props: [
2778
+ {
2779
+ name: "items",
2780
+ type: "LegendItem[]",
2781
+ required: true,
2782
+ description: "Entries with `name`, `color` and `visible`"
2783
+ },
2784
+ {
2785
+ name: "toggle",
2786
+ type: "(name: string) => void",
2787
+ required: true,
2788
+ description: "Show or hide an item"
2789
+ },
2790
+ {
2791
+ name: "position",
2792
+ type: "'top' | 'right' | 'bottom' | 'left'",
2793
+ default: "'bottom'",
2794
+ required: false,
2795
+ description: "Placement, used to pick the orientation"
2796
+ },
2797
+ {
2798
+ name: "chartTitle",
2799
+ type: "string",
2800
+ required: false,
2801
+ description: 'Labels the list as "{chartTitle} legend"'
2802
+ },
2803
+ {
2804
+ name: "orientation",
2805
+ type: "'horizontal' | 'vertical'",
2806
+ default: "vertical for left and right",
2807
+ required: false,
2808
+ description: "Item flow"
2809
+ },
2810
+ {
2811
+ name: "class",
2812
+ type: "string",
2813
+ required: false,
2814
+ description: "Additional classes (`className` in React)"
2815
+ }
2816
+ ],
2817
+ variants: [
2818
+ {
2819
+ name: "position",
2820
+ values: [
2821
+ "top",
2822
+ "right",
2823
+ "bottom",
2824
+ "left"
2825
+ ],
2826
+ default: "bottom"
2827
+ },
2828
+ {
2829
+ name: "orientation",
2830
+ values: [
2831
+ "horizontal",
2832
+ "vertical"
2833
+ ],
2834
+ default: "vertical for left and right"
2835
+ }
2836
+ ],
2837
+ slots: [],
2838
+ events: [],
2839
+ examples: [
2840
+ {
2841
+ title: "Basic Usage",
2842
+ code: `<script>
2843
+ import { LineChart, ChartLegend } from '@classic-homes/charts-svelte';
2844
+ </script>
2845
+
2846
+ {#snippet legend(props)}
2847
+ <ChartLegend {...props} />
2848
+ {/snippet}
2849
+
2850
+ <LineChart title="Revenue" {data} renderLegend={legend} legend={{ position: 'right' }} />`
2851
+ }
2852
+ ],
2853
+ relatedComponents: []
2854
+ },
2599
2855
  {
2600
2856
  name: "ChartSkeleton",
2601
2857
  description: "Loading skeleton placeholder for charts with animated bars",
@@ -5053,7 +5309,7 @@ var component_catalog_default = {
5053
5309
  {
5054
5310
  name: "showLabels",
5055
5311
  type: "boolean",
5056
- default: "false",
5312
+ default: "true",
5057
5313
  required: false,
5058
5314
  description: "Show labels on slices"
5059
5315
  },
@@ -5083,6 +5339,30 @@ var component_catalog_default = {
5083
5339
  required: false,
5084
5340
  description: "Value displayed in the center"
5085
5341
  },
5342
+ {
5343
+ name: "labelFormatter",
5344
+ type: "string | ((params: LabelFormatterParams) => string)",
5345
+ required: false,
5346
+ description: "Data label template or function"
5347
+ },
5348
+ {
5349
+ name: "legend",
5350
+ type: "ChartLegendConfig",
5351
+ required: false,
5352
+ description: "Built-in legend position, alignment, icon and formatter"
5353
+ },
5354
+ {
5355
+ name: "onLegendChange",
5356
+ type: "(visible: Record<string, boolean>) => void",
5357
+ required: false,
5358
+ description: "Called when legend items are shown or hidden"
5359
+ },
5360
+ {
5361
+ name: "renderLegend",
5362
+ type: "Snippet<[LegendRenderProps]>",
5363
+ required: false,
5364
+ description: "Custom HTML legend (e.g. `ChartLegend`) instead of the built-in one; React takes a function returning a node"
5365
+ },
5086
5366
  {
5087
5367
  name: "onClick",
5088
5368
  type: "(params: SliceEventParams) => void",
@@ -5122,6 +5402,24 @@ var component_catalog_default = {
5122
5402
  default: "true",
5123
5403
  required: false,
5124
5404
  description: "Show tooltip on hover"
5405
+ },
5406
+ {
5407
+ name: "tooltipFormatter",
5408
+ type: "string | ((items: TooltipFormatterParams[]) => string)",
5409
+ required: false,
5410
+ description: "Custom tooltip template or HTML function"
5411
+ },
5412
+ {
5413
+ name: "tooltipValueFormatter",
5414
+ type: "(value: number) => string",
5415
+ required: false,
5416
+ description: "Format values in the default tooltip"
5417
+ },
5418
+ {
5419
+ name: "option",
5420
+ type: "EChartsOption",
5421
+ required: false,
5422
+ description: "Raw ECharts option deep-merged over the generated one"
5125
5423
  }
5126
5424
  ],
5127
5425
  variants: [
@@ -5507,6 +5805,132 @@ var component_catalog_default = {
5507
5805
  "AppShell"
5508
5806
  ]
5509
5807
  },
5808
+ {
5809
+ name: "FeedbackWidget",
5810
+ description: "Edge tab and dialog that sends page feedback, quoted passages and screenshots to chapi",
5811
+ category: "feedback",
5812
+ importPath: "@classic-homes/feedback-svelte",
5813
+ props: [
5814
+ {
5815
+ name: "apiBase",
5816
+ type: "string",
5817
+ required: false,
5818
+ description: "chapi origin. `/v2/feedback` is appended; a trailing `/v1` or `/` is stripped (required)"
5819
+ },
5820
+ {
5821
+ name: "source",
5822
+ type: "string",
5823
+ required: false,
5824
+ description: "Host app id, `/^[a-z0-9-]{1,40}$/`, e.g. `app`, `field-app`, `homeowner-guide` (required)"
5825
+ },
5826
+ {
5827
+ name: "getToken",
5828
+ type: "() => Promise<string | null> | string | null",
5829
+ required: false,
5830
+ description: "Bearer token for chapi. Return `null` for anonymous use"
5831
+ },
5832
+ {
5833
+ name: "user",
5834
+ type: "{ name?: string; email?: string }",
5835
+ required: false,
5836
+ description: "Prefills name and email. Without it the fields are marked optional"
5837
+ },
5838
+ {
5839
+ name: "turnstileSiteKey",
5840
+ type: "string",
5841
+ required: false,
5842
+ description: "Cloudflare Turnstile site key, used when there is no bearer token"
5843
+ },
5844
+ {
5845
+ name: "selection",
5846
+ type: "{ container: string } | false",
5847
+ default: "false",
5848
+ required: false,
5849
+ description: "Enables comments on selected text inside `container`"
5850
+ },
5851
+ {
5852
+ name: "categories",
5853
+ type: "FeedbackCategoryOption[]",
5854
+ default: "see below",
5855
+ required: false,
5856
+ description: "Category chips. `value` is sent as `payload.category`"
5857
+ },
5858
+ {
5859
+ name: "getContext",
5860
+ type: "() => Record<string, string | undefined>",
5861
+ required: false,
5862
+ description: "Host context added to `payload.metadata` at submit time"
5863
+ },
5864
+ {
5865
+ name: "trigger",
5866
+ type: "'tab' | 'none'",
5867
+ default: "'tab'",
5868
+ required: false,
5869
+ description: "`'none'` hides the edge tab; open the dialog with `openFeedback()`"
5870
+ },
5871
+ {
5872
+ name: "tabLabel",
5873
+ type: "string",
5874
+ default: "'Feedback'",
5875
+ required: false,
5876
+ description: "Edge tab text"
5877
+ },
5878
+ {
5879
+ name: "maxAttachments",
5880
+ type: "number",
5881
+ default: "1",
5882
+ required: false,
5883
+ description: "Screenshots per submission, 0 to 3"
5884
+ },
5885
+ {
5886
+ name: "allowScreenshotCapture",
5887
+ type: "boolean",
5888
+ default: "true",
5889
+ required: false,
5890
+ description: 'Shows "Capture this page"'
5891
+ },
5892
+ {
5893
+ name: "submit",
5894
+ type: "(payload: FeedbackPayload, files: Blob[]) => Promise<SubmitResult>",
5895
+ required: false,
5896
+ description: "Replaces the built-in POST, e.g. with an offline queue"
5897
+ },
5898
+ {
5899
+ name: "onSubmitted",
5900
+ type: "(result: SubmitResult) => void",
5901
+ required: false,
5902
+ description: "Called after a successful (or queued) submission"
5903
+ }
5904
+ ],
5905
+ variants: [
5906
+ {
5907
+ name: "trigger",
5908
+ values: [
5909
+ "tab",
5910
+ "none"
5911
+ ],
5912
+ default: "tab"
5913
+ }
5914
+ ],
5915
+ slots: [
5916
+ {
5917
+ name: "children",
5918
+ description: "Main content",
5919
+ required: false
5920
+ }
5921
+ ],
5922
+ events: [],
5923
+ examples: [
5924
+ {
5925
+ title: "Open from an error card",
5926
+ 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>"
5927
+ }
5928
+ ],
5929
+ relatedComponents: [
5930
+ "Dialog",
5931
+ "FileUpload"
5932
+ ]
5933
+ },
5510
5934
  {
5511
5935
  name: "FileUpload",
5512
5936
  description: "File upload component with drag-and-drop support",
@@ -6327,6 +6751,30 @@ var component_catalog_default = {
6327
6751
  required: false,
6328
6752
  description: "Show value labels"
6329
6753
  },
6754
+ {
6755
+ name: "labelFormatter",
6756
+ type: "string | ((params: LabelFormatterParams) => string)",
6757
+ required: false,
6758
+ description: "Data label template or function"
6759
+ },
6760
+ {
6761
+ name: "legend",
6762
+ type: "ChartLegendConfig",
6763
+ required: false,
6764
+ description: "Built-in legend position, alignment, icon and formatter"
6765
+ },
6766
+ {
6767
+ name: "onLegendChange",
6768
+ type: "(visible: Record<string, boolean>) => void",
6769
+ required: false,
6770
+ description: "Called when legend items are shown or hidden"
6771
+ },
6772
+ {
6773
+ name: "renderLegend",
6774
+ type: "Snippet<[LegendRenderProps]>",
6775
+ required: false,
6776
+ description: "Custom HTML legend (e.g. `ChartLegend`) instead of the built-in one; React takes a function returning a node"
6777
+ },
6330
6778
  {
6331
6779
  name: "onClick",
6332
6780
  type: "(params: SliceEventParams) => void",
@@ -6366,6 +6814,24 @@ var component_catalog_default = {
6366
6814
  default: "true",
6367
6815
  required: false,
6368
6816
  description: "Show tooltip on hover"
6817
+ },
6818
+ {
6819
+ name: "tooltipFormatter",
6820
+ type: "string | ((items: TooltipFormatterParams[]) => string)",
6821
+ required: false,
6822
+ description: "Custom tooltip template or HTML function"
6823
+ },
6824
+ {
6825
+ name: "tooltipValueFormatter",
6826
+ type: "(value: number) => string",
6827
+ required: false,
6828
+ description: "Format values in the default tooltip"
6829
+ },
6830
+ {
6831
+ name: "option",
6832
+ type: "EChartsOption",
6833
+ required: false,
6834
+ description: "Raw ECharts option deep-merged over the generated one"
6369
6835
  }
6370
6836
  ],
6371
6837
  variants: [
@@ -6511,6 +6977,24 @@ var component_catalog_default = {
6511
6977
  default: "true",
6512
6978
  required: false,
6513
6979
  description: "Enable/disable animations"
6980
+ },
6981
+ {
6982
+ name: "tooltipFormatter",
6983
+ type: "string | ((items: TooltipFormatterParams[]) => string)",
6984
+ required: false,
6985
+ description: "Custom tooltip template or HTML function"
6986
+ },
6987
+ {
6988
+ name: "tooltipValueFormatter",
6989
+ type: "(value: number) => string",
6990
+ required: false,
6991
+ description: "Format values in the default tooltip"
6992
+ },
6993
+ {
6994
+ name: "option",
6995
+ type: "EChartsOption",
6996
+ required: false,
6997
+ description: "Raw ECharts option deep-merged over the generated one"
6514
6998
  }
6515
6999
  ],
6516
7000
  variants: [
@@ -6934,6 +7418,24 @@ var component_catalog_default = {
6934
7418
  required: false,
6935
7419
  description: "Display values in cells"
6936
7420
  },
7421
+ {
7422
+ name: "labelFormatter",
7423
+ type: "string | ((params: LabelFormatterParams) => string)",
7424
+ required: false,
7425
+ description: "Data label template or function"
7426
+ },
7427
+ {
7428
+ name: "xAxisConfig",
7429
+ type: "AxisConfig",
7430
+ required: false,
7431
+ description: "Horizontal axis name, tick formatter, rotation and range"
7432
+ },
7433
+ {
7434
+ name: "yAxisConfig",
7435
+ type: "AxisConfig",
7436
+ required: false,
7437
+ description: "Vertical axis name, tick formatter, rotation and range"
7438
+ },
6937
7439
  {
6938
7440
  name: "onClick",
6939
7441
  type: "(params: HeatmapEventParams) => void",
@@ -6966,6 +7468,24 @@ var component_catalog_default = {
6966
7468
  default: "true",
6967
7469
  required: false,
6968
7470
  description: "Show tooltip on hover"
7471
+ },
7472
+ {
7473
+ name: "tooltipFormatter",
7474
+ type: "string | ((items: TooltipFormatterParams[]) => string)",
7475
+ required: false,
7476
+ description: "Custom tooltip template or HTML function"
7477
+ },
7478
+ {
7479
+ name: "tooltipValueFormatter",
7480
+ type: "(value: number) => string",
7481
+ required: false,
7482
+ description: "Format values in the default tooltip"
7483
+ },
7484
+ {
7485
+ name: "option",
7486
+ type: "EChartsOption",
7487
+ required: false,
7488
+ description: "Raw ECharts option deep-merged over the generated one"
6969
7489
  }
6970
7490
  ],
6971
7491
  variants: [
@@ -7741,6 +8261,49 @@ var component_catalog_default = {
7741
8261
  required: false,
7742
8262
  description: "Stack multiple series on top of each other"
7743
8263
  },
8264
+ {
8265
+ name: "showLabels",
8266
+ type: "boolean",
8267
+ default: "false",
8268
+ required: false,
8269
+ description: "Show data labels"
8270
+ },
8271
+ {
8272
+ name: "labelFormatter",
8273
+ type: "string | ((params: LabelFormatterParams) => string)",
8274
+ required: false,
8275
+ description: "Data label template or function"
8276
+ },
8277
+ {
8278
+ name: "xAxisConfig",
8279
+ type: "AxisConfig",
8280
+ required: false,
8281
+ description: "Horizontal axis name, tick formatter, rotation and range"
8282
+ },
8283
+ {
8284
+ name: "yAxisConfig",
8285
+ type: "AxisConfig",
8286
+ required: false,
8287
+ description: "Vertical axis name, tick formatter, rotation and range"
8288
+ },
8289
+ {
8290
+ name: "legend",
8291
+ type: "ChartLegendConfig",
8292
+ required: false,
8293
+ description: "Built-in legend position, alignment, icon and formatter"
8294
+ },
8295
+ {
8296
+ name: "onLegendChange",
8297
+ type: "(visible: Record<string, boolean>) => void",
8298
+ required: false,
8299
+ description: "Called when legend items are shown or hidden"
8300
+ },
8301
+ {
8302
+ name: "renderLegend",
8303
+ type: "Snippet<[LegendRenderProps]>",
8304
+ required: false,
8305
+ description: "Custom HTML legend (e.g. `ChartLegend`) instead of the built-in one; React takes a function returning a node"
8306
+ },
7744
8307
  {
7745
8308
  name: "onClick",
7746
8309
  type: "(params: DataPointEventParams) => void",
@@ -7825,6 +8388,24 @@ var component_catalog_default = {
7825
8388
  type: "string",
7826
8389
  required: false,
7827
8390
  description: "Custom CSS class"
8391
+ },
8392
+ {
8393
+ name: "tooltipFormatter",
8394
+ type: "string | ((items: TooltipFormatterParams[]) => string)",
8395
+ required: false,
8396
+ description: "Custom tooltip template or HTML function"
8397
+ },
8398
+ {
8399
+ name: "tooltipValueFormatter",
8400
+ type: "(value: number) => string",
8401
+ required: false,
8402
+ description: "Format values in the default tooltip"
8403
+ },
8404
+ {
8405
+ name: "option",
8406
+ type: "EChartsOption",
8407
+ required: false,
8408
+ description: "Raw ECharts option deep-merged over the generated one"
7828
8409
  }
7829
8410
  ],
7830
8411
  variants: [
@@ -7882,6 +8463,20 @@ var component_catalog_default = {
7882
8463
  </script>
7883
8464
 
7884
8465
  <LineChart title="Interactive Chart" {data} onClick={handleClick} />`
8466
+ },
8467
+ {
8468
+ title: "Formatted Tooltip and Top Legend",
8469
+ code: "<LineChart\n title=\"Visitors\"\n {data}\n legend={{ position: 'top', align: 'end' }}\n tooltipValueFormatter={(v) => `${v.toLocaleString()} visits`}\n/>"
8470
+ },
8471
+ {
8472
+ title: "Annotating Points",
8473
+ code: `<LineChart
8474
+ title="Visitors"
8475
+ data={{
8476
+ categories: ['Mon', 'Tue', 'Wed'],
8477
+ series: [{ name: 'Visits', data: [120, 340, 180], labels: [null, 'Launch'] }],
8478
+ }}
8479
+ />`
7885
8480
  }
7886
8481
  ],
7887
8482
  relatedComponents: [
@@ -10372,7 +10967,7 @@ var component_catalog_default = {
10372
10967
  {
10373
10968
  name: "showLabels",
10374
10969
  type: "boolean",
10375
- default: "false",
10970
+ default: "true",
10376
10971
  required: false,
10377
10972
  description: "Show labels on slices"
10378
10973
  },
@@ -10390,6 +10985,30 @@ var component_catalog_default = {
10390
10985
  required: false,
10391
10986
  description: "Inner radius (0 for solid pie)"
10392
10987
  },
10988
+ {
10989
+ name: "labelFormatter",
10990
+ type: "string | ((params: LabelFormatterParams) => string)",
10991
+ required: false,
10992
+ description: "Data label template or function"
10993
+ },
10994
+ {
10995
+ name: "legend",
10996
+ type: "ChartLegendConfig",
10997
+ required: false,
10998
+ description: "Built-in legend position, alignment, icon and formatter"
10999
+ },
11000
+ {
11001
+ name: "onLegendChange",
11002
+ type: "(visible: Record<string, boolean>) => void",
11003
+ required: false,
11004
+ description: "Called when legend items are shown or hidden"
11005
+ },
11006
+ {
11007
+ name: "renderLegend",
11008
+ type: "Snippet<[LegendRenderProps]>",
11009
+ required: false,
11010
+ description: "Custom HTML legend (e.g. `ChartLegend`) instead of the built-in one; React takes a function returning a node"
11011
+ },
10393
11012
  {
10394
11013
  name: "onClick",
10395
11014
  type: "(params: SliceEventParams) => void",
@@ -10429,6 +11048,24 @@ var component_catalog_default = {
10429
11048
  default: "true",
10430
11049
  required: false,
10431
11050
  description: "Show tooltip on hover"
11051
+ },
11052
+ {
11053
+ name: "tooltipFormatter",
11054
+ type: "string | ((items: TooltipFormatterParams[]) => string)",
11055
+ required: false,
11056
+ description: "Custom tooltip template or HTML function"
11057
+ },
11058
+ {
11059
+ name: "tooltipValueFormatter",
11060
+ type: "(value: number) => string",
11061
+ required: false,
11062
+ description: "Format values in the default tooltip"
11063
+ },
11064
+ {
11065
+ name: "option",
11066
+ type: "EChartsOption",
11067
+ required: false,
11068
+ description: "Raw ECharts option deep-merged over the generated one"
10432
11069
  }
10433
11070
  ],
10434
11071
  variants: [
@@ -10485,6 +11122,29 @@ var component_catalog_default = {
10485
11122
  </script>
10486
11123
 
10487
11124
  <PieChart title="Interactive Pie" {data} onClick={handleClick} />`
11125
+ },
11126
+ {
11127
+ title: "Custom Labels",
11128
+ code: `<PieChart
11129
+ title="Market Share"
11130
+ data={[
11131
+ { name: 'Product A', value: 335, label: 'Leader' },
11132
+ { name: 'Product B', value: 310 },
11133
+ ]}
11134
+ labelFormatter={'{b}\\n{d}%'}
11135
+ />`
11136
+ },
11137
+ {
11138
+ title: "Custom Legend on the Right",
11139
+ code: `<script>
11140
+ import { PieChart, ChartLegend } from '@classic-homes/charts-svelte';
11141
+ </script>
11142
+
11143
+ {#snippet legend(props)}
11144
+ <ChartLegend {...props} />
11145
+ {/snippet}
11146
+
11147
+ <PieChart title="Market Share" {data} renderLegend={legend} legend={{ position: 'right' }} />`
10488
11148
  }
10489
11149
  ],
10490
11150
  relatedComponents: [
@@ -10913,6 +11573,37 @@ var component_catalog_default = {
10913
11573
  required: false,
10914
11574
  description: "Shape of the radar grid"
10915
11575
  },
11576
+ {
11577
+ name: "showLabels",
11578
+ type: "boolean",
11579
+ default: "false",
11580
+ required: false,
11581
+ description: "Show data labels"
11582
+ },
11583
+ {
11584
+ name: "labelFormatter",
11585
+ type: "string | ((params: LabelFormatterParams) => string)",
11586
+ required: false,
11587
+ description: "Data label template or function"
11588
+ },
11589
+ {
11590
+ name: "legend",
11591
+ type: "ChartLegendConfig",
11592
+ required: false,
11593
+ description: "Built-in legend position, alignment, icon and formatter"
11594
+ },
11595
+ {
11596
+ name: "onLegendChange",
11597
+ type: "(visible: Record<string, boolean>) => void",
11598
+ required: false,
11599
+ description: "Called when legend items are shown or hidden"
11600
+ },
11601
+ {
11602
+ name: "renderLegend",
11603
+ type: "Snippet<[LegendRenderProps]>",
11604
+ required: false,
11605
+ description: "Custom HTML legend (e.g. `ChartLegend`) instead of the built-in one; React takes a function returning a node"
11606
+ },
10916
11607
  {
10917
11608
  name: "title",
10918
11609
  type: "string",
@@ -10946,6 +11637,24 @@ var component_catalog_default = {
10946
11637
  default: "true",
10947
11638
  required: false,
10948
11639
  description: "Show tooltip on hover"
11640
+ },
11641
+ {
11642
+ name: "tooltipFormatter",
11643
+ type: "string | ((items: TooltipFormatterParams[]) => string)",
11644
+ required: false,
11645
+ description: "Custom tooltip template or HTML function"
11646
+ },
11647
+ {
11648
+ name: "tooltipValueFormatter",
11649
+ type: "(value: number) => string",
11650
+ required: false,
11651
+ description: "Format values in the default tooltip"
11652
+ },
11653
+ {
11654
+ name: "option",
11655
+ type: "EChartsOption",
11656
+ required: false,
11657
+ description: "Raw ECharts option deep-merged over the generated one"
10949
11658
  }
10950
11659
  ],
10951
11660
  variants: [
@@ -11230,6 +11939,12 @@ var component_catalog_default = {
11230
11939
  required: false,
11231
11940
  description: "Flow direction"
11232
11941
  },
11942
+ {
11943
+ name: "labelFormatter",
11944
+ type: "string | ((params: LabelFormatterParams) => string)",
11945
+ required: false,
11946
+ description: "Data label template or function"
11947
+ },
11233
11948
  {
11234
11949
  name: "onClick",
11235
11950
  type: "(params: SankeyEventParams) => void",
@@ -11262,6 +11977,24 @@ var component_catalog_default = {
11262
11977
  default: "true",
11263
11978
  required: false,
11264
11979
  description: "Show tooltip on hover"
11980
+ },
11981
+ {
11982
+ name: "tooltipFormatter",
11983
+ type: "string | ((items: TooltipFormatterParams[]) => string)",
11984
+ required: false,
11985
+ description: "Custom tooltip template or HTML function"
11986
+ },
11987
+ {
11988
+ name: "tooltipValueFormatter",
11989
+ type: "(value: number) => string",
11990
+ required: false,
11991
+ description: "Format values in the default tooltip"
11992
+ },
11993
+ {
11994
+ name: "option",
11995
+ type: "EChartsOption",
11996
+ required: false,
11997
+ description: "Raw ECharts option deep-merged over the generated one"
11265
11998
  }
11266
11999
  ],
11267
12000
  variants: [
@@ -11386,6 +12119,49 @@ var component_catalog_default = {
11386
12119
  required: false,
11387
12120
  description: "Point size (fixed or dynamic)"
11388
12121
  },
12122
+ {
12123
+ name: "showLabels",
12124
+ type: "boolean",
12125
+ default: "false",
12126
+ required: false,
12127
+ description: "Show data labels"
12128
+ },
12129
+ {
12130
+ name: "labelFormatter",
12131
+ type: "string | ((params: LabelFormatterParams) => string)",
12132
+ required: false,
12133
+ description: "Data label template or function"
12134
+ },
12135
+ {
12136
+ name: "xAxisConfig",
12137
+ type: "AxisConfig",
12138
+ required: false,
12139
+ description: "Horizontal axis name, tick formatter, rotation and range"
12140
+ },
12141
+ {
12142
+ name: "yAxisConfig",
12143
+ type: "AxisConfig",
12144
+ required: false,
12145
+ description: "Vertical axis name, tick formatter, rotation and range"
12146
+ },
12147
+ {
12148
+ name: "legend",
12149
+ type: "ChartLegendConfig",
12150
+ required: false,
12151
+ description: "Built-in legend position, alignment, icon and formatter"
12152
+ },
12153
+ {
12154
+ name: "onLegendChange",
12155
+ type: "(visible: Record<string, boolean>) => void",
12156
+ required: false,
12157
+ description: "Called when legend items are shown or hidden"
12158
+ },
12159
+ {
12160
+ name: "renderLegend",
12161
+ type: "Snippet<[LegendRenderProps]>",
12162
+ required: false,
12163
+ description: "Custom HTML legend (e.g. `ChartLegend`) instead of the built-in one; React takes a function returning a node"
12164
+ },
11389
12165
  {
11390
12166
  name: "onClick",
11391
12167
  type: "(params: DataPointEventParams) => void",
@@ -11425,6 +12201,24 @@ var component_catalog_default = {
11425
12201
  default: "true",
11426
12202
  required: false,
11427
12203
  description: "Show tooltip on hover"
12204
+ },
12205
+ {
12206
+ name: "tooltipFormatter",
12207
+ type: "string | ((items: TooltipFormatterParams[]) => string)",
12208
+ required: false,
12209
+ description: "Custom tooltip template or HTML function"
12210
+ },
12211
+ {
12212
+ name: "tooltipValueFormatter",
12213
+ type: "(value: number) => string",
12214
+ required: false,
12215
+ description: "Format values in the default tooltip"
12216
+ },
12217
+ {
12218
+ name: "option",
12219
+ type: "EChartsOption",
12220
+ required: false,
12221
+ description: "Raw ECharts option deep-merged over the generated one"
11428
12222
  }
11429
12223
  ],
11430
12224
  variants: [
@@ -14350,6 +15144,12 @@ var component_catalog_default = {
14350
15144
  required: false,
14351
15145
  description: "Visual configuration for each level"
14352
15146
  },
15147
+ {
15148
+ name: "labelFormatter",
15149
+ type: "string | ((params: LabelFormatterParams) => string)",
15150
+ required: false,
15151
+ description: "Data label template or function"
15152
+ },
14353
15153
  {
14354
15154
  name: "onClick",
14355
15155
  type: "(params: TreemapEventParams) => void",
@@ -14382,6 +15182,24 @@ var component_catalog_default = {
14382
15182
  default: "true",
14383
15183
  required: false,
14384
15184
  description: "Show tooltip on hover"
15185
+ },
15186
+ {
15187
+ name: "tooltipFormatter",
15188
+ type: "string | ((items: TooltipFormatterParams[]) => string)",
15189
+ required: false,
15190
+ description: "Custom tooltip template or HTML function"
15191
+ },
15192
+ {
15193
+ name: "tooltipValueFormatter",
15194
+ type: "(value: number) => string",
15195
+ required: false,
15196
+ description: "Format values in the default tooltip"
15197
+ },
15198
+ {
15199
+ name: "option",
15200
+ type: "EChartsOption",
15201
+ required: false,
15202
+ description: "Raw ECharts option deep-merged over the generated one"
14385
15203
  }
14386
15204
  ],
14387
15205
  variants: [
@@ -14824,7 +15642,7 @@ function registerComponentResources(server) {
14824
15642
 
14825
15643
  // src/data/token-definitions.json
14826
15644
  var token_definitions_default = {
14827
- version: "0.3.4",
15645
+ version: "0.3.5",
14828
15646
  colors: {
14829
15647
  brand: [
14830
15648
  {
@@ -15807,7 +16625,7 @@ function registerTokenResources(server) {
15807
16625
 
15808
16626
  // src/data/styles-catalog.json
15809
16627
  var styles_catalog_default = {
15810
- version: "0.3.4",
16628
+ version: "0.3.5",
15811
16629
  package: "@classic-homes/theme-styles",
15812
16630
  description: "Base CSS styles, accessibility features, and utility classes for the Classic Theme design system",
15813
16631
  integration: {
@@ -16190,7 +17008,7 @@ import { ResourceTemplate as ResourceTemplate2 } from "@modelcontextprotocol/sdk
16190
17008
 
16191
17009
  // src/data/pattern-library.json
16192
17010
  var pattern_library_default = {
16193
- version: "0.3.4",
17011
+ version: "0.3.5",
16194
17012
  layouts: [
16195
17013
  {
16196
17014
  id: "dashboard-page",
@@ -17284,7 +18102,7 @@ function registerLayoutResources(server) {
17284
18102
 
17285
18103
  // src/data/schema-catalog.json
17286
18104
  var schema_catalog_default = {
17287
- version: "0.3.4",
18105
+ version: "0.3.5",
17288
18106
  packageName: "@classic-homes/theme-svelte",
17289
18107
  importPath: "@classic-homes/theme-svelte",
17290
18108
  generatedFrom: "packages/svelte/src/lib/schemas/index.ts",
@@ -18092,7 +18910,7 @@ import { ResourceTemplate as ResourceTemplate3 } from "@modelcontextprotocol/sdk
18092
18910
 
18093
18911
  // src/data/auth-catalog.json
18094
18912
  var auth_catalog_default = {
18095
- version: "0.3.4",
18913
+ version: "0.3.5",
18096
18914
  packageName: "@classic-homes/auth",
18097
18915
  description: "Authentication services and Svelte bindings for Classic Theme apps",
18098
18916
  subpackages: {
@@ -18666,12 +19484,12 @@ var auth_catalog_default = {
18666
19484
  {
18667
19485
  name: "ROLE_NAMES",
18668
19486
  type: "readonly RoleName[]",
18669
- 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."
19487
+ 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."
18670
19488
  },
18671
19489
  {
18672
19490
  name: "ROLE_HIERARCHY",
18673
19491
  type: "Record<string, number>",
18674
- 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."
19492
+ 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."
18675
19493
  }
18676
19494
  ],
18677
19495
  types: [
@@ -21129,7 +21947,7 @@ import { ResourceTemplate as ResourceTemplate4 } from "@modelcontextprotocol/sdk
21129
21947
 
21130
21948
  // src/data/notifications-catalog.json
21131
21949
  var notifications_catalog_default = {
21132
- version: "0.3.4",
21950
+ version: "0.3.5",
21133
21951
  packageName: "@classic-homes/notifications",
21134
21952
  description: "Notification services and Svelte bindings for Classic Theme apps",
21135
21953
  subpackages: {
@@ -22041,7 +22859,7 @@ function registerNotificationsResources(server) {
22041
22859
 
22042
22860
  // src/data/docs-catalog.json
22043
22861
  var docs_catalog_default = {
22044
- version: "0.3.4",
22862
+ version: "0.3.5",
22045
22863
  packageName: "@classic-homes/theme-docs",
22046
22864
  description: "Markdown documentation components for the Classic theme system",
22047
22865
  exports: {
@@ -22069,6 +22887,10 @@ var docs_catalog_default = {
22069
22887
  importPath: "@classic-homes/theme-docs/content",
22070
22888
  description: "loadDocs/renderDocs: a Docusaurus-style docs directory as routes, autogenerated sidebars, generated-index pages, tags and rendered HTML (Node, build time)"
22071
22889
  },
22890
+ "./content/core": {
22891
+ importPath: "@classic-homes/theme-docs/content/core",
22892
+ description: "Subpath export for content/core"
22893
+ },
22072
22894
  "./nav": {
22073
22895
  importPath: "@classic-homes/theme-docs/nav",
22074
22896
  description: "Sidebar helpers (neighbours, breadcrumbs, flattenNav, tagCounts) and content-model types, browser-safe"
@@ -22495,6 +23317,13 @@ var docs_catalog_default = {
22495
23317
  default: "'lg'",
22496
23318
  description: "Breakpoint for desktop sidebar display"
22497
23319
  },
23320
+ {
23321
+ name: "desktopPosition",
23322
+ type: "'fixed' | 'inline'",
23323
+ required: false,
23324
+ default: "'fixed'",
23325
+ description: "Desktop sidebar pinned to the viewport's right edge, or a sticky column in the parent flex row (DocPage uses 'inline')"
23326
+ },
22498
23327
  {
22499
23328
  name: "class",
22500
23329
  type: "string",
@@ -23702,7 +24531,7 @@ function registerDocsResources(server) {
23702
24531
 
23703
24532
  // src/data/charts-catalog.json
23704
24533
  var charts_catalog_default = {
23705
- version: "0.3.4",
24534
+ version: "0.3.5",
23706
24535
  packageName: "@classic-homes/charts-core",
23707
24536
  description: "Core utilities, types, and themes for Classic Theme chart components",
23708
24537
  subpackages: {
@@ -23823,6 +24652,47 @@ var charts_catalog_default = {
23823
24652
  description: "Generate hidden HTML data table for screen readers (uses sr-only class)"
23824
24653
  }
23825
24654
  ]
24655
+ },
24656
+ options: {
24657
+ description: "Builders for labels, axes, tooltips, legends and option overrides (used by charts-react and charts-svelte)",
24658
+ functions: [
24659
+ {
24660
+ name: "mergeChartOption",
24661
+ signature: "<T extends object>(generated: T, override?: object) => T",
24662
+ description: "Deep-merge a user ECharts option over a generated one; top-level arrays merge by index, nested arrays replace",
24663
+ example: "mergeChartOption(option, { series: [{ label: { show: true } }] })"
24664
+ },
24665
+ {
24666
+ name: "buildLegend",
24667
+ signature: "(names: string[], config: ChartLegendConfig | undefined, opts: { show: boolean; custom?: boolean; defaults?: object }) => object | undefined",
24668
+ description: "Build an ECharts legend; `custom` keeps it hidden so legend actions still work"
24669
+ },
24670
+ {
24671
+ name: "buildAxis",
24672
+ signature: "<T>(base: T, config?: AxisConfig) => T",
24673
+ description: "Apply AxisConfig to a generated axis"
24674
+ },
24675
+ {
24676
+ name: "buildDataLabel",
24677
+ signature: "(base: object, hidden: object | undefined, opts: { show: boolean; formatter?: ChartFormatter<LabelFormatterParams>; getLabel?: PointLabelLookup }) => object | undefined",
24678
+ description: "Build a series label block"
24679
+ },
24680
+ {
24681
+ name: "buildTooltip",
24682
+ signature: "(base: object, opts: { show: boolean; formatter?; valueFormatter?; getLabel? }) => object | undefined",
24683
+ description: "Build a tooltip with formatter / valueFormatter"
24684
+ },
24685
+ {
24686
+ name: "getLegendItems",
24687
+ signature: "(names: string[], palette: string[], overrides: (string | undefined)[], visible: Record<string, boolean>) => LegendItem[]",
24688
+ description: "Legend entries with their drawn colours"
24689
+ },
24690
+ {
24691
+ name: "withPointLabels",
24692
+ signature: "(values, labels, formatter) => data items",
24693
+ description: "Attach per-point label overrides to labelled points"
24694
+ }
24695
+ ]
23826
24696
  }
23827
24697
  }
23828
24698
  },
@@ -23979,6 +24849,24 @@ var charts_catalog_default = {
23979
24849
  required: false,
23980
24850
  description: "Show grid lines (where applicable)"
23981
24851
  },
24852
+ {
24853
+ name: "tooltipFormatter",
24854
+ type: "string | ((items: TooltipFormatterParams[]) => string)",
24855
+ required: false,
24856
+ description: "Custom tooltip content: an ECharts template or a function returning HTML (always receives an array). Escape interpolated data with escapeHtml"
24857
+ },
24858
+ {
24859
+ name: "tooltipValueFormatter",
24860
+ type: "(value: number) => string",
24861
+ required: false,
24862
+ description: "Format the values in the default tooltip, e.g. as currency"
24863
+ },
24864
+ {
24865
+ name: "option",
24866
+ type: "EChartsOption",
24867
+ required: false,
24868
+ description: "Raw ECharts option deep-merged over the generated one (top-level arrays such as series merge by index; nested arrays replace)"
24869
+ },
23982
24870
  {
23983
24871
  name: "class",
23984
24872
  type: "string",
@@ -24021,6 +24909,48 @@ var charts_catalog_default = {
24021
24909
  required: false,
24022
24910
  description: "Stack multiple series"
24023
24911
  },
24912
+ {
24913
+ name: "legend",
24914
+ type: "ChartLegendConfig",
24915
+ required: false,
24916
+ description: "Built-in legend placement and formatting (position, align, orient, icon, formatter, scroll)"
24917
+ },
24918
+ {
24919
+ name: "onLegendChange",
24920
+ type: "(visible: Record<string, boolean>) => void",
24921
+ required: false,
24922
+ description: "Called when legend items are shown or hidden"
24923
+ },
24924
+ {
24925
+ name: "renderLegend",
24926
+ type: "React: (legend: LegendRenderProps) => ReactNode; Svelte: Snippet<[LegendRenderProps]>",
24927
+ required: false,
24928
+ description: "Render a custom HTML legend (e.g. ChartLegend) beside the chart instead of the built-in one"
24929
+ },
24930
+ {
24931
+ name: "labelFormatter",
24932
+ type: "string | ((params: LabelFormatterParams) => string)",
24933
+ required: false,
24934
+ description: "Data label text: an ECharts template or a function (params include per-point `label`)"
24935
+ },
24936
+ {
24937
+ name: "xAxisConfig",
24938
+ type: "AxisConfig",
24939
+ required: false,
24940
+ description: "Horizontal axis customisation (name, formatter, rotate, min, max, interval, show)"
24941
+ },
24942
+ {
24943
+ name: "yAxisConfig",
24944
+ type: "AxisConfig",
24945
+ required: false,
24946
+ description: "Vertical axis customisation (name, formatter, rotate, min, max, interval, show)"
24947
+ },
24948
+ {
24949
+ name: "showLabels",
24950
+ type: "boolean",
24951
+ required: false,
24952
+ description: "Show data labels (default false)"
24953
+ },
24024
24954
  {
24025
24955
  name: "onClick",
24026
24956
  type: "(params: DataPointEventParams) => void",
@@ -24063,6 +24993,42 @@ var charts_catalog_default = {
24063
24993
  required: false,
24064
24994
  description: "Show value labels on bars"
24065
24995
  },
24996
+ {
24997
+ name: "legend",
24998
+ type: "ChartLegendConfig",
24999
+ required: false,
25000
+ description: "Built-in legend placement and formatting (position, align, orient, icon, formatter, scroll)"
25001
+ },
25002
+ {
25003
+ name: "onLegendChange",
25004
+ type: "(visible: Record<string, boolean>) => void",
25005
+ required: false,
25006
+ description: "Called when legend items are shown or hidden"
25007
+ },
25008
+ {
25009
+ name: "renderLegend",
25010
+ type: "React: (legend: LegendRenderProps) => ReactNode; Svelte: Snippet<[LegendRenderProps]>",
25011
+ required: false,
25012
+ description: "Render a custom HTML legend (e.g. ChartLegend) beside the chart instead of the built-in one"
25013
+ },
25014
+ {
25015
+ name: "labelFormatter",
25016
+ type: "string | ((params: LabelFormatterParams) => string)",
25017
+ required: false,
25018
+ description: "Data label text: an ECharts template or a function (params include per-point `label`)"
25019
+ },
25020
+ {
25021
+ name: "xAxisConfig",
25022
+ type: "AxisConfig",
25023
+ required: false,
25024
+ description: "Horizontal axis customisation (name, formatter, rotate, min, max, interval, show)"
25025
+ },
25026
+ {
25027
+ name: "yAxisConfig",
25028
+ type: "AxisConfig",
25029
+ required: false,
25030
+ description: "Vertical axis customisation (name, formatter, rotate, min, max, interval, show)"
25031
+ },
24066
25032
  {
24067
25033
  name: "onClick",
24068
25034
  type: "(params: DataPointEventParams) => void",
@@ -24099,6 +25065,30 @@ var charts_catalog_default = {
24099
25065
  required: false,
24100
25066
  description: "Inner radius (0 for pie, percentage for donut)"
24101
25067
  },
25068
+ {
25069
+ name: "legend",
25070
+ type: "ChartLegendConfig",
25071
+ required: false,
25072
+ description: "Built-in legend placement and formatting (position, align, orient, icon, formatter, scroll)"
25073
+ },
25074
+ {
25075
+ name: "onLegendChange",
25076
+ type: "(visible: Record<string, boolean>) => void",
25077
+ required: false,
25078
+ description: "Called when legend items are shown or hidden"
25079
+ },
25080
+ {
25081
+ name: "renderLegend",
25082
+ type: "React: (legend: LegendRenderProps) => ReactNode; Svelte: Snippet<[LegendRenderProps]>",
25083
+ required: false,
25084
+ description: "Render a custom HTML legend (e.g. ChartLegend) beside the chart instead of the built-in one"
25085
+ },
25086
+ {
25087
+ name: "labelFormatter",
25088
+ type: "string | ((params: LabelFormatterParams) => string)",
25089
+ required: false,
25090
+ description: "Data label text: an ECharts template or a function (params include per-point `label`)"
25091
+ },
24102
25092
  {
24103
25093
  name: "onClick",
24104
25094
  type: "(params: SliceEventParams) => void",
@@ -24159,6 +25149,48 @@ var charts_catalog_default = {
24159
25149
  required: false,
24160
25150
  description: "Use gradient fill"
24161
25151
  },
25152
+ {
25153
+ name: "legend",
25154
+ type: "ChartLegendConfig",
25155
+ required: false,
25156
+ description: "Built-in legend placement and formatting (position, align, orient, icon, formatter, scroll)"
25157
+ },
25158
+ {
25159
+ name: "onLegendChange",
25160
+ type: "(visible: Record<string, boolean>) => void",
25161
+ required: false,
25162
+ description: "Called when legend items are shown or hidden"
25163
+ },
25164
+ {
25165
+ name: "renderLegend",
25166
+ type: "React: (legend: LegendRenderProps) => ReactNode; Svelte: Snippet<[LegendRenderProps]>",
25167
+ required: false,
25168
+ description: "Render a custom HTML legend (e.g. ChartLegend) beside the chart instead of the built-in one"
25169
+ },
25170
+ {
25171
+ name: "labelFormatter",
25172
+ type: "string | ((params: LabelFormatterParams) => string)",
25173
+ required: false,
25174
+ description: "Data label text: an ECharts template or a function (params include per-point `label`)"
25175
+ },
25176
+ {
25177
+ name: "xAxisConfig",
25178
+ type: "AxisConfig",
25179
+ required: false,
25180
+ description: "Horizontal axis customisation (name, formatter, rotate, min, max, interval, show)"
25181
+ },
25182
+ {
25183
+ name: "yAxisConfig",
25184
+ type: "AxisConfig",
25185
+ required: false,
25186
+ description: "Vertical axis customisation (name, formatter, rotate, min, max, interval, show)"
25187
+ },
25188
+ {
25189
+ name: "showLabels",
25190
+ type: "boolean",
25191
+ required: false,
25192
+ description: "Show data labels (default false)"
25193
+ },
24162
25194
  {
24163
25195
  name: "onClick",
24164
25196
  type: "(params: DataPointEventParams) => void",
@@ -24189,6 +25221,48 @@ var charts_catalog_default = {
24189
25221
  required: false,
24190
25222
  description: "Symbol size (fixed or function)"
24191
25223
  },
25224
+ {
25225
+ name: "legend",
25226
+ type: "ChartLegendConfig",
25227
+ required: false,
25228
+ description: "Built-in legend placement and formatting (position, align, orient, icon, formatter, scroll)"
25229
+ },
25230
+ {
25231
+ name: "onLegendChange",
25232
+ type: "(visible: Record<string, boolean>) => void",
25233
+ required: false,
25234
+ description: "Called when legend items are shown or hidden"
25235
+ },
25236
+ {
25237
+ name: "renderLegend",
25238
+ type: "React: (legend: LegendRenderProps) => ReactNode; Svelte: Snippet<[LegendRenderProps]>",
25239
+ required: false,
25240
+ description: "Render a custom HTML legend (e.g. ChartLegend) beside the chart instead of the built-in one"
25241
+ },
25242
+ {
25243
+ name: "labelFormatter",
25244
+ type: "string | ((params: LabelFormatterParams) => string)",
25245
+ required: false,
25246
+ description: "Data label text: an ECharts template or a function (params include per-point `label`)"
25247
+ },
25248
+ {
25249
+ name: "xAxisConfig",
25250
+ type: "AxisConfig",
25251
+ required: false,
25252
+ description: "Horizontal axis customisation (name, formatter, rotate, min, max, interval, show)"
25253
+ },
25254
+ {
25255
+ name: "yAxisConfig",
25256
+ type: "AxisConfig",
25257
+ required: false,
25258
+ description: "Vertical axis customisation (name, formatter, rotate, min, max, interval, show)"
25259
+ },
25260
+ {
25261
+ name: "showLabels",
25262
+ type: "boolean",
25263
+ required: false,
25264
+ description: "Show data labels (default false)"
25265
+ },
24192
25266
  {
24193
25267
  name: "onClick",
24194
25268
  type: "(params: DataPointEventParams) => void",
@@ -24218,6 +25292,36 @@ var charts_catalog_default = {
24218
25292
  type: "'polygon' | 'circle'",
24219
25293
  required: false,
24220
25294
  description: "Radar shape"
25295
+ },
25296
+ {
25297
+ name: "legend",
25298
+ type: "ChartLegendConfig",
25299
+ required: false,
25300
+ description: "Built-in legend placement and formatting (position, align, orient, icon, formatter, scroll)"
25301
+ },
25302
+ {
25303
+ name: "onLegendChange",
25304
+ type: "(visible: Record<string, boolean>) => void",
25305
+ required: false,
25306
+ description: "Called when legend items are shown or hidden"
25307
+ },
25308
+ {
25309
+ name: "renderLegend",
25310
+ type: "React: (legend: LegendRenderProps) => ReactNode; Svelte: Snippet<[LegendRenderProps]>",
25311
+ required: false,
25312
+ description: "Render a custom HTML legend (e.g. ChartLegend) beside the chart instead of the built-in one"
25313
+ },
25314
+ {
25315
+ name: "labelFormatter",
25316
+ type: "string | ((params: LabelFormatterParams) => string)",
25317
+ required: false,
25318
+ description: "Data label text: an ECharts template or a function (params include per-point `label`)"
25319
+ },
25320
+ {
25321
+ name: "showLabels",
25322
+ type: "boolean",
25323
+ required: false,
25324
+ description: "Show data labels (default false)"
24221
25325
  }
24222
25326
  ]
24223
25327
  },
@@ -24249,6 +25353,30 @@ var charts_catalog_default = {
24249
25353
  required: false,
24250
25354
  description: "Show value labels"
24251
25355
  },
25356
+ {
25357
+ name: "legend",
25358
+ type: "ChartLegendConfig",
25359
+ required: false,
25360
+ description: "Built-in legend placement and formatting (position, align, orient, icon, formatter, scroll)"
25361
+ },
25362
+ {
25363
+ name: "onLegendChange",
25364
+ type: "(visible: Record<string, boolean>) => void",
25365
+ required: false,
25366
+ description: "Called when legend items are shown or hidden"
25367
+ },
25368
+ {
25369
+ name: "renderLegend",
25370
+ type: "React: (legend: LegendRenderProps) => ReactNode; Svelte: Snippet<[LegendRenderProps]>",
25371
+ required: false,
25372
+ description: "Render a custom HTML legend (e.g. ChartLegend) beside the chart instead of the built-in one"
25373
+ },
25374
+ {
25375
+ name: "labelFormatter",
25376
+ type: "string | ((params: LabelFormatterParams) => string)",
25377
+ required: false,
25378
+ description: "Data label text: an ECharts template or a function (params include per-point `label`)"
25379
+ },
24252
25380
  {
24253
25381
  name: "onClick",
24254
25382
  type: "(params: SliceEventParams) => void",
@@ -24327,6 +25455,24 @@ var charts_catalog_default = {
24327
25455
  required: false,
24328
25456
  description: "Show values in cells"
24329
25457
  },
25458
+ {
25459
+ name: "labelFormatter",
25460
+ type: "string | ((params: LabelFormatterParams) => string)",
25461
+ required: false,
25462
+ description: "Data label text: an ECharts template or a function (params include per-point `label`)"
25463
+ },
25464
+ {
25465
+ name: "xAxisConfig",
25466
+ type: "AxisConfig",
25467
+ required: false,
25468
+ description: "Horizontal axis customisation (name, formatter, rotate, min, max, interval, show)"
25469
+ },
25470
+ {
25471
+ name: "yAxisConfig",
25472
+ type: "AxisConfig",
25473
+ required: false,
25474
+ description: "Vertical axis customisation (name, formatter, rotate, min, max, interval, show)"
25475
+ },
24330
25476
  {
24331
25477
  name: "onClick",
24332
25478
  type: "(params: HeatmapEventParams) => void",
@@ -24351,6 +25497,12 @@ var charts_catalog_default = {
24351
25497
  required: false,
24352
25498
  description: "Level configurations"
24353
25499
  },
25500
+ {
25501
+ name: "labelFormatter",
25502
+ type: "string | ((params: LabelFormatterParams) => string)",
25503
+ required: false,
25504
+ description: "Data label text: an ECharts template or a function (params include per-point `label`)"
25505
+ },
24354
25506
  {
24355
25507
  name: "onClick",
24356
25508
  type: "(params: TreemapEventParams) => void",
@@ -24375,6 +25527,18 @@ var charts_catalog_default = {
24375
25527
  required: false,
24376
25528
  description: "Show volume bars"
24377
25529
  },
25530
+ {
25531
+ name: "xAxisConfig",
25532
+ type: "AxisConfig",
25533
+ required: false,
25534
+ description: "Horizontal axis customisation (name, formatter, rotate, min, max, interval, show)"
25535
+ },
25536
+ {
25537
+ name: "yAxisConfig",
25538
+ type: "AxisConfig",
25539
+ required: false,
25540
+ description: "Vertical axis customisation (name, formatter, rotate, min, max, interval, show)"
25541
+ },
24378
25542
  {
24379
25543
  name: "onClick",
24380
25544
  type: "(params: CandlestickEventParams) => void",
@@ -24399,6 +25563,12 @@ var charts_catalog_default = {
24399
25563
  required: false,
24400
25564
  description: "Flow orientation"
24401
25565
  },
25566
+ {
25567
+ name: "labelFormatter",
25568
+ type: "string | ((params: LabelFormatterParams) => string)",
25569
+ required: false,
25570
+ description: "Data label text: an ECharts template or a function (params include per-point `label`)"
25571
+ },
24402
25572
  {
24403
25573
  name: "onClick",
24404
25574
  type: "(params: SankeyEventParams) => void",
@@ -24406,6 +25576,210 @@ var charts_catalog_default = {
24406
25576
  description: "Click event handler"
24407
25577
  }
24408
25578
  ]
25579
+ },
25580
+ {
25581
+ name: "AxisConfig",
25582
+ description: "Axis customisation for cartesian charts (refers to the visual axis)",
25583
+ properties: [
25584
+ {
25585
+ name: "show",
25586
+ type: "boolean",
25587
+ required: false,
25588
+ description: "Show the axis"
25589
+ },
25590
+ {
25591
+ name: "name",
25592
+ type: "string",
25593
+ required: false,
25594
+ description: "Axis title"
25595
+ },
25596
+ {
25597
+ name: "nameLocation",
25598
+ type: "'start' | 'middle' | 'end'",
25599
+ required: false,
25600
+ description: "Axis title position (default 'middle')"
25601
+ },
25602
+ {
25603
+ name: "nameGap",
25604
+ type: "number",
25605
+ required: false,
25606
+ description: "Gap between title and axis line"
25607
+ },
25608
+ {
25609
+ name: "formatter",
25610
+ type: "string | ((value: string | number, index: number) => string)",
25611
+ required: false,
25612
+ description: "Tick label template (e.g. '{value} kg') or function"
25613
+ },
25614
+ {
25615
+ name: "rotate",
25616
+ type: "number",
25617
+ required: false,
25618
+ description: "Tick label rotation in degrees"
25619
+ },
25620
+ {
25621
+ name: "min",
25622
+ type: "number | 'dataMin'",
25623
+ required: false,
25624
+ description: "Axis minimum"
25625
+ },
25626
+ {
25627
+ name: "max",
25628
+ type: "number | 'dataMax'",
25629
+ required: false,
25630
+ description: "Axis maximum"
25631
+ },
25632
+ {
25633
+ name: "interval",
25634
+ type: "number",
25635
+ required: false,
25636
+ description: "Fixed tick interval"
25637
+ }
25638
+ ]
25639
+ },
25640
+ {
25641
+ name: "ChartLegendConfig",
25642
+ description: "Built-in legend customisation",
25643
+ properties: [
25644
+ {
25645
+ name: "position",
25646
+ type: "'top' | 'right' | 'bottom' | 'left'",
25647
+ required: false,
25648
+ description: "Legend placement (default 'bottom')"
25649
+ },
25650
+ {
25651
+ name: "align",
25652
+ type: "'start' | 'center' | 'end'",
25653
+ required: false,
25654
+ description: "Alignment along the edge (default 'center')"
25655
+ },
25656
+ {
25657
+ name: "orient",
25658
+ type: "'horizontal' | 'vertical'",
25659
+ required: false,
25660
+ description: "Item flow (default horizontal for top/bottom, vertical for left/right)"
25661
+ },
25662
+ {
25663
+ name: "icon",
25664
+ type: "'circle' | 'rect' | 'roundRect' | 'line' | 'none'",
25665
+ required: false,
25666
+ description: "Marker shape"
25667
+ },
25668
+ {
25669
+ name: "formatter",
25670
+ type: "string | ((name: string) => string)",
25671
+ required: false,
25672
+ description: "Item text template ('{name}') or function"
25673
+ },
25674
+ {
25675
+ name: "scroll",
25676
+ type: "boolean",
25677
+ required: false,
25678
+ description: "Page items instead of wrapping"
25679
+ }
25680
+ ]
25681
+ },
25682
+ {
25683
+ name: "LabelFormatterParams",
25684
+ description: "Normalised params passed to labelFormatter (and, with marker/axisValue, tooltipFormatter as TooltipFormatterParams)",
25685
+ properties: [
25686
+ {
25687
+ name: "name",
25688
+ type: "string",
25689
+ required: true,
25690
+ description: "Category, slice or node name"
25691
+ },
25692
+ {
25693
+ name: "value",
25694
+ type: "number | number[]",
25695
+ required: true,
25696
+ description: "Data value"
25697
+ },
25698
+ {
25699
+ name: "seriesName",
25700
+ type: "string",
25701
+ required: true,
25702
+ description: "Series name"
25703
+ },
25704
+ {
25705
+ name: "seriesIndex",
25706
+ type: "number",
25707
+ required: true,
25708
+ description: "Series index"
25709
+ },
25710
+ {
25711
+ name: "dataIndex",
25712
+ type: "number",
25713
+ required: true,
25714
+ description: "Data index"
25715
+ },
25716
+ {
25717
+ name: "percent",
25718
+ type: "number",
25719
+ required: false,
25720
+ description: "Share of total (pie, donut, funnel)"
25721
+ },
25722
+ {
25723
+ name: "color",
25724
+ type: "string",
25725
+ required: false,
25726
+ description: "Point colour"
25727
+ },
25728
+ {
25729
+ name: "label",
25730
+ type: "string",
25731
+ required: false,
25732
+ description: "Per-point label text from the data"
25733
+ }
25734
+ ]
25735
+ },
25736
+ {
25737
+ name: "LegendRenderProps",
25738
+ description: "Passed to renderLegend; spread into ChartLegend for the default accessible HTML legend",
25739
+ properties: [
25740
+ {
25741
+ name: "items",
25742
+ type: "LegendItem[]",
25743
+ required: true,
25744
+ description: "{ name, color, visible } per entry"
25745
+ },
25746
+ {
25747
+ name: "position",
25748
+ type: "ChartLegendPosition",
25749
+ required: true,
25750
+ description: "Requested placement"
25751
+ },
25752
+ {
25753
+ name: "chartTitle",
25754
+ type: "string",
25755
+ required: true,
25756
+ description: "Chart title"
25757
+ },
25758
+ {
25759
+ name: "toggle",
25760
+ type: "(name: string) => void",
25761
+ required: true,
25762
+ description: "Show/hide an item"
25763
+ },
25764
+ {
25765
+ name: "setVisible",
25766
+ type: "(name: string, visible: boolean) => void",
25767
+ required: true,
25768
+ description: "Set an item's visibility"
25769
+ },
25770
+ {
25771
+ name: "showOnly",
25772
+ type: "(name: string) => void",
25773
+ required: true,
25774
+ description: "Show only this item"
25775
+ },
25776
+ {
25777
+ name: "showAll",
25778
+ type: "() => void",
25779
+ required: true,
25780
+ description: "Show every item"
25781
+ }
25782
+ ]
24409
25783
  }
24410
25784
  ]
24411
25785
  },
@@ -24451,6 +25825,12 @@ var charts_catalog_default = {
24451
25825
  type: "string",
24452
25826
  required: false,
24453
25827
  description: "Override theme color for this series"
25828
+ },
25829
+ {
25830
+ name: "labels",
25831
+ type: "(string | null | undefined)[]",
25832
+ required: false,
25833
+ description: "Per-point label text by data index (shown on those points; templates allowed)"
24454
25834
  }
24455
25835
  ]
24456
25836
  },
@@ -24493,6 +25873,12 @@ var charts_catalog_default = {
24493
25873
  type: "string",
24494
25874
  required: false,
24495
25875
  description: "Override theme color for this series"
25876
+ },
25877
+ {
25878
+ name: "labels",
25879
+ type: "(string | null | undefined)[]",
25880
+ required: false,
25881
+ description: "Per-point label text by data index (shown on those points; templates allowed)"
24496
25882
  }
24497
25883
  ]
24498
25884
  },
@@ -24517,6 +25903,12 @@ var charts_catalog_default = {
24517
25903
  type: "string",
24518
25904
  required: false,
24519
25905
  description: "Override theme color"
25906
+ },
25907
+ {
25908
+ name: "label",
25909
+ type: "string",
25910
+ required: false,
25911
+ description: "Label text shown instead of the default (templates allowed)"
24520
25912
  }
24521
25913
  ]
24522
25914
  },
@@ -24559,6 +25951,12 @@ var charts_catalog_default = {
24559
25951
  type: "string",
24560
25952
  required: false,
24561
25953
  description: "Override theme color for this series"
25954
+ },
25955
+ {
25956
+ name: "labels",
25957
+ type: "(string | null | undefined)[]",
25958
+ required: false,
25959
+ description: "Per-point label text by data index (shown on those points; templates allowed)"
24562
25960
  }
24563
25961
  ]
24564
25962
  },
@@ -24595,6 +25993,12 @@ var charts_catalog_default = {
24595
25993
  type: "string",
24596
25994
  required: false,
24597
25995
  description: "Override theme color"
25996
+ },
25997
+ {
25998
+ name: "labels",
25999
+ type: "(string | null | undefined)[]",
26000
+ required: false,
26001
+ description: "Per-point label text by data index (shown on those points; templates allowed)"
24598
26002
  }
24599
26003
  ]
24600
26004
  },
@@ -24679,6 +26083,12 @@ var charts_catalog_default = {
24679
26083
  type: "string",
24680
26084
  required: false,
24681
26085
  description: "Override theme color"
26086
+ },
26087
+ {
26088
+ name: "label",
26089
+ type: "string",
26090
+ required: false,
26091
+ description: "Label text shown instead of the default (templates allowed)"
24682
26092
  }
24683
26093
  ]
24684
26094
  },
@@ -24733,6 +26143,12 @@ var charts_catalog_default = {
24733
26143
  type: "string",
24734
26144
  required: false,
24735
26145
  description: "Override theme color"
26146
+ },
26147
+ {
26148
+ name: "label",
26149
+ type: "string",
26150
+ required: false,
26151
+ description: "Label text shown instead of the default (templates allowed)"
24736
26152
  }
24737
26153
  ]
24738
26154
  },
@@ -24847,6 +26263,12 @@ var charts_catalog_default = {
24847
26263
  type: "string",
24848
26264
  required: false,
24849
26265
  description: "Override theme color"
26266
+ },
26267
+ {
26268
+ name: "label",
26269
+ type: "string",
26270
+ required: false,
26271
+ description: "Label text shown instead of the default (templates allowed)"
24850
26272
  }
24851
26273
  ]
24852
26274
  },
@@ -25573,7 +26995,7 @@ interface SankeyData {
25573
26995
 
25574
26996
  // src/data/maps-catalog.json
25575
26997
  var maps_catalog_default = {
25576
- version: "0.3.4",
26998
+ version: "0.3.5",
25577
26999
  packageName: "@classic-homes/maps-core",
25578
27000
  description: "Core utilities, types, and themes for Classic Theme MapLibre GL components",
25579
27001
  subpackages: {
@@ -30904,7 +32326,7 @@ ${catalog5.quickReference.tailwindConfig}
30904
32326
 
30905
32327
  // src/data/native-catalog.json
30906
32328
  var native_catalog_default = {
30907
- version: "0.3.4",
32329
+ version: "0.3.5",
30908
32330
  packageName: "@classic-homes/native",
30909
32331
  description: "Native device APIs for iOS and Android mobile apps. Uses Capacitor for native functionality with web fallbacks.",
30910
32332
  subpackages: {
@@ -33265,7 +34687,7 @@ function registerPrompts(server) {
33265
34687
  // package.json
33266
34688
  var package_default = {
33267
34689
  name: "@classic-homes/theme-mcp",
33268
- version: "0.3.4",
34690
+ version: "0.3.5",
33269
34691
  description: "MCP server for Classic Theme design system - enables AI assistants to understand and correctly use components, tokens, and patterns",
33270
34692
  type: "module",
33271
34693
  main: "dist/index.js",