@classic-homes/theme-mcp 0.3.7 → 0.3.8

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.3.7",
9
+ version: "0.3.8",
10
10
  components: [
11
11
  {
12
12
  name: "ActionHeader",
@@ -7861,6 +7861,26 @@ var component_catalog_default = {
7861
7861
  default: "false",
7862
7862
  required: false,
7863
7863
  description: "Show a disclosure chevron after the trigger content, turned while the menu is open, so a text trigger (e.g. header navigation) reads as a menu rather than a link."
7864
+ },
7865
+ {
7866
+ name: "triggerDisabled",
7867
+ type: "boolean",
7868
+ default: "false",
7869
+ required: false,
7870
+ description: "Disable the trigger `<button>`: native `disabled`, and the menu cannot open by pointer or keyboard. Use this instead of nesting a disabled `<Button>` in `trigger`."
7871
+ },
7872
+ {
7873
+ name: "triggerStopPropagation",
7874
+ type: "boolean",
7875
+ default: "false",
7876
+ required: false,
7877
+ description: "Keep the trigger's pointer, mouse, click and opening-key (Enter, Space, ArrowDown) events from bubbling past the trigger, so a menu in a clickable row or card opens without activating the row."
7878
+ },
7879
+ {
7880
+ name: "onTriggerClick",
7881
+ type: "(event: MouseEvent) => void",
7882
+ required: false,
7883
+ description: "Called on a click of the trigger, before the event bubbles to its ancestors."
7864
7884
  }
7865
7885
  ],
7866
7886
  variants: [
@@ -7904,10 +7924,8 @@ var component_catalog_default = {
7904
7924
  ];
7905
7925
  </script>
7906
7926
 
7907
- <DropdownMenu {items}>
7908
- {#snippet trigger()}
7909
- <Button variant="outline">Menu</Button>
7910
- {/snippet}
7927
+ <DropdownMenu {items} triggerVariant="outline">
7928
+ {#snippet trigger()}Menu{/snippet}
7911
7929
  </DropdownMenu>`
7912
7930
  },
7913
7931
  {
@@ -7971,17 +7989,15 @@ var component_catalog_default = {
7971
7989
  ];
7972
7990
  </script>
7973
7991
 
7974
- <DropdownMenu {items}>
7992
+ <DropdownMenu {items} triggerVariant="ghost" triggerSize="icon" triggerLabel="More actions">
7975
7993
  {#snippet trigger()}
7976
- <Button variant="ghost" size="icon">
7977
- <MoreHorizontalIcon />
7978
- </Button>
7994
+ <MoreHorizontalIcon />
7979
7995
  {/snippet}
7980
7996
  </DropdownMenu>`
7981
7997
  },
7982
7998
  {
7983
- title: "Table Row Actions",
7984
- code: '{#each rows as row}\n <tr>\n <td>{row.name}</td>\n <td>\n <DropdownMenu items={getRowActions(row)}>\n {#snippet trigger()}\n <Button variant="ghost" size="sm">Actions</Button>\n {/snippet}\n </DropdownMenu>\n </td>\n </tr>\n{/each}'
7999
+ title: "Disabled Trigger",
8000
+ code: '<DropdownMenu {items} triggerVariant="outline" triggerDisabled={!canEdit}>\n {#snippet trigger()}Insert snippet{/snippet}\n</DropdownMenu>'
7985
8001
  }
7986
8002
  ],
7987
8003
  relatedComponents: [
@@ -11257,9 +11273,9 @@ var component_catalog_default = {
11257
11273
  },
11258
11274
  {
11259
11275
  name: "trigger",
11260
- type: "Snippet",
11276
+ type: "Snippet<[{ props }]>",
11261
11277
  required: false,
11262
- description: "Optional trigger rendered inline; omit when controlling `open` yourself"
11278
+ description: "Optional trigger; spread `props` on your own button. Omit when controlling `open` yourself"
11263
11279
  }
11264
11280
  ],
11265
11281
  variants: [],
@@ -20430,7 +20446,7 @@ function registerComponentResources(server) {
20430
20446
 
20431
20447
  // src/data/token-definitions.json
20432
20448
  var token_definitions_default = {
20433
- version: "0.3.7",
20449
+ version: "0.3.8",
20434
20450
  colors: {
20435
20451
  brand: [
20436
20452
  {
@@ -21413,7 +21429,7 @@ function registerTokenResources(server) {
21413
21429
 
21414
21430
  // src/data/styles-catalog.json
21415
21431
  var styles_catalog_default = {
21416
- version: "0.3.7",
21432
+ version: "0.3.8",
21417
21433
  package: "@classic-homes/theme-styles",
21418
21434
  description: "Base CSS styles, accessibility features, and utility classes for the Classic Theme design system",
21419
21435
  integration: {
@@ -21796,7 +21812,7 @@ import { ResourceTemplate as ResourceTemplate2 } from "@modelcontextprotocol/sdk
21796
21812
 
21797
21813
  // src/data/pattern-library.json
21798
21814
  var pattern_library_default = {
21799
- version: "0.3.7",
21815
+ version: "0.3.8",
21800
21816
  layouts: [
21801
21817
  {
21802
21818
  id: "dashboard-page",
@@ -22890,7 +22906,7 @@ function registerLayoutResources(server) {
22890
22906
 
22891
22907
  // src/data/schema-catalog.json
22892
22908
  var schema_catalog_default = {
22893
- version: "0.3.7",
22909
+ version: "0.3.8",
22894
22910
  packageName: "@classic-homes/theme-svelte",
22895
22911
  importPath: "@classic-homes/theme-svelte",
22896
22912
  generatedFrom: "packages/svelte/src/lib/schemas/index.ts",
@@ -23698,7 +23714,7 @@ import { ResourceTemplate as ResourceTemplate3 } from "@modelcontextprotocol/sdk
23698
23714
 
23699
23715
  // src/data/auth-catalog.json
23700
23716
  var auth_catalog_default = {
23701
- version: "0.3.7",
23717
+ version: "0.3.8",
23702
23718
  packageName: "@classic-homes/auth",
23703
23719
  description: "Authentication services and Svelte bindings for Classic Theme apps",
23704
23720
  subpackages: {
@@ -26735,7 +26751,7 @@ import { ResourceTemplate as ResourceTemplate4 } from "@modelcontextprotocol/sdk
26735
26751
 
26736
26752
  // src/data/notifications-catalog.json
26737
26753
  var notifications_catalog_default = {
26738
- version: "0.3.7",
26754
+ version: "0.3.8",
26739
26755
  packageName: "@classic-homes/notifications",
26740
26756
  description: "Notification services and Svelte bindings for Classic Theme apps",
26741
26757
  subpackages: {
@@ -27647,7 +27663,7 @@ function registerNotificationsResources(server) {
27647
27663
 
27648
27664
  // src/data/docs-catalog.json
27649
27665
  var docs_catalog_default = {
27650
- version: "0.3.7",
27666
+ version: "0.3.8",
27651
27667
  packageName: "@classic-homes/theme-docs",
27652
27668
  description: "Markdown documentation components for the Classic theme system",
27653
27669
  exports: {
@@ -29319,7 +29335,7 @@ function registerDocsResources(server) {
29319
29335
 
29320
29336
  // src/data/charts-catalog.json
29321
29337
  var charts_catalog_default = {
29322
- version: "0.3.7",
29338
+ version: "0.3.8",
29323
29339
  packageName: "@classic-homes/charts-core",
29324
29340
  description: "Core utilities, types, and themes for Classic Theme chart components",
29325
29341
  subpackages: {
@@ -33451,7 +33467,7 @@ interface SankeyData {
33451
33467
 
33452
33468
  // src/data/maps-catalog.json
33453
33469
  var maps_catalog_default = {
33454
- version: "0.3.7",
33470
+ version: "0.3.8",
33455
33471
  packageName: "@classic-homes/maps-core",
33456
33472
  description: "Core utilities, types, and themes for Classic Theme MapLibre GL components",
33457
33473
  subpackages: {
@@ -37052,9 +37068,9 @@ var maps_catalog_default = {
37052
37068
  },
37053
37069
  {
37054
37070
  name: "error",
37055
- type: "Error",
37071
+ type: "MapErrorLike",
37056
37072
  required: false,
37057
- description: "Original error object"
37073
+ description: "Original error as MapLibre reported it: { message, name?, stack? }. MapLibre 6 narrowed it from Error to { message: string }; read message, treat name/stack as best-effort"
37058
37074
  },
37059
37075
  {
37060
37076
  name: "fatal",
@@ -38237,7 +38253,8 @@ const layers: OverlayLayerDefinition[] = [
38237
38253
  </Source>
38238
38254
  <Marker coordinates={[-122.4, 37.8]} color="red" />
38239
38255
  </Map>`,
38240
- peerDependency: "maplibre-gl@^4.0.0 || ^5.0.0",
38256
+ peerDependency: "maplibre-gl@^5.0.0 || ^6.11.0",
38257
+ workerSetup: "// MapLibre 6 only: set the worker URL once at app startup, before the first map\nimport { setWorkerUrl } from 'maplibre-gl';\nimport workerUrl from 'maplibre-gl/dist/maplibre-gl-worker.mjs?worker&url'; // Vite\nsetWorkerUrl(workerUrl);\n\n// webpack: setWorkerUrl(new URL('maplibre-gl/dist/maplibre-gl-worker.mjs', import.meta.url).toString());\n// MapLibre 6 is ESM-only: CommonJS consumers of maps-react stay on MapLibre 5",
38241
38258
  optionalPeerDependencies: "@deck.gl/core, @deck.gl/layers, @deck.gl/mapbox (for DeckOverlay)",
38242
38259
  cssImportOrder: "/* In main CSS file - order matters */\n@import '@classic-homes/theme-styles';\n@import 'maplibre-gl/dist/maplibre-gl.css';\n@import '@classic-homes/maps-core/styles/controls.css';\n@import '@classic-homes/maps-core/styles/popup.css';\n@import '@classic-homes/maps-core/styles/basemap-switcher.css';\n@import '@classic-homes/maps-core/styles/layer-manager.css';\n\n@tailwind base;\n@tailwind components;\n@tailwind utilities;",
38243
38260
  tailwindConfig: "module.exports = {\n presets: [require('@classic-homes/theme-tailwind-preset')],\n content: [\n './src/**/*.{js,ts,jsx,tsx}',\n './node_modules/@classic-homes/maps-react/dist/**/*.{js,mjs}',\n ],\n};"
@@ -39076,7 +39093,7 @@ ${catalog5.quickReference.tailwindConfig}
39076
39093
 
39077
39094
  // src/data/native-catalog.json
39078
39095
  var native_catalog_default = {
39079
- version: "0.3.7",
39096
+ version: "0.3.8",
39080
39097
  packageName: "@classic-homes/native",
39081
39098
  description: "Native device APIs for iOS and Android mobile apps. Uses Capacitor for native functionality with web fallbacks.",
39082
39099
  subpackages: {
@@ -41466,7 +41483,7 @@ function registerPrompts(server) {
41466
41483
  // package.json
41467
41484
  var package_default = {
41468
41485
  name: "@classic-homes/theme-mcp",
41469
- version: "0.3.7",
41486
+ version: "0.3.8",
41470
41487
  description: "MCP server for Classic Theme design system - enables AI assistants to understand and correctly use components, tokens, and patterns",
41471
41488
  type: "module",
41472
41489
  main: "dist/index.js",
@@ -41565,4 +41582,4 @@ function createServer() {
41565
41582
  export {
41566
41583
  createServer
41567
41584
  };
41568
- //# sourceMappingURL=chunk-W5JKCW4W.js.map
41585
+ //# sourceMappingURL=chunk-D3HFF6PQ.js.map