@atlaskit/ads-mcp 0.6.1 → 0.6.3
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/CHANGELOG.md +15 -0
- package/dist/cjs/tools/search-tokens/index.js +1 -1
- package/dist/cjs/tools/suggest-accessibility-fixes/fixes.js +1 -1
- package/dist/es2019/tools/search-tokens/index.js +2 -2
- package/dist/es2019/tools/suggest-accessibility-fixes/fixes.js +3 -2
- package/dist/esm/tools/search-tokens/index.js +1 -1
- package/dist/esm/tools/suggest-accessibility-fixes/fixes.js +1 -1
- package/package.json +1 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/ads-mcp
|
|
2
2
|
|
|
3
|
+
## 0.6.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`248faa32d4835`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/248faa32d4835) -
|
|
8
|
+
Internal changes to how borders are applied.
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 0.6.2
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [`28e3bab9e4314`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/28e3bab9e4314) -
|
|
16
|
+
Migrated old shape tokens to new tokens. No visual change.
|
|
17
|
+
|
|
3
18
|
## 0.6.1
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -19,7 +19,7 @@ var inputSchema = _zod.z.object({
|
|
|
19
19
|
});
|
|
20
20
|
var listSearchTokensTool = exports.listSearchTokensTool = {
|
|
21
21
|
name: 'ads_search_tokens',
|
|
22
|
-
description: "You SHOULD Search for Atlassian Design System tokens based on multiple query strings (if there's multiple candidates of token names, descriptions or example values, you SHOULD pass them in a single call). You SHOULD use default `limit` value of 1 first and only set a higher limit like 5 or 10 if you can't find the token you need). Fallback to `ads_get_all_tokens` if nothing is found). This tool searches through token names, descriptions, and example values to find the most relevant design tokens.\n\nThe search will match against:\n- Token names (e.g., \"color.text\", \"space.100\", \"
|
|
22
|
+
description: "You SHOULD Search for Atlassian Design System tokens based on multiple query strings (if there's multiple candidates of token names, descriptions or example values, you SHOULD pass them in a single call). You SHOULD use default `limit` value of 1 first and only set a higher limit like 5 or 10 if you can't find the token you need). Fallback to `ads_get_all_tokens` if nothing is found). This tool searches through token names, descriptions, and example values to find the most relevant design tokens.\n\nThe search will match against:\n- Token names (e.g., \"color.text\", \"space.100\", \"radius.small\")\n- Token descriptions\n- Token example values (eg. \"#2898BD\" -> \"color.icon.accent.teal\")\n\nThe results include the token's name and example value.\n\nUsage pattern for found tokens:\n```tsx\nimport { token } from '@atlaskit/tokens';\n\nconst styles = css({\ncolor: token('color.text'),\npadding: token('space.100'),\nborderRadius: token('radius.small'),\n});\n```\n",
|
|
23
23
|
annotations: {
|
|
24
24
|
title: 'Search ADS tokens',
|
|
25
25
|
readOnlyHint: true,
|
|
@@ -109,7 +109,7 @@ var accessibilityFixes = exports.accessibilityFixes = {
|
|
|
109
109
|
title: 'Custom focus styles',
|
|
110
110
|
description: 'Add custom focus styles with xcss',
|
|
111
111
|
before: "<button onClick={handleClick}>\n Click me\n</button>",
|
|
112
|
-
after: "import { Focusable } from '@atlaskit/primitives/compiled';\n\n<Focusable\n as=\"button\"\n onClick={handleClick}\n xcss={{\n ':focus-visible': {\n outline: '
|
|
112
|
+
after: "import { Focusable } from '@atlaskit/primitives/compiled';\nimport { token } from '@atlaskit/tokens';\n\n<Focusable\n as=\"button\"\n onClick={handleClick}\n xcss={{\n ':focus-visible': {\n outline: `${token('border.width.focused')} solid ${token('color.border.focused')}`,\n outlineOffset: token('space.025'),\n },\n }}\n>\n Click me\n</Focusable>",
|
|
113
113
|
explanation: 'Custom focus styles ensure visibility in all themes.'
|
|
114
114
|
}],
|
|
115
115
|
bestPractices: ['Always provide visible focus indicators', 'Test focus indicators in all themes', 'Ensure sufficient contrast for focus indicators', 'Test with keyboard navigation']
|
|
@@ -13,7 +13,7 @@ export const listSearchTokensTool = {
|
|
|
13
13
|
description: `You SHOULD Search for Atlassian Design System tokens based on multiple query strings (if there's multiple candidates of token names, descriptions or example values, you SHOULD pass them in a single call). You SHOULD use default \`limit\` value of 1 first and only set a higher limit like 5 or 10 if you can't find the token you need). Fallback to \`ads_get_all_tokens\` if nothing is found). This tool searches through token names, descriptions, and example values to find the most relevant design tokens.
|
|
14
14
|
|
|
15
15
|
The search will match against:
|
|
16
|
-
- Token names (e.g., "color.text", "space.100", "
|
|
16
|
+
- Token names (e.g., "color.text", "space.100", "radius.small")
|
|
17
17
|
- Token descriptions
|
|
18
18
|
- Token example values (eg. "#2898BD" -> "color.icon.accent.teal")
|
|
19
19
|
|
|
@@ -26,7 +26,7 @@ import { token } from '@atlaskit/tokens';
|
|
|
26
26
|
const styles = css({
|
|
27
27
|
color: token('color.text'),
|
|
28
28
|
padding: token('space.100'),
|
|
29
|
-
borderRadius: token('
|
|
29
|
+
borderRadius: token('radius.small'),
|
|
30
30
|
});
|
|
31
31
|
\`\`\`
|
|
32
32
|
`,
|
|
@@ -170,14 +170,15 @@ color: token('color.text.danger')`,
|
|
|
170
170
|
Click me
|
|
171
171
|
</button>`,
|
|
172
172
|
after: `import { Focusable } from '@atlaskit/primitives/compiled';
|
|
173
|
+
import { token } from '@atlaskit/tokens';
|
|
173
174
|
|
|
174
175
|
<Focusable
|
|
175
176
|
as="button"
|
|
176
177
|
onClick={handleClick}
|
|
177
178
|
xcss={{
|
|
178
179
|
':focus-visible': {
|
|
179
|
-
outline: '
|
|
180
|
-
outlineOffset: '
|
|
180
|
+
outline: \`$\{token('border.width.focused')} solid $\{token('color.border.focused')}\`,
|
|
181
|
+
outlineOffset: token('space.025'),
|
|
181
182
|
},
|
|
182
183
|
}}
|
|
183
184
|
>
|
|
@@ -12,7 +12,7 @@ var inputSchema = z.object({
|
|
|
12
12
|
});
|
|
13
13
|
export var listSearchTokensTool = {
|
|
14
14
|
name: 'ads_search_tokens',
|
|
15
|
-
description: "You SHOULD Search for Atlassian Design System tokens based on multiple query strings (if there's multiple candidates of token names, descriptions or example values, you SHOULD pass them in a single call). You SHOULD use default `limit` value of 1 first and only set a higher limit like 5 or 10 if you can't find the token you need). Fallback to `ads_get_all_tokens` if nothing is found). This tool searches through token names, descriptions, and example values to find the most relevant design tokens.\n\nThe search will match against:\n- Token names (e.g., \"color.text\", \"space.100\", \"
|
|
15
|
+
description: "You SHOULD Search for Atlassian Design System tokens based on multiple query strings (if there's multiple candidates of token names, descriptions or example values, you SHOULD pass them in a single call). You SHOULD use default `limit` value of 1 first and only set a higher limit like 5 or 10 if you can't find the token you need). Fallback to `ads_get_all_tokens` if nothing is found). This tool searches through token names, descriptions, and example values to find the most relevant design tokens.\n\nThe search will match against:\n- Token names (e.g., \"color.text\", \"space.100\", \"radius.small\")\n- Token descriptions\n- Token example values (eg. \"#2898BD\" -> \"color.icon.accent.teal\")\n\nThe results include the token's name and example value.\n\nUsage pattern for found tokens:\n```tsx\nimport { token } from '@atlaskit/tokens';\n\nconst styles = css({\ncolor: token('color.text'),\npadding: token('space.100'),\nborderRadius: token('radius.small'),\n});\n```\n",
|
|
16
16
|
annotations: {
|
|
17
17
|
title: 'Search ADS tokens',
|
|
18
18
|
readOnlyHint: true,
|
|
@@ -103,7 +103,7 @@ export var accessibilityFixes = {
|
|
|
103
103
|
title: 'Custom focus styles',
|
|
104
104
|
description: 'Add custom focus styles with xcss',
|
|
105
105
|
before: "<button onClick={handleClick}>\n Click me\n</button>",
|
|
106
|
-
after: "import { Focusable } from '@atlaskit/primitives/compiled';\n\n<Focusable\n as=\"button\"\n onClick={handleClick}\n xcss={{\n ':focus-visible': {\n outline: '
|
|
106
|
+
after: "import { Focusable } from '@atlaskit/primitives/compiled';\nimport { token } from '@atlaskit/tokens';\n\n<Focusable\n as=\"button\"\n onClick={handleClick}\n xcss={{\n ':focus-visible': {\n outline: `${token('border.width.focused')} solid ${token('color.border.focused')}`,\n outlineOffset: token('space.025'),\n },\n }}\n>\n Click me\n</Focusable>",
|
|
107
107
|
explanation: 'Custom focus styles ensure visibility in all themes.'
|
|
108
108
|
}],
|
|
109
109
|
bestPractices: ['Always provide visible focus indicators', 'Test focus indicators in all themes', 'Ensure sufficient contrast for focus indicators', 'Test with keyboard navigation']
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/ads-mcp",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.3",
|
|
4
4
|
"description": "The official Atlassian Design System MCP server to develop apps and user interfaces matching the Atlassian style.",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -24,10 +24,6 @@
|
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
"atlaskit:src": "src/index.tsx",
|
|
27
|
-
"af:exports": {
|
|
28
|
-
".": "./src/index.tsx",
|
|
29
|
-
"./package.json": "./package.json"
|
|
30
|
-
},
|
|
31
27
|
"dependencies": {
|
|
32
28
|
"@atlaskit/icon": "^28.2.0",
|
|
33
29
|
"@atlaskit/tokens": "^6.3.0",
|