@classic-homes/theme-mcp 0.5.5 → 0.5.7
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.
|
@@ -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.5.
|
|
9
|
+
version: "0.5.7",
|
|
10
10
|
components: [
|
|
11
11
|
{
|
|
12
12
|
name: "ActionHeader",
|
|
@@ -885,6 +885,19 @@ var component_catalog_default = {
|
|
|
885
885
|
required: false,
|
|
886
886
|
description: "Custom HTML legend (e.g. `ChartLegend`) instead of the built-in one; React takes a function returning a node"
|
|
887
887
|
},
|
|
888
|
+
{
|
|
889
|
+
name: "showDataPoints",
|
|
890
|
+
type: "boolean",
|
|
891
|
+
default: "false",
|
|
892
|
+
required: false,
|
|
893
|
+
description: "Show data point markers on the line (needed for clicks on a point)"
|
|
894
|
+
},
|
|
895
|
+
{
|
|
896
|
+
name: "selected",
|
|
897
|
+
type: "string | string[] | null",
|
|
898
|
+
required: false,
|
|
899
|
+
description: "Controlled selection: points at the named categories show enlarged and ringed. Set it from `onClick` to cross-filter"
|
|
900
|
+
},
|
|
888
901
|
{
|
|
889
902
|
name: "onClick",
|
|
890
903
|
type: "(params: DataPointEventParams) => void",
|
|
@@ -1984,6 +1997,12 @@ var component_catalog_default = {
|
|
|
1984
1997
|
required: false,
|
|
1985
1998
|
description: "Custom HTML legend (e.g. `ChartLegend`) instead of the built-in one; React takes a function returning a node"
|
|
1986
1999
|
},
|
|
2000
|
+
{
|
|
2001
|
+
name: "selected",
|
|
2002
|
+
type: "string | string[] | null",
|
|
2003
|
+
required: false,
|
|
2004
|
+
description: "Controlled selection: bars outside the named categories fade. Set it from `onClick` to cross-filter"
|
|
2005
|
+
},
|
|
1987
2006
|
{
|
|
1988
2007
|
name: "onClick",
|
|
1989
2008
|
type: "(params: DataPointEventParams) => void",
|
|
@@ -7602,6 +7621,120 @@ var component_catalog_default = {
|
|
|
7602
7621
|
"FormField"
|
|
7603
7622
|
]
|
|
7604
7623
|
},
|
|
7624
|
+
{
|
|
7625
|
+
name: "DeltaText",
|
|
7626
|
+
description: "An inline change against a previous value, coloured by whether the direction is good",
|
|
7627
|
+
category: "chart",
|
|
7628
|
+
importPath: "@classic-homes/charts-svelte",
|
|
7629
|
+
props: [
|
|
7630
|
+
{
|
|
7631
|
+
name: "current",
|
|
7632
|
+
type: "number | null | undefined",
|
|
7633
|
+
required: true,
|
|
7634
|
+
description: "The current value"
|
|
7635
|
+
},
|
|
7636
|
+
{
|
|
7637
|
+
name: "previous",
|
|
7638
|
+
type: "number | null | undefined",
|
|
7639
|
+
required: true,
|
|
7640
|
+
description: "The value compared against"
|
|
7641
|
+
},
|
|
7642
|
+
{
|
|
7643
|
+
name: "display",
|
|
7644
|
+
type: "'percent' | 'absolute' | 'both'",
|
|
7645
|
+
default: "'percent'",
|
|
7646
|
+
required: false,
|
|
7647
|
+
description: "How the change is shown; a change from zero falls back to absolute"
|
|
7648
|
+
},
|
|
7649
|
+
{
|
|
7650
|
+
name: "goodWhen",
|
|
7651
|
+
type: "'up' | 'down' | 'none'",
|
|
7652
|
+
default: "'up'",
|
|
7653
|
+
required: false,
|
|
7654
|
+
description: "Which direction is coloured as good; `'none'` stays neutral"
|
|
7655
|
+
},
|
|
7656
|
+
{
|
|
7657
|
+
name: "valueFormat",
|
|
7658
|
+
type: "ValueFormat",
|
|
7659
|
+
required: false,
|
|
7660
|
+
description: "How the absolute change and the previous value are written"
|
|
7661
|
+
},
|
|
7662
|
+
{
|
|
7663
|
+
name: "locale",
|
|
7664
|
+
type: "string",
|
|
7665
|
+
default: "'en-US'",
|
|
7666
|
+
required: false,
|
|
7667
|
+
description: "Locale for `valueFormat` and the percentage"
|
|
7668
|
+
},
|
|
7669
|
+
{
|
|
7670
|
+
name: "label",
|
|
7671
|
+
type: "string",
|
|
7672
|
+
default: "'vs <previous>'",
|
|
7673
|
+
required: false,
|
|
7674
|
+
description: "Text after the change; `''` hides it"
|
|
7675
|
+
},
|
|
7676
|
+
{
|
|
7677
|
+
name: "class",
|
|
7678
|
+
type: "string",
|
|
7679
|
+
required: false,
|
|
7680
|
+
description: "Custom CSS class"
|
|
7681
|
+
}
|
|
7682
|
+
],
|
|
7683
|
+
variants: [
|
|
7684
|
+
{
|
|
7685
|
+
name: "display",
|
|
7686
|
+
values: [
|
|
7687
|
+
"percent",
|
|
7688
|
+
"absolute",
|
|
7689
|
+
"both"
|
|
7690
|
+
],
|
|
7691
|
+
default: "percent"
|
|
7692
|
+
},
|
|
7693
|
+
{
|
|
7694
|
+
name: "goodWhen",
|
|
7695
|
+
values: [
|
|
7696
|
+
"up",
|
|
7697
|
+
"down",
|
|
7698
|
+
"none"
|
|
7699
|
+
],
|
|
7700
|
+
default: "up"
|
|
7701
|
+
}
|
|
7702
|
+
],
|
|
7703
|
+
slots: [],
|
|
7704
|
+
events: [],
|
|
7705
|
+
examples: [
|
|
7706
|
+
{
|
|
7707
|
+
title: "Basic Usage",
|
|
7708
|
+
code: `<script>
|
|
7709
|
+
import { DeltaText } from '@classic-homes/charts-svelte';
|
|
7710
|
+
</script>
|
|
7711
|
+
|
|
7712
|
+
<DeltaText current={142} previous={130} label="vs last year" />`
|
|
7713
|
+
},
|
|
7714
|
+
{
|
|
7715
|
+
title: "Lower Is Better",
|
|
7716
|
+
code: '<DeltaText current={112} previous={121} valueFormat="days" goodWhen="down" display="both" />'
|
|
7717
|
+
},
|
|
7718
|
+
{
|
|
7719
|
+
title: "In a Table Cell",
|
|
7720
|
+
code: `{#snippet closingsCell(value, row)}
|
|
7721
|
+
<div class="flex flex-col items-end">
|
|
7722
|
+
<span class="tabular-nums">{value}</span>
|
|
7723
|
+
<DeltaText current={row.closings} previous={row.priorClosings} label="" />
|
|
7724
|
+
</div>
|
|
7725
|
+
{/snippet}
|
|
7726
|
+
|
|
7727
|
+
<DataTable
|
|
7728
|
+
{data}
|
|
7729
|
+
columns={[{ id: 'closings', header: 'Closings', accessor: 'closings', cell: closingsCell }]}
|
|
7730
|
+
/>`
|
|
7731
|
+
}
|
|
7732
|
+
],
|
|
7733
|
+
relatedComponents: [
|
|
7734
|
+
"StatCard",
|
|
7735
|
+
"StatGroup"
|
|
7736
|
+
]
|
|
7737
|
+
},
|
|
7605
7738
|
{
|
|
7606
7739
|
name: "Dialog",
|
|
7607
7740
|
description: "Modal window for focused interactions and confirmations",
|
|
@@ -7996,6 +8129,12 @@ var component_catalog_default = {
|
|
|
7996
8129
|
required: false,
|
|
7997
8130
|
description: "Custom HTML legend (e.g. `ChartLegend`) instead of the built-in one; React takes a function returning a node"
|
|
7998
8131
|
},
|
|
8132
|
+
{
|
|
8133
|
+
name: "selected",
|
|
8134
|
+
type: "string | string[] | null",
|
|
8135
|
+
required: false,
|
|
8136
|
+
description: "Controlled selection: slices outside the named ones fade. Set it from `onClick` to cross-filter"
|
|
8137
|
+
},
|
|
7999
8138
|
{
|
|
8000
8139
|
name: "onClick",
|
|
8001
8140
|
type: "(params: SliceEventParams) => void",
|
|
@@ -12906,6 +13045,12 @@ var component_catalog_default = {
|
|
|
12906
13045
|
required: false,
|
|
12907
13046
|
description: "Custom HTML legend (e.g. `ChartLegend`) instead of the built-in one; React takes a function returning a node"
|
|
12908
13047
|
},
|
|
13048
|
+
{
|
|
13049
|
+
name: "selected",
|
|
13050
|
+
type: "string | string[] | null",
|
|
13051
|
+
required: false,
|
|
13052
|
+
description: "Controlled selection: points at the named categories show enlarged and ringed. Set it from `onClick` to cross-filter"
|
|
13053
|
+
},
|
|
12909
13054
|
{
|
|
12910
13055
|
name: "onClick",
|
|
12911
13056
|
type: "(params: DataPointEventParams) => void",
|
|
@@ -14439,6 +14584,13 @@ var component_catalog_default = {
|
|
|
14439
14584
|
required: false,
|
|
14440
14585
|
description: "Debounce time for search"
|
|
14441
14586
|
},
|
|
14587
|
+
{
|
|
14588
|
+
name: "maxVisibleTags",
|
|
14589
|
+
type: "number",
|
|
14590
|
+
default: "6",
|
|
14591
|
+
required: false,
|
|
14592
|
+
description: 'Selected tags shown before the rest fold into a "+N more" toggle (`Infinity` shows all)'
|
|
14593
|
+
},
|
|
14442
14594
|
{
|
|
14443
14595
|
name: "onValueChange",
|
|
14444
14596
|
type: "(value: string[]) => void",
|
|
@@ -14801,7 +14953,7 @@ var component_catalog_default = {
|
|
|
14801
14953
|
examples: [
|
|
14802
14954
|
{
|
|
14803
14955
|
title: "Basic Usage",
|
|
14804
|
-
code: "<script>\n let selectedIds = $state(new Set<string>());\n const notifications = [
|
|
14956
|
+
code: "<script>\n let selectedIds = $state(new Set<string>());\n const notifications = [\n /* your notifications */\n ];\n</script>\n\n<NotificationBulkActions\n selectedCount={selectedIds.size}\n totalCount={notifications.length}\n allSelected={selectedIds.size === notifications.length}\n onSelectAll={(selected) => {\n /* ... */\n }}\n onMarkRead={() => {\n /* ... */\n }}\n onMarkUnread={() => {\n /* ... */\n }}\n onDelete={() => {\n /* ... */\n }}\n/>"
|
|
14805
14957
|
},
|
|
14806
14958
|
{
|
|
14807
14959
|
title: "No Selection",
|
|
@@ -14821,7 +14973,7 @@ var component_catalog_default = {
|
|
|
14821
14973
|
{
|
|
14822
14974
|
title: "Select All",
|
|
14823
14975
|
description: "Toggle selection of all visible notifications:",
|
|
14824
|
-
code: "<script>\n function handleSelectAll(selected: boolean) {\n if (selected) {\n selectedIds = new Set(filteredNotifications
|
|
14976
|
+
code: "<script>\n function handleSelectAll(selected: boolean) {\n if (selected) {\n selectedIds = new Set(filteredNotifications.map(n => n.id));\n } else {\n selectedIds = new Set();\n }\n }\n</script>\n\n<NotificationBulkActions\n onSelectAll={handleSelectAll}\n {...}\n/>"
|
|
14825
14977
|
},
|
|
14826
14978
|
{
|
|
14827
14979
|
title: "Mark as Read",
|
|
@@ -14840,7 +14992,7 @@ var component_catalog_default = {
|
|
|
14840
14992
|
},
|
|
14841
14993
|
{
|
|
14842
14994
|
title: "Complete Implementation",
|
|
14843
|
-
code: "<script>\n import { toastStore } from '@classic-homes/theme-svelte';\n import {\n NotificationList,\n NotificationFilters,\n NotificationBulkActions,\n } from '@classic-homes/theme-svelte/notifications';\n import type {
|
|
14995
|
+
code: "<script>\n import { toastStore } from '@classic-homes/theme-svelte';\n import {\n NotificationList,\n NotificationFilters,\n NotificationBulkActions,\n } from '@classic-homes/theme-svelte/notifications';\n import type {\n Notification,\n NotificationFilter,\n NotificationCounts,\n } from '@classic-homes/notifications/core';\n\n let notifications = $state<Notification[]>([\n /* your notifications */\n ]);\n let filter = $state<NotificationFilter>('all');\n let selectedIds = $state(new Set<string>());\n\n const filteredNotifications = $derived.by(() => {\n switch (filter) {\n case 'unread':\n return notifications.filter((n) => !n.read);\n case 'read':\n return notifications.filter((n) => n.read);\n default:\n return notifications;\n }\n });\n\n const counts = $derived<NotificationCounts>({\n all: notifications.length,\n unread: notifications.filter((n) => !n.read).length,\n read: notifications.filter((n) => n.read).length,\n });\n\n const allSelected = $derived(\n filteredNotifications.length > 0 && filteredNotifications.every((n) => selectedIds.has(n.id))\n );\n\n function handleToggleSelect(id: string, selected: boolean) {\n const newSet = new Set(selectedIds);\n if (selected) newSet.add(id);\n else newSet.delete(id);\n selectedIds = newSet;\n }\n\n function handleSelectAll(selected: boolean) {\n if (selected) {\n selectedIds = new Set(filteredNotifications.map((n) => n.id));\n } else {\n selectedIds = new Set();\n }\n }\n\n function handleClearSelection() {\n selectedIds = new Set();\n }\n\n function handleBulkMarkRead() {\n notifications = notifications.map((n) =>\n selectedIds.has(n.id) ? { ...n, read: true, readAt: new Date().toISOString() } : n\n );\n selectedIds = new Set();\n toastStore.success('Marked as read');\n }\n\n function handleBulkMarkUnread() {\n notifications = notifications.map((n) =>\n selectedIds.has(n.id) ? { ...n, read: false, readAt: undefined } : n\n );\n selectedIds = new Set();\n toastStore.info('Marked as unread');\n }\n\n function handleBulkDelete() {\n notifications = notifications.filter((n) => !selectedIds.has(n.id));\n selectedIds = new Set();\n toastStore.info('Deleted');\n }\n</script>\n\n<NotificationFilters bind:filter {counts} onFilterChange={() => (selectedIds = new Set())} />\n\n{#if filteredNotifications.length > 0}\n <NotificationBulkActions\n selectedCount={selectedIds.size}\n totalCount={filteredNotifications.length}\n {allSelected}\n onSelectAll={handleSelectAll}\n onMarkRead={handleBulkMarkRead}\n onMarkUnread={handleBulkMarkUnread}\n onDelete={handleBulkDelete}\n onClearSelection={handleClearSelection}\n />\n{/if}\n\n<NotificationList\n notifications={filteredNotifications}\n {selectedIds}\n selectable={true}\n onToggleSelect={handleToggleSelect}\n/>"
|
|
14844
14996
|
}
|
|
14845
14997
|
],
|
|
14846
14998
|
relatedComponents: [
|
|
@@ -14918,7 +15070,7 @@ var component_catalog_default = {
|
|
|
14918
15070
|
},
|
|
14919
15071
|
{
|
|
14920
15072
|
title: "Complete Implementation",
|
|
14921
|
-
code: "<script>\n import { toastStore } from '@classic-homes/theme-svelte';\n import { NotificationList, NotificationDialog } from '@classic-homes/theme-svelte/notifications';\n import type { Notification } from '@classic-homes/notifications/core';\n\n let notifications = $state<Notification[]>([
|
|
15073
|
+
code: "<script>\n import { toastStore } from '@classic-homes/theme-svelte';\n import { NotificationList, NotificationDialog } from '@classic-homes/theme-svelte/notifications';\n import type { Notification } from '@classic-homes/notifications/core';\n\n let notifications = $state<Notification[]>([\n /* your notifications */\n ]);\n let selectedNotification = $state<Notification | null>(null);\n let dialogOpen = $state(false);\n\n function handleNotificationClick(notification: Notification) {\n selectedNotification = notification;\n dialogOpen = true;\n }\n\n function handleDialogClose() {\n dialogOpen = false;\n selectedNotification = null;\n }\n\n function markAsRead(id: string) {\n notifications = notifications.map((n) =>\n n.id === id ? { ...n, read: true, readAt: new Date().toISOString() } : n\n );\n toastStore.success('Notification marked as read');\n }\n\n function markAsUnread(id: string) {\n notifications = notifications.map((n) =>\n n.id === id ? { ...n, read: false, readAt: undefined } : n\n );\n toastStore.info('Notification marked as unread');\n }\n\n function deleteNotification(id: string) {\n notifications = notifications.filter((n) => n.id !== id);\n handleDialogClose();\n toastStore.info('Notification deleted');\n }\n</script>\n\n<NotificationList {notifications} onNotificationClick={handleNotificationClick} />\n\n<NotificationDialog\n notification={selectedNotification}\n bind:open={dialogOpen}\n onClose={handleDialogClose}\n onMarkRead={markAsRead}\n onMarkUnread={markAsUnread}\n onDelete={deleteNotification}\n/>"
|
|
14922
15074
|
},
|
|
14923
15075
|
{
|
|
14924
15076
|
title: "With Action Links",
|
|
@@ -14980,11 +15132,11 @@ var component_catalog_default = {
|
|
|
14980
15132
|
},
|
|
14981
15133
|
{
|
|
14982
15134
|
title: "With Notification List",
|
|
14983
|
-
code: "<script>\n import {
|
|
15135
|
+
code: "<script>\n import { NotificationFilters, NotificationList } from '@classic-homes/theme-svelte/notifications';\n import type {\n Notification,\n NotificationFilter,\n NotificationCounts,\n } from '@classic-homes/notifications/core';\n\n let notifications = $state<Notification[]>([\n /* your notifications */\n ]);\n let filter = $state<NotificationFilter>('all');\n\n const counts = $derived<NotificationCounts>({\n all: notifications.length,\n unread: notifications.filter((n) => !n.read).length,\n read: notifications.filter((n) => n.read).length,\n });\n\n const filteredNotifications = $derived.by(() => {\n switch (filter) {\n case 'unread':\n return notifications.filter((n) => !n.read);\n case 'read':\n return notifications.filter((n) => n.read);\n default:\n return notifications;\n }\n });\n</script>\n\n<NotificationFilters bind:filter {counts} />\n\n<NotificationList\n notifications={filteredNotifications}\n emptyTitle={filter === 'unread'\n ? 'No unread notifications'\n : filter === 'read'\n ? 'No read notifications'\n : 'No notifications'}\n/>"
|
|
14984
15136
|
},
|
|
14985
15137
|
{
|
|
14986
15138
|
title: "Reset Selection on Filter Change",
|
|
14987
|
-
code: "<script>\n let selectedIds = $state(new Set<string>());\n\n function handleFilterChange(newFilter: NotificationFilter) {\n filter = newFilter;\n selectedIds = new Set(); // Clear selection\n }\n</script>\n\n<NotificationFilters\n bind:filter\n {counts}\n onFilterChange={handleFilterChange}\n/>\n\n<NotificationBulkActions\n selectedCount={selectedIds.size}\n totalCount={filteredNotifications
|
|
15139
|
+
code: "<script>\n let selectedIds = $state(new Set<string>());\n\n function handleFilterChange(newFilter: NotificationFilter) {\n filter = newFilter;\n selectedIds = new Set(); // Clear selection\n }\n</script>\n\n<NotificationFilters\n bind:filter\n {counts}\n onFilterChange={handleFilterChange}\n/>\n\n<NotificationBulkActions\n selectedCount={selectedIds.size}\n totalCount={filteredNotifications.length}\n {...}\n/>"
|
|
14988
15140
|
}
|
|
14989
15141
|
],
|
|
14990
15142
|
relatedComponents: [
|
|
@@ -15175,12 +15327,12 @@ var component_catalog_default = {
|
|
|
15175
15327
|
},
|
|
15176
15328
|
{
|
|
15177
15329
|
title: "Complete Notification Center",
|
|
15178
|
-
code: "<script>\n import {\n NotificationList,\n NotificationFilters,\n NotificationBulkActions,\n NotificationDialog,\n } from '@classic-homes/theme-svelte/notifications';\n import type {
|
|
15330
|
+
code: "<script>\n import {\n NotificationList,\n NotificationFilters,\n NotificationBulkActions,\n NotificationDialog,\n } from '@classic-homes/theme-svelte/notifications';\n import type {\n Notification,\n NotificationFilter,\n NotificationCounts,\n } from '@classic-homes/notifications/core';\n\n let notifications = $state<Notification[]>([\n /* your notifications */\n ]);\n let filter = $state<NotificationFilter>('all');\n let selectedIds = $state(new Set<string>());\n let dialogOpen = $state(false);\n let selectedNotification = $state<Notification | null>(null);\n\n const filteredNotifications = $derived.by(() => {\n switch (filter) {\n case 'unread':\n return notifications.filter((n) => !n.read);\n case 'read':\n return notifications.filter((n) => n.read);\n default:\n return notifications;\n }\n });\n\n const counts: NotificationCounts = $derived({\n all: notifications.length,\n unread: notifications.filter((n) => !n.read).length,\n read: notifications.filter((n) => n.read).length,\n });\n</script>\n\n<NotificationFilters bind:filter {counts} />\n\n<NotificationBulkActions\n selectedCount={selectedIds.size}\n totalCount={filteredNotifications.length}\n onSelectAll={(selected) => {\n /* ... */\n }}\n onMarkRead={() => {\n /* ... */\n }}\n onDelete={() => {\n /* ... */\n }}\n/>\n\n<NotificationList\n notifications={filteredNotifications}\n {selectedIds}\n selectable={true}\n onToggleSelect={handleToggleSelect}\n onNotificationClick={handleNotificationClick}\n/>\n\n<NotificationDialog notification={selectedNotification} bind:open={dialogOpen} />"
|
|
15179
15331
|
},
|
|
15180
15332
|
{
|
|
15181
15333
|
title: "With Filter-Specific Empty States",
|
|
15182
15334
|
code: `<NotificationList
|
|
15183
|
-
notifications={filteredNotifications
|
|
15335
|
+
notifications={filteredNotifications}
|
|
15184
15336
|
emptyTitle={filter === 'unread'
|
|
15185
15337
|
? 'No unread notifications'
|
|
15186
15338
|
: filter === 'read'
|
|
@@ -15788,6 +15940,12 @@ var component_catalog_default = {
|
|
|
15788
15940
|
required: false,
|
|
15789
15941
|
description: "Custom HTML legend (e.g. `ChartLegend`) instead of the built-in one; React takes a function returning a node"
|
|
15790
15942
|
},
|
|
15943
|
+
{
|
|
15944
|
+
name: "selected",
|
|
15945
|
+
type: "string | string[] | null",
|
|
15946
|
+
required: false,
|
|
15947
|
+
description: "Controlled selection: slices outside the named ones fade. Set it from `onClick` to cross-filter"
|
|
15948
|
+
},
|
|
15791
15949
|
{
|
|
15792
15950
|
name: "onClick",
|
|
15793
15951
|
type: "(params: SliceEventParams) => void",
|
|
@@ -20297,6 +20455,7 @@ var component_catalog_default = {
|
|
|
20297
20455
|
relatedComponents: [
|
|
20298
20456
|
"StatGroup",
|
|
20299
20457
|
"Sparkline",
|
|
20458
|
+
"DeltaText",
|
|
20300
20459
|
"BulletChart"
|
|
20301
20460
|
]
|
|
20302
20461
|
},
|
|
@@ -22523,7 +22682,7 @@ function registerComponentResources(server) {
|
|
|
22523
22682
|
|
|
22524
22683
|
// src/data/token-definitions.json
|
|
22525
22684
|
var token_definitions_default = {
|
|
22526
|
-
version: "0.5.
|
|
22685
|
+
version: "0.5.7",
|
|
22527
22686
|
colors: {
|
|
22528
22687
|
brand: [
|
|
22529
22688
|
{
|
|
@@ -23506,7 +23665,7 @@ function registerTokenResources(server) {
|
|
|
23506
23665
|
|
|
23507
23666
|
// src/data/styles-catalog.json
|
|
23508
23667
|
var styles_catalog_default = {
|
|
23509
|
-
version: "0.5.
|
|
23668
|
+
version: "0.5.7",
|
|
23510
23669
|
package: "@classic-homes/theme-styles",
|
|
23511
23670
|
description: "Base CSS styles, accessibility features, and utility classes for the Classic Theme design system",
|
|
23512
23671
|
integration: {
|
|
@@ -23889,7 +24048,7 @@ import { ResourceTemplate as ResourceTemplate2 } from "@modelcontextprotocol/sdk
|
|
|
23889
24048
|
|
|
23890
24049
|
// src/data/pattern-library.json
|
|
23891
24050
|
var pattern_library_default = {
|
|
23892
|
-
version: "0.5.
|
|
24051
|
+
version: "0.5.7",
|
|
23893
24052
|
layouts: [
|
|
23894
24053
|
{
|
|
23895
24054
|
id: "dashboard-page",
|
|
@@ -24983,7 +25142,7 @@ function registerLayoutResources(server) {
|
|
|
24983
25142
|
|
|
24984
25143
|
// src/data/schema-catalog.json
|
|
24985
25144
|
var schema_catalog_default = {
|
|
24986
|
-
version: "0.5.
|
|
25145
|
+
version: "0.5.7",
|
|
24987
25146
|
packageName: "@classic-homes/theme-svelte",
|
|
24988
25147
|
importPath: "@classic-homes/theme-svelte",
|
|
24989
25148
|
generatedFrom: "packages/svelte/src/lib/schemas/index.ts",
|
|
@@ -25791,7 +25950,7 @@ import { ResourceTemplate as ResourceTemplate3 } from "@modelcontextprotocol/sdk
|
|
|
25791
25950
|
|
|
25792
25951
|
// src/data/auth-catalog.json
|
|
25793
25952
|
var auth_catalog_default = {
|
|
25794
|
-
version: "0.5.
|
|
25953
|
+
version: "0.5.7",
|
|
25795
25954
|
packageName: "@classic-homes/auth",
|
|
25796
25955
|
description: "Authentication services and Svelte bindings for Classic Theme apps",
|
|
25797
25956
|
subpackages: {
|
|
@@ -28833,7 +28992,7 @@ import { ResourceTemplate as ResourceTemplate4 } from "@modelcontextprotocol/sdk
|
|
|
28833
28992
|
|
|
28834
28993
|
// src/data/notifications-catalog.json
|
|
28835
28994
|
var notifications_catalog_default = {
|
|
28836
|
-
version: "0.5.
|
|
28995
|
+
version: "0.5.7",
|
|
28837
28996
|
packageName: "@classic-homes/notifications",
|
|
28838
28997
|
description: "Notification services and Svelte bindings for Classic Theme apps",
|
|
28839
28998
|
subpackages: {
|
|
@@ -29745,7 +29904,7 @@ function registerNotificationsResources(server) {
|
|
|
29745
29904
|
|
|
29746
29905
|
// src/data/docs-catalog.json
|
|
29747
29906
|
var docs_catalog_default = {
|
|
29748
|
-
version: "0.5.
|
|
29907
|
+
version: "0.5.7",
|
|
29749
29908
|
packageName: "@classic-homes/theme-docs",
|
|
29750
29909
|
description: "Markdown documentation components for the Classic theme system",
|
|
29751
29910
|
exports: {
|
|
@@ -30625,6 +30784,12 @@ var docs_catalog_default = {
|
|
|
30625
30784
|
signature: "() => Promise<Highlighter>",
|
|
30626
30785
|
description: "Get or create singleton Shiki highlighter instance"
|
|
30627
30786
|
},
|
|
30787
|
+
{
|
|
30788
|
+
name: "configureHighlighter",
|
|
30789
|
+
signature: "(config: HighlighterConfig) => void",
|
|
30790
|
+
description: "Configure the shared highlighter before the first render: engine (e.g. createJavaScriptRegexEngine() on Workers), langs, themes, loaders (shiki/core grammars by name), tokenizeTimeLimit (ms per line; default 0 = no limit, so output is deterministic; Shiki's own 500 ms default half-highlights lines under CPU load)",
|
|
30791
|
+
example: "import { configureHighlighter } from '@classic-homes/theme-docs/content/core';\nimport { createJavaScriptRegexEngine } from 'shiki/engine/javascript';\n\nconfigureHighlighter({ engine: createJavaScriptRegexEngine() });"
|
|
30792
|
+
},
|
|
30628
30793
|
{
|
|
30629
30794
|
name: "escapeHtml",
|
|
30630
30795
|
signature: "(str: string) => string",
|
|
@@ -31417,7 +31582,7 @@ function registerDocsResources(server) {
|
|
|
31417
31582
|
|
|
31418
31583
|
// src/data/charts-catalog.json
|
|
31419
31584
|
var charts_catalog_default = {
|
|
31420
|
-
version: "0.5.
|
|
31585
|
+
version: "0.5.7",
|
|
31421
31586
|
packageName: "@classic-homes/charts-core",
|
|
31422
31587
|
description: "Core utilities, types, and themes for Classic Theme chart components",
|
|
31423
31588
|
subpackages: {
|
|
@@ -31505,7 +31670,7 @@ var charts_catalog_default = {
|
|
|
31505
31670
|
{
|
|
31506
31671
|
name: "getReplaceMerge",
|
|
31507
31672
|
signature: "(prev: object | null | undefined, next: object, isComponentType: (mainType: string) => boolean) => string[]",
|
|
31508
|
-
description: "replaceMerge list for setOption when a complete option supersedes the previous one:
|
|
31673
|
+
description: "replaceMerge list for setOption when a complete option supersedes the previous one: graphic, series unless every series keeps its keys and type (so a data refresh merges and does not replay the entry animation), plus component types that were removed or shrank. Pass echarts.ComponentModel.hasClass as isComponentType. Keeps legend selection and dataZoom state, unlike notMerge"
|
|
31509
31674
|
},
|
|
31510
31675
|
{
|
|
31511
31676
|
name: "resolveValueFormatter",
|
|
@@ -32007,7 +32172,7 @@ var charts_catalog_default = {
|
|
|
32007
32172
|
name: "data",
|
|
32008
32173
|
type: "LineChartData",
|
|
32009
32174
|
required: true,
|
|
32010
|
-
description: "Chart data with categories and series"
|
|
32175
|
+
description: "Chart data with categories and series. A series' forecastFrom (index) draws that point onward as a forecast: dashed line with hollow points, or faded dashed-outline bars, tagged with forecastLabel (default 'Forecast') in the tooltip. A series' variant: 'ghost' draws it as a faded reference (e.g. the prior period): dashed, faded line with no points, fill or labels"
|
|
32011
32176
|
},
|
|
32012
32177
|
{
|
|
32013
32178
|
name: "smooth",
|
|
@@ -32075,6 +32240,12 @@ var charts_catalog_default = {
|
|
|
32075
32240
|
required: false,
|
|
32076
32241
|
description: "Show data labels (default false)"
|
|
32077
32242
|
},
|
|
32243
|
+
{
|
|
32244
|
+
name: "selected",
|
|
32245
|
+
type: "string | string[] | null",
|
|
32246
|
+
required: false,
|
|
32247
|
+
description: "Controlled selection: the named categories stand out (other bars fade; line/area points there are enlarged and ringed) and the accessible description names them. The chart never changes it itself \u2014 set it from onClick to cross-filter"
|
|
32248
|
+
},
|
|
32078
32249
|
{
|
|
32079
32250
|
name: "onClick",
|
|
32080
32251
|
type: "(params: DataPointEventParams) => void",
|
|
@@ -32121,7 +32292,7 @@ var charts_catalog_default = {
|
|
|
32121
32292
|
name: "data",
|
|
32122
32293
|
type: "BarChartData",
|
|
32123
32294
|
required: true,
|
|
32124
|
-
description: "Chart data with categories and series"
|
|
32295
|
+
description: "Chart data with categories and series. A series' forecastFrom (index) draws that point onward as a forecast: dashed line with hollow points, or faded dashed-outline bars, tagged with forecastLabel (default 'Forecast') in the tooltip. A series' variant: 'ghost' draws it as a faded reference (e.g. the prior period): faded bars beside the solid ones (own parallel stack), no value labels, left out of showTotal totals"
|
|
32125
32296
|
},
|
|
32126
32297
|
{
|
|
32127
32298
|
name: "orientation",
|
|
@@ -32183,6 +32354,12 @@ var charts_catalog_default = {
|
|
|
32183
32354
|
required: false,
|
|
32184
32355
|
description: "Vertical axis customisation (name, formatter, rotate, min, max, interval, show)"
|
|
32185
32356
|
},
|
|
32357
|
+
{
|
|
32358
|
+
name: "selected",
|
|
32359
|
+
type: "string | string[] | null",
|
|
32360
|
+
required: false,
|
|
32361
|
+
description: "Controlled selection: the named categories stand out (other bars fade; line/area points there are enlarged and ringed) and the accessible description names them. The chart never changes it itself \u2014 set it from onClick to cross-filter"
|
|
32362
|
+
},
|
|
32186
32363
|
{
|
|
32187
32364
|
name: "onClick",
|
|
32188
32365
|
type: "(params: DataPointEventParams) => void",
|
|
@@ -32273,6 +32450,12 @@ var charts_catalog_default = {
|
|
|
32273
32450
|
required: false,
|
|
32274
32451
|
description: "Data label text: an ECharts template or a function (params include per-point `label`)"
|
|
32275
32452
|
},
|
|
32453
|
+
{
|
|
32454
|
+
name: "selected",
|
|
32455
|
+
type: "string | string[] | null",
|
|
32456
|
+
required: false,
|
|
32457
|
+
description: "Controlled selection: the named slices stand out (others fade) and the accessible description names them. The chart never changes it itself \u2014 set it from onClick to cross-filter"
|
|
32458
|
+
},
|
|
32276
32459
|
{
|
|
32277
32460
|
name: "onClick",
|
|
32278
32461
|
type: "(params: SliceEventParams) => void",
|
|
@@ -32302,6 +32485,12 @@ var charts_catalog_default = {
|
|
|
32302
32485
|
type: "string | number",
|
|
32303
32486
|
required: false,
|
|
32304
32487
|
description: "Center value text"
|
|
32488
|
+
},
|
|
32489
|
+
{
|
|
32490
|
+
name: "selected",
|
|
32491
|
+
type: "string | string[] | null",
|
|
32492
|
+
required: false,
|
|
32493
|
+
description: "Controlled selection: the named slices stand out (others fade) and the accessible description names them. The chart never changes it itself \u2014 set it from onClick to cross-filter"
|
|
32305
32494
|
}
|
|
32306
32495
|
]
|
|
32307
32496
|
},
|
|
@@ -32313,7 +32502,7 @@ var charts_catalog_default = {
|
|
|
32313
32502
|
name: "data",
|
|
32314
32503
|
type: "AreaChartData",
|
|
32315
32504
|
required: true,
|
|
32316
|
-
description: "Chart data with categories and series"
|
|
32505
|
+
description: "Chart data with categories and series. A series' forecastFrom (index) draws that point onward as a forecast (dashed line, faded area, hollow points), tagged with forecastLabel (default 'Forecast') in the tooltip. A series' variant: 'ghost' draws it as a faded reference (e.g. the prior period): dashed, faded line with no fill, points or labels"
|
|
32317
32506
|
},
|
|
32318
32507
|
{
|
|
32319
32508
|
name: "smooth",
|
|
@@ -32375,6 +32564,18 @@ var charts_catalog_default = {
|
|
|
32375
32564
|
required: false,
|
|
32376
32565
|
description: "Show data labels (default false)"
|
|
32377
32566
|
},
|
|
32567
|
+
{
|
|
32568
|
+
name: "selected",
|
|
32569
|
+
type: "string | string[] | null",
|
|
32570
|
+
required: false,
|
|
32571
|
+
description: "Controlled selection: the named categories stand out (other bars fade; line/area points there are enlarged and ringed) and the accessible description names them. The chart never changes it itself \u2014 set it from onClick to cross-filter"
|
|
32572
|
+
},
|
|
32573
|
+
{
|
|
32574
|
+
name: "showDataPoints",
|
|
32575
|
+
type: "boolean",
|
|
32576
|
+
required: false,
|
|
32577
|
+
description: "Show data points on the area's line (needed for clicks on a point)"
|
|
32578
|
+
},
|
|
32378
32579
|
{
|
|
32379
32580
|
name: "onClick",
|
|
32380
32581
|
type: "(params: DataPointEventParams) => void",
|
|
@@ -33598,6 +33799,60 @@ var charts_catalog_default = {
|
|
|
33598
33799
|
}
|
|
33599
33800
|
]
|
|
33600
33801
|
},
|
|
33802
|
+
{
|
|
33803
|
+
name: "DeltaTextProps",
|
|
33804
|
+
description: "Inline change between two values: coloured \u25B2/\u25BC, the change and a 'vs previous' label (Svelte only; React pending)",
|
|
33805
|
+
properties: [
|
|
33806
|
+
{
|
|
33807
|
+
name: "current",
|
|
33808
|
+
type: "number | null | undefined",
|
|
33809
|
+
required: true,
|
|
33810
|
+
description: "The current value"
|
|
33811
|
+
},
|
|
33812
|
+
{
|
|
33813
|
+
name: "previous",
|
|
33814
|
+
type: "number | null | undefined",
|
|
33815
|
+
required: true,
|
|
33816
|
+
description: "The value compared against"
|
|
33817
|
+
},
|
|
33818
|
+
{
|
|
33819
|
+
name: "display",
|
|
33820
|
+
type: "'percent' | 'absolute' | 'both'",
|
|
33821
|
+
required: false,
|
|
33822
|
+
description: "How the change is shown (default 'percent'; a change from zero falls back to absolute)"
|
|
33823
|
+
},
|
|
33824
|
+
{
|
|
33825
|
+
name: "goodWhen",
|
|
33826
|
+
type: "'up' | 'down' | 'none'",
|
|
33827
|
+
required: false,
|
|
33828
|
+
description: "Which direction is good, for colouring (default 'up'); 'none' stays neutral"
|
|
33829
|
+
},
|
|
33830
|
+
{
|
|
33831
|
+
name: "valueFormat",
|
|
33832
|
+
type: "ValueFormat",
|
|
33833
|
+
required: false,
|
|
33834
|
+
description: "How the absolute change and previous value are written"
|
|
33835
|
+
},
|
|
33836
|
+
{
|
|
33837
|
+
name: "locale",
|
|
33838
|
+
type: "string",
|
|
33839
|
+
required: false,
|
|
33840
|
+
description: "Locale for valueFormat and the percentage (default 'en-US')"
|
|
33841
|
+
},
|
|
33842
|
+
{
|
|
33843
|
+
name: "label",
|
|
33844
|
+
type: "string",
|
|
33845
|
+
required: false,
|
|
33846
|
+
description: "Text after the change (default 'vs <previous>'; '' hides it)"
|
|
33847
|
+
},
|
|
33848
|
+
{
|
|
33849
|
+
name: "class",
|
|
33850
|
+
type: "string",
|
|
33851
|
+
required: false,
|
|
33852
|
+
description: "Custom CSS class"
|
|
33853
|
+
}
|
|
33854
|
+
]
|
|
33855
|
+
},
|
|
33601
33856
|
{
|
|
33602
33857
|
name: "StatCardProps",
|
|
33603
33858
|
description: "Stat card: a headline metric with its change and trend (Svelte only; React pending)",
|
|
@@ -35163,6 +35418,12 @@ var charts_catalog_default = {
|
|
|
35163
35418
|
data: "value + StatDelta",
|
|
35164
35419
|
summary: "KPI value with delta, trend sparkline, definition and tone"
|
|
35165
35420
|
},
|
|
35421
|
+
{
|
|
35422
|
+
name: "DeltaText",
|
|
35423
|
+
props: "DeltaTextProps",
|
|
35424
|
+
data: "current + previous",
|
|
35425
|
+
summary: "Inline coloured \u25B2/\u25BC change vs a previous value (StatCard's change line, for KPI rows and table cells)"
|
|
35426
|
+
},
|
|
35166
35427
|
{
|
|
35167
35428
|
name: "StatGroup",
|
|
35168
35429
|
props: "StatGroupProps",
|
|
@@ -35367,7 +35628,7 @@ ${catalog4.quickReference.typesSubpath}
|
|
|
35367
35628
|
|
|
35368
35629
|
**Svelte and React (13):** AreaChart, BarChart, LineChart, PieChart, DonutChart, CandlestickChart, FunnelChart, GaugeChart, HeatmapChart, RadarChart, SankeyChart, ScatterChart, TreemapChart
|
|
35369
35630
|
|
|
35370
|
-
**Report charts and stats (Svelte only, React pending):** ComboChart, DotPlotChart, BulletChart, HistogramChart, BoxPlotChart, WaterfallChart, Sparkline, StatCard, StatGroup (plus the ChartDataTable base component). See \`charts://reporting\`.
|
|
35631
|
+
**Report charts and stats (Svelte only, React pending):** ComboChart, DotPlotChart, BulletChart, HistogramChart, BoxPlotChart, WaterfallChart, Sparkline, StatCard, DeltaText, StatGroup (plus the ChartDataTable base component). See \`charts://reporting\`.
|
|
35371
35632
|
|
|
35372
35633
|
\`\`\`typescript
|
|
35373
35634
|
${catalog4.quickReference.reportingUsage ?? ""}
|
|
@@ -35404,7 +35665,7 @@ ${catalog4.quickReference.reportingUsage ?? ""}
|
|
|
35404
35665
|
- \`abbreviateNumber(value, decimals?)\` - Abbreviate to K/M/B/T
|
|
35405
35666
|
- \`createTooltipFormatter(options?)\` - Create ECharts tooltip formatter
|
|
35406
35667
|
- \`escapeHtml(value)\` - Escape user data in custom tooltip formatters
|
|
35407
|
-
- \`getReplaceMerge(prev, next, isComponentType)\` - setOption replaceMerge list that drops removed series/components but keeps legend and dataZoom state
|
|
35668
|
+
- \`getReplaceMerge(prev, next, isComponentType)\` - setOption replaceMerge list that drops removed series/components but keeps legend and dataZoom state; same-shape series merge so data refreshes do not replay the entry animation
|
|
35408
35669
|
- \`resolveValueFormatter(valueFormat, locale?)\` - Turn a valueFormat prop into a \`(value) => string\` function
|
|
35409
35670
|
- \`formatValue(value, formatter?, empty?)\` - Format a possibly-missing value
|
|
35410
35671
|
|
|
@@ -35451,6 +35712,9 @@ interface LineChartData {
|
|
|
35451
35712
|
color?: string;
|
|
35452
35713
|
labels?: (string | null)[];
|
|
35453
35714
|
stack?: string; // stack group id
|
|
35715
|
+
forecastFrom?: number; // index of first forecast point: dashed line / faded bars, tagged in tooltip (Line, Area, Bar)
|
|
35716
|
+
forecastLabel?: string; // tooltip tag, default 'Forecast' (e.g. 'Partial month')
|
|
35717
|
+
variant?: 'ghost'; // faded reference (e.g. prior period): dashed faded line / faded bars beside the solid ones; no labels, not in totals (Line, Area, Bar, Combo)
|
|
35454
35718
|
}[];
|
|
35455
35719
|
}
|
|
35456
35720
|
// ComboChart series add type?: 'bar' | 'line' | 'area' and axis?: 'primary' | 'secondary'
|
|
@@ -35464,6 +35728,7 @@ interface HistogramBin { start?: number; end?: number; label?: string } // Histo
|
|
|
35464
35728
|
interface BoxPlotGroup { name: string; values: number[] }
|
|
35465
35729
|
interface WaterfallStep { name: string; value: number; isTotal?: boolean | 'value'; color?: string; label?: string }
|
|
35466
35730
|
interface StatDelta { previous: number | null | undefined; current?: number | null; display?: 'percent' | 'absolute' | 'both'; goodWhen?: 'up' | 'down' | 'none'; label?: string }
|
|
35731
|
+
interface DeltaTextProps { current: number | null | undefined; previous: number | null | undefined; display?; goodWhen?; valueFormat?: ValueFormat; locale?: string; label?: string; class?: string } // <DeltaText>: StatCard's change line, inline
|
|
35467
35732
|
\`\`\`
|
|
35468
35733
|
|
|
35469
35734
|
**Slices (Pie, Donut, Funnel):**
|
|
@@ -35555,7 +35820,7 @@ interface SankeyData {
|
|
|
35555
35820
|
|
|
35556
35821
|
// src/data/gantt-catalog.json
|
|
35557
35822
|
var gantt_catalog_default = {
|
|
35558
|
-
version: "0.5.
|
|
35823
|
+
version: "0.5.7",
|
|
35559
35824
|
packageName: "@classic-homes/gantt-core",
|
|
35560
35825
|
description: "Framework-agnostic Gantt engine: working calendars, a critical-path scheduler, an editable project model with undo/redo, timeline geometry, drag math, accessible descriptions and import/export. No DOM, no framework, no runtime dependencies. @classic-homes/gantt-svelte renders it; a React package (@classic-homes/gantt-react) is planned.",
|
|
35561
35826
|
packages: {
|
|
@@ -36538,7 +36803,7 @@ function registerGanttResources(server) {
|
|
|
36538
36803
|
|
|
36539
36804
|
// src/data/maps-catalog.json
|
|
36540
36805
|
var maps_catalog_default = {
|
|
36541
|
-
version: "0.5.
|
|
36806
|
+
version: "0.5.7",
|
|
36542
36807
|
packageName: "@classic-homes/maps-core",
|
|
36543
36808
|
description: "Core utilities, types, and themes for Classic Theme MapLibre GL components",
|
|
36544
36809
|
subpackages: {
|
|
@@ -42164,7 +42429,7 @@ ${catalog6.quickReference.tailwindConfig}
|
|
|
42164
42429
|
|
|
42165
42430
|
// src/data/native-catalog.json
|
|
42166
42431
|
var native_catalog_default = {
|
|
42167
|
-
version: "0.5.
|
|
42432
|
+
version: "0.5.7",
|
|
42168
42433
|
packageName: "@classic-homes/native",
|
|
42169
42434
|
description: "Native device APIs for iOS and Android mobile apps. Uses Capacitor for native functionality with web fallbacks.",
|
|
42170
42435
|
subpackages: {
|
|
@@ -43874,7 +44139,7 @@ import { NativeGuard, usePlatformCheck } from '@classic-homes/native/react';
|
|
|
43874
44139
|
|
|
43875
44140
|
// src/data/viewer-catalog.json
|
|
43876
44141
|
var viewer_catalog_default = {
|
|
43877
|
-
version: "0.5.
|
|
44142
|
+
version: "0.5.7",
|
|
43878
44143
|
packageName: "@classic-homes/viewer-svelte",
|
|
43879
44144
|
description: "Client-side, view-only document viewers: PDF, Word (.docx), Excel (.xlsx), CSV/TSV and CAD (DXF; DWG through the separate GPL package). Files are parsed and rendered in the browser; nothing is uploaded or converted on a server. Each format is a lazy-loaded subpath with an optional peer dependency, so apps only bundle what they register. Svelte 5 only; a React package (viewer-react) is planned.",
|
|
43880
44145
|
packages: {
|
|
@@ -44933,7 +45198,7 @@ function registerPrompts(server) {
|
|
|
44933
45198
|
// package.json
|
|
44934
45199
|
var package_default = {
|
|
44935
45200
|
name: "@classic-homes/theme-mcp",
|
|
44936
|
-
version: "0.5.
|
|
45201
|
+
version: "0.5.7",
|
|
44937
45202
|
description: "MCP server for Classic Theme design system - enables AI assistants to understand and correctly use components, tokens, and patterns",
|
|
44938
45203
|
type: "module",
|
|
44939
45204
|
main: "dist/index.js",
|
|
@@ -45032,4 +45297,4 @@ function createServer() {
|
|
|
45032
45297
|
export {
|
|
45033
45298
|
createServer
|
|
45034
45299
|
};
|
|
45035
|
-
//# sourceMappingURL=chunk-
|
|
45300
|
+
//# sourceMappingURL=chunk-CJQWK7TC.js.map
|