@triptease/design-system-mcp 1.1.3 → 1.1.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 +135 -20
- package/package.json +6 -5
package/dist/index.js
CHANGED
|
@@ -7656,11 +7656,11 @@ function datetimeRegex(args) {
|
|
|
7656
7656
|
regex = `${regex}(${opts.join("|")})`;
|
|
7657
7657
|
return new RegExp(`^${regex}$`);
|
|
7658
7658
|
}
|
|
7659
|
-
function isValidIP(ip,
|
|
7660
|
-
if ((
|
|
7659
|
+
function isValidIP(ip, version7) {
|
|
7660
|
+
if ((version7 === "v4" || !version7) && ipv4Regex.test(ip)) {
|
|
7661
7661
|
return true;
|
|
7662
7662
|
}
|
|
7663
|
-
if ((
|
|
7663
|
+
if ((version7 === "v6" || !version7) && ipv6Regex.test(ip)) {
|
|
7664
7664
|
return true;
|
|
7665
7665
|
}
|
|
7666
7666
|
return false;
|
|
@@ -7687,11 +7687,11 @@ function isValidJWT(jwt2, alg) {
|
|
|
7687
7687
|
return false;
|
|
7688
7688
|
}
|
|
7689
7689
|
}
|
|
7690
|
-
function isValidCidr(ip,
|
|
7691
|
-
if ((
|
|
7690
|
+
function isValidCidr(ip, version7) {
|
|
7691
|
+
if ((version7 === "v4" || !version7) && ipv4CidrRegex.test(ip)) {
|
|
7692
7692
|
return true;
|
|
7693
7693
|
}
|
|
7694
|
-
if ((
|
|
7694
|
+
if ((version7 === "v6" || !version7) && ipv6CidrRegex.test(ip)) {
|
|
7695
7695
|
return true;
|
|
7696
7696
|
}
|
|
7697
7697
|
return false;
|
|
@@ -11644,10 +11644,10 @@ var nanoid = /^[a-zA-Z0-9_-]{21}$/;
|
|
|
11644
11644
|
var duration = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/;
|
|
11645
11645
|
var extendedDuration = /^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/;
|
|
11646
11646
|
var guid = /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/;
|
|
11647
|
-
var uuid = (
|
|
11648
|
-
if (!
|
|
11647
|
+
var uuid = (version7) => {
|
|
11648
|
+
if (!version7)
|
|
11649
11649
|
return /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/;
|
|
11650
|
-
return new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${
|
|
11650
|
+
return new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${version7}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`);
|
|
11651
11651
|
};
|
|
11652
11652
|
var uuid4 = /* @__PURE__ */ uuid(4);
|
|
11653
11653
|
var uuid6 = /* @__PURE__ */ uuid(6);
|
|
@@ -23302,7 +23302,7 @@ var StdioServerTransport = class {
|
|
|
23302
23302
|
// package.json
|
|
23303
23303
|
var package_default = {
|
|
23304
23304
|
name: "@triptease/design-system-mcp",
|
|
23305
|
-
version: "1.1.
|
|
23305
|
+
version: "1.1.5",
|
|
23306
23306
|
description: "MCP server for Triptease design system documentation",
|
|
23307
23307
|
type: "module",
|
|
23308
23308
|
main: "dist/index.js",
|
|
@@ -23323,17 +23323,18 @@ var package_default = {
|
|
|
23323
23323
|
node: ">=18.0.0"
|
|
23324
23324
|
},
|
|
23325
23325
|
componentVersions: {
|
|
23326
|
-
"@triptease/stylesheet": "2.0.
|
|
23326
|
+
"@triptease/stylesheet": "2.0.2",
|
|
23327
23327
|
"@triptease/tt-bar-chart": "1.1.2",
|
|
23328
|
-
"@triptease/tt-combobox": "5.7.
|
|
23328
|
+
"@triptease/tt-combobox": "5.7.4",
|
|
23329
23329
|
"@triptease/tt-data-point": "1.1.1",
|
|
23330
23330
|
"@triptease/tt-dataset": "1.1.1",
|
|
23331
23331
|
"@triptease/tt-date-picker": "6.2.2",
|
|
23332
23332
|
"@triptease/tt-date-range-picker": "6.3.2",
|
|
23333
23333
|
"@triptease/tt-dialog": "5.2.1",
|
|
23334
23334
|
"@triptease/tt-highlight": "1.1.1",
|
|
23335
|
-
"@triptease/tt-line-chart": "1.1.
|
|
23336
|
-
"@triptease/tt-milestone": "1.1.1"
|
|
23335
|
+
"@triptease/tt-line-chart": "1.1.2",
|
|
23336
|
+
"@triptease/tt-milestone": "1.1.1",
|
|
23337
|
+
"@triptease/tt-tabs": "1.1.0"
|
|
23337
23338
|
},
|
|
23338
23339
|
dependencies: {
|
|
23339
23340
|
"@triptease/stylesheet": "2.0.2"
|
|
@@ -23922,10 +23923,10 @@ var typography_default = {
|
|
|
23922
23923
|
};
|
|
23923
23924
|
|
|
23924
23925
|
// src/utils/buildCDNUrls.ts
|
|
23925
|
-
var buildCDNUrl = (componentName,
|
|
23926
|
-
return `https://cdn.design-system.triptease.io/${componentName}/${
|
|
23926
|
+
var buildCDNUrl = (componentName, version7) => {
|
|
23927
|
+
return `https://cdn.design-system.triptease.io/${componentName}/${version7}/${componentName}.js`;
|
|
23927
23928
|
};
|
|
23928
|
-
var buildMajorVersion = (
|
|
23929
|
+
var buildMajorVersion = (version7) => `${version7.split(".")[0]}.x.x`;
|
|
23929
23930
|
|
|
23930
23931
|
// src/manifests/components/entries/dialog.ts
|
|
23931
23932
|
var version2 = package_default.componentVersions["@triptease/tt-dialog"];
|
|
@@ -24784,6 +24785,119 @@ var banner_default = {
|
|
|
24784
24785
|
}
|
|
24785
24786
|
};
|
|
24786
24787
|
|
|
24788
|
+
// src/manifests/components/entries/tabs.ts
|
|
24789
|
+
var version6 = package_default.componentVersions["@triptease/tt-tabs"];
|
|
24790
|
+
var tabs_default = {
|
|
24791
|
+
tabs: {
|
|
24792
|
+
name: "Tabs - Web Component",
|
|
24793
|
+
description: "Tabs organise related content into separate panels, allowing users to switch between views without leaving the page",
|
|
24794
|
+
ssrSafe: true,
|
|
24795
|
+
element: "tt-tabs",
|
|
24796
|
+
usageGuidance: {
|
|
24797
|
+
whenToUse: [
|
|
24798
|
+
"Grouping related content that can be viewed independently",
|
|
24799
|
+
"Reducing visual clutter on pages with multiple sections",
|
|
24800
|
+
"Allowing users to compare or switch between different views or categories"
|
|
24801
|
+
],
|
|
24802
|
+
avoid: [
|
|
24803
|
+
"When content across panels is interdependent and needs to be seen simultaneously",
|
|
24804
|
+
"For sequential or step-based flows (use a stepper instead)",
|
|
24805
|
+
"When there are only one or two sections (consider headings or sections instead)",
|
|
24806
|
+
"When the content in each tab is very long (consider separate pages or an accordion)"
|
|
24807
|
+
],
|
|
24808
|
+
accessibility: ["Keyboard navigation is built in: Arrow keys move between tabs, Home/End jump to first/last tab"]
|
|
24809
|
+
},
|
|
24810
|
+
installationOptions: {
|
|
24811
|
+
npm: [{ name: "@triptease/tt-tabs", includesTypes: true, optional: false }],
|
|
24812
|
+
cdn: [
|
|
24813
|
+
{
|
|
24814
|
+
name: "tt-tabs",
|
|
24815
|
+
includesTypes: false,
|
|
24816
|
+
optional: false,
|
|
24817
|
+
moduleFormat: "esm",
|
|
24818
|
+
pinnedVersionUrl: buildCDNUrl("tt-tabs", version6),
|
|
24819
|
+
pinnedMajorVersionUrl: buildCDNUrl("tt-tabs", buildMajorVersion(version6)),
|
|
24820
|
+
latestVersionUrl: buildCDNUrl("tt-tabs", "latest"),
|
|
24821
|
+
guidance: "Prefer pinned major version URL to avoid unexpected breaking changes. Do not use latest version URL in production code."
|
|
24822
|
+
}
|
|
24823
|
+
]
|
|
24824
|
+
},
|
|
24825
|
+
events: {
|
|
24826
|
+
"tt-tab-change": {
|
|
24827
|
+
description: "Fired when the active tab changes. Bubbles up through the DOM so ancestors can listen without direct access to the tt-tabs element. Use the id attribute on tt-tabs to identify which tab group fired the event when multiple groups are present on the page.",
|
|
24828
|
+
bubbles: true,
|
|
24829
|
+
detail: {
|
|
24830
|
+
tab: "The name of the newly active tab, matching the name attribute of the corresponding tt-tab-pane.",
|
|
24831
|
+
id: "The id of the tt-tabs element that fired the event. Matches the id attribute if set, otherwise a unique generated id is used."
|
|
24832
|
+
}
|
|
24833
|
+
}
|
|
24834
|
+
},
|
|
24835
|
+
attributes: {
|
|
24836
|
+
id: {
|
|
24837
|
+
type: "string",
|
|
24838
|
+
description: "Identifies this tab group in tt-tab-change events. Set explicitly when multiple tt-tabs elements are on the same page so you can tell them apart in event handlers. If omitted, a unique generated id is used instead."
|
|
24839
|
+
},
|
|
24840
|
+
"initial-tab": {
|
|
24841
|
+
type: "string",
|
|
24842
|
+
description: "Name of the tab to show on first render. Must match the name attribute of one of the tt-tab-pane children. If omitted or unmatched, the first tab is shown."
|
|
24843
|
+
}
|
|
24844
|
+
},
|
|
24845
|
+
examples: [
|
|
24846
|
+
{
|
|
24847
|
+
title: "Basic usage",
|
|
24848
|
+
code: `import '@triptease/tt-tabs';
|
|
24849
|
+
|
|
24850
|
+
<tt-tabs>
|
|
24851
|
+
<tt-tab-pane name="Tab One">
|
|
24852
|
+
<p>Tab one content.</p>
|
|
24853
|
+
</tt-tab-pane>
|
|
24854
|
+
<tt-tab-pane name="Tab Two">
|
|
24855
|
+
<p>Tab two content.</p>
|
|
24856
|
+
</tt-tab-pane>
|
|
24857
|
+
<tt-tab-pane name="Tab Three">
|
|
24858
|
+
<p>Tab three content.</p>
|
|
24859
|
+
</tt-tab-pane>
|
|
24860
|
+
</tt-tabs>`
|
|
24861
|
+
},
|
|
24862
|
+
{
|
|
24863
|
+
title: "Initial tab",
|
|
24864
|
+
description: "Use the initial-tab attribute to control which tab is shown on first render. The value must match the name of one of the tt-tab-pane children.",
|
|
24865
|
+
code: `<tt-tabs initial-tab="Tab Three">
|
|
24866
|
+
<tt-tab-pane name="Tab One">
|
|
24867
|
+
<p>Tab one content.</p>
|
|
24868
|
+
</tt-tab-pane>
|
|
24869
|
+
<tt-tab-pane name="Tab Two">
|
|
24870
|
+
<p>Tab two content.</p>
|
|
24871
|
+
</tt-tab-pane>
|
|
24872
|
+
<tt-tab-pane name="Tab Three">
|
|
24873
|
+
<p>Tab three content.</p>
|
|
24874
|
+
</tt-tab-pane>
|
|
24875
|
+
</tt-tabs>`
|
|
24876
|
+
},
|
|
24877
|
+
{
|
|
24878
|
+
title: "Listening to tab changes",
|
|
24879
|
+
description: "The tt-tab-change event bubbles, so you can listen on any ancestor element. The event detail contains the name of the newly active tab and the id of the tab group that fired the event. Set id on tt-tabs explicitly when multiple tab groups are present so you can tell them apart.",
|
|
24880
|
+
code: `<div id="tabs-container">
|
|
24881
|
+
<tt-tabs id="first-group">
|
|
24882
|
+
<tt-tab-pane name="Tab One"><p>Tab one content.</p></tt-tab-pane>
|
|
24883
|
+
<tt-tab-pane name="Tab Two"><p>Tab two content.</p></tt-tab-pane>
|
|
24884
|
+
</tt-tabs>
|
|
24885
|
+
<tt-tabs id="second-group">
|
|
24886
|
+
<tt-tab-pane name="Tab A"><p>Tab A content.</p></tt-tab-pane>
|
|
24887
|
+
<tt-tab-pane name="Tab B"><p>Tab B content.</p></tt-tab-pane>
|
|
24888
|
+
</tt-tabs>
|
|
24889
|
+
</div>
|
|
24890
|
+
|
|
24891
|
+
<script>
|
|
24892
|
+
document.getElementById('tabs-container').addEventListener('tt-tab-change', (event) => {
|
|
24893
|
+
console.log(\`[\${event.detail.id}] Active tab: \${event.detail.tab}\`);
|
|
24894
|
+
});
|
|
24895
|
+
</script>`
|
|
24896
|
+
}
|
|
24897
|
+
]
|
|
24898
|
+
}
|
|
24899
|
+
};
|
|
24900
|
+
|
|
24787
24901
|
// src/manifests/components/index.ts
|
|
24788
24902
|
var componentManifest = {
|
|
24789
24903
|
...button_default,
|
|
@@ -24805,7 +24919,8 @@ var componentManifest = {
|
|
|
24805
24919
|
...barChart_default,
|
|
24806
24920
|
...lineChart_default,
|
|
24807
24921
|
...statistic_default,
|
|
24808
|
-
...banner_default
|
|
24922
|
+
...banner_default,
|
|
24923
|
+
...tabs_default
|
|
24809
24924
|
};
|
|
24810
24925
|
|
|
24811
24926
|
// src/resources/components/list.ts
|
|
@@ -28175,8 +28290,8 @@ server.registerResource(
|
|
|
28175
28290
|
async function main() {
|
|
28176
28291
|
const transport = new StdioServerTransport();
|
|
28177
28292
|
await server.connect(transport);
|
|
28178
|
-
|
|
28179
|
-
|
|
28293
|
+
process.stderr.write(JSON.stringify({ message: "Design System MCP Server is running" }));
|
|
28294
|
+
process.stderr.write(JSON.stringify({ message: `Current version: ${package_default.version}` }));
|
|
28180
28295
|
}
|
|
28181
28296
|
main().catch((error2) => {
|
|
28182
28297
|
const errorMessage = error2 instanceof Error ? error2.message : String(error2);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@triptease/design-system-mcp",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.5",
|
|
4
4
|
"description": "MCP server for Triptease design system documentation",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -21,17 +21,18 @@
|
|
|
21
21
|
"node": ">=18.0.0"
|
|
22
22
|
},
|
|
23
23
|
"componentVersions": {
|
|
24
|
-
"@triptease/stylesheet": "2.0.
|
|
24
|
+
"@triptease/stylesheet": "2.0.2",
|
|
25
25
|
"@triptease/tt-bar-chart": "1.1.2",
|
|
26
|
-
"@triptease/tt-combobox": "5.7.
|
|
26
|
+
"@triptease/tt-combobox": "5.7.4",
|
|
27
27
|
"@triptease/tt-data-point": "1.1.1",
|
|
28
28
|
"@triptease/tt-dataset": "1.1.1",
|
|
29
29
|
"@triptease/tt-date-picker": "6.2.2",
|
|
30
30
|
"@triptease/tt-date-range-picker": "6.3.2",
|
|
31
31
|
"@triptease/tt-dialog": "5.2.1",
|
|
32
32
|
"@triptease/tt-highlight": "1.1.1",
|
|
33
|
-
"@triptease/tt-line-chart": "1.1.
|
|
34
|
-
"@triptease/tt-milestone": "1.1.1"
|
|
33
|
+
"@triptease/tt-line-chart": "1.1.2",
|
|
34
|
+
"@triptease/tt-milestone": "1.1.1",
|
|
35
|
+
"@triptease/tt-tabs": "1.1.0"
|
|
35
36
|
},
|
|
36
37
|
"dependencies": {
|
|
37
38
|
"@triptease/stylesheet": "2.0.2"
|