@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/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.4",
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: [
@@ -1508,6 +1569,42 @@ var component_catalog_default = {
1508
1569
  required: false,
1509
1570
  description: "Show value labels on bars"
1510
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
+ },
1511
1608
  {
1512
1609
  name: "onClick",
1513
1610
  type: "(params: DataPointEventParams) => void",
@@ -1560,6 +1657,24 @@ var component_catalog_default = {
1560
1657
  default: "true",
1561
1658
  required: false,
1562
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"
1563
1678
  }
1564
1679
  ],
1565
1680
  variants: [
@@ -1611,6 +1726,10 @@ var component_catalog_default = {
1611
1726
  {
1612
1727
  title: "With Value Labels",
1613
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' }} />`
1614
1733
  }
1615
1734
  ],
1616
1735
  relatedComponents: [
@@ -1798,6 +1917,18 @@ var component_catalog_default = {
1798
1917
  required: false,
1799
1918
  description: "Display volume bars below chart"
1800
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
+ },
1801
1932
  {
1802
1933
  name: "onClick",
1803
1934
  type: "(params: CandlestickEventParams) => void",
@@ -1837,6 +1968,24 @@ var component_catalog_default = {
1837
1968
  default: "true",
1838
1969
  required: false,
1839
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"
1840
1989
  }
1841
1990
  ],
1842
1991
  variants: [
@@ -2350,9 +2499,33 @@ var component_catalog_default = {
2350
2499
  type: "string",
2351
2500
  required: false,
2352
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"
2353
2527
  }
2354
2528
  ],
2355
- variants: [],
2356
2529
  slots: [],
2357
2530
  events: [],
2358
2531
  examples: [
@@ -2591,6 +2764,89 @@ var component_catalog_default = {
2591
2764
  "ChartSkeleton"
2592
2765
  ]
2593
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
+ },
2594
2850
  {
2595
2851
  name: "ChartSkeleton",
2596
2852
  description: "Loading skeleton placeholder for charts with animated bars",
@@ -5048,7 +5304,7 @@ var component_catalog_default = {
5048
5304
  {
5049
5305
  name: "showLabels",
5050
5306
  type: "boolean",
5051
- default: "false",
5307
+ default: "true",
5052
5308
  required: false,
5053
5309
  description: "Show labels on slices"
5054
5310
  },
@@ -5078,6 +5334,30 @@ var component_catalog_default = {
5078
5334
  required: false,
5079
5335
  description: "Value displayed in the center"
5080
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
+ },
5081
5361
  {
5082
5362
  name: "onClick",
5083
5363
  type: "(params: SliceEventParams) => void",
@@ -5117,6 +5397,24 @@ var component_catalog_default = {
5117
5397
  default: "true",
5118
5398
  required: false,
5119
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"
5120
5418
  }
5121
5419
  ],
5122
5420
  variants: [
@@ -5502,6 +5800,132 @@ var component_catalog_default = {
5502
5800
  "AppShell"
5503
5801
  ]
5504
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
+ },
5505
5929
  {
5506
5930
  name: "FileUpload",
5507
5931
  description: "File upload component with drag-and-drop support",
@@ -6322,6 +6746,30 @@ var component_catalog_default = {
6322
6746
  required: false,
6323
6747
  description: "Show value labels"
6324
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
+ },
6325
6773
  {
6326
6774
  name: "onClick",
6327
6775
  type: "(params: SliceEventParams) => void",
@@ -6361,6 +6809,24 @@ var component_catalog_default = {
6361
6809
  default: "true",
6362
6810
  required: false,
6363
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"
6364
6830
  }
6365
6831
  ],
6366
6832
  variants: [
@@ -6506,6 +6972,24 @@ var component_catalog_default = {
6506
6972
  default: "true",
6507
6973
  required: false,
6508
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"
6509
6993
  }
6510
6994
  ],
6511
6995
  variants: [
@@ -6929,6 +7413,24 @@ var component_catalog_default = {
6929
7413
  required: false,
6930
7414
  description: "Display values in cells"
6931
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
+ },
6932
7434
  {
6933
7435
  name: "onClick",
6934
7436
  type: "(params: HeatmapEventParams) => void",
@@ -6961,6 +7463,24 @@ var component_catalog_default = {
6961
7463
  default: "true",
6962
7464
  required: false,
6963
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"
6964
7484
  }
6965
7485
  ],
6966
7486
  variants: [
@@ -7736,6 +8256,49 @@ var component_catalog_default = {
7736
8256
  required: false,
7737
8257
  description: "Stack multiple series on top of each other"
7738
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
+ },
7739
8302
  {
7740
8303
  name: "onClick",
7741
8304
  type: "(params: DataPointEventParams) => void",
@@ -7820,6 +8383,24 @@ var component_catalog_default = {
7820
8383
  type: "string",
7821
8384
  required: false,
7822
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"
7823
8404
  }
7824
8405
  ],
7825
8406
  variants: [
@@ -7877,6 +8458,20 @@ var component_catalog_default = {
7877
8458
  </script>
7878
8459
 
7879
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
+ />`
7880
8475
  }
7881
8476
  ],
7882
8477
  relatedComponents: [
@@ -10367,7 +10962,7 @@ var component_catalog_default = {
10367
10962
  {
10368
10963
  name: "showLabels",
10369
10964
  type: "boolean",
10370
- default: "false",
10965
+ default: "true",
10371
10966
  required: false,
10372
10967
  description: "Show labels on slices"
10373
10968
  },
@@ -10385,6 +10980,30 @@ var component_catalog_default = {
10385
10980
  required: false,
10386
10981
  description: "Inner radius (0 for solid pie)"
10387
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
+ },
10388
11007
  {
10389
11008
  name: "onClick",
10390
11009
  type: "(params: SliceEventParams) => void",
@@ -10424,6 +11043,24 @@ var component_catalog_default = {
10424
11043
  default: "true",
10425
11044
  required: false,
10426
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"
10427
11064
  }
10428
11065
  ],
10429
11066
  variants: [
@@ -10480,6 +11117,29 @@ var component_catalog_default = {
10480
11117
  </script>
10481
11118
 
10482
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' }} />`
10483
11143
  }
10484
11144
  ],
10485
11145
  relatedComponents: [
@@ -10908,6 +11568,37 @@ var component_catalog_default = {
10908
11568
  required: false,
10909
11569
  description: "Shape of the radar grid"
10910
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
+ },
10911
11602
  {
10912
11603
  name: "title",
10913
11604
  type: "string",
@@ -10941,6 +11632,24 @@ var component_catalog_default = {
10941
11632
  default: "true",
10942
11633
  required: false,
10943
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"
10944
11653
  }
10945
11654
  ],
10946
11655
  variants: [
@@ -11225,6 +11934,12 @@ var component_catalog_default = {
11225
11934
  required: false,
11226
11935
  description: "Flow direction"
11227
11936
  },
11937
+ {
11938
+ name: "labelFormatter",
11939
+ type: "string | ((params: LabelFormatterParams) => string)",
11940
+ required: false,
11941
+ description: "Data label template or function"
11942
+ },
11228
11943
  {
11229
11944
  name: "onClick",
11230
11945
  type: "(params: SankeyEventParams) => void",
@@ -11257,6 +11972,24 @@ var component_catalog_default = {
11257
11972
  default: "true",
11258
11973
  required: false,
11259
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"
11260
11993
  }
11261
11994
  ],
11262
11995
  variants: [
@@ -11381,6 +12114,49 @@ var component_catalog_default = {
11381
12114
  required: false,
11382
12115
  description: "Point size (fixed or dynamic)"
11383
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
+ },
11384
12160
  {
11385
12161
  name: "onClick",
11386
12162
  type: "(params: DataPointEventParams) => void",
@@ -11420,6 +12196,24 @@ var component_catalog_default = {
11420
12196
  default: "true",
11421
12197
  required: false,
11422
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"
11423
12217
  }
11424
12218
  ],
11425
12219
  variants: [
@@ -14345,6 +15139,12 @@ var component_catalog_default = {
14345
15139
  required: false,
14346
15140
  description: "Visual configuration for each level"
14347
15141
  },
15142
+ {
15143
+ name: "labelFormatter",
15144
+ type: "string | ((params: LabelFormatterParams) => string)",
15145
+ required: false,
15146
+ description: "Data label template or function"
15147
+ },
14348
15148
  {
14349
15149
  name: "onClick",
14350
15150
  type: "(params: TreemapEventParams) => void",
@@ -14377,6 +15177,24 @@ var component_catalog_default = {
14377
15177
  default: "true",
14378
15178
  required: false,
14379
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"
14380
15198
  }
14381
15199
  ],
14382
15200
  variants: [
@@ -14819,7 +15637,7 @@ function registerComponentResources(server) {
14819
15637
 
14820
15638
  // src/data/token-definitions.json
14821
15639
  var token_definitions_default = {
14822
- version: "0.3.4",
15640
+ version: "0.3.5",
14823
15641
  colors: {
14824
15642
  brand: [
14825
15643
  {
@@ -15802,7 +16620,7 @@ function registerTokenResources(server) {
15802
16620
 
15803
16621
  // src/data/styles-catalog.json
15804
16622
  var styles_catalog_default = {
15805
- version: "0.3.4",
16623
+ version: "0.3.5",
15806
16624
  package: "@classic-homes/theme-styles",
15807
16625
  description: "Base CSS styles, accessibility features, and utility classes for the Classic Theme design system",
15808
16626
  integration: {
@@ -16185,7 +17003,7 @@ import { ResourceTemplate as ResourceTemplate2 } from "@modelcontextprotocol/sdk
16185
17003
 
16186
17004
  // src/data/pattern-library.json
16187
17005
  var pattern_library_default = {
16188
- version: "0.3.4",
17006
+ version: "0.3.5",
16189
17007
  layouts: [
16190
17008
  {
16191
17009
  id: "dashboard-page",
@@ -17279,7 +18097,7 @@ function registerLayoutResources(server) {
17279
18097
 
17280
18098
  // src/data/schema-catalog.json
17281
18099
  var schema_catalog_default = {
17282
- version: "0.3.4",
18100
+ version: "0.3.5",
17283
18101
  packageName: "@classic-homes/theme-svelte",
17284
18102
  importPath: "@classic-homes/theme-svelte",
17285
18103
  generatedFrom: "packages/svelte/src/lib/schemas/index.ts",
@@ -18087,7 +18905,7 @@ import { ResourceTemplate as ResourceTemplate3 } from "@modelcontextprotocol/sdk
18087
18905
 
18088
18906
  // src/data/auth-catalog.json
18089
18907
  var auth_catalog_default = {
18090
- version: "0.3.4",
18908
+ version: "0.3.5",
18091
18909
  packageName: "@classic-homes/auth",
18092
18910
  description: "Authentication services and Svelte bindings for Classic Theme apps",
18093
18911
  subpackages: {
@@ -18661,12 +19479,12 @@ var auth_catalog_default = {
18661
19479
  {
18662
19480
  name: "ROLE_NAMES",
18663
19481
  type: "readonly RoleName[]",
18664
- 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."
18665
19483
  },
18666
19484
  {
18667
19485
  name: "ROLE_HIERARCHY",
18668
19486
  type: "Record<string, number>",
18669
- 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."
18670
19488
  }
18671
19489
  ],
18672
19490
  types: [
@@ -21124,7 +21942,7 @@ import { ResourceTemplate as ResourceTemplate4 } from "@modelcontextprotocol/sdk
21124
21942
 
21125
21943
  // src/data/notifications-catalog.json
21126
21944
  var notifications_catalog_default = {
21127
- version: "0.3.4",
21945
+ version: "0.3.5",
21128
21946
  packageName: "@classic-homes/notifications",
21129
21947
  description: "Notification services and Svelte bindings for Classic Theme apps",
21130
21948
  subpackages: {
@@ -22036,7 +22854,7 @@ function registerNotificationsResources(server) {
22036
22854
 
22037
22855
  // src/data/docs-catalog.json
22038
22856
  var docs_catalog_default = {
22039
- version: "0.3.4",
22857
+ version: "0.3.5",
22040
22858
  packageName: "@classic-homes/theme-docs",
22041
22859
  description: "Markdown documentation components for the Classic theme system",
22042
22860
  exports: {
@@ -22064,6 +22882,10 @@ var docs_catalog_default = {
22064
22882
  importPath: "@classic-homes/theme-docs/content",
22065
22883
  description: "loadDocs/renderDocs: a Docusaurus-style docs directory as routes, autogenerated sidebars, generated-index pages, tags and rendered HTML (Node, build time)"
22066
22884
  },
22885
+ "./content/core": {
22886
+ importPath: "@classic-homes/theme-docs/content/core",
22887
+ description: "Subpath export for content/core"
22888
+ },
22067
22889
  "./nav": {
22068
22890
  importPath: "@classic-homes/theme-docs/nav",
22069
22891
  description: "Sidebar helpers (neighbours, breadcrumbs, flattenNav, tagCounts) and content-model types, browser-safe"
@@ -22490,6 +23312,13 @@ var docs_catalog_default = {
22490
23312
  default: "'lg'",
22491
23313
  description: "Breakpoint for desktop sidebar display"
22492
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
+ },
22493
23322
  {
22494
23323
  name: "class",
22495
23324
  type: "string",
@@ -23697,7 +24526,7 @@ function registerDocsResources(server) {
23697
24526
 
23698
24527
  // src/data/charts-catalog.json
23699
24528
  var charts_catalog_default = {
23700
- version: "0.3.4",
24529
+ version: "0.3.5",
23701
24530
  packageName: "@classic-homes/charts-core",
23702
24531
  description: "Core utilities, types, and themes for Classic Theme chart components",
23703
24532
  subpackages: {
@@ -23818,6 +24647,47 @@ var charts_catalog_default = {
23818
24647
  description: "Generate hidden HTML data table for screen readers (uses sr-only class)"
23819
24648
  }
23820
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
+ ]
23821
24691
  }
23822
24692
  }
23823
24693
  },
@@ -23974,6 +24844,24 @@ var charts_catalog_default = {
23974
24844
  required: false,
23975
24845
  description: "Show grid lines (where applicable)"
23976
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
+ },
23977
24865
  {
23978
24866
  name: "class",
23979
24867
  type: "string",
@@ -24016,6 +24904,48 @@ var charts_catalog_default = {
24016
24904
  required: false,
24017
24905
  description: "Stack multiple series"
24018
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
+ },
24019
24949
  {
24020
24950
  name: "onClick",
24021
24951
  type: "(params: DataPointEventParams) => void",
@@ -24058,6 +24988,42 @@ var charts_catalog_default = {
24058
24988
  required: false,
24059
24989
  description: "Show value labels on bars"
24060
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
+ },
24061
25027
  {
24062
25028
  name: "onClick",
24063
25029
  type: "(params: DataPointEventParams) => void",
@@ -24094,6 +25060,30 @@ var charts_catalog_default = {
24094
25060
  required: false,
24095
25061
  description: "Inner radius (0 for pie, percentage for donut)"
24096
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
+ },
24097
25087
  {
24098
25088
  name: "onClick",
24099
25089
  type: "(params: SliceEventParams) => void",
@@ -24154,6 +25144,48 @@ var charts_catalog_default = {
24154
25144
  required: false,
24155
25145
  description: "Use gradient fill"
24156
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
+ },
24157
25189
  {
24158
25190
  name: "onClick",
24159
25191
  type: "(params: DataPointEventParams) => void",
@@ -24184,6 +25216,48 @@ var charts_catalog_default = {
24184
25216
  required: false,
24185
25217
  description: "Symbol size (fixed or function)"
24186
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
+ },
24187
25261
  {
24188
25262
  name: "onClick",
24189
25263
  type: "(params: DataPointEventParams) => void",
@@ -24213,6 +25287,36 @@ var charts_catalog_default = {
24213
25287
  type: "'polygon' | 'circle'",
24214
25288
  required: false,
24215
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)"
24216
25320
  }
24217
25321
  ]
24218
25322
  },
@@ -24244,6 +25348,30 @@ var charts_catalog_default = {
24244
25348
  required: false,
24245
25349
  description: "Show value labels"
24246
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
+ },
24247
25375
  {
24248
25376
  name: "onClick",
24249
25377
  type: "(params: SliceEventParams) => void",
@@ -24322,6 +25450,24 @@ var charts_catalog_default = {
24322
25450
  required: false,
24323
25451
  description: "Show values in cells"
24324
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
+ },
24325
25471
  {
24326
25472
  name: "onClick",
24327
25473
  type: "(params: HeatmapEventParams) => void",
@@ -24346,6 +25492,12 @@ var charts_catalog_default = {
24346
25492
  required: false,
24347
25493
  description: "Level configurations"
24348
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
+ },
24349
25501
  {
24350
25502
  name: "onClick",
24351
25503
  type: "(params: TreemapEventParams) => void",
@@ -24370,6 +25522,18 @@ var charts_catalog_default = {
24370
25522
  required: false,
24371
25523
  description: "Show volume bars"
24372
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
+ },
24373
25537
  {
24374
25538
  name: "onClick",
24375
25539
  type: "(params: CandlestickEventParams) => void",
@@ -24394,6 +25558,12 @@ var charts_catalog_default = {
24394
25558
  required: false,
24395
25559
  description: "Flow orientation"
24396
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
+ },
24397
25567
  {
24398
25568
  name: "onClick",
24399
25569
  type: "(params: SankeyEventParams) => void",
@@ -24401,6 +25571,210 @@ var charts_catalog_default = {
24401
25571
  description: "Click event handler"
24402
25572
  }
24403
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
+ ]
24404
25778
  }
24405
25779
  ]
24406
25780
  },
@@ -24446,6 +25820,12 @@ var charts_catalog_default = {
24446
25820
  type: "string",
24447
25821
  required: false,
24448
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)"
24449
25829
  }
24450
25830
  ]
24451
25831
  },
@@ -24488,6 +25868,12 @@ var charts_catalog_default = {
24488
25868
  type: "string",
24489
25869
  required: false,
24490
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)"
24491
25877
  }
24492
25878
  ]
24493
25879
  },
@@ -24512,6 +25898,12 @@ var charts_catalog_default = {
24512
25898
  type: "string",
24513
25899
  required: false,
24514
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)"
24515
25907
  }
24516
25908
  ]
24517
25909
  },
@@ -24554,6 +25946,12 @@ var charts_catalog_default = {
24554
25946
  type: "string",
24555
25947
  required: false,
24556
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)"
24557
25955
  }
24558
25956
  ]
24559
25957
  },
@@ -24590,6 +25988,12 @@ var charts_catalog_default = {
24590
25988
  type: "string",
24591
25989
  required: false,
24592
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)"
24593
25997
  }
24594
25998
  ]
24595
25999
  },
@@ -24674,6 +26078,12 @@ var charts_catalog_default = {
24674
26078
  type: "string",
24675
26079
  required: false,
24676
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)"
24677
26087
  }
24678
26088
  ]
24679
26089
  },
@@ -24728,6 +26138,12 @@ var charts_catalog_default = {
24728
26138
  type: "string",
24729
26139
  required: false,
24730
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)"
24731
26147
  }
24732
26148
  ]
24733
26149
  },
@@ -24842,6 +26258,12 @@ var charts_catalog_default = {
24842
26258
  type: "string",
24843
26259
  required: false,
24844
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)"
24845
26267
  }
24846
26268
  ]
24847
26269
  },
@@ -25568,7 +26990,7 @@ interface SankeyData {
25568
26990
 
25569
26991
  // src/data/maps-catalog.json
25570
26992
  var maps_catalog_default = {
25571
- version: "0.3.4",
26993
+ version: "0.3.5",
25572
26994
  packageName: "@classic-homes/maps-core",
25573
26995
  description: "Core utilities, types, and themes for Classic Theme MapLibre GL components",
25574
26996
  subpackages: {
@@ -30899,7 +32321,7 @@ ${catalog5.quickReference.tailwindConfig}
30899
32321
 
30900
32322
  // src/data/native-catalog.json
30901
32323
  var native_catalog_default = {
30902
- version: "0.3.4",
32324
+ version: "0.3.5",
30903
32325
  packageName: "@classic-homes/native",
30904
32326
  description: "Native device APIs for iOS and Android mobile apps. Uses Capacitor for native functionality with web fallbacks.",
30905
32327
  subpackages: {
@@ -33260,7 +34682,7 @@ function registerPrompts(server) {
33260
34682
  // package.json
33261
34683
  var package_default = {
33262
34684
  name: "@classic-homes/theme-mcp",
33263
- version: "0.3.4",
34685
+ version: "0.3.5",
33264
34686
  description: "MCP server for Classic Theme design system - enables AI assistants to understand and correctly use components, tokens, and patterns",
33265
34687
  type: "module",
33266
34688
  main: "dist/index.js",