@atlaskit/ads-mcp 1.12.4 → 1.12.6
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 +33 -0
- package/dist/cjs/tools/get-all-components/components.codegen.js +2 -2
- package/dist/cjs/tools/get-atlaskit-components/atlaskit-components.codegen.js +2 -2
- package/dist/cjs/tools/get-atlaskit-hooks/atlaskit-hooks.codegen.js +13 -13
- package/dist/cjs/tools/get-atlaskit-utilities/atlaskit-utilities.codegen.js +2 -2
- package/dist/es2019/tools/get-all-components/components.codegen.js +2 -2
- package/dist/es2019/tools/get-atlaskit-components/atlaskit-components.codegen.js +2 -2
- package/dist/es2019/tools/get-atlaskit-hooks/atlaskit-hooks.codegen.js +13 -13
- package/dist/es2019/tools/get-atlaskit-utilities/atlaskit-utilities.codegen.js +2 -2
- package/dist/esm/tools/get-all-components/components.codegen.js +2 -2
- package/dist/esm/tools/get-atlaskit-components/atlaskit-components.codegen.js +2 -2
- package/dist/esm/tools/get-atlaskit-hooks/atlaskit-hooks.codegen.js +13 -13
- package/dist/esm/tools/get-atlaskit-utilities/atlaskit-utilities.codegen.js +2 -2
- package/dist/types/tools/get-all-components/components.codegen.d.ts +1 -1
- package/dist/types/tools/get-atlaskit-components/atlaskit-components.codegen.d.ts +1 -1
- package/dist/types/tools/get-atlaskit-hooks/atlaskit-hooks.codegen.d.ts +1 -1
- package/dist/types/tools/get-atlaskit-utilities/atlaskit-utilities.codegen.d.ts +1 -1
- package/package.json +2 -2
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Structured content hooks from design-system *.docs.tsx files
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::b5f167ff34a386b064b052413e41a745>>
|
|
7
7
|
* @codegenCommand afm workspace @af/ads-ai-tooling codegen
|
|
8
8
|
*/
|
|
9
9
|
/* eslint-disable @repo/internal/react/boolean-prop-naming-convention -- not our types */
|
|
@@ -736,6 +736,18 @@ export const atlaskitHooks = [{
|
|
|
736
736
|
category: 'rovo',
|
|
737
737
|
package: '@atlassian/conversation-assistant-preview-card',
|
|
738
738
|
examples: []
|
|
739
|
+
}, {
|
|
740
|
+
name: 'useThirdPartyStarterPrefetch',
|
|
741
|
+
description: 'Warms recent-activity starter data when a Rovo Chat launcher receives hover or focus.',
|
|
742
|
+
status: 'general-availability',
|
|
743
|
+
usageGuidelines: ['Use for Rovo Chat launchers that share the recent-activity starter query. Keep surface-specific eligibility at the call site and render the returned prefetch node beside the launcher.', 'Call warmThirdPartyStarter on hover or keyboard focus. Supply a known accountId, or fetchAccountId for intent-time profile lookup; mounting the hook does not load Relay or fetch a profile.', 'The hook checks the starter experiment without exposure. Each intent allows a retry; the service reuses fresh results and in-flight requests. Profile and chunk failures remain invisible because Chat fetches independently when opened.'],
|
|
744
|
+
keywords: ['rovo', 'chat', 'starter', 'prefetch', 'hover', 'focus'],
|
|
745
|
+
category: 'rovo',
|
|
746
|
+
returns: {
|
|
747
|
+
type: '{ warmThirdPartyStarter: () => void; prefetch: ReactNode }'
|
|
748
|
+
},
|
|
749
|
+
package: '@atlassian/conversation-assistant-service',
|
|
750
|
+
examples: []
|
|
739
751
|
}, {
|
|
740
752
|
name: 'useTemplateContextProvider',
|
|
741
753
|
description: 'Public use-template-context-provider entrypoint for @atlassian/conversation-assistant-template-selector.',
|
|
@@ -1749,18 +1761,6 @@ export const atlaskitHooks = [{
|
|
|
1749
1761
|
},
|
|
1750
1762
|
package: '@atlassian/rovo-spaces',
|
|
1751
1763
|
examples: []
|
|
1752
|
-
}, {
|
|
1753
|
-
name: 'useSpaceSourcePlugins',
|
|
1754
|
-
description: 'Creates the Link Picker plugins used to select supported space sources.',
|
|
1755
|
-
status: 'general-availability',
|
|
1756
|
-
usageGuidelines: ['Build the picker plugins with the cloud ID from the active site, then pass them into the authenticated Link Picker context. The hook supplies Confluence, Jira, Atlas, and Loom sources.'],
|
|
1757
|
-
keywords: ['rovo', 'spaces', 'source', 'link picker'],
|
|
1758
|
-
category: 'rovo',
|
|
1759
|
-
returns: {
|
|
1760
|
-
type: 'LinkPickerPlugin[]'
|
|
1761
|
-
},
|
|
1762
|
-
package: '@atlassian/rovo-spaces',
|
|
1763
|
-
examples: ["import React, { useState } from 'react';\nimport { IntlProvider } from 'react-intl';\nimport Button from '@atlaskit/button/default/button';\nimport { SmartCardProvider } from '@atlaskit/link-provider/smart-card-provider';\nimport { Stack } from '@atlaskit/primitives/compiled/stack';\nimport { Text } from '@atlaskit/primitives/compiled/text';\nimport { SourceLinkPickerPopup } from '@atlassian/rovo-spaces/ui/SpaceLandingPage/SourceLinkPickerPopup';\nimport type { SpaceSource } from '@atlassian/rovo-spaces/ui/SpaceLandingPage/types';\nimport { useSpaceSourcePlugins } from '@atlassian/rovo-spaces/ui/SpaceLandingPage/useSpaceSourcePlugins';\ntype SourceLinkPickerPopupExampleProps = {\n\t/** Cloud ID from the host's authenticated Link Picker integration context. */\n\tcloudId: string;\n\t/** Persist this source and then pass the updated source list back to the picker. */\n\tonPersistSource: (source: SpaceSource) => Promise<void>;\n};\nexport default function SourceLinkPickerPopupExample({\n\tcloudId,\n\tonPersistSource,\n}: SourceLinkPickerPopupExampleProps): React.JSX.Element {\n\tconst plugins = useSpaceSourcePlugins(cloudId);\n\tconst [sources, setSources] = useState<SpaceSource[]>([]);\n\tconst [message, setMessage] = useState<string>();\n\tconst handleSourceAdded = (source: SpaceSource) => {\n\t\t// The picker resolves a link; the host owns authorization and persistence.\n\t\tvoid onPersistSource(source).then(\n\t\t\t() => setSources((current) => [...current, source]),\n\t\t\t() => setMessage(`Could not add ${source.title}`),\n\t\t);\n\t};\n\treturn (\n\t\t<IntlProvider locale=\"en\">\n\t\t\t<SmartCardProvider>\n\t\t\t\t<Stack space=\"space.150\">\n\t\t\t\t\t<SourceLinkPickerPopup\n\t\t\t\t\t\tcloudId={cloudId}\n\t\t\t\t\t\tplugins={plugins}\n\t\t\t\t\t\tsources={sources}\n\t\t\t\t\t\tonSourceAdded={handleSourceAdded}\n\t\t\t\t\t\ttrigger={({ onClick, ...triggerProps }) => (\n\t\t\t\t\t\t\t<Button {...triggerProps} onClick={onClick}>\n\t\t\t\t\t\t\t\tAdd a source\n\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t)}\n\t\t\t\t\t/>\n\t\t\t\t\t{sources.map((source) => (\n\t\t\t\t\t\t<Text key={source.id} size=\"small\">\n\t\t\t\t\t\t\t{source.title}\n\t\t\t\t\t\t</Text>\n\t\t\t\t\t))}\n\t\t\t\t\t{message && (\n\t\t\t\t\t\t<Text size=\"small\" role=\"status\">\n\t\t\t\t\t\t\t{message}\n\t\t\t\t\t\t</Text>\n\t\t\t\t\t)}\n\t\t\t\t</Stack>\n\t\t\t</SmartCardProvider>\n\t\t</IntlProvider>\n\t);\n}"]
|
|
1764
1764
|
}, {
|
|
1765
1765
|
name: 'useActionInvocationStatuses',
|
|
1766
1766
|
description: 'Returns live action-invocation statuses for a set of Rovo plan steps.',
|