@classic-homes/theme-mcp 0.2.3 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.js CHANGED
@@ -11,7 +11,7 @@ import { ResourceTemplate } from "@modelcontextprotocol/sdk/server/mcp.js";
11
11
 
12
12
  // src/data/component-catalog.json
13
13
  var component_catalog_default = {
14
- version: "0.2.3",
14
+ version: "0.3.1",
15
15
  components: [
16
16
  {
17
17
  name: "ActionHeader",
@@ -206,6 +206,56 @@ var component_catalog_default = {
206
206
  ],
207
207
  relatedComponents: []
208
208
  },
209
+ {
210
+ name: "ActiveFilterChips",
211
+ description: "Row of removable chips naming each filter that narrows a list, with Clear all",
212
+ category: "core",
213
+ importPath: "@classic-homes/theme-svelte",
214
+ props: [
215
+ {
216
+ name: "chips",
217
+ type: "ActiveFilterChip[]",
218
+ required: false,
219
+ description: "`{ key, label, onRemove }` per active filter"
220
+ },
221
+ {
222
+ name: "onClearAll",
223
+ type: "() => void",
224
+ required: false,
225
+ description: 'Shows a trailing "Clear all" button when set'
226
+ },
227
+ {
228
+ name: "children",
229
+ type: "Snippet",
230
+ required: false,
231
+ description: "Extra notes after the chips"
232
+ },
233
+ {
234
+ name: "class",
235
+ type: "string",
236
+ required: false,
237
+ description: "Additional classes"
238
+ }
239
+ ],
240
+ variants: [],
241
+ slots: [
242
+ {
243
+ name: "children",
244
+ description: "Main content",
245
+ required: false
246
+ }
247
+ ],
248
+ events: [],
249
+ examples: [
250
+ {
251
+ title: "Basic Usage",
252
+ code: "<ActiveFilterChips\n chips={[{ key: 'status', label: 'Status: Installed', onRemove: () => (status = '') }]}\n onClearAll={clearFilters}\n/>"
253
+ }
254
+ ],
255
+ relatedComponents: [
256
+ "FilterToolbar"
257
+ ]
258
+ },
209
259
  {
210
260
  name: "Alert",
211
261
  description: "Contextual feedback messages for user actions and system status",
@@ -5404,6 +5454,146 @@ var component_catalog_default = {
5404
5454
  "Button"
5405
5455
  ]
5406
5456
  },
5457
+ {
5458
+ name: "FilterToolbar",
5459
+ description: "Toolbar that folds filter controls behind a Filters button once more than three controls would sit inline",
5460
+ category: "layout",
5461
+ importPath: "@classic-homes/theme-svelte",
5462
+ props: [
5463
+ {
5464
+ name: "label",
5465
+ type: "string",
5466
+ required: false,
5467
+ description: "Accessible name of the strip (required)"
5468
+ },
5469
+ {
5470
+ name: "search",
5471
+ type: "Snippet",
5472
+ required: false,
5473
+ description: "Search field; always inline"
5474
+ },
5475
+ {
5476
+ name: "filters",
5477
+ type: "Snippet<[{ inline: boolean }]>",
5478
+ required: false,
5479
+ description: "Filter controls; `inline` is false inside the panel/dialog"
5480
+ },
5481
+ {
5482
+ name: "filterCount",
5483
+ type: "number",
5484
+ required: false,
5485
+ description: "Controls rendered by `filters` (drives the collapse rule)"
5486
+ },
5487
+ {
5488
+ name: "activeCount",
5489
+ type: "number",
5490
+ default: "0",
5491
+ required: false,
5492
+ description: "Active filters, shown as a badge on the button"
5493
+ },
5494
+ {
5495
+ name: "summary",
5496
+ type: "Snippet",
5497
+ required: false,
5498
+ description: "Result count after the filters / button"
5499
+ },
5500
+ {
5501
+ name: "end",
5502
+ type: "Snippet",
5503
+ required: false,
5504
+ description: "Right-aligned cluster"
5505
+ },
5506
+ {
5507
+ name: "onClear",
5508
+ type: "() => void",
5509
+ required: false,
5510
+ description: 'Resets every filter ("Clear all")'
5511
+ },
5512
+ {
5513
+ name: "maxInline",
5514
+ type: "number",
5515
+ default: "3",
5516
+ required: false,
5517
+ description: "Most left-side controls (search included) allowed inline"
5518
+ },
5519
+ {
5520
+ name: "open",
5521
+ type: "boolean",
5522
+ default: "false",
5523
+ required: false,
5524
+ description: "Panel/dialog open state (bindable)"
5525
+ },
5526
+ {
5527
+ name: "mobileQuery",
5528
+ type: "string",
5529
+ default: "'(max-width: 1023px)'",
5530
+ required: false,
5531
+ description: "Below this viewport filters always collapse into a dialog"
5532
+ },
5533
+ {
5534
+ name: "class",
5535
+ type: "string",
5536
+ required: false,
5537
+ description: "Additional classes on the wrapper"
5538
+ }
5539
+ ],
5540
+ variants: [],
5541
+ slots: [
5542
+ {
5543
+ name: "children",
5544
+ description: "Main content",
5545
+ required: false
5546
+ }
5547
+ ],
5548
+ events: [],
5549
+ examples: [
5550
+ {
5551
+ title: "Basic Usage",
5552
+ code: `<script>
5553
+ import {
5554
+ FilterToolbar,
5555
+ ActiveFilterChips,
5556
+ Input,
5557
+ Label,
5558
+ Select,
5559
+ } from '@classic-homes/theme-svelte';
5560
+
5561
+ let search = $state('');
5562
+ let status = $state('');
5563
+ let type = $state('');
5564
+ let supplier = $state('');
5565
+
5566
+ const activeCount = $derived([status, type, supplier].filter(Boolean).length);
5567
+ const clear = () => (status = type = supplier = '');
5568
+ </script>
5569
+
5570
+ <FilterToolbar label="Sign tools" filterCount={3} {activeCount} onClear={clear}>
5571
+ {#snippet search()}
5572
+ <Input type="search" aria-label="Search signs" class="w-full sm:w-56" bind:value={search} />
5573
+ {/snippet}
5574
+ {#snippet filters({ inline })}
5575
+ <div class="space-y-1">
5576
+ <Label for="status" class={inline ? 'sr-only' : ''}>Status</Label>
5577
+ <Select id="status" options={statusOptions} bind:value={status} />
5578
+ </div>
5579
+ <!-- \u2026type, supplier -->
5580
+ {/snippet}
5581
+ {#snippet summary()}<span class="text-sm">42 signs</span>{/snippet}
5582
+ </FilterToolbar>
5583
+
5584
+ <ActiveFilterChips
5585
+ chips={status
5586
+ ? [{ key: 'status', label: \`Status: \${status}\`, onRemove: () => (status = '') }]
5587
+ : []}
5588
+ onClearAll={clear}
5589
+ />`
5590
+ }
5591
+ ],
5592
+ relatedComponents: [
5593
+ "Toolbar",
5594
+ "ActionHeader"
5595
+ ]
5596
+ },
5407
5597
  {
5408
5598
  name: "Footer",
5409
5599
  description: "Site footer with link sections and branding",
@@ -14158,7 +14348,7 @@ function registerComponentResources(server) {
14158
14348
 
14159
14349
  // src/data/token-definitions.json
14160
14350
  var token_definitions_default = {
14161
- version: "0.2.3",
14351
+ version: "0.3.1",
14162
14352
  colors: {
14163
14353
  brand: [
14164
14354
  {
@@ -15141,7 +15331,7 @@ function registerTokenResources(server) {
15141
15331
 
15142
15332
  // src/data/styles-catalog.json
15143
15333
  var styles_catalog_default = {
15144
- version: "0.2.3",
15334
+ version: "0.3.1",
15145
15335
  package: "@classic-homes/theme-styles",
15146
15336
  description: "Base CSS styles, accessibility features, and utility classes for the Classic Theme design system",
15147
15337
  integration: {
@@ -15514,7 +15704,7 @@ import { ResourceTemplate as ResourceTemplate2 } from "@modelcontextprotocol/sdk
15514
15704
 
15515
15705
  // src/data/pattern-library.json
15516
15706
  var pattern_library_default = {
15517
- version: "0.2.3",
15707
+ version: "0.3.1",
15518
15708
  layouts: [
15519
15709
  {
15520
15710
  id: "dashboard-page",
@@ -16608,7 +16798,7 @@ function registerLayoutResources(server) {
16608
16798
 
16609
16799
  // src/data/schema-catalog.json
16610
16800
  var schema_catalog_default = {
16611
- version: "0.2.3",
16801
+ version: "0.3.1",
16612
16802
  packageName: "@classic-homes/theme-svelte",
16613
16803
  importPath: "@classic-homes/theme-svelte",
16614
16804
  generatedFrom: "packages/svelte/src/lib/schemas/index.ts",
@@ -17416,7 +17606,7 @@ import { ResourceTemplate as ResourceTemplate3 } from "@modelcontextprotocol/sdk
17416
17606
 
17417
17607
  // src/data/auth-catalog.json
17418
17608
  var auth_catalog_default = {
17419
- version: "0.2.3",
17609
+ version: "0.3.1",
17420
17610
  packageName: "@classic-homes/auth",
17421
17611
  description: "Authentication services and Svelte bindings for Classic Theme apps",
17422
17612
  subpackages: {
@@ -17990,12 +18180,12 @@ var auth_catalog_default = {
17990
18180
  {
17991
18181
  name: "ROLE_NAMES",
17992
18182
  type: "readonly RoleName[]",
17993
- description: "Every role name, ordered most to least privileged: admin, manager, agent, builder, customer_service, demo, stormwater, accounting_staff, architecture_staff, construction_staff, crl_staff, design_staff, hr_staff, it_staff, landdev_staff, marketing_staff, purchasing_staff, sales_staff, warranty_staff, employee, user, vendor, customer, subcontractor, guest. Order is load-bearing - computePrimaryRole takes the first match."
18183
+ 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."
17994
18184
  },
17995
18185
  {
17996
18186
  name: "ROLE_HIERARCHY",
17997
18187
  type: "Record<string, number>",
17998
- description: "Privilege level per role: guest 0; user/vendor/customer/subcontractor 1; employee/agent/builder/customer_service/demo/stormwater and every <department>_staff 2; manager 3; admin 4."
18188
+ 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."
17999
18189
  }
18000
18190
  ],
18001
18191
  types: [
@@ -20453,7 +20643,7 @@ import { ResourceTemplate as ResourceTemplate4 } from "@modelcontextprotocol/sdk
20453
20643
 
20454
20644
  // src/data/notifications-catalog.json
20455
20645
  var notifications_catalog_default = {
20456
- version: "0.2.3",
20646
+ version: "0.3.1",
20457
20647
  packageName: "@classic-homes/notifications",
20458
20648
  description: "Notification services and Svelte bindings for Classic Theme apps",
20459
20649
  subpackages: {
@@ -21365,7 +21555,7 @@ function registerNotificationsResources(server) {
21365
21555
 
21366
21556
  // src/data/docs-catalog.json
21367
21557
  var docs_catalog_default = {
21368
- version: "0.2.3",
21558
+ version: "0.3.1",
21369
21559
  packageName: "@classic-homes/theme-docs",
21370
21560
  description: "Markdown documentation components for the Classic theme system",
21371
21561
  exports: {
@@ -22293,7 +22483,7 @@ function registerDocsResources(server) {
22293
22483
 
22294
22484
  // src/data/charts-catalog.json
22295
22485
  var charts_catalog_default = {
22296
- version: "0.2.3",
22486
+ version: "0.3.1",
22297
22487
  packageName: "@classic-homes/charts-core",
22298
22488
  description: "Core utilities, types, and themes for Classic Theme chart components",
22299
22489
  subpackages: {
@@ -24130,7 +24320,7 @@ interface SankeyData {
24130
24320
 
24131
24321
  // src/data/maps-catalog.json
24132
24322
  var maps_catalog_default = {
24133
- version: "0.2.3",
24323
+ version: "0.3.1",
24134
24324
  packageName: "@classic-homes/maps-core",
24135
24325
  description: "Core utilities, types, and themes for Classic Theme MapLibre GL components",
24136
24326
  subpackages: {
@@ -25092,7 +25282,7 @@ var maps_catalog_default = {
25092
25282
  example: "import { optimizeOrder } from '@classic-homes/maps-core/route';\n\nconst { order, legMiles, totalMiles } = optimizeOrder(userLocation, stops);\nconst visitOrder = order.map((i) => stops[i]);"
25093
25283
  },
25094
25284
  mapsLinks: {
25095
- description: "Deep links into Google Maps and Apple Maps. Google renders at most 9 intermediate waypoints; the Apple Maps URL scheme has no waypoint parameter at all.",
25285
+ description: "Deep links into Google Maps and Apple Maps. Google renders at most 9 intermediate waypoints; Apple's unified /directions URL takes repeated waypoints (iOS 18.4+).",
25096
25286
  functions: [
25097
25287
  {
25098
25288
  name: "googleDirectionsUrl",
@@ -25107,7 +25297,7 @@ var maps_catalog_default = {
25107
25297
  {
25108
25298
  name: "appleDirectionsUrl",
25109
25299
  signature: "(stops: DirectionsTarget[], origin?: DirectionsTarget | null, dirflg?: 'd' | 'w' | 'r') => string",
25110
- description: "Apple Maps URL. Multi-stop input returns the leg to the FIRST stop only - label the affordance accordingly."
25300
+ description: "Apple Maps directions URL. One stop: legacy saddr/daddr form. Several: unified /directions URL (iOS 18.4 / macOS 15.4+) with the last stop as destination and the rest as repeated waypoints. Returns '' when no target is usable."
25111
25301
  },
25112
25302
  {
25113
25303
  name: "googleSearchUrl",
@@ -25135,7 +25325,7 @@ var maps_catalog_default = {
25135
25325
  description: "Targets per leg, counting the destination (10)"
25136
25326
  }
25137
25327
  ],
25138
- example: "import { googleDirectionsUrl, appleDirectionsUrl } from '@classic-homes/maps-core/route';\n\nconst google = googleDirectionsUrl(stops, userLocation, 'driving');\nconst apple = appleDirectionsUrl(stops, userLocation); // first stop only - label it"
25328
+ example: "import { googleDirectionsUrl, appleDirectionsUrl } from '@classic-homes/maps-core/route';\n\nconst google = googleDirectionsUrl(stops, userLocation, 'driving');\nconst apple = appleDirectionsUrl(stops, userLocation); // whole route on iOS 18.4+"
25139
25329
  },
25140
25330
  coords: {
25141
25331
  description: "LatLng is an object, deliberately NOT the LngLat tuple the rest of maps-core uses: a silently transposed tuple produces a plausible route on the wrong side of the planet. Convert at the map boundary.",
@@ -29461,7 +29651,7 @@ ${catalog5.quickReference.tailwindConfig}
29461
29651
 
29462
29652
  // src/data/native-catalog.json
29463
29653
  var native_catalog_default = {
29464
- version: "0.2.3",
29654
+ version: "0.3.1",
29465
29655
  packageName: "@classic-homes/native",
29466
29656
  description: "Native device APIs for iOS and Android mobile apps. Uses Capacitor for native functionality with web fallbacks.",
29467
29657
  subpackages: {
@@ -31836,7 +32026,7 @@ function registerPrompts(server) {
31836
32026
  // package.json
31837
32027
  var package_default = {
31838
32028
  name: "@classic-homes/theme-mcp",
31839
- version: "0.2.3",
32029
+ version: "0.3.1",
31840
32030
  description: "MCP server for Classic Theme design system - enables AI assistants to understand and correctly use components, tokens, and patterns",
31841
32031
  type: "module",
31842
32032
  main: "dist/index.js",