@triptease/design-system-mcp 1.0.19 → 1.0.20
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 +28985 -0
- package/package.json +20 -13
- package/CHANGELOG.md +0 -192
- package/dist/package.json +0 -44
- package/dist/src/index.d.ts +0 -2
- package/dist/src/index.js +0 -66
- package/dist/src/index.js.map +0 -1
- package/dist/src/manifests/components/entries/badge.d.ts +0 -27
- package/dist/src/manifests/components/entries/badge.js +0 -43
- package/dist/src/manifests/components/entries/badge.js.map +0 -1
- package/dist/src/manifests/components/entries/banner.d.ts +0 -23
- package/dist/src/manifests/components/entries/banner.js +0 -68
- package/dist/src/manifests/components/entries/banner.js.map +0 -1
- package/dist/src/manifests/components/entries/barChart.d.ts +0 -74
- package/dist/src/manifests/components/entries/barChart.js +0 -128
- package/dist/src/manifests/components/entries/barChart.js.map +0 -1
- package/dist/src/manifests/components/entries/button.d.ts +0 -40
- package/dist/src/manifests/components/entries/button.js +0 -59
- package/dist/src/manifests/components/entries/button.js.map +0 -1
- package/dist/src/manifests/components/entries/card.d.ts +0 -25
- package/dist/src/manifests/components/entries/card.js +0 -42
- package/dist/src/manifests/components/entries/card.js.map +0 -1
- package/dist/src/manifests/components/entries/checkbox.d.ts +0 -31
- package/dist/src/manifests/components/entries/checkbox.js +0 -64
- package/dist/src/manifests/components/entries/checkbox.js.map +0 -1
- package/dist/src/manifests/components/entries/combobox.d.ts +0 -65
- package/dist/src/manifests/components/entries/combobox.js +0 -177
- package/dist/src/manifests/components/entries/combobox.js.map +0 -1
- package/dist/src/manifests/components/entries/datePicker.d.ts +0 -35
- package/dist/src/manifests/components/entries/datePicker.js +0 -68
- package/dist/src/manifests/components/entries/datePicker.js.map +0 -1
- package/dist/src/manifests/components/entries/dateRangePicker.d.ts +0 -35
- package/dist/src/manifests/components/entries/dateRangePicker.js +0 -111
- package/dist/src/manifests/components/entries/dateRangePicker.js.map +0 -1
- package/dist/src/manifests/components/entries/dialog.d.ts +0 -39
- package/dist/src/manifests/components/entries/dialog.js +0 -74
- package/dist/src/manifests/components/entries/dialog.js.map +0 -1
- package/dist/src/manifests/components/entries/lineChart.d.ts +0 -87
- package/dist/src/manifests/components/entries/lineChart.js +0 -166
- package/dist/src/manifests/components/entries/lineChart.js.map +0 -1
- package/dist/src/manifests/components/entries/numberinput.d.ts +0 -52
- package/dist/src/manifests/components/entries/numberinput.js +0 -64
- package/dist/src/manifests/components/entries/numberinput.js.map +0 -1
- package/dist/src/manifests/components/entries/radio.d.ts +0 -31
- package/dist/src/manifests/components/entries/radio.js +0 -50
- package/dist/src/manifests/components/entries/radio.js.map +0 -1
- package/dist/src/manifests/components/entries/select.d.ts +0 -16
- package/dist/src/manifests/components/entries/select.js +0 -23
- package/dist/src/manifests/components/entries/select.js.map +0 -1
- package/dist/src/manifests/components/entries/statistic.d.ts +0 -21
- package/dist/src/manifests/components/entries/statistic.js +0 -69
- package/dist/src/manifests/components/entries/statistic.js.map +0 -1
- package/dist/src/manifests/components/entries/table.d.ts +0 -16
- package/dist/src/manifests/components/entries/table.js +0 -43
- package/dist/src/manifests/components/entries/table.js.map +0 -1
- package/dist/src/manifests/components/entries/textarea.d.ts +0 -40
- package/dist/src/manifests/components/entries/textarea.js +0 -54
- package/dist/src/manifests/components/entries/textarea.js.map +0 -1
- package/dist/src/manifests/components/entries/textinput.d.ts +0 -40
- package/dist/src/manifests/components/entries/textinput.js +0 -53
- package/dist/src/manifests/components/entries/textinput.js.map +0 -1
- package/dist/src/manifests/components/entries/toggle.d.ts +0 -23
- package/dist/src/manifests/components/entries/toggle.js +0 -30
- package/dist/src/manifests/components/entries/toggle.js.map +0 -1
- package/dist/src/manifests/components/entries/typography.d.ts +0 -23
- package/dist/src/manifests/components/entries/typography.js +0 -32
- package/dist/src/manifests/components/entries/typography.js.map +0 -1
- package/dist/src/manifests/components/index.d.ts +0 -2
- package/dist/src/manifests/components/index.js +0 -43
- package/dist/src/manifests/components/index.js.map +0 -1
- package/dist/src/manifests/components/types.d.ts +0 -57
- package/dist/src/manifests/components/types.js +0 -2
- package/dist/src/manifests/components/types.js.map +0 -1
- package/dist/src/resources/components/get.d.ts +0 -7
- package/dist/src/resources/components/get.js +0 -29
- package/dist/src/resources/components/get.js.map +0 -1
- package/dist/src/resources/components/index.d.ts +0 -2
- package/dist/src/resources/components/index.js +0 -3
- package/dist/src/resources/components/index.js.map +0 -1
- package/dist/src/resources/components/list.d.ts +0 -7
- package/dist/src/resources/components/list.js +0 -19
- package/dist/src/resources/components/list.js.map +0 -1
- package/dist/src/resources/guides/index.d.ts +0 -2
- package/dist/src/resources/guides/index.js +0 -3
- package/dist/src/resources/guides/index.js.map +0 -1
- package/dist/src/resources/guides/principles.d.ts +0 -60
- package/dist/src/resources/guides/principles.js +0 -158
- package/dist/src/resources/guides/principles.js.map +0 -1
- package/dist/src/resources/guides/setup.d.ts +0 -7
- package/dist/src/resources/guides/setup.js +0 -54
- package/dist/src/resources/guides/setup.js.map +0 -1
- package/dist/src/resources/index.d.ts +0 -3
- package/dist/src/resources/index.js +0 -4
- package/dist/src/resources/index.js.map +0 -1
- package/dist/src/resources/tokens/get.d.ts +0 -7
- package/dist/src/resources/tokens/get.js +0 -30
- package/dist/src/resources/tokens/get.js.map +0 -1
- package/dist/src/resources/tokens/index.d.ts +0 -2
- package/dist/src/resources/tokens/index.js +0 -3
- package/dist/src/resources/tokens/index.js.map +0 -1
- package/dist/src/resources/tokens/list.d.ts +0 -7
- package/dist/src/resources/tokens/list.js +0 -21
- package/dist/src/resources/tokens/list.js.map +0 -1
- package/dist/src/tools/getCSSTokens/handler.d.ts +0 -6
- package/dist/src/tools/getCSSTokens/handler.js +0 -29
- package/dist/src/tools/getCSSTokens/handler.js.map +0 -1
- package/dist/src/tools/getCSSTokens/index.d.ts +0 -12
- package/dist/src/tools/getCSSTokens/index.js +0 -14
- package/dist/src/tools/getCSSTokens/index.js.map +0 -1
- package/dist/src/tools/getCSSTokens/utils.d.ts +0 -5
- package/dist/src/tools/getCSSTokens/utils.js +0 -25
- package/dist/src/tools/getCSSTokens/utils.js.map +0 -1
- package/dist/src/tools/getComponentDocs/handler.d.ts +0 -6
- package/dist/src/tools/getComponentDocs/handler.js +0 -27
- package/dist/src/tools/getComponentDocs/handler.js.map +0 -1
- package/dist/src/tools/getComponentDocs/index.d.ts +0 -12
- package/dist/src/tools/getComponentDocs/index.js +0 -14
- package/dist/src/tools/getComponentDocs/index.js.map +0 -1
- package/dist/src/tools/getSetupGuide/handler.d.ts +0 -6
- package/dist/src/tools/getSetupGuide/handler.js +0 -50
- package/dist/src/tools/getSetupGuide/handler.js.map +0 -1
- package/dist/src/tools/getSetupGuide/index.d.ts +0 -12
- package/dist/src/tools/getSetupGuide/index.js +0 -17
- package/dist/src/tools/getSetupGuide/index.js.map +0 -1
- package/dist/src/tools/getSetupGuide/setupGuides.d.ts +0 -12
- package/dist/src/tools/getSetupGuide/setupGuides.js +0 -49
- package/dist/src/tools/getSetupGuide/setupGuides.js.map +0 -1
- package/dist/src/tools/listCSSTokens/handler.d.ts +0 -3
- package/dist/src/tools/listCSSTokens/handler.js +0 -20
- package/dist/src/tools/listCSSTokens/handler.js.map +0 -1
- package/dist/src/tools/listCSSTokens/index.d.ts +0 -8
- package/dist/src/tools/listCSSTokens/index.js +0 -10
- package/dist/src/tools/listCSSTokens/index.js.map +0 -1
- package/dist/src/tools/listComponents/handler.d.ts +0 -3
- package/dist/src/tools/listComponents/handler.js +0 -18
- package/dist/src/tools/listComponents/handler.js.map +0 -1
- package/dist/src/tools/listComponents/index.d.ts +0 -9
- package/dist/src/tools/listComponents/index.js +0 -11
- package/dist/src/tools/listComponents/index.js.map +0 -1
- package/dist/src/utils/buildCDNUrls.d.ts +0 -3
- package/dist/src/utils/buildCDNUrls.js +0 -6
- package/dist/src/utils/buildCDNUrls.js.map +0 -1
- package/src/index.ts +0 -127
- package/src/manifests/components/entries/badge.ts +0 -45
- package/src/manifests/components/entries/banner.ts +0 -69
- package/src/manifests/components/entries/barChart.ts +0 -135
- package/src/manifests/components/entries/button.ts +0 -61
- package/src/manifests/components/entries/card.ts +0 -43
- package/src/manifests/components/entries/checkbox.ts +0 -68
- package/src/manifests/components/entries/combobox.ts +0 -185
- package/src/manifests/components/entries/datePicker.ts +0 -74
- package/src/manifests/components/entries/dateRangePicker.ts +0 -119
- package/src/manifests/components/entries/dialog.ts +0 -78
- package/src/manifests/components/entries/lineChart.ts +0 -177
- package/src/manifests/components/entries/numberinput.ts +0 -66
- package/src/manifests/components/entries/radio.ts +0 -53
- package/src/manifests/components/entries/select.ts +0 -24
- package/src/manifests/components/entries/statistic.ts +0 -72
- package/src/manifests/components/entries/table.ts +0 -44
- package/src/manifests/components/entries/textarea.ts +0 -56
- package/src/manifests/components/entries/textinput.ts +0 -55
- package/src/manifests/components/entries/toggle.ts +0 -31
- package/src/manifests/components/entries/typography.ts +0 -33
- package/src/manifests/components/index.ts +0 -45
- package/src/manifests/components/types.ts +0 -65
- package/src/resources/components/get.test.ts +0 -39
- package/src/resources/components/get.ts +0 -35
- package/src/resources/components/index.ts +0 -2
- package/src/resources/components/list.test.ts +0 -40
- package/src/resources/components/list.ts +0 -20
- package/src/resources/guides/index.ts +0 -2
- package/src/resources/guides/principles.ts +0 -160
- package/src/resources/guides/setup.test.ts +0 -72
- package/src/resources/guides/setup.ts +0 -66
- package/src/resources/index.ts +0 -3
- package/src/resources/tokens/get.test.ts +0 -41
- package/src/resources/tokens/get.ts +0 -36
- package/src/resources/tokens/index.ts +0 -2
- package/src/resources/tokens/list.test.ts +0 -42
- package/src/resources/tokens/list.ts +0 -31
- package/src/tools/getCSSTokens/__snapshots__/handler.test.ts.snap +0 -78
- package/src/tools/getCSSTokens/handler.test.ts +0 -39
- package/src/tools/getCSSTokens/handler.ts +0 -36
- package/src/tools/getCSSTokens/index.ts +0 -15
- package/src/tools/getCSSTokens/utils.ts +0 -31
- package/src/tools/getComponentDocs/__snapshots__/handler.test.ts.snap +0 -23
- package/src/tools/getComponentDocs/handler.test.ts +0 -14
- package/src/tools/getComponentDocs/handler.ts +0 -34
- package/src/tools/getComponentDocs/index.ts +0 -15
- package/src/tools/getSetupGuide/__snapshots__/handler.test.ts.snap +0 -34
- package/src/tools/getSetupGuide/handler.test.ts +0 -20
- package/src/tools/getSetupGuide/handler.ts +0 -59
- package/src/tools/getSetupGuide/index.ts +0 -20
- package/src/tools/getSetupGuide/setupGuides.ts +0 -62
- package/src/tools/listCSSTokens/__snapshots__/handler.test.ts.snap +0 -12
- package/src/tools/listCSSTokens/handler.test.ts +0 -9
- package/src/tools/listCSSTokens/handler.ts +0 -32
- package/src/tools/listCSSTokens/index.ts +0 -12
- package/src/tools/listComponents/__snapshots__/handler.test.ts.snap +0 -12
- package/src/tools/listComponents/handler.test.ts +0 -9
- package/src/tools/listComponents/handler.ts +0 -20
- package/src/tools/listComponents/index.ts +0 -12
- package/src/utils/buildCDNUrls.ts +0 -7
- package/tsconfig.json +0 -12
- package/vitest.config.ts +0 -6
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import handler from './handler.js';
|
|
3
|
-
|
|
4
|
-
const toolDefinition = {
|
|
5
|
-
name: 'get_setup_guide',
|
|
6
|
-
config: {
|
|
7
|
-
description: 'Get setup and installation instructions for integrating the design system into your project',
|
|
8
|
-
inputSchema: {
|
|
9
|
-
type: z
|
|
10
|
-
.union([z.literal('npm'), z.literal('cdn')])
|
|
11
|
-
.optional()
|
|
12
|
-
.describe(
|
|
13
|
-
'Optional: npm for npm/yarn/bun installation, cdn for CDN link. If omitted, returns both options so you can present them to the user.'
|
|
14
|
-
),
|
|
15
|
-
},
|
|
16
|
-
},
|
|
17
|
-
handler: handler,
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
export default toolDefinition;
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import packageJson from '@/../package.json' with { type: 'json' };
|
|
2
|
-
|
|
3
|
-
const stylesheetVersion = packageJson.dependencies['@triptease/stylesheet'];
|
|
4
|
-
|
|
5
|
-
export interface SetupGuide {
|
|
6
|
-
name: string;
|
|
7
|
-
description: string;
|
|
8
|
-
steps: Array<{
|
|
9
|
-
title: string;
|
|
10
|
-
description?: string;
|
|
11
|
-
code?: string;
|
|
12
|
-
language?: string;
|
|
13
|
-
}>;
|
|
14
|
-
notes?: string[];
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export const setupGuides: Record<string, SetupGuide> = {
|
|
18
|
-
npm: {
|
|
19
|
-
name: 'NPM Stylesheet Setup',
|
|
20
|
-
description: 'Setup instructions for using the stylesheet package via npm.',
|
|
21
|
-
steps: [
|
|
22
|
-
{
|
|
23
|
-
title: 'Install the stylesheet package',
|
|
24
|
-
description: 'Choose your package manager:',
|
|
25
|
-
code: `# NPM
|
|
26
|
-
npm install @triptease/stylesheet
|
|
27
|
-
|
|
28
|
-
# Yarn
|
|
29
|
-
yarn add @triptease/stylesheet
|
|
30
|
-
|
|
31
|
-
# Bun
|
|
32
|
-
bun add @triptease/stylesheet`,
|
|
33
|
-
language: 'bash',
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
title: 'Import the stylesheet',
|
|
37
|
-
description: 'Add this import to your application entry point:',
|
|
38
|
-
code: `import '@triptease/stylesheet';`,
|
|
39
|
-
language: 'typescript',
|
|
40
|
-
},
|
|
41
|
-
],
|
|
42
|
-
notes: [`Current version: @triptease/stylesheet@${stylesheetVersion}`],
|
|
43
|
-
},
|
|
44
|
-
cdn: {
|
|
45
|
-
name: 'CDN Stylesheet Setup',
|
|
46
|
-
description: 'Setup instructions for using the stylesheet via CDN.',
|
|
47
|
-
steps: [
|
|
48
|
-
{
|
|
49
|
-
title: 'Add stylesheet link to HTML',
|
|
50
|
-
description: 'Include this in the <head> of your HTML document:',
|
|
51
|
-
code: `<head>
|
|
52
|
-
<!-- Specific version (recommended) -->
|
|
53
|
-
<link rel="stylesheet" href="https://cdn.design-system.triptease.io/${stylesheetVersion}/triptease.css">
|
|
54
|
-
|
|
55
|
-
<!-- Or, latest version (dangerous - breaking changes may occur) -->
|
|
56
|
-
<link rel="stylesheet" href="https://cdn.design-system.triptease.io/triptease.css">
|
|
57
|
-
</head>`,
|
|
58
|
-
language: 'html',
|
|
59
|
-
},
|
|
60
|
-
],
|
|
61
|
-
},
|
|
62
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
|
|
2
|
-
|
|
3
|
-
exports[`listCSSTokens handler > should summarise all available tokens 1`] = `
|
|
4
|
-
{
|
|
5
|
-
"content": [
|
|
6
|
-
{
|
|
7
|
-
"text": "{"color":{"count":61},"font":{"count":15},"space":{"count":20},"border":{"count":1},"border-radius":{"count":3},"box-shadow":{"count":3}}",
|
|
8
|
-
"type": "text",
|
|
9
|
-
},
|
|
10
|
-
],
|
|
11
|
-
}
|
|
12
|
-
`;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { CallToolResult } from '@modelcontextprotocol/sdk/types.js';
|
|
2
|
-
import designTokens from '@triptease/stylesheet/tokens' with { type: 'json' };
|
|
3
|
-
import { buildTokens } from '@/tools/getCSSTokens/utils.js';
|
|
4
|
-
|
|
5
|
-
interface Summary {
|
|
6
|
-
count: number;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
interface SummaryMap {
|
|
10
|
-
[category: string]: Summary;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export default (): CallToolResult => {
|
|
14
|
-
const tokens = buildTokens(designTokens);
|
|
15
|
-
|
|
16
|
-
const categories = Object.keys(tokens);
|
|
17
|
-
const result: SummaryMap = {};
|
|
18
|
-
|
|
19
|
-
for (const category of categories) {
|
|
20
|
-
const tokenCount = tokens[category].length;
|
|
21
|
-
result[category] = { count: tokenCount };
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
return {
|
|
25
|
-
content: [
|
|
26
|
-
{
|
|
27
|
-
type: 'text',
|
|
28
|
-
text: JSON.stringify(result),
|
|
29
|
-
},
|
|
30
|
-
],
|
|
31
|
-
};
|
|
32
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import handler from './handler.js';
|
|
2
|
-
|
|
3
|
-
const toolDefinition = {
|
|
4
|
-
name: 'list_css_tokens',
|
|
5
|
-
config: {
|
|
6
|
-
description:
|
|
7
|
-
'Returns a summary of all available CSS tokens with a count of how many tokens exist in each category. Category names are used when using the get_css_tokens tool.',
|
|
8
|
-
},
|
|
9
|
-
handler: handler,
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
export default toolDefinition;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
|
|
2
|
-
|
|
3
|
-
exports[`listComponents tool > should list all components within the manifest 1`] = `
|
|
4
|
-
{
|
|
5
|
-
"content": [
|
|
6
|
-
{
|
|
7
|
-
"text": "{"components":[{"key":"button","name":"Button","description":"Interactive button component with multiple themes and states","element":"button"},{"key":"textinput","name":"Text Input","description":"Text input field for single-line text entry with automatic validation styling","element":"input"},{"key":"numberinput","name":"Number Input","description":"Number input field with browser-provided increment/decrement controls","element":"input[type='number']"},{"key":"textarea","name":"Textarea","description":"Multi-line text input field","element":"textarea"},{"key":"select","name":"Select Input","description":"Dropdown list for selecting a single option","element":"select"},{"key":"checkbox","name":"Checkbox","description":"Checkbox input for multiple selections","element":"input[type='checkbox']"},{"key":"radio","name":"Radio","description":"Radio button for selecting exactly one option from mutually exclusive choices","element":"input[type='radio']"},{"key":"toggle","name":"Toggle","description":"Toggle switch for binary on/off states with immediate effect","element":"input[type='checkbox'][data-theme='toggle']"},{"key":"badge","name":"Badge","description":"Status indicator or label badge for highlighting small pieces of information","element":"span"},{"key":"card","name":"Card","description":"Container component that groups related content and actions in a visually distinct area","element":"div"},{"key":"table","name":"Table","description":"Organize and display data in rows and columns","element":"table"},{"key":"typography","name":"Typography","description":"Text styling using semantic HTML elements and utility classes","element":"h1-h4, p, strong, a"},{"key":"dialog","name":"Dialog - Web Component","description":"Dialog component that displays content in a layer above the page","element":"tt-dialog"},{"key":"combobox","name":"Combobox","description":"Searchable dropdown that combines a text input with a list, available as both React component and Web Component","element":"Combobox (React) / tt-combobox (Web Component)"},{"key":"date-picker","name":"Date Picker","description":"Date picker for selecting a single date, available as both React component and Web Component","element":"DatePicker (React) / tt-date-picker (Web Component)"},{"key":"date-range-picker","name":"Date Range Picker","description":"Date range picker for selecting start and end dates, available as both React component and Web Component","element":"DateRangePicker (React) / tt-date-range-picker (Web Component)"},{"key":"bar-chart","name":"Bar Chart - Web Component","description":"Bar chart for comparing values across categories","element":"tt-bar-chart"},{"key":"line-chart","name":"Line Chart - Web Component","description":"Line chart for visualizing trends over continuous data","element":"tt-line-chart"},{"key":"statistic","name":"Statistic","description":"A consistent, structured layout for displaying a statistic or a few statistics.","element":"div"},{"key":"banner","name":"Banner","description":"Banners prominently display information to users and sometimes prompt them to take action.","element":"div"}]}",
|
|
8
|
-
"type": "text",
|
|
9
|
-
},
|
|
10
|
-
],
|
|
11
|
-
}
|
|
12
|
-
`;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import handler from './handler.js';
|
|
2
|
-
import { describe, expect, it } from 'vitest';
|
|
3
|
-
|
|
4
|
-
describe('listComponents tool', () => {
|
|
5
|
-
it('should list all components within the manifest', () => {
|
|
6
|
-
const result = handler();
|
|
7
|
-
expect(result).toMatchSnapshot();
|
|
8
|
-
});
|
|
9
|
-
});
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { CallToolResult } from '@modelcontextprotocol/sdk/types.js';
|
|
2
|
-
import { componentManifest } from '@/manifests/components/index.js';
|
|
3
|
-
|
|
4
|
-
export default (): CallToolResult => {
|
|
5
|
-
const components = Object.entries(componentManifest).map(([key, comp]) => ({
|
|
6
|
-
key,
|
|
7
|
-
name: comp.name,
|
|
8
|
-
description: comp.description,
|
|
9
|
-
element: comp.element,
|
|
10
|
-
}));
|
|
11
|
-
|
|
12
|
-
return {
|
|
13
|
-
content: [
|
|
14
|
-
{
|
|
15
|
-
type: 'text',
|
|
16
|
-
text: JSON.stringify({ components }),
|
|
17
|
-
},
|
|
18
|
-
],
|
|
19
|
-
};
|
|
20
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
const buildCDNUrl = (componentName: string, version: string) => {
|
|
2
|
-
return `https://cdn.design-system.triptease.io/${componentName}/${version}/${componentName}.js`;
|
|
3
|
-
};
|
|
4
|
-
|
|
5
|
-
const buildMajorVersion = (version: string) => `${version.split('.')[0]}.x.x`;
|
|
6
|
-
|
|
7
|
-
export { buildCDNUrl, buildMajorVersion };
|
package/tsconfig.json
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "../../tsconfig.packages.json",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"rootDir": "./",
|
|
5
|
-
"outDir": "dist",
|
|
6
|
-
"paths": {
|
|
7
|
-
"@/*": ["./src/*"]
|
|
8
|
-
}
|
|
9
|
-
},
|
|
10
|
-
"include": ["**/*.ts"],
|
|
11
|
-
"exclude": ["node_modules", "dist", "**/vitest.*", "**/*.test.*", "**/*.spec.*"]
|
|
12
|
-
}
|