@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.
@@ -9,7 +9,7 @@ exports.atlaskitHooks = void 0;
9
9
  *
10
10
  * Structured content hooks from design-system *.docs.tsx files
11
11
  *
12
- * @codegen <<SignedSource::32cbac9200091bcd2203fac2c2bc0734>>
12
+ * @codegen <<SignedSource::b5f167ff34a386b064b052413e41a745>>
13
13
  * @codegenCommand afm workspace @af/ads-ai-tooling codegen
14
14
  */
15
15
  /* eslint-disable @repo/internal/react/boolean-prop-naming-convention -- not our types */
@@ -742,6 +742,18 @@ var atlaskitHooks = exports.atlaskitHooks = [{
742
742
  category: 'rovo',
743
743
  package: '@atlassian/conversation-assistant-preview-card',
744
744
  examples: []
745
+ }, {
746
+ name: 'useThirdPartyStarterPrefetch',
747
+ description: 'Warms recent-activity starter data when a Rovo Chat launcher receives hover or focus.',
748
+ status: 'general-availability',
749
+ 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.'],
750
+ keywords: ['rovo', 'chat', 'starter', 'prefetch', 'hover', 'focus'],
751
+ category: 'rovo',
752
+ returns: {
753
+ type: '{ warmThirdPartyStarter: () => void; prefetch: ReactNode }'
754
+ },
755
+ package: '@atlassian/conversation-assistant-service',
756
+ examples: []
745
757
  }, {
746
758
  name: 'useTemplateContextProvider',
747
759
  description: 'Public use-template-context-provider entrypoint for @atlassian/conversation-assistant-template-selector.',
@@ -1755,18 +1767,6 @@ var atlaskitHooks = exports.atlaskitHooks = [{
1755
1767
  },
1756
1768
  package: '@atlassian/rovo-spaces',
1757
1769
  examples: []
1758
- }, {
1759
- name: 'useSpaceSourcePlugins',
1760
- description: 'Creates the Link Picker plugins used to select supported space sources.',
1761
- status: 'general-availability',
1762
- 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.'],
1763
- keywords: ['rovo', 'spaces', 'source', 'link picker'],
1764
- category: 'rovo',
1765
- returns: {
1766
- type: 'LinkPickerPlugin[]'
1767
- },
1768
- package: '@atlassian/rovo-spaces',
1769
- 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}"]
1770
1770
  }, {
1771
1771
  name: 'useActionInvocationStatuses',
1772
1772
  description: 'Returns live action-invocation statuses for a set of Rovo plan steps.',