@atlaskit/ads-mcp 1.3.0 → 1.3.2

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 (27) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/README.md +20 -0
  3. package/compass.yml +38 -0
  4. package/dist/cjs/tools/get-all-components/components.codegen.js +2 -2
  5. package/dist/cjs/tools/get-atlaskit-components/atlaskit-components.codegen.js +4 -1973
  6. package/dist/cjs/tools/get-atlaskit-hooks/atlaskit-hooks.codegen.js +1575 -33
  7. package/dist/cjs/tools/get-atlaskit-utilities/atlaskit-utilities.codegen.js +431 -436
  8. package/dist/cjs/tools/get-lint-rules/lint-rules-structured-content.codegen.js +4 -4
  9. package/dist/es2019/tools/get-all-components/components.codegen.js +2 -2
  10. package/dist/es2019/tools/get-atlaskit-components/atlaskit-components.codegen.js +3 -1966
  11. package/dist/es2019/tools/get-atlaskit-hooks/atlaskit-hooks.codegen.js +1575 -33
  12. package/dist/es2019/tools/get-atlaskit-utilities/atlaskit-utilities.codegen.js +431 -436
  13. package/dist/es2019/tools/get-lint-rules/lint-rules-structured-content.codegen.js +4 -4
  14. package/dist/esm/tools/get-all-components/components.codegen.js +2 -2
  15. package/dist/esm/tools/get-atlaskit-components/atlaskit-components.codegen.js +3 -1966
  16. package/dist/esm/tools/get-atlaskit-hooks/atlaskit-hooks.codegen.js +1575 -33
  17. package/dist/esm/tools/get-atlaskit-utilities/atlaskit-utilities.codegen.js +431 -436
  18. package/dist/esm/tools/get-lint-rules/lint-rules-structured-content.codegen.js +4 -4
  19. package/dist/types/tools/get-all-components/components.codegen.d.ts +1 -1
  20. package/dist/types/tools/get-atlaskit-components/atlaskit-components.codegen.d.ts +2 -2
  21. package/dist/types/tools/get-atlaskit-hooks/atlaskit-hooks.codegen.d.ts +1 -1
  22. package/dist/types/tools/get-atlaskit-hooks/types.d.ts +2 -1
  23. package/dist/types/tools/get-atlaskit-utilities/atlaskit-utilities.codegen.d.ts +1 -1
  24. package/dist/types/tools/get-atlaskit-utilities/types.d.ts +4 -1
  25. package/dist/types/tools/get-lint-rules/lint-rules-structured-content.codegen.d.ts +1 -1
  26. package/dist/types/tools/types.d.ts +14 -0
  27. 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::54db052ad53f695704ea4e9666a1ee4d>>
6
+ * @codegen <<SignedSource::4c9c1485dcaae7d7946943ada8224ad5>>
7
7
  * @codegenCommand yarn workspace @af/ads-ai-tooling codegen:atlaskit-hooks
8
8
  */
9
9
  /* eslint-disable @repo/internal/react/boolean-prop-naming-convention -- not our types */
@@ -22,24 +22,6 @@ export var atlaskitHooks = [{
22
22
  },
23
23
  package: '@atlaskit/analytics-next',
24
24
  examples: ["import React, { type FC, type MouseEvent, useCallback } from 'react';\nimport {\n\tAnalyticsListener,\n\ttype UIAnalyticsEvent,\n\tuseAnalyticsEvents,\n\tuseCallbackWithAnalytics,\n\tusePlatformLeafEventHandler,\n\twithAnalyticsEvents,\n\ttype WithAnalyticsEventsProps,\n} from '../src';\ninterface Props extends WithAnalyticsEventsProps {\n\tchildren: React.ReactNode;\n\tonClick: (e: MouseEvent<HTMLButtonElement>) => void;\n}\nconst ButtonBase = ({ createAnalyticsEvent, onClick, ...rest }: Props) => {\n\tconst handleClick = useCallback(\n\t\t(e: MouseEvent<HTMLButtonElement>) => {\n\t\t\t// Create our analytics event\n\t\t\tconst analyticsEvent = createAnalyticsEvent!({\n\t\t\t\taction: 'click',\n\t\t\t});\n\t\t\t// Fire our analytics event on the 'atlaskit' channel\n\t\t\tanalyticsEvent.fire('atlaskit');\n\t\t\tif (onClick) {\n\t\t\t\tonClick(e);\n\t\t\t}\n\t\t},\n\t\t[onClick, createAnalyticsEvent],\n\t);\n\treturn <button {...rest} onClick={handleClick} />;\n};\nconst Button = withAnalyticsEvents()(ButtonBase);\nconst ButtonUsingHook: FC<Props> = ({ onClick, ...props }) => {\n\t// Decompose function from the hook\n\tconst { createAnalyticsEvent } = useAnalyticsEvents();\n\tconst handleClick = useCallback(\n\t\t(e: MouseEvent<HTMLButtonElement>) => {\n\t\t\t// Create our analytics event\n\t\t\tconst analyticsEvent = createAnalyticsEvent({ action: 'click' });\n\t\t\t// Fire our analytics event\n\t\t\tanalyticsEvent.fire('atlaskit');\n\t\t\tif (onClick) {\n\t\t\t\tonClick(e);\n\t\t\t}\n\t\t},\n\t\t[onClick, createAnalyticsEvent],\n\t);\n\treturn <button {...props} onClick={handleClick} />;\n};\nconst ButtonUsingCallback: FC<Props> = ({ onClick, ...props }) => {\n\tconst handleClick = useCallbackWithAnalytics(onClick, { action: 'click' }, 'atlaskit');\n\treturn <button {...props} onClick={handleClick} />;\n};\nconst ButtonUsingEventHandlerHook = ({\n\tonClick,\n\tchildren,\n}: {\n\tchildren: React.ReactNode;\n\tonClick: (\n\t\tmouseEvent: React.MouseEvent<HTMLButtonElement>,\n\t\tanalyticsEvent: UIAnalyticsEvent,\n\t) => void;\n}) => {\n\tconst handleClick = usePlatformLeafEventHandler({\n\t\tfn: onClick,\n\t\taction: 'clicked',\n\t\tcomponentName: 'fancy-button',\n\t\tpackageName: '@atlaskit/fancy-button',\n\t\tpackageVersion: '0.1.0',\n\t});\n\treturn <button onClick={handleClick}>{children}</button>;\n};\nconst App: FC = () => {\n\tconst handleEvent = (analyticsEvent: UIAnalyticsEvent) => {\n\t\tconst { payload, context } = analyticsEvent;\n\t\tconsole.log('Received event:', { payload, context });\n\t};\n\tconst onClickHandler = () => console.log('onClickCallback');\n\treturn (\n\t\t<AnalyticsListener channel=\"atlaskit\" onEvent={handleEvent}>\n\t\t\t<Button onClick={onClickHandler}>Click me (withAnalyticsEvents)</Button>\n\t\t\t<br />\n\t\t\t<ButtonUsingHook onClick={onClickHandler}>Click me (useAnalyticsEvents)</ButtonUsingHook>\n\t\t\t<br />\n\t\t\t<ButtonUsingCallback onClick={onClickHandler}>\n\t\t\t\tClick me (useCallbackWithAnalytics)\n\t\t\t</ButtonUsingCallback>\n\t\t\t<br />\n\t\t\t<ButtonUsingEventHandlerHook onClick={onClickHandler}>\n\t\t\t\tClick me (usePlatformLeafEventHandler)\n\t\t\t</ButtonUsingEventHandlerHook>\n\t\t</AnalyticsListener>\n\t);\n};\nexport default App;"]
25
- }, {
26
- name: 'useCloseOnEscapePress',
27
- description: 'Calls `onClose` when the Escape key is pressed and this layer is currently on top of the layering tree. Layers covered by a deeper layer are skipped, so Escape closes the topmost surface first.',
28
- status: 'general-availability',
29
- usageGuidelines: ['Mount inside the component that owns the surface (modal body, popup body, drawer body). Wrap that component in `<Layering>` or it will not receive layer information.', 'Do not pair with a second top-level Escape listener — the hook already coordinates dismissal across stacked layers.'],
30
- accessibilityGuidelines: ['Escape-to-close is the expected dismissal pattern for overlay surfaces (WAI-ARIA Authoring Practices). Always wire it up alongside an explicit close button.'],
31
- keywords: ['layering', 'hook', 'useCloseOnEscapePress', 'escape', 'dismiss'],
32
- category: 'layering',
33
- parameters: [{
34
- name: 'options',
35
- type: '{ onClose: (e: KeyboardEvent) => void; isDisabled?: boolean }',
36
- description: '`onClose` runs on the first Escape keydown per press. Set `isDisabled` to opt out without unmounting the hook (for example, when the surface is mounted but in a non-closable state).'
37
- }],
38
- returns: {
39
- type: 'void'
40
- },
41
- package: '@atlaskit/layering',
42
- examples: []
43
25
  }, {
44
26
  name: 'useInterval',
45
27
  description: 'Declarative wrapper around `setInterval`. Re-runs the latest `callback` every `delay` milliseconds and clears the timer on unmount or when `delay` changes. Passing `null` for `delay` pauses the timer without unmounting the hook.',
@@ -61,20 +43,6 @@ export var atlaskitHooks = [{
61
43
  },
62
44
  package: '@atlaskit/frontend-utilities',
63
45
  examples: []
64
- }, {
65
- name: 'useLayering',
66
- description: 'Returns information about the current layer in the layering tree: the layer depth, a check for whether this layer is currently disabled (i.e. not on top), and the top-most depth in the tree.',
67
- status: 'general-availability',
68
- usageGuidelines: ['Use inside a layered surface to gate behaviour that should only run for the top-most layer (for example, registering global keyboard listeners or auto-focusing content).', 'Prefer `useCloseOnEscapePress` for the common case of closing on Escape — only reach for `useLayering` when you need raw level info.'],
69
- keywords: ['layering', 'hook', 'useLayering', 'top-layer'],
70
- category: 'layering',
71
- parameters: [],
72
- returns: {
73
- type: '{ currentLevel: number; isLayerDisabled: () => boolean; getTopLevel: () => number | null }',
74
- description: '`currentLevel` is the depth of the calling layer. `isLayerDisabled()` returns true when a deeper layer is currently on top. `getTopLevel()` returns the deepest registered layer, or `null` if no layers are mounted.'
75
- },
76
- package: '@atlaskit/layering',
77
- examples: []
78
46
  }, {
79
47
  name: 'useLocalStorage',
80
48
  description: '`useState`-shaped wrapper around `window.localStorage` with built-in JSON serialisation and a wrapper that survives the storage being unavailable (e.g. private browsing modes that throw). Persists `value` under `key` and rehydrates it on mount.',
@@ -197,4 +165,1578 @@ export var atlaskitHooks = [{
197
165
  },
198
166
  package: '@atlaskit/frontend-utilities',
199
167
  examples: []
168
+ }, {
169
+ name: 'useDatasourceLifecycleAnalytics',
170
+ description: 'Hook that exposes callbacks to fire analytics events for the lifecycle of datasources (list of links): created, updated, and deleted. Uses Smart Link context and link-client-extension for datasource operations.',
171
+ status: 'general-availability',
172
+ usageGuidelines: ['Use when you need to track when datasources (e.g. Jira issues list, Confluence search list) are created, updated, or deleted. Must be used inside SmartCardProvider.'],
173
+ accessibilityGuidelines: ['Ensure analytics firing does not change focus or alter semantics.'],
174
+ keywords: ['link-analytics', 'analytics', 'datasource', 'lifecycle', 'hooks', 'useDatasourceLifecycleAnalytics'],
175
+ category: 'linking',
176
+ import: {
177
+ name: 'useDatasourceLifecycleAnalytics',
178
+ package: '@atlaskit/link-analytics',
179
+ type: 'named',
180
+ packagePath: '/Users/khall2/.codex/worktrees/bd80/atlassian-frontend-monorepo/platform/packages/linking-platform/link-analytics',
181
+ packageJson: {
182
+ name: '@atlaskit/link-analytics',
183
+ version: '12.1.0',
184
+ description: 'Contains analytics and utils to assist in instrumenting Linking Platform components.',
185
+ publishConfig: {
186
+ registry: 'https://registry.npmjs.org/'
187
+ },
188
+ repository: 'https://bitbucket.org/atlassian/atlassian-frontend-mirror',
189
+ author: 'Atlassian Pty Ltd',
190
+ license: 'Apache-2.0',
191
+ main: 'dist/cjs/index.js',
192
+ module: 'dist/esm/index.js',
193
+ 'module:es2019': 'dist/es2019/index.js',
194
+ types: 'dist/types/index.d.ts',
195
+ sideEffects: false,
196
+ 'atlaskit:src': 'src/index.ts',
197
+ atlassian: {
198
+ 'react-compiler': {
199
+ enabled: true,
200
+ gating: {
201
+ source: '@atlaskit/react-compiler-gating',
202
+ importSpecifierName: 'isReactCompilerActivePlatform'
203
+ }
204
+ },
205
+ team: 'Navigation Experiences - Linking Platform',
206
+ website: {
207
+ name: 'LinkingAnalytics'
208
+ }
209
+ },
210
+ scripts: {
211
+ 'codegen-analytics': 'yarn workspace @atlassian/analytics-tooling run analytics:codegen link-analytics --output ./src/common/utils/analytics'
212
+ },
213
+ dependencies: {
214
+ '@atlaskit/analytics-next': 'workspace:^',
215
+ '@atlaskit/json-ld-types': 'workspace:^',
216
+ '@atlaskit/link-client-extension': 'workspace:^',
217
+ '@atlaskit/linking-common': 'workspace:^',
218
+ '@atlaskit/linking-types': 'workspace:^',
219
+ '@atlaskit/platform-feature-flags': 'workspace:^',
220
+ '@atlaskit/react-compiler-gating': 'workspace:^',
221
+ '@babel/runtime': 'root:*',
222
+ lru_map: 'root:*',
223
+ rusha: 'root:*'
224
+ },
225
+ peerDependencies: {
226
+ '@atlaskit/link-provider': 'workspace:^',
227
+ react: '^18.2.0'
228
+ },
229
+ devDependencies: {
230
+ '@af/analytics-codegen': 'workspace:^',
231
+ '@atlaskit/link-picker': 'workspace:^',
232
+ '@atlaskit/link-test-helpers': 'workspace:^',
233
+ '@atlassian/structured-docs-types': 'workspace:^',
234
+ '@testing-library/dom': 'root:*',
235
+ '@testing-library/react': 'root:*',
236
+ '@testing-library/user-event': 'root:*',
237
+ 'fetch-mock': 'root:*',
238
+ react: 'root:*',
239
+ 'react-intl': 'root:*'
240
+ },
241
+ exports: {
242
+ '.': './src/index.ts',
243
+ './lifecycle': './src/entry-points/lifecycle.ts',
244
+ './resolved-attributes': './src/entry-points/resolved-attributes.ts'
245
+ },
246
+ 'platform-feature-flags': {
247
+ 'platform_bandicoots-smartlink-unresolved-error-key': {
248
+ type: 'boolean'
249
+ }
250
+ },
251
+ compassUnitTestMetricSourceId: 'ari:cloud:compass:a436116f-02ce-4520-8fbb-7301462a1674:metric-source/c5751cc6-3513-4070-9deb-af31e86aed34/ee279202-f1b9-4a9d-a894-92f79e2a98db'
252
+ }
253
+ },
254
+ package: '@atlaskit/link-analytics',
255
+ examples: []
256
+ }, {
257
+ name: 'useSmartLinkLifecycleAnalytics',
258
+ description: 'Hook that exposes callbacks to fire analytics events for the lifecycle of Smart Links: created, updated, and deleted. Uses the Smart Link context (link-provider) and analytics-next. Call linkCreated, linkUpdated, or linkDeleted when the corresponding action happens in your UI.',
259
+ status: 'general-availability',
260
+ usageGuidelines: ['Use when you need to track when links are created, updated, or deleted (e.g. after LinkCreate success, or when a user edits/removes a link). Must be used inside SmartCardProvider and with analytics-next.'],
261
+ accessibilityGuidelines: ['Ensure analytics firing does not change focus, interrupt screen readers, or alter semantics.'],
262
+ keywords: ['link-analytics', 'analytics', 'lifecycle', 'hooks', 'useSmartLinkLifecycleAnalytics'],
263
+ category: 'linking',
264
+ import: {
265
+ name: 'useSmartLinkLifecycleAnalytics',
266
+ package: '@atlaskit/link-analytics',
267
+ type: 'named',
268
+ packagePath: '/Users/khall2/.codex/worktrees/bd80/atlassian-frontend-monorepo/platform/packages/linking-platform/link-analytics',
269
+ packageJson: {
270
+ name: '@atlaskit/link-analytics',
271
+ version: '12.1.0',
272
+ description: 'Contains analytics and utils to assist in instrumenting Linking Platform components.',
273
+ publishConfig: {
274
+ registry: 'https://registry.npmjs.org/'
275
+ },
276
+ repository: 'https://bitbucket.org/atlassian/atlassian-frontend-mirror',
277
+ author: 'Atlassian Pty Ltd',
278
+ license: 'Apache-2.0',
279
+ main: 'dist/cjs/index.js',
280
+ module: 'dist/esm/index.js',
281
+ 'module:es2019': 'dist/es2019/index.js',
282
+ types: 'dist/types/index.d.ts',
283
+ sideEffects: false,
284
+ 'atlaskit:src': 'src/index.ts',
285
+ atlassian: {
286
+ 'react-compiler': {
287
+ enabled: true,
288
+ gating: {
289
+ source: '@atlaskit/react-compiler-gating',
290
+ importSpecifierName: 'isReactCompilerActivePlatform'
291
+ }
292
+ },
293
+ team: 'Navigation Experiences - Linking Platform',
294
+ website: {
295
+ name: 'LinkingAnalytics'
296
+ }
297
+ },
298
+ scripts: {
299
+ 'codegen-analytics': 'yarn workspace @atlassian/analytics-tooling run analytics:codegen link-analytics --output ./src/common/utils/analytics'
300
+ },
301
+ dependencies: {
302
+ '@atlaskit/analytics-next': 'workspace:^',
303
+ '@atlaskit/json-ld-types': 'workspace:^',
304
+ '@atlaskit/link-client-extension': 'workspace:^',
305
+ '@atlaskit/linking-common': 'workspace:^',
306
+ '@atlaskit/linking-types': 'workspace:^',
307
+ '@atlaskit/platform-feature-flags': 'workspace:^',
308
+ '@atlaskit/react-compiler-gating': 'workspace:^',
309
+ '@babel/runtime': 'root:*',
310
+ lru_map: 'root:*',
311
+ rusha: 'root:*'
312
+ },
313
+ peerDependencies: {
314
+ '@atlaskit/link-provider': 'workspace:^',
315
+ react: '^18.2.0'
316
+ },
317
+ devDependencies: {
318
+ '@af/analytics-codegen': 'workspace:^',
319
+ '@atlaskit/link-picker': 'workspace:^',
320
+ '@atlaskit/link-test-helpers': 'workspace:^',
321
+ '@atlassian/structured-docs-types': 'workspace:^',
322
+ '@testing-library/dom': 'root:*',
323
+ '@testing-library/react': 'root:*',
324
+ '@testing-library/user-event': 'root:*',
325
+ 'fetch-mock': 'root:*',
326
+ react: 'root:*',
327
+ 'react-intl': 'root:*'
328
+ },
329
+ exports: {
330
+ '.': './src/index.ts',
331
+ './lifecycle': './src/entry-points/lifecycle.ts',
332
+ './resolved-attributes': './src/entry-points/resolved-attributes.ts'
333
+ },
334
+ 'platform-feature-flags': {
335
+ 'platform_bandicoots-smartlink-unresolved-error-key': {
336
+ type: 'boolean'
337
+ }
338
+ },
339
+ compassUnitTestMetricSourceId: 'ari:cloud:compass:a436116f-02ce-4520-8fbb-7301462a1674:metric-source/c5751cc6-3513-4070-9deb-af31e86aed34/ee279202-f1b9-4a9d-a894-92f79e2a98db'
340
+ }
341
+ },
342
+ package: '@atlaskit/link-analytics',
343
+ examples: []
344
+ }, {
345
+ name: 'useDatasourceClientExtension',
346
+ description: 'Hook that provides methods to fetch datasource details, datasource data (paginated), and actions discovery. Uses the Smart Link context client and caches responses. Required for rendering datasource tables or custom datasource UI.',
347
+ status: 'general-availability',
348
+ usageGuidelines: ['Use when building UI that loads or displays datasource data (e.g. list of links from Jira, Confluence, Assets). Must be used inside SmartCardProvider. Use getDatasourceDetails, getDatasourceData, and getActionsDiscovery as needed.'],
349
+ accessibilityGuidelines: [],
350
+ keywords: ['link-client-extension', 'hooks', 'datasource', 'useDatasourceClientExtension'],
351
+ category: 'linking',
352
+ import: {
353
+ name: 'useDatasourceClientExtension',
354
+ package: '@atlaskit/link-client-extension',
355
+ type: 'named',
356
+ packagePath: '/Users/khall2/.codex/worktrees/bd80/atlassian-frontend-monorepo/platform/packages/linking-platform/link-client-extension',
357
+ packageJson: {
358
+ name: '@atlaskit/link-client-extension',
359
+ version: '7.1.0',
360
+ description: 'Extension methods for linking platform client',
361
+ author: 'Atlassian Pty Ltd',
362
+ license: 'Apache-2.0',
363
+ publishConfig: {
364
+ registry: 'https://registry.npmjs.org/'
365
+ },
366
+ atlassian: {
367
+ 'react-compiler': {
368
+ enabled: true,
369
+ gating: {
370
+ source: '@atlaskit/react-compiler-gating',
371
+ importSpecifierName: 'isReactCompilerActivePlatform'
372
+ }
373
+ },
374
+ team: 'Navigation Experiences - Linking Platform',
375
+ website: {
376
+ name: 'LinkClientExtension'
377
+ }
378
+ },
379
+ repository: 'https://bitbucket.org/atlassian/atlassian-frontend-mirror',
380
+ main: 'dist/cjs/index.js',
381
+ module: 'dist/esm/index.js',
382
+ 'module:es2019': 'dist/es2019/index.js',
383
+ types: 'dist/types/index.d.ts',
384
+ sideEffects: false,
385
+ 'atlaskit:src': 'src/index.ts',
386
+ exports: {
387
+ '.': './src/index.ts',
388
+ './use-smart-link-client-extension': './src/entry-points/use-smart-link-client-extension.ts',
389
+ './use-data-source-client-extension': './src/entry-points/use-data-source-client-extension.ts',
390
+ './use-data-source-client-extension/mocks': './src/entry-points/data-source-client-extension-mocks.ts',
391
+ './use-data-source-client-extension/types': './src/entry-points/data-source-response-types.ts'
392
+ },
393
+ dependencies: {
394
+ '@atlaskit/json-ld-types': 'workspace:^',
395
+ '@atlaskit/linking-common': 'workspace:^',
396
+ '@atlaskit/linking-types': 'workspace:^',
397
+ '@atlaskit/platform-feature-flags': 'workspace:^',
398
+ '@atlaskit/react-compiler-gating': 'workspace:^',
399
+ '@babel/runtime': 'root:*',
400
+ lru_map: 'root:*'
401
+ },
402
+ peerDependencies: {
403
+ '@atlaskit/link-provider': 'workspace:^',
404
+ react: '^18.2.0'
405
+ },
406
+ devDependencies: {
407
+ '@atlaskit/link-test-helpers': 'workspace:^',
408
+ '@atlassian/feature-flags-test-utils': 'workspace:^',
409
+ '@atlassian/structured-docs-types': 'workspace:^',
410
+ '@testing-library/react': 'root:*',
411
+ react: 'root:*',
412
+ 'react-dom': 'root:*',
413
+ 'wait-for-expect': 'root:*'
414
+ },
415
+ techstack: {
416
+ '@atlassian/frontend': {
417
+ 'code-structure': ['tangerine-next'],
418
+ 'import-structure': ['atlassian-conventions'],
419
+ 'circular-dependencies': ['file-and-folder-level']
420
+ },
421
+ '@repo/internal': {
422
+ 'dom-events': 'use-bind-event-listener',
423
+ analytics: ['analytics-next'],
424
+ 'design-tokens': ['color'],
425
+ theming: ['react-context'],
426
+ 'ui-components': ['lite-mode'],
427
+ deprecation: ['no-deprecated-imports'],
428
+ styling: ['static', 'emotion'],
429
+ imports: ['import-no-extraneous-disable-for-examples-and-docs']
430
+ }
431
+ },
432
+ compassUnitTestMetricSourceId: 'ari:cloud:compass:a436116f-02ce-4520-8fbb-7301462a1674:metric-source/c5751cc6-3513-4070-9deb-af31e86aed34/cf4080bb-133c-425e-bf40-17e725f5add5'
433
+ }
434
+ },
435
+ package: '@atlaskit/link-client-extension',
436
+ examples: []
437
+ }, {
438
+ name: 'useSmartLinkClientExtension',
439
+ description: 'Hook that extends the CardClient from link-provider with Smart Link action invocation. Accepts a CardClient and returns an invoke function to call Smart Link actions (e.g. custom actions) via the resolver.',
440
+ status: 'general-availability',
441
+ usageGuidelines: ['Use when you need to invoke Smart Link actions (POST to resolver /invoke) from custom UI. Pass the client from useSmartLinkContext; use the returned invoke for action execution.'],
442
+ accessibilityGuidelines: [],
443
+ keywords: ['link-client-extension', 'hooks', 'invoke', 'actions', 'useSmartLinkClientExtension'],
444
+ category: 'linking',
445
+ import: {
446
+ name: 'useSmartLinkClientExtension',
447
+ package: '@atlaskit/link-client-extension',
448
+ type: 'named',
449
+ packagePath: '/Users/khall2/.codex/worktrees/bd80/atlassian-frontend-monorepo/platform/packages/linking-platform/link-client-extension',
450
+ packageJson: {
451
+ name: '@atlaskit/link-client-extension',
452
+ version: '7.1.0',
453
+ description: 'Extension methods for linking platform client',
454
+ author: 'Atlassian Pty Ltd',
455
+ license: 'Apache-2.0',
456
+ publishConfig: {
457
+ registry: 'https://registry.npmjs.org/'
458
+ },
459
+ atlassian: {
460
+ 'react-compiler': {
461
+ enabled: true,
462
+ gating: {
463
+ source: '@atlaskit/react-compiler-gating',
464
+ importSpecifierName: 'isReactCompilerActivePlatform'
465
+ }
466
+ },
467
+ team: 'Navigation Experiences - Linking Platform',
468
+ website: {
469
+ name: 'LinkClientExtension'
470
+ }
471
+ },
472
+ repository: 'https://bitbucket.org/atlassian/atlassian-frontend-mirror',
473
+ main: 'dist/cjs/index.js',
474
+ module: 'dist/esm/index.js',
475
+ 'module:es2019': 'dist/es2019/index.js',
476
+ types: 'dist/types/index.d.ts',
477
+ sideEffects: false,
478
+ 'atlaskit:src': 'src/index.ts',
479
+ exports: {
480
+ '.': './src/index.ts',
481
+ './use-smart-link-client-extension': './src/entry-points/use-smart-link-client-extension.ts',
482
+ './use-data-source-client-extension': './src/entry-points/use-data-source-client-extension.ts',
483
+ './use-data-source-client-extension/mocks': './src/entry-points/data-source-client-extension-mocks.ts',
484
+ './use-data-source-client-extension/types': './src/entry-points/data-source-response-types.ts'
485
+ },
486
+ dependencies: {
487
+ '@atlaskit/json-ld-types': 'workspace:^',
488
+ '@atlaskit/linking-common': 'workspace:^',
489
+ '@atlaskit/linking-types': 'workspace:^',
490
+ '@atlaskit/platform-feature-flags': 'workspace:^',
491
+ '@atlaskit/react-compiler-gating': 'workspace:^',
492
+ '@babel/runtime': 'root:*',
493
+ lru_map: 'root:*'
494
+ },
495
+ peerDependencies: {
496
+ '@atlaskit/link-provider': 'workspace:^',
497
+ react: '^18.2.0'
498
+ },
499
+ devDependencies: {
500
+ '@atlaskit/link-test-helpers': 'workspace:^',
501
+ '@atlassian/feature-flags-test-utils': 'workspace:^',
502
+ '@atlassian/structured-docs-types': 'workspace:^',
503
+ '@testing-library/react': 'root:*',
504
+ react: 'root:*',
505
+ 'react-dom': 'root:*',
506
+ 'wait-for-expect': 'root:*'
507
+ },
508
+ techstack: {
509
+ '@atlassian/frontend': {
510
+ 'code-structure': ['tangerine-next'],
511
+ 'import-structure': ['atlassian-conventions'],
512
+ 'circular-dependencies': ['file-and-folder-level']
513
+ },
514
+ '@repo/internal': {
515
+ 'dom-events': 'use-bind-event-listener',
516
+ analytics: ['analytics-next'],
517
+ 'design-tokens': ['color'],
518
+ theming: ['react-context'],
519
+ 'ui-components': ['lite-mode'],
520
+ deprecation: ['no-deprecated-imports'],
521
+ styling: ['static', 'emotion'],
522
+ imports: ['import-no-extraneous-disable-for-examples-and-docs']
523
+ }
524
+ },
525
+ compassUnitTestMetricSourceId: 'ari:cloud:compass:a436116f-02ce-4520-8fbb-7301462a1674:metric-source/c5751cc6-3513-4070-9deb-af31e86aed34/cf4080bb-133c-425e-bf40-17e725f5add5'
526
+ }
527
+ },
528
+ package: '@atlaskit/link-client-extension',
529
+ examples: []
530
+ }, {
531
+ name: 'useLinkCreateCallback',
532
+ description: 'Hook that returns the link-create callback from LinkCreateCallbackProvider. Use to trigger or react to create success from child components.',
533
+ status: 'general-availability',
534
+ usageGuidelines: ['Use inside a plugin or child of LinkCreateCallbackProvider when you need access to the create-success callback.'],
535
+ accessibilityGuidelines: [],
536
+ keywords: ['link-create', 'hooks', 'callback', 'useLinkCreateCallback'],
537
+ category: 'linking',
538
+ import: {
539
+ name: 'useLinkCreateCallback',
540
+ package: '@atlaskit/link-create',
541
+ type: 'named',
542
+ packagePath: '/Users/khall2/.codex/worktrees/bd80/atlassian-frontend-monorepo/platform/packages/linking-platform/link-create',
543
+ packageJson: {
544
+ name: '@atlaskit/link-create',
545
+ version: '6.1.0',
546
+ description: 'The driver component of meta creation flow',
547
+ author: 'Atlassian Pty Ltd',
548
+ license: 'Apache-2.0',
549
+ publishConfig: {
550
+ registry: 'https://registry.npmjs.org/'
551
+ },
552
+ atlassian: {
553
+ 'react-compiler': {
554
+ enabled: true,
555
+ gating: {
556
+ source: '@atlaskit/react-compiler-gating',
557
+ importSpecifierName: 'isReactCompilerActivePlatform'
558
+ }
559
+ },
560
+ team: 'Navigation Experiences - Linking Platform',
561
+ website: {
562
+ name: 'LinkCreate'
563
+ },
564
+ i18n: true
565
+ },
566
+ repository: 'https://bitbucket.org/atlassian/atlassian-frontend-mirror',
567
+ main: 'dist/cjs/index.js',
568
+ module: 'dist/esm/index.js',
569
+ 'module:es2019': 'dist/es2019/index.js',
570
+ types: 'dist/types/index.d.ts',
571
+ sideEffects: ['**/*.compiled.css'],
572
+ 'atlaskit:src': 'src/index.ts',
573
+ exports: {
574
+ '.': './src/index.ts',
575
+ './i18n/*': {
576
+ publish: null,
577
+ default: './src/i18n/*.ts'
578
+ },
579
+ './async-select': './src/entry-points/async-select.ts',
580
+ './callback-context': './src/entry-points/callback-context.ts',
581
+ './create-field': './src/entry-points/create-field.ts',
582
+ './create-form': './src/entry-points/create-form.ts',
583
+ './exit-warning-modal': './src/entry-points/exit-warning-modal.ts',
584
+ './final-form': './src/entry-points/final-form.ts',
585
+ './form-loader': './src/entry-points/form-loader.ts',
586
+ './form-spy': './src/entry-points/form-spy.ts',
587
+ './icons': './src/entry-points/icons.ts',
588
+ './inline-create': './src/entry-points/inline-create.ts',
589
+ './modal-create': './src/entry-points/modal-create.ts',
590
+ './select': './src/entry-points/select.ts',
591
+ './text-field': './src/entry-points/text-field.ts',
592
+ './types': './src/entry-points/types.ts',
593
+ './user-picker': './src/entry-points/user-picker.ts'
594
+ },
595
+ dependencies: {
596
+ '@atlaskit/afm-i18n-platform-linking-platform-link-create': 'root:*',
597
+ '@atlaskit/analytics-next': 'workspace:^',
598
+ '@atlaskit/atlassian-context': 'workspace:^',
599
+ '@atlaskit/button': 'workspace:^',
600
+ '@atlaskit/css': 'workspace:^',
601
+ '@atlaskit/empty-state': 'workspace:^',
602
+ '@atlaskit/form': 'workspace:^',
603
+ '@atlaskit/icon': 'workspace:^',
604
+ '@atlaskit/icon-file-type': 'workspace:^',
605
+ '@atlaskit/intl-messages-provider': 'workspace:^',
606
+ '@atlaskit/link': 'workspace:^',
607
+ '@atlaskit/linking-common': 'workspace:^',
608
+ '@atlaskit/modal-dialog': 'workspace:^',
609
+ '@atlaskit/object': 'workspace:^',
610
+ '@atlaskit/platform-feature-flags': 'workspace:^',
611
+ '@atlaskit/primitives': 'workspace:^',
612
+ '@atlaskit/react-compiler-gating': 'workspace:^',
613
+ '@atlaskit/select': 'workspace:^',
614
+ '@atlaskit/smart-user-picker': 'workspace:^',
615
+ '@atlaskit/spinner': 'workspace:^',
616
+ '@atlaskit/textfield': 'workspace:^',
617
+ '@atlaskit/theme': 'workspace:^',
618
+ '@atlaskit/tokens': 'workspace:^',
619
+ '@babel/runtime': 'root:*',
620
+ '@compiled/react': 'root:*',
621
+ 'debounce-promise': 'root:*',
622
+ 'final-form': 'root:*',
623
+ 'react-final-form': 'root:*'
624
+ },
625
+ peerDependencies: {
626
+ react: '^18.2.0',
627
+ 'react-intl': '^5.25.1 || ^6.0.0 || ^7.0.0'
628
+ },
629
+ devDependencies: {
630
+ '@af/accessibility-testing': 'workspace:^',
631
+ '@af/integration-testing': 'workspace:^',
632
+ '@af/visual-regression': 'workspace:^',
633
+ '@atlaskit/drawer': 'workspace:^',
634
+ '@atlaskit/link-test-helpers': 'workspace:^',
635
+ '@atlaskit/popup': 'workspace:^',
636
+ '@atlassian/a11y-jest-testing': 'workspace:^',
637
+ '@atlassian/feature-flags-test-utils': 'workspace:^',
638
+ '@atlassian/structured-docs-types': 'workspace:^',
639
+ '@testing-library/react': 'root:*',
640
+ '@testing-library/user-event': 'root:*',
641
+ '@types/debounce-promise': 'root:*',
642
+ 'fetch-mock': 'root:*',
643
+ react: 'root:*',
644
+ 'react-dom': 'root:*',
645
+ 'react-intl': 'root:*',
646
+ 'wait-for-expect': 'root:*'
647
+ },
648
+ scripts: {
649
+ 'codegen-analytics': "yarn run ts-analytics-codegen --command='yarn workspace @atlaskit/link-create run codegen-analytics'"
650
+ },
651
+ techstack: {
652
+ '@atlassian/frontend': {
653
+ 'code-structure': ['tangerine-next'],
654
+ 'import-structure': ['atlassian-conventions'],
655
+ 'circular-dependencies': ['file-and-folder-level']
656
+ },
657
+ '@repo/internal': {
658
+ 'dom-events': 'use-bind-event-listener',
659
+ analytics: ['analytics-next'],
660
+ theming: ['react-context', 'tokens'],
661
+ 'ui-components': ['lite-mode'],
662
+ deprecation: ['no-deprecated-imports'],
663
+ styling: ['static', 'compiled'],
664
+ imports: ['import-no-extraneous-disable-for-examples-and-docs']
665
+ }
666
+ },
667
+ 'platform-feature-flags': {},
668
+ compassUnitTestMetricSourceId: 'ari:cloud:compass:a436116f-02ce-4520-8fbb-7301462a1674:metric-source/c5751cc6-3513-4070-9deb-af31e86aed34/5ebc0bfb-9b6d-4ec0-adbe-e4d5e88ace44'
669
+ }
670
+ },
671
+ package: '@atlaskit/link-create',
672
+ examples: []
673
+ }, {
674
+ name: 'useWithExitWarning',
675
+ description: 'Hook that wires the current form or flow into the exit-warning behavior. Use when building custom create UI that should trigger the exit warning.',
676
+ status: 'general-availability',
677
+ usageGuidelines: ['Use inside a component wrapped by LinkCreateExitWarningProvider when you need to register dirty state or trigger the exit warning modal.'],
678
+ accessibilityGuidelines: [],
679
+ keywords: ['link-create', 'hooks', 'exit', 'warning', 'useWithExitWarning'],
680
+ category: 'linking',
681
+ import: {
682
+ name: 'useWithExitWarning',
683
+ package: '@atlaskit/link-create',
684
+ type: 'named',
685
+ packagePath: '/Users/khall2/.codex/worktrees/bd80/atlassian-frontend-monorepo/platform/packages/linking-platform/link-create',
686
+ packageJson: {
687
+ name: '@atlaskit/link-create',
688
+ version: '6.1.0',
689
+ description: 'The driver component of meta creation flow',
690
+ author: 'Atlassian Pty Ltd',
691
+ license: 'Apache-2.0',
692
+ publishConfig: {
693
+ registry: 'https://registry.npmjs.org/'
694
+ },
695
+ atlassian: {
696
+ 'react-compiler': {
697
+ enabled: true,
698
+ gating: {
699
+ source: '@atlaskit/react-compiler-gating',
700
+ importSpecifierName: 'isReactCompilerActivePlatform'
701
+ }
702
+ },
703
+ team: 'Navigation Experiences - Linking Platform',
704
+ website: {
705
+ name: 'LinkCreate'
706
+ },
707
+ i18n: true
708
+ },
709
+ repository: 'https://bitbucket.org/atlassian/atlassian-frontend-mirror',
710
+ main: 'dist/cjs/index.js',
711
+ module: 'dist/esm/index.js',
712
+ 'module:es2019': 'dist/es2019/index.js',
713
+ types: 'dist/types/index.d.ts',
714
+ sideEffects: ['**/*.compiled.css'],
715
+ 'atlaskit:src': 'src/index.ts',
716
+ exports: {
717
+ '.': './src/index.ts',
718
+ './i18n/*': {
719
+ publish: null,
720
+ default: './src/i18n/*.ts'
721
+ },
722
+ './async-select': './src/entry-points/async-select.ts',
723
+ './callback-context': './src/entry-points/callback-context.ts',
724
+ './create-field': './src/entry-points/create-field.ts',
725
+ './create-form': './src/entry-points/create-form.ts',
726
+ './exit-warning-modal': './src/entry-points/exit-warning-modal.ts',
727
+ './final-form': './src/entry-points/final-form.ts',
728
+ './form-loader': './src/entry-points/form-loader.ts',
729
+ './form-spy': './src/entry-points/form-spy.ts',
730
+ './icons': './src/entry-points/icons.ts',
731
+ './inline-create': './src/entry-points/inline-create.ts',
732
+ './modal-create': './src/entry-points/modal-create.ts',
733
+ './select': './src/entry-points/select.ts',
734
+ './text-field': './src/entry-points/text-field.ts',
735
+ './types': './src/entry-points/types.ts',
736
+ './user-picker': './src/entry-points/user-picker.ts'
737
+ },
738
+ dependencies: {
739
+ '@atlaskit/afm-i18n-platform-linking-platform-link-create': 'root:*',
740
+ '@atlaskit/analytics-next': 'workspace:^',
741
+ '@atlaskit/atlassian-context': 'workspace:^',
742
+ '@atlaskit/button': 'workspace:^',
743
+ '@atlaskit/css': 'workspace:^',
744
+ '@atlaskit/empty-state': 'workspace:^',
745
+ '@atlaskit/form': 'workspace:^',
746
+ '@atlaskit/icon': 'workspace:^',
747
+ '@atlaskit/icon-file-type': 'workspace:^',
748
+ '@atlaskit/intl-messages-provider': 'workspace:^',
749
+ '@atlaskit/link': 'workspace:^',
750
+ '@atlaskit/linking-common': 'workspace:^',
751
+ '@atlaskit/modal-dialog': 'workspace:^',
752
+ '@atlaskit/object': 'workspace:^',
753
+ '@atlaskit/platform-feature-flags': 'workspace:^',
754
+ '@atlaskit/primitives': 'workspace:^',
755
+ '@atlaskit/react-compiler-gating': 'workspace:^',
756
+ '@atlaskit/select': 'workspace:^',
757
+ '@atlaskit/smart-user-picker': 'workspace:^',
758
+ '@atlaskit/spinner': 'workspace:^',
759
+ '@atlaskit/textfield': 'workspace:^',
760
+ '@atlaskit/theme': 'workspace:^',
761
+ '@atlaskit/tokens': 'workspace:^',
762
+ '@babel/runtime': 'root:*',
763
+ '@compiled/react': 'root:*',
764
+ 'debounce-promise': 'root:*',
765
+ 'final-form': 'root:*',
766
+ 'react-final-form': 'root:*'
767
+ },
768
+ peerDependencies: {
769
+ react: '^18.2.0',
770
+ 'react-intl': '^5.25.1 || ^6.0.0 || ^7.0.0'
771
+ },
772
+ devDependencies: {
773
+ '@af/accessibility-testing': 'workspace:^',
774
+ '@af/integration-testing': 'workspace:^',
775
+ '@af/visual-regression': 'workspace:^',
776
+ '@atlaskit/drawer': 'workspace:^',
777
+ '@atlaskit/link-test-helpers': 'workspace:^',
778
+ '@atlaskit/popup': 'workspace:^',
779
+ '@atlassian/a11y-jest-testing': 'workspace:^',
780
+ '@atlassian/feature-flags-test-utils': 'workspace:^',
781
+ '@atlassian/structured-docs-types': 'workspace:^',
782
+ '@testing-library/react': 'root:*',
783
+ '@testing-library/user-event': 'root:*',
784
+ '@types/debounce-promise': 'root:*',
785
+ 'fetch-mock': 'root:*',
786
+ react: 'root:*',
787
+ 'react-dom': 'root:*',
788
+ 'react-intl': 'root:*',
789
+ 'wait-for-expect': 'root:*'
790
+ },
791
+ scripts: {
792
+ 'codegen-analytics': "yarn run ts-analytics-codegen --command='yarn workspace @atlaskit/link-create run codegen-analytics'"
793
+ },
794
+ techstack: {
795
+ '@atlassian/frontend': {
796
+ 'code-structure': ['tangerine-next'],
797
+ 'import-structure': ['atlassian-conventions'],
798
+ 'circular-dependencies': ['file-and-folder-level']
799
+ },
800
+ '@repo/internal': {
801
+ 'dom-events': 'use-bind-event-listener',
802
+ analytics: ['analytics-next'],
803
+ theming: ['react-context', 'tokens'],
804
+ 'ui-components': ['lite-mode'],
805
+ deprecation: ['no-deprecated-imports'],
806
+ styling: ['static', 'compiled'],
807
+ imports: ['import-no-extraneous-disable-for-examples-and-docs']
808
+ }
809
+ },
810
+ 'platform-feature-flags': {},
811
+ compassUnitTestMetricSourceId: 'ari:cloud:compass:a436116f-02ce-4520-8fbb-7301462a1674:metric-source/c5751cc6-3513-4070-9deb-af31e86aed34/5ebc0bfb-9b6d-4ec0-adbe-e4d5e88ace44'
812
+ }
813
+ },
814
+ package: '@atlaskit/link-create',
815
+ examples: []
816
+ }, {
817
+ name: 'useSmartCardContext',
818
+ description: 'Hook to access the Smart Link context (store, client, config, extractors) from within the SmartCardProvider tree.',
819
+ status: 'general-availability',
820
+ usageGuidelines: ['Use when building custom components that need access to the link store, client, or extractors; must be used inside SmartCardProvider.'],
821
+ accessibilityGuidelines: [],
822
+ keywords: ['link-provider', 'hooks', 'context', 'useSmartCardContext'],
823
+ category: 'linking',
824
+ import: {
825
+ name: 'useSmartCardContext',
826
+ package: '@atlaskit/link-provider',
827
+ type: 'named',
828
+ packagePath: '/Users/khall2/.codex/worktrees/bd80/atlassian-frontend-monorepo/platform/packages/linking-platform/link-provider',
829
+ packageJson: {
830
+ name: '@atlaskit/link-provider',
831
+ version: '5.1.0',
832
+ description: 'Contains provider with react context for anything link related and the link http client',
833
+ author: 'Atlassian Pty Ltd',
834
+ license: 'Apache-2.0',
835
+ publishConfig: {
836
+ registry: 'https://registry.npmjs.org/'
837
+ },
838
+ atlassian: {
839
+ 'react-compiler': {
840
+ enabled: true,
841
+ gating: {
842
+ source: '@atlaskit/react-compiler-gating',
843
+ importSpecifierName: 'isReactCompilerActivePlatform'
844
+ }
845
+ },
846
+ team: 'Navigation Experiences - Linking Platform',
847
+ singleton: true,
848
+ website: {
849
+ name: 'SmartCardProvider'
850
+ }
851
+ },
852
+ repository: 'https://bitbucket.org/atlassian/atlassian-frontend-mirror',
853
+ main: 'dist/cjs/index.js',
854
+ module: 'dist/esm/index.js',
855
+ 'module:es2019': 'dist/es2019/index.js',
856
+ types: 'dist/types/index.d.ts',
857
+ sideEffects: false,
858
+ 'atlaskit:src': 'src/index.ts',
859
+ exports: {
860
+ '.': './src/index.ts',
861
+ './client': './src/client/index.ts',
862
+ './context': './src/state/context/index.tsx',
863
+ './editor': './src/editor/index.ts',
864
+ './provider': './src/provider.tsx',
865
+ './responses': './src/client/types/responses.ts',
866
+ './types': './src/state/context/types.ts'
867
+ },
868
+ dependencies: {
869
+ '@atlaskit/json-ld-types': 'workspace:^',
870
+ '@atlaskit/link-extractors': 'workspace:^',
871
+ '@atlaskit/linking-common': 'workspace:^',
872
+ '@atlaskit/platform-feature-flags': 'workspace:^',
873
+ '@atlaskit/react-compiler-gating': 'workspace:^',
874
+ '@babel/runtime': 'root:*',
875
+ 'async-retry': 'root:*',
876
+ dataloader: 'root:*',
877
+ lodash: 'root:*',
878
+ lru_map: 'root:*',
879
+ 'p-throttle': 'root:*',
880
+ redux: 'root:*'
881
+ },
882
+ peerDependencies: {
883
+ react: '^18.2.0'
884
+ },
885
+ devDependencies: {
886
+ '@atlaskit/linking-types': 'workspace:^',
887
+ '@atlaskit/media-test-helpers': 'workspace:^',
888
+ '@atlassian/feature-flags-test-utils': 'workspace:^',
889
+ '@atlassian/structured-docs-types': 'workspace:^',
890
+ '@testing-library/react': 'root:*',
891
+ '@types/async-retry': 'root:*',
892
+ '@types/redux': 'root:*',
893
+ react: 'root:*',
894
+ 'react-dom': 'root:*',
895
+ 'wait-for-expect': 'root:*'
896
+ },
897
+ 'platform-feature-flags': {
898
+ platform_linking_force_no_cache_smart_card_client: {
899
+ type: 'boolean'
900
+ },
901
+ 'navx-smartcard-auth-event-listener-killswitch-fg': {
902
+ type: 'boolean'
903
+ },
904
+ platform_smartlink_inline_resolve_optimization: {
905
+ type: 'boolean'
906
+ }
907
+ },
908
+ compassUnitTestMetricSourceId: 'ari:cloud:compass:a436116f-02ce-4520-8fbb-7301462a1674:metric-source/c5751cc6-3513-4070-9deb-af31e86aed34/186ef24b-75c6-4a0c-aaa3-4185737ea168'
909
+ }
910
+ },
911
+ package: '@atlaskit/link-provider',
912
+ examples: []
913
+ }, {
914
+ name: 'useSmartLinkContext',
915
+ description: 'Alias for useSmartCardContext. Hook to access the Smart Link context from within the SmartCardProvider tree.',
916
+ status: 'general-availability',
917
+ usageGuidelines: ['Use when building custom components that need the link store, client, or config; must be used inside SmartCardProvider.'],
918
+ accessibilityGuidelines: [],
919
+ keywords: ['link-provider', 'hooks', 'context', 'useSmartLinkContext'],
920
+ category: 'linking',
921
+ import: {
922
+ name: 'useSmartLinkContext',
923
+ package: '@atlaskit/link-provider',
924
+ type: 'named',
925
+ packagePath: '/Users/khall2/.codex/worktrees/bd80/atlassian-frontend-monorepo/platform/packages/linking-platform/link-provider',
926
+ packageJson: {
927
+ name: '@atlaskit/link-provider',
928
+ version: '5.1.0',
929
+ description: 'Contains provider with react context for anything link related and the link http client',
930
+ author: 'Atlassian Pty Ltd',
931
+ license: 'Apache-2.0',
932
+ publishConfig: {
933
+ registry: 'https://registry.npmjs.org/'
934
+ },
935
+ atlassian: {
936
+ 'react-compiler': {
937
+ enabled: true,
938
+ gating: {
939
+ source: '@atlaskit/react-compiler-gating',
940
+ importSpecifierName: 'isReactCompilerActivePlatform'
941
+ }
942
+ },
943
+ team: 'Navigation Experiences - Linking Platform',
944
+ singleton: true,
945
+ website: {
946
+ name: 'SmartCardProvider'
947
+ }
948
+ },
949
+ repository: 'https://bitbucket.org/atlassian/atlassian-frontend-mirror',
950
+ main: 'dist/cjs/index.js',
951
+ module: 'dist/esm/index.js',
952
+ 'module:es2019': 'dist/es2019/index.js',
953
+ types: 'dist/types/index.d.ts',
954
+ sideEffects: false,
955
+ 'atlaskit:src': 'src/index.ts',
956
+ exports: {
957
+ '.': './src/index.ts',
958
+ './client': './src/client/index.ts',
959
+ './context': './src/state/context/index.tsx',
960
+ './editor': './src/editor/index.ts',
961
+ './provider': './src/provider.tsx',
962
+ './responses': './src/client/types/responses.ts',
963
+ './types': './src/state/context/types.ts'
964
+ },
965
+ dependencies: {
966
+ '@atlaskit/json-ld-types': 'workspace:^',
967
+ '@atlaskit/link-extractors': 'workspace:^',
968
+ '@atlaskit/linking-common': 'workspace:^',
969
+ '@atlaskit/platform-feature-flags': 'workspace:^',
970
+ '@atlaskit/react-compiler-gating': 'workspace:^',
971
+ '@babel/runtime': 'root:*',
972
+ 'async-retry': 'root:*',
973
+ dataloader: 'root:*',
974
+ lodash: 'root:*',
975
+ lru_map: 'root:*',
976
+ 'p-throttle': 'root:*',
977
+ redux: 'root:*'
978
+ },
979
+ peerDependencies: {
980
+ react: '^18.2.0'
981
+ },
982
+ devDependencies: {
983
+ '@atlaskit/linking-types': 'workspace:^',
984
+ '@atlaskit/media-test-helpers': 'workspace:^',
985
+ '@atlassian/feature-flags-test-utils': 'workspace:^',
986
+ '@atlassian/structured-docs-types': 'workspace:^',
987
+ '@testing-library/react': 'root:*',
988
+ '@types/async-retry': 'root:*',
989
+ '@types/redux': 'root:*',
990
+ react: 'root:*',
991
+ 'react-dom': 'root:*',
992
+ 'wait-for-expect': 'root:*'
993
+ },
994
+ 'platform-feature-flags': {
995
+ platform_linking_force_no_cache_smart_card_client: {
996
+ type: 'boolean'
997
+ },
998
+ 'navx-smartcard-auth-event-listener-killswitch-fg': {
999
+ type: 'boolean'
1000
+ },
1001
+ platform_smartlink_inline_resolve_optimization: {
1002
+ type: 'boolean'
1003
+ }
1004
+ },
1005
+ compassUnitTestMetricSourceId: 'ari:cloud:compass:a436116f-02ce-4520-8fbb-7301462a1674:metric-source/c5751cc6-3513-4070-9deb-af31e86aed34/186ef24b-75c6-4a0c-aaa3-4185737ea168'
1006
+ }
1007
+ },
1008
+ package: '@atlaskit/link-provider',
1009
+ examples: []
1010
+ }, {
1011
+ name: 'useSmartLinkActions',
1012
+ description: 'Hook that extracts and returns actions for a given URL. Relies on Smart Link context; usages must be wrapped in SmartCardProvider or equivalent.',
1013
+ status: 'general-availability',
1014
+ usageGuidelines: ['Use when building custom action UI (buttons, menus) that should expose Smart Link actions (e.g. Preview, Open) for a given URL.'],
1015
+ accessibilityGuidelines: ['When rendering actions from this hook (e.g. buttons or menus), provide accessible labels (e.g. from action.text) and ensure keyboard support.'],
1016
+ keywords: ['smart-card', 'hooks', 'useSmartLinkActions', 'actions'],
1017
+ category: 'linking',
1018
+ import: {
1019
+ name: 'useSmartLinkActions',
1020
+ package: '@atlaskit/smart-card/hooks',
1021
+ type: 'named',
1022
+ packagePath: '/Users/khall2/.codex/worktrees/bd80/atlassian-frontend-monorepo/platform/packages/linking-platform/smart-card',
1023
+ packageJson: {
1024
+ name: '@atlaskit/smart-card',
1025
+ version: '45.6.0',
1026
+ description: 'Smart card component',
1027
+ publishConfig: {
1028
+ registry: 'https://registry.npmjs.org/'
1029
+ },
1030
+ repository: 'https://bitbucket.org/atlassian/atlassian-frontend-mirror',
1031
+ author: 'Atlassian Pty Ltd',
1032
+ license: 'Apache-2.0',
1033
+ main: 'dist/cjs/index.js',
1034
+ module: 'dist/esm/index.js',
1035
+ 'module:es2019': 'dist/es2019/index.js',
1036
+ types: 'dist/types/index.d.ts',
1037
+ sideEffects: ['**/*.compiled.css'],
1038
+ 'atlaskit:src': 'src/index.ts',
1039
+ atlassian: {
1040
+ i18n: true,
1041
+ 'react-compiler': {
1042
+ enabled: true,
1043
+ gating: {
1044
+ source: '@atlaskit/react-compiler-gating',
1045
+ importSpecifierName: 'isReactCompilerActivePlatform'
1046
+ }
1047
+ },
1048
+ team: 'Navigation Experiences - Linking Platform',
1049
+ website: {
1050
+ name: 'Smart Card'
1051
+ }
1052
+ },
1053
+ scripts: {
1054
+ 'analytics:codegen': 'yarn workspace @atlassian/analytics-tooling run analytics:codegen smart-card --output ./src/common/analytics/generated',
1055
+ 'ak-postbuild': 'ls -d dist/* | xargs -n 1 copyfiles -u 1 -V src/**/*.{svg,png}'
1056
+ },
1057
+ dependencies: {
1058
+ '@atlaskit/adf-utils': 'workspace:^',
1059
+ '@atlaskit/afm-i18n-platform-linking-platform-smart-card': 'root:*',
1060
+ '@atlaskit/analytics-cross-product': 'workspace:^',
1061
+ '@atlaskit/analytics-gas-types': 'workspace:^',
1062
+ '@atlaskit/analytics-next': 'workspace:^',
1063
+ '@atlaskit/avatar': 'workspace:^',
1064
+ '@atlaskit/avatar-group': 'workspace:^',
1065
+ '@atlaskit/badge': 'workspace:^',
1066
+ '@atlaskit/browser-apis': 'workspace:^',
1067
+ '@atlaskit/button': 'workspace:^',
1068
+ '@atlaskit/checkbox': 'workspace:^',
1069
+ '@atlaskit/css': 'workspace:^',
1070
+ '@atlaskit/dropdown-menu': 'workspace:^',
1071
+ '@atlaskit/embedded-confluence': 'workspace:^',
1072
+ '@atlaskit/feature-gate-js-client': 'workspace:^',
1073
+ '@atlaskit/flag': 'workspace:^',
1074
+ '@atlaskit/form': 'workspace:^',
1075
+ '@atlaskit/frontend-utilities': 'workspace:^',
1076
+ '@atlaskit/heading': 'workspace:^',
1077
+ '@atlaskit/icon': 'workspace:^',
1078
+ '@atlaskit/icon-file-type': 'workspace:^',
1079
+ '@atlaskit/icon-lab': 'workspace:^',
1080
+ '@atlaskit/image': 'workspace:^',
1081
+ '@atlaskit/json-ld-types': 'workspace:^',
1082
+ '@atlaskit/link': 'workspace:^',
1083
+ '@atlaskit/link-analytics': 'workspace:^',
1084
+ '@atlaskit/link-client-extension': 'workspace:^',
1085
+ '@atlaskit/link-extractors': 'workspace:^',
1086
+ '@atlaskit/link-test-helpers': 'workspace:^',
1087
+ '@atlaskit/linking-common': 'workspace:^',
1088
+ '@atlaskit/linking-types': 'workspace:^',
1089
+ '@atlaskit/logo': 'workspace:^',
1090
+ '@atlaskit/lozenge': 'workspace:^',
1091
+ '@atlaskit/menu': 'workspace:^',
1092
+ '@atlaskit/modal-dialog': 'workspace:^',
1093
+ '@atlaskit/motion': 'workspace:^',
1094
+ '@atlaskit/object': 'workspace:^',
1095
+ '@atlaskit/outbound-auth-flow-client': 'workspace:^',
1096
+ '@atlaskit/platform-feature-flags': 'workspace:^',
1097
+ '@atlaskit/platform-feature-flags-react': 'workspace:^',
1098
+ '@atlaskit/popup': 'workspace:^',
1099
+ '@atlaskit/primitives': 'workspace:^',
1100
+ '@atlaskit/react-compiler-gating': 'workspace:^',
1101
+ '@atlaskit/react-ufo': 'workspace:^',
1102
+ '@atlaskit/rovo-triggers': 'workspace:^',
1103
+ '@atlaskit/section-message': 'workspace:^',
1104
+ '@atlaskit/select': 'workspace:^',
1105
+ '@atlaskit/spinner': 'workspace:^',
1106
+ '@atlaskit/tag': 'workspace:^',
1107
+ '@atlaskit/textarea': 'workspace:^',
1108
+ '@atlaskit/textfield': 'workspace:^',
1109
+ '@atlaskit/theme': 'workspace:^',
1110
+ '@atlaskit/tile': 'workspace:^',
1111
+ '@atlaskit/tmp-editor-statsig': 'workspace:^',
1112
+ '@atlaskit/tokens': 'workspace:^',
1113
+ '@atlaskit/tooltip': 'workspace:^',
1114
+ '@atlaskit/ufo': 'workspace:^',
1115
+ '@atlaskit/width-detector': 'workspace:^',
1116
+ '@babel/runtime': 'root:*',
1117
+ '@compiled/react': 'root:*',
1118
+ '@formatjs/intl-utils': 'root:*',
1119
+ facepaint: 'root:*',
1120
+ lru_map: 'root:*',
1121
+ 'markdown-to-jsx': 'root:*',
1122
+ 'react-error-boundary': 'root:*',
1123
+ 'react-lazily-render': 'root:*',
1124
+ 'react-loadable': 'root:*',
1125
+ 'react-magnetic-di': 'root:*',
1126
+ 'react-render-image': 'root:*',
1127
+ 'use-sync-external-store': 'root:*',
1128
+ uuid: 'root:*'
1129
+ },
1130
+ peerDependencies: {
1131
+ '@atlaskit/link-provider': 'workspace:^',
1132
+ react: '^18.2.0',
1133
+ 'react-dom': '^18.2.0',
1134
+ 'react-intl': '^5.25.1 || ^6.0.0 || ^7.0.0'
1135
+ },
1136
+ devDependencies: {
1137
+ '@af/integration-testing': 'workspace:^',
1138
+ '@af/visual-regression': 'workspace:^',
1139
+ '@atlaskit/analytics-listeners': 'workspace:^',
1140
+ '@atlaskit/css-reset': 'workspace:^',
1141
+ '@atlaskit/media-test-helpers': 'workspace:^',
1142
+ '@atlaskit/ssr': 'workspace:^',
1143
+ '@atlassian/a11y-jest-testing': 'workspace:^',
1144
+ '@atlassian/analytics-tooling': 'workspace:^',
1145
+ '@atlassian/feature-flags-test-utils': 'workspace:^',
1146
+ '@atlassian/gemini': 'workspace:^',
1147
+ '@atlassian/structured-docs-types': 'workspace:^',
1148
+ '@atlassian/testing-library': 'workspace:^',
1149
+ '@testing-library/dom': 'root:*',
1150
+ '@testing-library/jest-dom': 'root:*',
1151
+ '@types/facepaint': 'root:*',
1152
+ '@types/lorem-ipsum': 'root:*',
1153
+ '@types/react': 'root:*',
1154
+ '@types/react-loadable': 'root:*',
1155
+ '@types/use-sync-external-store': 'root:*',
1156
+ 'abortcontroller-polyfill': 'root:*',
1157
+ brace: 'root:*',
1158
+ 'fetch-mock': 'root:*',
1159
+ 'jest-extended': 'root:*',
1160
+ 'jest-fetch-mock': 'root:*',
1161
+ 'jest-mock': 'root:*',
1162
+ jsdom: 'root:*',
1163
+ 'lorem-ipsum': 'root:*',
1164
+ react: 'root:*',
1165
+ 'react-ace': 'root:*',
1166
+ 'react-beautiful-dnd': 'root:*',
1167
+ 'react-dom': 'root:*',
1168
+ 'react-intl': 'root:*',
1169
+ 'react-test-renderer': 'root:*',
1170
+ 'ts-jest': 'root:*',
1171
+ 'xhr-mock': 'root:*'
1172
+ },
1173
+ techstack: {
1174
+ '@repo/internal': {
1175
+ 'design-tokens': ['color', 'spacing'],
1176
+ styling: ['compiled']
1177
+ },
1178
+ '@atlassian/frontend': {
1179
+ 'import-structure': ['atlassian-conventions'],
1180
+ 'circular-dependencies': ['file-and-folder-level']
1181
+ }
1182
+ },
1183
+ exports: {
1184
+ './analytics': './src/entry-points/analytics.ts',
1185
+ './analytics/types': './src/entry-points/analytics-types.ts',
1186
+ './card/lazy': './src/entry-points/card-lazy.ts',
1187
+ './card/types': './src/entry-points/card-types.ts',
1188
+ './class-names': './src/entry-points/class-names.ts',
1189
+ './embed-resize-message-listener': './src/entry-points/embed-resize-message-listener.ts',
1190
+ './enums': './src/entry-points/enums.ts',
1191
+ './expanded-frame': './src/entry-points/expanded-frame.ts',
1192
+ './flexible/assigned-to-element': './src/entry-points/flexible-assigned-to-element.tsx',
1193
+ './flexible/assigned-to-group-element': './src/entry-points/flexible-assigned-to-group-element.tsx',
1194
+ './flexible/attachment-count-element': './src/entry-points/flexible-attachment-count-element.tsx',
1195
+ './flexible/author-group-element': './src/entry-points/flexible-author-group-element.tsx',
1196
+ './flexible/checklist-progress-element': './src/entry-points/flexible-checklist-progress-element.tsx',
1197
+ './flexible/collaborator-group-element': './src/entry-points/flexible-collaborator-group-element.tsx',
1198
+ './flexible/comment-count-element': './src/entry-points/flexible-comment-count-element.tsx',
1199
+ './flexible/copy-link-action': './src/entry-points/flexible-copy-link-action.tsx',
1200
+ './flexible/created-by-element': './src/entry-points/flexible-created-by-element.tsx',
1201
+ './flexible/created-on-element': './src/entry-points/flexible-created-on-element.tsx',
1202
+ './flexible/custom-action': './src/entry-points/flexible-custom-action.tsx',
1203
+ './flexible/custom-block': './src/entry-points/flexible-custom-block.ts',
1204
+ './flexible/custom-by-access-type-element': './src/entry-points/flexible-custom-by-access-type-element.ts',
1205
+ './flexible/custom-by-status-element': './src/entry-points/flexible-custom-by-status-element.ts',
1206
+ './flexible/custom-unresolved-action': './src/entry-points/flexible-custom-unresolved-action.ts',
1207
+ './flexible/download-action': './src/entry-points/flexible-download-action.tsx',
1208
+ './flexible/due-on-element': './src/entry-points/flexible-due-on-element.tsx',
1209
+ './flexible/follow-action': './src/entry-points/flexible-follow-action.tsx',
1210
+ './flexible/footer-block': './src/entry-points/flexible-footer-block.ts',
1211
+ './flexible/latest-commit-element': './src/entry-points/flexible-latest-commit-element.tsx',
1212
+ './flexible/link-icon-element': './src/entry-points/flexible-link-icon-element.tsx',
1213
+ './flexible/location-element': './src/entry-points/flexible-location-element.tsx',
1214
+ './flexible/metadata-block': './src/entry-points/flexible-metadata-block.ts',
1215
+ './flexible/modified-by-element': './src/entry-points/flexible-modified-by-element.tsx',
1216
+ './flexible/modified-on-element': './src/entry-points/flexible-modified-on-element.tsx',
1217
+ './flexible/owned-by-element': './src/entry-points/flexible-owned-by-element.tsx',
1218
+ './flexible/owned-by-group-element': './src/entry-points/flexible-owned-by-group-element.tsx',
1219
+ './flexible/preview-action': './src/entry-points/flexible-preview-action.tsx',
1220
+ './flexible/preview-block': './src/entry-points/flexible-preview-block.ts',
1221
+ './flexible/preview-element': './src/entry-points/flexible-preview-element.tsx',
1222
+ './flexible/priority-element': './src/entry-points/flexible-priority-element.tsx',
1223
+ './flexible/programming-language-element': './src/entry-points/flexible-programming-language-element.tsx',
1224
+ './flexible/provider-element': './src/entry-points/flexible-provider-element.tsx',
1225
+ './flexible/react-count-element': './src/entry-points/flexible-react-count-element.tsx',
1226
+ './flexible/read-time-element': './src/entry-points/flexible-read-time-element.tsx',
1227
+ './flexible/sent-on-element': './src/entry-points/flexible-sent-on-element.tsx',
1228
+ './flexible/snippet-block': './src/entry-points/flexible-snippet-block.ts',
1229
+ './flexible/snippet-element': './src/entry-points/flexible-snippet-element.tsx',
1230
+ './flexible/source-branch-element': './src/entry-points/flexible-source-branch-element.tsx',
1231
+ './flexible/state-element': './src/entry-points/flexible-state-element.tsx',
1232
+ './flexible/story-points-element': './src/entry-points/flexible-story-points-element.tsx',
1233
+ './flexible/sub-tasks-progress-element': './src/entry-points/flexible-sub-tasks-progress-element.tsx',
1234
+ './flexible/subscriber-count-element': './src/entry-points/flexible-subscriber-count-element.tsx',
1235
+ './flexible/target-branch-element': './src/entry-points/flexible-target-branch-element.tsx',
1236
+ './flexible/title-block': './src/entry-points/flexible-title-block.ts',
1237
+ './flexible/title-element': './src/entry-points/flexible-title-element.tsx',
1238
+ './flexible/types': './src/entry-points/flexible-types.ts',
1239
+ './flexible/unresolved-action': './src/entry-points/flexible-unresolved-action.tsx',
1240
+ './flexible/view-count-element': './src/entry-points/flexible-view-count-element.tsx',
1241
+ './flexible/vote-count-element': './src/entry-points/flexible-vote-count-element.tsx',
1242
+ './hook/use-smart-link-actions': './src/entry-points/hook-use-smart-link-actions.ts',
1243
+ './hook/use-smart-link-destination-url': './src/entry-points/hook-use-smart-link-destination-url.ts',
1244
+ './hook/use-smart-link-events': './src/entry-points/hook-use-smart-link-events.ts',
1245
+ './hook/use-smart-link-reload': './src/entry-points/hook-use-smart-link-reload.ts',
1246
+ './hover': './src/entry-points/hover.ts',
1247
+ './hover/types': './src/entry-points/hover-types.ts',
1248
+ './link': './src/entry-points/link.ts',
1249
+ './link/types': './src/entry-points/link-types.ts',
1250
+ './ssr': './src/entry-points/ssr.ts',
1251
+ './types': './src/types.ts',
1252
+ './hooks': './src/hooks.ts',
1253
+ './hover-card': './src/hoverCard.ts',
1254
+ './link-url': './src/linkUrl.ts',
1255
+ './preload-lazy-card-with-url-content': './src/preloadLazyCardWithUrlContent.ts',
1256
+ './i18n/*': {
1257
+ publish: null,
1258
+ default: './src/i18n/*.ts'
1259
+ },
1260
+ '.': './src/index.ts'
1261
+ },
1262
+ 'platform-feature-flags': {
1263
+ platform_navx_3298_message_wrapper: {
1264
+ type: 'boolean'
1265
+ },
1266
+ platform_lp_use_entity_icon_url_for_icon: {
1267
+ type: 'boolean'
1268
+ },
1269
+ 'platform_bandicoots-smartlink-unresolved-error-key': {
1270
+ type: 'boolean'
1271
+ },
1272
+ 'platform-smart-card-shift-key': {
1273
+ type: 'boolean'
1274
+ },
1275
+ 'confluence-issue-terminology-refresh': {
1276
+ type: 'boolean'
1277
+ },
1278
+ platform_editor_content_mode_button_mvp: {
1279
+ type: 'boolean'
1280
+ },
1281
+ 'product-terminology-refresh': {
1282
+ type: 'boolean'
1283
+ },
1284
+ platform_smartlink_3pclick_analytics: {
1285
+ type: 'boolean'
1286
+ },
1287
+ platform_smartlink_xpc_url_wrapping: {
1288
+ type: 'boolean'
1289
+ },
1290
+ platform_smartlink_xpc_url_wrapping_window_existed: {
1291
+ type: 'boolean'
1292
+ },
1293
+ 'navx-1895-new-logo-design': {
1294
+ type: 'boolean'
1295
+ },
1296
+ 'jfp-magma-platform-lozenge-jump-fix': {
1297
+ type: 'boolean'
1298
+ },
1299
+ platform_sl_3p_auth_rovo_action_kill_switch: {
1300
+ type: 'boolean'
1301
+ },
1302
+ platform_sl_connect_account_flag: {
1303
+ type: 'boolean'
1304
+ },
1305
+ 'platform-dst-shape-theme-default': {
1306
+ type: 'boolean'
1307
+ },
1308
+ 'jpx-1074-smart-links-iframe': {
1309
+ type: 'boolean'
1310
+ },
1311
+ platform_sl_3p_preauth_better_hovercard_killswitch: {
1312
+ type: 'boolean'
1313
+ },
1314
+ platform_sl_3p_preauth_soc_proof_inline_killswitch: {
1315
+ type: 'boolean'
1316
+ },
1317
+ platform_lp_social_proof_inline_overflow_bug: {
1318
+ type: 'boolean'
1319
+ },
1320
+ platform_navx_smart_link_icon_label_a11y: {
1321
+ type: 'boolean'
1322
+ },
1323
+ billplat_a11y_icon_label_fix: {
1324
+ type: 'boolean',
1325
+ referenceOnly: true
1326
+ },
1327
+ 'platform-dst-lozenge-tag-badge-visual-uplifts': {
1328
+ type: 'boolean'
1329
+ },
1330
+ 'smart-card-inline-resolved-view-refactor': {
1331
+ type: 'boolean'
1332
+ },
1333
+ platform_sl_3p_auth_rovo_embed_footer_kill_switch: {
1334
+ type: 'boolean'
1335
+ },
1336
+ platform_sl_3p_auth_rovo_embed_footer_exp: {
1337
+ type: 'boolean',
1338
+ referenceOnly: true
1339
+ },
1340
+ 'dfo-fix-preview-dynamic-style': {
1341
+ type: 'boolean'
1342
+ },
1343
+ platform_sl_icons_refactor: {
1344
+ type: 'boolean'
1345
+ },
1346
+ 'social-proof-3p-unauth-block-fg': {
1347
+ type: 'boolean'
1348
+ },
1349
+ platform_sl_incoming_outgoing_tenant_info_killswitch: {
1350
+ type: 'boolean'
1351
+ },
1352
+ platform_navx_block_card_footer_spacing: {
1353
+ type: 'boolean'
1354
+ },
1355
+ 'navx-4957-sl-embed-modal-a11y-label': {
1356
+ type: 'boolean'
1357
+ },
1358
+ platform_sl_3p_post_auth_chat_open_fg: {
1359
+ type: 'boolean'
1360
+ },
1361
+ platform_sl_3p_auth_inline_tailored_cta_killswitch: {
1362
+ type: 'boolean'
1363
+ },
1364
+ platform_smartlink_inline_resolve_optimization: {
1365
+ type: 'boolean'
1366
+ },
1367
+ dfo_issue_view_remote_data_srr_group: {
1368
+ type: 'boolean'
1369
+ }
1370
+ },
1371
+ compassUnitTestMetricSourceId: 'ari:cloud:compass:a436116f-02ce-4520-8fbb-7301462a1674:metric-source/c5751cc6-3513-4070-9deb-af31e86aed34/f74ef1bc-7240-4aac-9dc8-9dc43b502089'
1372
+ }
1373
+ },
1374
+ package: '@atlaskit/smart-card',
1375
+ examples: ["import React, { useCallback } from 'react';\nimport Button from '@atlaskit/button/new';\nimport { SmartCardProvider } from '@atlaskit/link-provider';\nimport { ResolvedClient, ResolvedClientUrl } from '@atlaskit/link-test-helpers';\nimport { Box } from '@atlaskit/primitives/compiled';\nimport { Card } from '../../src';\nimport { CardAction } from '../../src/constants';\nimport { useSmartLinkActions } from '../../src/hooks';\nimport ExampleContainer from './example-container';\nconst PreviewButton = ({ url }: { url: string }) => {\n\tconst actions = useSmartLinkActions({ url, appearance: 'block' });\n\t// actions are returned in an array, find the preview action\n\tconst previewAction = actions.find((action) => action.id === 'preview-content');\n\tconst handleClick = useCallback(() => {\n\t\tif (previewAction) {\n\t\t\tpreviewAction.invoke();\n\t\t}\n\t}, [previewAction]);\n\tif (!previewAction) {\n\t\treturn null;\n\t}\n\treturn <Button onClick={handleClick}>{previewAction.text}</Button>;\n};\nconst UseSmartLinkActionsExample = (): React.JSX.Element => (\n\t<ExampleContainer>\n\t\t<SmartCardProvider client={new ResolvedClient()}>\n\t\t\t<Card\n\t\t\t\tappearance=\"block\"\n\t\t\t\turl={ResolvedClientUrl}\n\t\t\t\tactionOptions={{ hide: false, exclude: [CardAction.PreviewAction] }}\n\t\t\t/>\n\t\t\t<Box paddingBlockStart=\"space.200\">\n\t\t\t\t<PreviewButton url={ResolvedClientUrl} />\n\t\t\t</Box>\n\t\t</SmartCardProvider>\n\t</ExampleContainer>\n);\nexport default UseSmartLinkActionsExample;"]
1376
+ }, {
1377
+ name: 'useSmartLinkEvents',
1378
+ description: 'Hook that returns a SmartLinkEvents object for dispatching analytics events for a given URL. Currently supports insertSmartLink.',
1379
+ status: 'general-availability',
1380
+ usageGuidelines: ['Use when you need to fire Smart Link analytics (e.g. insert events) from custom UI that is not the default Card.'],
1381
+ accessibilityGuidelines: ['Use analytics events to understand usage; ensure event wiring does not change focus, interrupt screen readers, or alter semantics.'],
1382
+ keywords: ['smart-card', 'hooks', 'analytics', 'useSmartLinkEvents', 'events'],
1383
+ category: 'linking',
1384
+ import: {
1385
+ name: 'useSmartLinkEvents',
1386
+ package: '@atlaskit/smart-card',
1387
+ type: 'named',
1388
+ packagePath: '/Users/khall2/.codex/worktrees/bd80/atlassian-frontend-monorepo/platform/packages/linking-platform/smart-card',
1389
+ packageJson: {
1390
+ name: '@atlaskit/smart-card',
1391
+ version: '45.6.0',
1392
+ description: 'Smart card component',
1393
+ publishConfig: {
1394
+ registry: 'https://registry.npmjs.org/'
1395
+ },
1396
+ repository: 'https://bitbucket.org/atlassian/atlassian-frontend-mirror',
1397
+ author: 'Atlassian Pty Ltd',
1398
+ license: 'Apache-2.0',
1399
+ main: 'dist/cjs/index.js',
1400
+ module: 'dist/esm/index.js',
1401
+ 'module:es2019': 'dist/es2019/index.js',
1402
+ types: 'dist/types/index.d.ts',
1403
+ sideEffects: ['**/*.compiled.css'],
1404
+ 'atlaskit:src': 'src/index.ts',
1405
+ atlassian: {
1406
+ i18n: true,
1407
+ 'react-compiler': {
1408
+ enabled: true,
1409
+ gating: {
1410
+ source: '@atlaskit/react-compiler-gating',
1411
+ importSpecifierName: 'isReactCompilerActivePlatform'
1412
+ }
1413
+ },
1414
+ team: 'Navigation Experiences - Linking Platform',
1415
+ website: {
1416
+ name: 'Smart Card'
1417
+ }
1418
+ },
1419
+ scripts: {
1420
+ 'analytics:codegen': 'yarn workspace @atlassian/analytics-tooling run analytics:codegen smart-card --output ./src/common/analytics/generated',
1421
+ 'ak-postbuild': 'ls -d dist/* | xargs -n 1 copyfiles -u 1 -V src/**/*.{svg,png}'
1422
+ },
1423
+ dependencies: {
1424
+ '@atlaskit/adf-utils': 'workspace:^',
1425
+ '@atlaskit/afm-i18n-platform-linking-platform-smart-card': 'root:*',
1426
+ '@atlaskit/analytics-cross-product': 'workspace:^',
1427
+ '@atlaskit/analytics-gas-types': 'workspace:^',
1428
+ '@atlaskit/analytics-next': 'workspace:^',
1429
+ '@atlaskit/avatar': 'workspace:^',
1430
+ '@atlaskit/avatar-group': 'workspace:^',
1431
+ '@atlaskit/badge': 'workspace:^',
1432
+ '@atlaskit/browser-apis': 'workspace:^',
1433
+ '@atlaskit/button': 'workspace:^',
1434
+ '@atlaskit/checkbox': 'workspace:^',
1435
+ '@atlaskit/css': 'workspace:^',
1436
+ '@atlaskit/dropdown-menu': 'workspace:^',
1437
+ '@atlaskit/embedded-confluence': 'workspace:^',
1438
+ '@atlaskit/feature-gate-js-client': 'workspace:^',
1439
+ '@atlaskit/flag': 'workspace:^',
1440
+ '@atlaskit/form': 'workspace:^',
1441
+ '@atlaskit/frontend-utilities': 'workspace:^',
1442
+ '@atlaskit/heading': 'workspace:^',
1443
+ '@atlaskit/icon': 'workspace:^',
1444
+ '@atlaskit/icon-file-type': 'workspace:^',
1445
+ '@atlaskit/icon-lab': 'workspace:^',
1446
+ '@atlaskit/image': 'workspace:^',
1447
+ '@atlaskit/json-ld-types': 'workspace:^',
1448
+ '@atlaskit/link': 'workspace:^',
1449
+ '@atlaskit/link-analytics': 'workspace:^',
1450
+ '@atlaskit/link-client-extension': 'workspace:^',
1451
+ '@atlaskit/link-extractors': 'workspace:^',
1452
+ '@atlaskit/link-test-helpers': 'workspace:^',
1453
+ '@atlaskit/linking-common': 'workspace:^',
1454
+ '@atlaskit/linking-types': 'workspace:^',
1455
+ '@atlaskit/logo': 'workspace:^',
1456
+ '@atlaskit/lozenge': 'workspace:^',
1457
+ '@atlaskit/menu': 'workspace:^',
1458
+ '@atlaskit/modal-dialog': 'workspace:^',
1459
+ '@atlaskit/motion': 'workspace:^',
1460
+ '@atlaskit/object': 'workspace:^',
1461
+ '@atlaskit/outbound-auth-flow-client': 'workspace:^',
1462
+ '@atlaskit/platform-feature-flags': 'workspace:^',
1463
+ '@atlaskit/platform-feature-flags-react': 'workspace:^',
1464
+ '@atlaskit/popup': 'workspace:^',
1465
+ '@atlaskit/primitives': 'workspace:^',
1466
+ '@atlaskit/react-compiler-gating': 'workspace:^',
1467
+ '@atlaskit/react-ufo': 'workspace:^',
1468
+ '@atlaskit/rovo-triggers': 'workspace:^',
1469
+ '@atlaskit/section-message': 'workspace:^',
1470
+ '@atlaskit/select': 'workspace:^',
1471
+ '@atlaskit/spinner': 'workspace:^',
1472
+ '@atlaskit/tag': 'workspace:^',
1473
+ '@atlaskit/textarea': 'workspace:^',
1474
+ '@atlaskit/textfield': 'workspace:^',
1475
+ '@atlaskit/theme': 'workspace:^',
1476
+ '@atlaskit/tile': 'workspace:^',
1477
+ '@atlaskit/tmp-editor-statsig': 'workspace:^',
1478
+ '@atlaskit/tokens': 'workspace:^',
1479
+ '@atlaskit/tooltip': 'workspace:^',
1480
+ '@atlaskit/ufo': 'workspace:^',
1481
+ '@atlaskit/width-detector': 'workspace:^',
1482
+ '@babel/runtime': 'root:*',
1483
+ '@compiled/react': 'root:*',
1484
+ '@formatjs/intl-utils': 'root:*',
1485
+ facepaint: 'root:*',
1486
+ lru_map: 'root:*',
1487
+ 'markdown-to-jsx': 'root:*',
1488
+ 'react-error-boundary': 'root:*',
1489
+ 'react-lazily-render': 'root:*',
1490
+ 'react-loadable': 'root:*',
1491
+ 'react-magnetic-di': 'root:*',
1492
+ 'react-render-image': 'root:*',
1493
+ 'use-sync-external-store': 'root:*',
1494
+ uuid: 'root:*'
1495
+ },
1496
+ peerDependencies: {
1497
+ '@atlaskit/link-provider': 'workspace:^',
1498
+ react: '^18.2.0',
1499
+ 'react-dom': '^18.2.0',
1500
+ 'react-intl': '^5.25.1 || ^6.0.0 || ^7.0.0'
1501
+ },
1502
+ devDependencies: {
1503
+ '@af/integration-testing': 'workspace:^',
1504
+ '@af/visual-regression': 'workspace:^',
1505
+ '@atlaskit/analytics-listeners': 'workspace:^',
1506
+ '@atlaskit/css-reset': 'workspace:^',
1507
+ '@atlaskit/media-test-helpers': 'workspace:^',
1508
+ '@atlaskit/ssr': 'workspace:^',
1509
+ '@atlassian/a11y-jest-testing': 'workspace:^',
1510
+ '@atlassian/analytics-tooling': 'workspace:^',
1511
+ '@atlassian/feature-flags-test-utils': 'workspace:^',
1512
+ '@atlassian/gemini': 'workspace:^',
1513
+ '@atlassian/structured-docs-types': 'workspace:^',
1514
+ '@atlassian/testing-library': 'workspace:^',
1515
+ '@testing-library/dom': 'root:*',
1516
+ '@testing-library/jest-dom': 'root:*',
1517
+ '@types/facepaint': 'root:*',
1518
+ '@types/lorem-ipsum': 'root:*',
1519
+ '@types/react': 'root:*',
1520
+ '@types/react-loadable': 'root:*',
1521
+ '@types/use-sync-external-store': 'root:*',
1522
+ 'abortcontroller-polyfill': 'root:*',
1523
+ brace: 'root:*',
1524
+ 'fetch-mock': 'root:*',
1525
+ 'jest-extended': 'root:*',
1526
+ 'jest-fetch-mock': 'root:*',
1527
+ 'jest-mock': 'root:*',
1528
+ jsdom: 'root:*',
1529
+ 'lorem-ipsum': 'root:*',
1530
+ react: 'root:*',
1531
+ 'react-ace': 'root:*',
1532
+ 'react-beautiful-dnd': 'root:*',
1533
+ 'react-dom': 'root:*',
1534
+ 'react-intl': 'root:*',
1535
+ 'react-test-renderer': 'root:*',
1536
+ 'ts-jest': 'root:*',
1537
+ 'xhr-mock': 'root:*'
1538
+ },
1539
+ techstack: {
1540
+ '@repo/internal': {
1541
+ 'design-tokens': ['color', 'spacing'],
1542
+ styling: ['compiled']
1543
+ },
1544
+ '@atlassian/frontend': {
1545
+ 'import-structure': ['atlassian-conventions'],
1546
+ 'circular-dependencies': ['file-and-folder-level']
1547
+ }
1548
+ },
1549
+ exports: {
1550
+ './analytics': './src/entry-points/analytics.ts',
1551
+ './analytics/types': './src/entry-points/analytics-types.ts',
1552
+ './card/lazy': './src/entry-points/card-lazy.ts',
1553
+ './card/types': './src/entry-points/card-types.ts',
1554
+ './class-names': './src/entry-points/class-names.ts',
1555
+ './embed-resize-message-listener': './src/entry-points/embed-resize-message-listener.ts',
1556
+ './enums': './src/entry-points/enums.ts',
1557
+ './expanded-frame': './src/entry-points/expanded-frame.ts',
1558
+ './flexible/assigned-to-element': './src/entry-points/flexible-assigned-to-element.tsx',
1559
+ './flexible/assigned-to-group-element': './src/entry-points/flexible-assigned-to-group-element.tsx',
1560
+ './flexible/attachment-count-element': './src/entry-points/flexible-attachment-count-element.tsx',
1561
+ './flexible/author-group-element': './src/entry-points/flexible-author-group-element.tsx',
1562
+ './flexible/checklist-progress-element': './src/entry-points/flexible-checklist-progress-element.tsx',
1563
+ './flexible/collaborator-group-element': './src/entry-points/flexible-collaborator-group-element.tsx',
1564
+ './flexible/comment-count-element': './src/entry-points/flexible-comment-count-element.tsx',
1565
+ './flexible/copy-link-action': './src/entry-points/flexible-copy-link-action.tsx',
1566
+ './flexible/created-by-element': './src/entry-points/flexible-created-by-element.tsx',
1567
+ './flexible/created-on-element': './src/entry-points/flexible-created-on-element.tsx',
1568
+ './flexible/custom-action': './src/entry-points/flexible-custom-action.tsx',
1569
+ './flexible/custom-block': './src/entry-points/flexible-custom-block.ts',
1570
+ './flexible/custom-by-access-type-element': './src/entry-points/flexible-custom-by-access-type-element.ts',
1571
+ './flexible/custom-by-status-element': './src/entry-points/flexible-custom-by-status-element.ts',
1572
+ './flexible/custom-unresolved-action': './src/entry-points/flexible-custom-unresolved-action.ts',
1573
+ './flexible/download-action': './src/entry-points/flexible-download-action.tsx',
1574
+ './flexible/due-on-element': './src/entry-points/flexible-due-on-element.tsx',
1575
+ './flexible/follow-action': './src/entry-points/flexible-follow-action.tsx',
1576
+ './flexible/footer-block': './src/entry-points/flexible-footer-block.ts',
1577
+ './flexible/latest-commit-element': './src/entry-points/flexible-latest-commit-element.tsx',
1578
+ './flexible/link-icon-element': './src/entry-points/flexible-link-icon-element.tsx',
1579
+ './flexible/location-element': './src/entry-points/flexible-location-element.tsx',
1580
+ './flexible/metadata-block': './src/entry-points/flexible-metadata-block.ts',
1581
+ './flexible/modified-by-element': './src/entry-points/flexible-modified-by-element.tsx',
1582
+ './flexible/modified-on-element': './src/entry-points/flexible-modified-on-element.tsx',
1583
+ './flexible/owned-by-element': './src/entry-points/flexible-owned-by-element.tsx',
1584
+ './flexible/owned-by-group-element': './src/entry-points/flexible-owned-by-group-element.tsx',
1585
+ './flexible/preview-action': './src/entry-points/flexible-preview-action.tsx',
1586
+ './flexible/preview-block': './src/entry-points/flexible-preview-block.ts',
1587
+ './flexible/preview-element': './src/entry-points/flexible-preview-element.tsx',
1588
+ './flexible/priority-element': './src/entry-points/flexible-priority-element.tsx',
1589
+ './flexible/programming-language-element': './src/entry-points/flexible-programming-language-element.tsx',
1590
+ './flexible/provider-element': './src/entry-points/flexible-provider-element.tsx',
1591
+ './flexible/react-count-element': './src/entry-points/flexible-react-count-element.tsx',
1592
+ './flexible/read-time-element': './src/entry-points/flexible-read-time-element.tsx',
1593
+ './flexible/sent-on-element': './src/entry-points/flexible-sent-on-element.tsx',
1594
+ './flexible/snippet-block': './src/entry-points/flexible-snippet-block.ts',
1595
+ './flexible/snippet-element': './src/entry-points/flexible-snippet-element.tsx',
1596
+ './flexible/source-branch-element': './src/entry-points/flexible-source-branch-element.tsx',
1597
+ './flexible/state-element': './src/entry-points/flexible-state-element.tsx',
1598
+ './flexible/story-points-element': './src/entry-points/flexible-story-points-element.tsx',
1599
+ './flexible/sub-tasks-progress-element': './src/entry-points/flexible-sub-tasks-progress-element.tsx',
1600
+ './flexible/subscriber-count-element': './src/entry-points/flexible-subscriber-count-element.tsx',
1601
+ './flexible/target-branch-element': './src/entry-points/flexible-target-branch-element.tsx',
1602
+ './flexible/title-block': './src/entry-points/flexible-title-block.ts',
1603
+ './flexible/title-element': './src/entry-points/flexible-title-element.tsx',
1604
+ './flexible/types': './src/entry-points/flexible-types.ts',
1605
+ './flexible/unresolved-action': './src/entry-points/flexible-unresolved-action.tsx',
1606
+ './flexible/view-count-element': './src/entry-points/flexible-view-count-element.tsx',
1607
+ './flexible/vote-count-element': './src/entry-points/flexible-vote-count-element.tsx',
1608
+ './hook/use-smart-link-actions': './src/entry-points/hook-use-smart-link-actions.ts',
1609
+ './hook/use-smart-link-destination-url': './src/entry-points/hook-use-smart-link-destination-url.ts',
1610
+ './hook/use-smart-link-events': './src/entry-points/hook-use-smart-link-events.ts',
1611
+ './hook/use-smart-link-reload': './src/entry-points/hook-use-smart-link-reload.ts',
1612
+ './hover': './src/entry-points/hover.ts',
1613
+ './hover/types': './src/entry-points/hover-types.ts',
1614
+ './link': './src/entry-points/link.ts',
1615
+ './link/types': './src/entry-points/link-types.ts',
1616
+ './ssr': './src/entry-points/ssr.ts',
1617
+ './types': './src/types.ts',
1618
+ './hooks': './src/hooks.ts',
1619
+ './hover-card': './src/hoverCard.ts',
1620
+ './link-url': './src/linkUrl.ts',
1621
+ './preload-lazy-card-with-url-content': './src/preloadLazyCardWithUrlContent.ts',
1622
+ './i18n/*': {
1623
+ publish: null,
1624
+ default: './src/i18n/*.ts'
1625
+ },
1626
+ '.': './src/index.ts'
1627
+ },
1628
+ 'platform-feature-flags': {
1629
+ platform_navx_3298_message_wrapper: {
1630
+ type: 'boolean'
1631
+ },
1632
+ platform_lp_use_entity_icon_url_for_icon: {
1633
+ type: 'boolean'
1634
+ },
1635
+ 'platform_bandicoots-smartlink-unresolved-error-key': {
1636
+ type: 'boolean'
1637
+ },
1638
+ 'platform-smart-card-shift-key': {
1639
+ type: 'boolean'
1640
+ },
1641
+ 'confluence-issue-terminology-refresh': {
1642
+ type: 'boolean'
1643
+ },
1644
+ platform_editor_content_mode_button_mvp: {
1645
+ type: 'boolean'
1646
+ },
1647
+ 'product-terminology-refresh': {
1648
+ type: 'boolean'
1649
+ },
1650
+ platform_smartlink_3pclick_analytics: {
1651
+ type: 'boolean'
1652
+ },
1653
+ platform_smartlink_xpc_url_wrapping: {
1654
+ type: 'boolean'
1655
+ },
1656
+ platform_smartlink_xpc_url_wrapping_window_existed: {
1657
+ type: 'boolean'
1658
+ },
1659
+ 'navx-1895-new-logo-design': {
1660
+ type: 'boolean'
1661
+ },
1662
+ 'jfp-magma-platform-lozenge-jump-fix': {
1663
+ type: 'boolean'
1664
+ },
1665
+ platform_sl_3p_auth_rovo_action_kill_switch: {
1666
+ type: 'boolean'
1667
+ },
1668
+ platform_sl_connect_account_flag: {
1669
+ type: 'boolean'
1670
+ },
1671
+ 'platform-dst-shape-theme-default': {
1672
+ type: 'boolean'
1673
+ },
1674
+ 'jpx-1074-smart-links-iframe': {
1675
+ type: 'boolean'
1676
+ },
1677
+ platform_sl_3p_preauth_better_hovercard_killswitch: {
1678
+ type: 'boolean'
1679
+ },
1680
+ platform_sl_3p_preauth_soc_proof_inline_killswitch: {
1681
+ type: 'boolean'
1682
+ },
1683
+ platform_lp_social_proof_inline_overflow_bug: {
1684
+ type: 'boolean'
1685
+ },
1686
+ platform_navx_smart_link_icon_label_a11y: {
1687
+ type: 'boolean'
1688
+ },
1689
+ billplat_a11y_icon_label_fix: {
1690
+ type: 'boolean',
1691
+ referenceOnly: true
1692
+ },
1693
+ 'platform-dst-lozenge-tag-badge-visual-uplifts': {
1694
+ type: 'boolean'
1695
+ },
1696
+ 'smart-card-inline-resolved-view-refactor': {
1697
+ type: 'boolean'
1698
+ },
1699
+ platform_sl_3p_auth_rovo_embed_footer_kill_switch: {
1700
+ type: 'boolean'
1701
+ },
1702
+ platform_sl_3p_auth_rovo_embed_footer_exp: {
1703
+ type: 'boolean',
1704
+ referenceOnly: true
1705
+ },
1706
+ 'dfo-fix-preview-dynamic-style': {
1707
+ type: 'boolean'
1708
+ },
1709
+ platform_sl_icons_refactor: {
1710
+ type: 'boolean'
1711
+ },
1712
+ 'social-proof-3p-unauth-block-fg': {
1713
+ type: 'boolean'
1714
+ },
1715
+ platform_sl_incoming_outgoing_tenant_info_killswitch: {
1716
+ type: 'boolean'
1717
+ },
1718
+ platform_navx_block_card_footer_spacing: {
1719
+ type: 'boolean'
1720
+ },
1721
+ 'navx-4957-sl-embed-modal-a11y-label': {
1722
+ type: 'boolean'
1723
+ },
1724
+ platform_sl_3p_post_auth_chat_open_fg: {
1725
+ type: 'boolean'
1726
+ },
1727
+ platform_sl_3p_auth_inline_tailored_cta_killswitch: {
1728
+ type: 'boolean'
1729
+ },
1730
+ platform_smartlink_inline_resolve_optimization: {
1731
+ type: 'boolean'
1732
+ },
1733
+ dfo_issue_view_remote_data_srr_group: {
1734
+ type: 'boolean'
1735
+ }
1736
+ },
1737
+ compassUnitTestMetricSourceId: 'ari:cloud:compass:a436116f-02ce-4520-8fbb-7301462a1674:metric-source/c5751cc6-3513-4070-9deb-af31e86aed34/f74ef1bc-7240-4aac-9dc8-9dc43b502089'
1738
+ }
1739
+ },
1740
+ package: '@atlaskit/smart-card',
1741
+ examples: ["import {\n\tAnalyticsContext,\n\tAnalyticsListener,\n\ttype UIAnalyticsEvent,\n} from '@atlaskit/analytics-next';\nimport Heading from '@atlaskit/heading';\nimport { SmartCardProvider } from '@atlaskit/link-provider';\nimport { ResolvedClient, ResolvedClientUrl } from '@atlaskit/link-test-helpers';\nimport { Box, Text, xcss } from '@atlaskit/primitives';\nimport { Card } from '../../src';\nconst headingBoxStyles = xcss({\n\tmarginBottom: 'space.100',\n});\nconst stackBoxStyles = xcss({\n\tmarginTop: 'space.100',\n});\ntype ExampleComponentProps = {\n\tsetRecentEvents: React.Dispatch<React.SetStateAction<UIAnalyticsEvent[]>>;\n};\nconst ExampleComponent = ({ setRecentEvents }: ExampleComponentProps): JSX.Element => {\n\tconst handleOnClick = React.useCallback(\n\t\t(e: React.MouseEvent<Element, MouseEvent> | React.KeyboardEvent<Element>) => {\n\t\t\te.preventDefault();\n\t\t\treturn;\n\t\t},\n\t\t[],\n\t);\n\treturn (\n\t\t<AnalyticsListener\n\t\t\tonEvent={(event) => {\n\t\t\t\tsetRecentEvents((prevEvents) => [...prevEvents, event]);\n\t\t\t}}\n\t\t\tchannel=\"*\"\n\t\t>\n\t\t\t<AnalyticsContext\n\t\t\t\tdata={{\n\t\t\t\t\tsource: 'content',\n\t\t\t\t\tattributes: {\n\t\t\t\t\t\tdisplayCategory: 'link',\n\t\t\t\t\t\tdisplay: 'url',\n\t\t\t\t\t\tid: '123',\n\t\t\t\t\t},\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t<SmartCardProvider client={new ResolvedClient('dev')}>\n\t\t\t\t\t<Card\n\t\t\t\t\t\turl={ResolvedClientUrl}\n\t\t\t\t\t\tappearance=\"inline\"\n\t\t\t\t\t\tplatform=\"web\"\n\t\t\t\t\t\tshowHoverPreview={true}\n\t\t\t\t\t\tonClick={handleOnClick}\n\t\t\t\t\t/>\n\t\t\t\t</SmartCardProvider>\n\t\t\t</AnalyticsContext>\n\t\t</AnalyticsListener>\n\t);\n};\nexport default (): React.JSX.Element => {\n\tconst [recentEvents, setRecentEvents] = React.useState<UIAnalyticsEvent[]>([]);\n\tconst mostRecent10Events = React.useMemo(() => {\n\t\treturn Array.from({ length: 10 }, (_, i) => {\n\t\t\treturn recentEvents.at(recentEvents.length - i - 1);\n\t\t});\n\t}, [recentEvents]);\n\treturn (\n\t\t<Box>\n\t\t\t<Box xcss={headingBoxStyles}>\n\t\t\t\t<Heading size=\"medium\">Interact with the link below and see events being fired</Heading>\n\t\t\t</Box>\n\t\t\t<ExampleComponent setRecentEvents={setRecentEvents} />\n\t\t\t<Box xcss={stackBoxStyles}>\n\t\t\t\t<Heading size=\"small\">The 10 Most Recent Events Fired</Heading>\n\t\t\t\t<ol>\n\t\t\t\t\t{mostRecent10Events.map((event, index) => {\n\t\t\t\t\t\tif (event === undefined) {\n\t\t\t\t\t\t\treturn <li key={index}></li>;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tconst { action, actionSubject, eventType } = event.payload;\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t<li key={index}>\n\t\t\t\t\t\t\t\t<Text\n\t\t\t\t\t\t\t\t\tkey={index}\n\t\t\t\t\t\t\t\t>{`actionSubject: ${actionSubject}, action: ${action}, eventType: ${eventType}`}</Text>\n\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t);\n\t\t\t\t\t})}\n\t\t\t\t</ol>\n\t\t\t</Box>\n\t\t</Box>\n\t);\n};"]
200
1742
  }];