@atlaskit/ads-mcp 1.12.12 → 1.12.13

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.
Files changed (21) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/cjs/tools/get-all-components/components.codegen.js +2 -2
  3. package/dist/cjs/tools/get-atlaskit-components/atlaskit-components.codegen.js +2 -2
  4. package/dist/cjs/tools/get-atlaskit-hooks/atlaskit-hooks.codegen.js +5 -5
  5. package/dist/cjs/tools/get-atlaskit-utilities/atlaskit-utilities.codegen.js +2 -2
  6. package/dist/cjs/tools/migration-guides/migrations/onboarding-with-motion.js +5 -5
  7. package/dist/es2019/tools/get-all-components/components.codegen.js +2 -2
  8. package/dist/es2019/tools/get-atlaskit-components/atlaskit-components.codegen.js +2 -2
  9. package/dist/es2019/tools/get-atlaskit-hooks/atlaskit-hooks.codegen.js +5 -5
  10. package/dist/es2019/tools/get-atlaskit-utilities/atlaskit-utilities.codegen.js +2 -2
  11. package/dist/es2019/tools/migration-guides/migrations/onboarding-with-motion.js +23 -30
  12. package/dist/esm/tools/get-all-components/components.codegen.js +2 -2
  13. package/dist/esm/tools/get-atlaskit-components/atlaskit-components.codegen.js +2 -2
  14. package/dist/esm/tools/get-atlaskit-hooks/atlaskit-hooks.codegen.js +5 -5
  15. package/dist/esm/tools/get-atlaskit-utilities/atlaskit-utilities.codegen.js +2 -2
  16. package/dist/esm/tools/migration-guides/migrations/onboarding-with-motion.js +5 -5
  17. package/dist/types/tools/get-all-components/components.codegen.d.ts +1 -1
  18. package/dist/types/tools/get-atlaskit-components/atlaskit-components.codegen.d.ts +1 -1
  19. package/dist/types/tools/get-atlaskit-hooks/atlaskit-hooks.codegen.d.ts +1 -1
  20. package/dist/types/tools/get-atlaskit-utilities/atlaskit-utilities.codegen.d.ts +1 -1
  21. package/package.json +3 -3
@@ -2,16 +2,16 @@ var additionalResources = 'Visit https://hello.atlassian.net/wiki/spaces/DST/pag
2
2
  export var onboardingWithMotion = {
3
3
  id: 'motion',
4
4
  title: 'Single Step Spotlight with Motion Migration',
5
- description: 'Migrate a single step spotlight with entrance animation from @atlaskit/onboarding to @atlaskit/spotlight using @atlaskit/motion',
5
+ description: 'Migrate a single step spotlight with entrance animation from @atlaskit/onboarding to @atlaskit/spotlight, which owns its default motion',
6
6
  fromPackage: '@atlaskit/onboarding',
7
7
  toPackage: '@atlaskit/spotlight',
8
8
  examples: [{
9
9
  title: 'Migrate spotlight with transition animation',
10
- description: 'Replace SpotlightTransition with FadeIn from @atlaskit/motion wrapped around the SpotlightCard',
10
+ description: 'Remove SpotlightTransition because @atlaskit/spotlight applies its default motion internally',
11
11
  before: "import React, { useState } from 'react';\nimport Button from '@atlaskit/button/default/button';\nimport {\n Spotlight,\n SpotlightManager,\n SpotlightTarget,\n SpotlightTransition,\n} from '@atlaskit/onboarding';\n\nconst OnboardingSpotlightWithTransition = () => {\n const [isSpotlightActive, setIsSpotlightActive] = useState(false);\n const start = () => setIsSpotlightActive(true);\n const end = () => setIsSpotlightActive(false);\n\n return (\n <SpotlightManager>\n <SpotlightTarget name=\"my-target\">\n <Button>Target Element</Button>\n </SpotlightTarget>\n <div>\n <Button appearance=\"primary\" onClick={start}>\n Show spotlight\n </Button>\n </div>\n <SpotlightTransition>\n {isSpotlightActive && (\n <Spotlight\n actions={[\n {\n onClick: end,\n text: 'Got it',\n },\n ]}\n heading=\"Feature Heading\"\n target=\"my-target\"\n key=\"my-target\"\n >\n This is the spotlight body content describing the feature.\n </Spotlight>\n )}\n </SpotlightTransition>\n </SpotlightManager>\n );\n};",
12
- after: "import React, { useState } from 'react';\nimport Button from '@atlaskit/button/default/button';\nimport { FadeIn } from '@atlaskit/motion';\nimport { Text } from '@atlaskit/primitives/compiled';\nimport { PopoverContent } from '@atlaskit/spotlight/popover-content';\nimport { PopoverProvider } from '@atlaskit/spotlight/popover-provider';\nimport { PopoverTarget } from '@atlaskit/spotlight/popover-target';\nimport { SpotlightActions } from '@atlaskit/spotlight/actions';\nimport { SpotlightBody } from '@atlaskit/spotlight/body';\nimport { SpotlightCard } from '@atlaskit/spotlight/card';\nimport { SpotlightControls } from '@atlaskit/spotlight/controls';\nimport { SpotlightDismissControl } from '@atlaskit/spotlight/dismiss-control';\nimport { SpotlightFooter } from '@atlaskit/spotlight/footer';\nimport { SpotlightHeader } from '@atlaskit/spotlight/header';\nimport { SpotlightHeadline } from '@atlaskit/spotlight/headline';\nimport { SpotlightPrimaryAction } from '@atlaskit/spotlight/primary-action';\n\nconst SpotlightWithMotion = () => {\n const [isVisible, setIsVisible] = useState(false);\n const dismiss = () => setIsVisible(false);\n const done = () => setIsVisible(false);\n\n return (\n <PopoverProvider>\n <PopoverTarget>\n <Button onClick={() => setIsVisible(true)}>Target Element</Button>\n </PopoverTarget>\n <PopoverContent done={done} dismiss={dismiss} placement=\"bottom-start\" isVisible={isVisible}>\n <FadeIn entranceDirection=\"left\">\n {(props) => (\n <div {...props}>\n <SpotlightCard>\n <SpotlightHeader>\n <SpotlightHeadline>Feature Heading</SpotlightHeadline>\n <SpotlightControls>\n <SpotlightDismissControl />\n </SpotlightControls>\n </SpotlightHeader>\n <SpotlightBody>\n <Text>This is the spotlight body content describing the feature.</Text>\n </SpotlightBody>\n <SpotlightFooter>\n <SpotlightActions>\n <SpotlightPrimaryAction onClick={done}>Got it</SpotlightPrimaryAction>\n </SpotlightActions>\n </SpotlightFooter>\n </SpotlightCard>\n </div>\n )}\n </FadeIn>\n </PopoverContent>\n </PopoverProvider>\n );\n};",
13
- explanation: "Key changes when migrating a spotlight with transition animation:\n- Replace SpotlightTransition with FadeIn from @atlaskit/motion\n- Import FadeIn from '@atlaskit/motion' instead of SpotlightTransition from '@atlaskit/onboarding'\n- FadeIn uses a render props pattern - wrap content in {(props) => <div {...props}>...</div>}\n- The entranceDirection prop controls animation direction: 'left', 'right', 'top', or 'bottom'\n- All other migration changes from single step spotlight apply (PopoverProvider, compositional components, etc.)"
12
+ after: "import React, { useState } from 'react';\nimport Button from '@atlaskit/button/default/button';\nimport { Text } from '@atlaskit/primitives/compiled';\nimport { PopoverContent } from '@atlaskit/spotlight/popover-content';\nimport { PopoverProvider } from '@atlaskit/spotlight/popover-provider';\nimport { PopoverTarget } from '@atlaskit/spotlight/popover-target';\nimport { SpotlightActions } from '@atlaskit/spotlight/actions';\nimport { SpotlightBody } from '@atlaskit/spotlight/body';\nimport { SpotlightCard } from '@atlaskit/spotlight/card';\nimport { SpotlightControls } from '@atlaskit/spotlight/controls';\nimport { SpotlightDismissControl } from '@atlaskit/spotlight/dismiss-control';\nimport { SpotlightFooter } from '@atlaskit/spotlight/footer';\nimport { SpotlightHeader } from '@atlaskit/spotlight/header';\nimport { SpotlightHeadline } from '@atlaskit/spotlight/headline';\nimport { SpotlightPrimaryAction } from '@atlaskit/spotlight/primary-action';\n\nconst SpotlightWithMotion = () => {\n const [isVisible, setIsVisible] = useState(false);\n const dismiss = () => setIsVisible(false);\n const done = () => setIsVisible(false);\n\n return (\n <PopoverProvider>\n <PopoverTarget>\n <Button onClick={() => setIsVisible(true)}>Target Element</Button>\n </PopoverTarget>\n <PopoverContent done={done} dismiss={dismiss} placement=\"bottom-start\" isVisible={isVisible}>\n <SpotlightCard>\n <SpotlightHeader>\n <SpotlightHeadline>Feature Heading</SpotlightHeadline>\n <SpotlightControls>\n <SpotlightDismissControl />\n </SpotlightControls>\n </SpotlightHeader>\n <SpotlightBody>\n <Text>This is the spotlight body content describing the feature.</Text>\n </SpotlightBody>\n <SpotlightFooter>\n <SpotlightActions>\n <SpotlightPrimaryAction onClick={done}>Got it</SpotlightPrimaryAction>\n </SpotlightActions>\n </SpotlightFooter>\n </SpotlightCard>\n </PopoverContent>\n </PopoverProvider>\n );\n};",
13
+ explanation: "Key changes when migrating a spotlight with transition animation:\n- Remove SpotlightTransition; PopoverContent applies the default spotlight motion internally\n- Do not add a separate @atlaskit/motion wrapper around SpotlightCard\n- Pass motion={null} to PopoverContent only when motion must be disabled\n- Pass a custom motion component to PopoverContent's motion prop only when the default treatment does not meet the approved design\n- All other migration changes from single step spotlight apply (PopoverProvider, compositional components, etc.)"
14
14
  }],
15
- bestPractices: ['Choose entranceDirection based on spotlight placement (e.g., "left" for right-placed spotlights)', 'Motion is optional - only add if the original onboarding spotlight used SpotlightTransition for entrance effects'],
15
+ bestPractices: ['Use the default motion owned by PopoverContent', 'Pass motion={null} to PopoverContent to disable motion, or pass a custom motion component only for an approved custom treatment'],
16
16
  additionalResources: additionalResources
17
17
  };
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * Structured content components from design-system *.docs.tsx files
5
5
  *
6
- * @codegen <<SignedSource::5f4c7d73ece750beae58ea212084c28a>>
6
+ * @codegen <<SignedSource::794c4f7233aa76bc963c500c777994ed>>
7
7
  * @codegenCommand afm workspace @af/ads-ai-tooling codegen
8
8
  */
9
9
  import type { ComponentMcpPayload } from './types';
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * Structured content components from *.docs.tsx files outside of design-system
5
5
  *
6
- * @codegen <<SignedSource::0f5fb43a38f83cacb9faabc6cabefbe2>>
6
+ * @codegen <<SignedSource::02b3faa16ce1be37aa868e8d6cbfbbac>>
7
7
  * @codegenCommand afm workspace @af/ads-ai-tooling codegen
8
8
  */
9
9
  import type { ComponentMcpPayload } from '../get-all-components/types';
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * Structured content hooks from design-system *.docs.tsx files
5
5
  *
6
- * @codegen <<SignedSource::b5f167ff34a386b064b052413e41a745>>
6
+ * @codegen <<SignedSource::70b33ac14924cd95daf60fdf0f0d61cc>>
7
7
  * @codegenCommand afm workspace @af/ads-ai-tooling codegen
8
8
  */
9
9
  import type { HookMcpPayload } from './types';
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * Structured content utilities from design-system *.docs.tsx files
5
5
  *
6
- * @codegen <<SignedSource::9cca162c8aef11265f8e7b0d240ad3a3>>
6
+ * @codegen <<SignedSource::89ae38c2ea61775c59f673010b2013ea>>
7
7
  * @codegenCommand afm workspace @af/ads-ai-tooling codegen
8
8
  */
9
9
  import type { UtilityMcpPayload } from './types';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/ads-mcp",
3
- "version": "1.12.12",
3
+ "version": "1.12.13",
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",
@@ -21,10 +21,10 @@
21
21
  "types": "dist/types/index.d.ts",
22
22
  "atlaskit:src": "src/index.tsx",
23
23
  "dependencies": {
24
- "@atlaskit/icon": "^38.0.0",
24
+ "@atlaskit/icon": "^38.1.0",
25
25
  "@atlaskit/icon-lab": "^7.11.0",
26
26
  "@atlaskit/platform-feature-flags": "^2.2.0",
27
- "@atlaskit/tokens": "^20.11.0",
27
+ "@atlaskit/tokens": "^20.12.0",
28
28
  "@axe-core/playwright": "^4.11.1",
29
29
  "@axe-core/puppeteer": "^4.11.1",
30
30
  "@babel/runtime": "^7.0.0",