@atlaskit/smart-card 19.1.27 → 19.1.30

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 (85) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/cjs/constants.js +3 -1
  3. package/dist/cjs/extractors/flexible/index.js +4 -2
  4. package/dist/cjs/extractors/flexible/utils.js +24 -2
  5. package/dist/cjs/extractors/hover/extractMetadata.js +3 -2
  6. package/dist/cjs/version.json +1 -1
  7. package/dist/cjs/view/CardWithUrl/component.js +9 -1
  8. package/dist/cjs/view/FlexibleCard/components/blocks/block/index.js +1 -1
  9. package/dist/cjs/view/FlexibleCard/components/blocks/utils.js +1 -1
  10. package/dist/cjs/view/FlexibleCard/components/elements/avatar-group/index.js +2 -0
  11. package/dist/cjs/view/FlexibleCard/components/elements/badge/index.js +2 -0
  12. package/dist/cjs/view/FlexibleCard/components/elements/date-time/index.js +2 -0
  13. package/dist/cjs/view/FlexibleCard/components/elements/icon/index.js +2 -0
  14. package/dist/cjs/view/FlexibleCard/components/elements/index.js +17 -3
  15. package/dist/cjs/view/FlexibleCard/components/elements/link/index.js +2 -0
  16. package/dist/cjs/view/FlexibleCard/components/elements/lozenge/index.js +2 -0
  17. package/dist/cjs/view/FlexibleCard/components/elements/media/index.js +3 -1
  18. package/dist/cjs/view/FlexibleCard/components/elements/text/index.js +2 -0
  19. package/dist/cjs/view/FlexibleCard/components/elements/utils.js +20 -12
  20. package/dist/cjs/view/HoverCard/components/hover-card-content.js +12 -5
  21. package/dist/cjs/view/HoverCard/index.js +1 -1
  22. package/dist/cjs/view/HoverCard/styled.js +8 -5
  23. package/dist/cjs/view/HoverCard/utils.js +27 -3
  24. package/dist/es2019/constants.js +3 -1
  25. package/dist/es2019/extractors/flexible/index.js +5 -3
  26. package/dist/es2019/extractors/flexible/utils.js +9 -1
  27. package/dist/es2019/extractors/hover/extractMetadata.js +3 -2
  28. package/dist/es2019/version.json +1 -1
  29. package/dist/es2019/view/CardWithUrl/component.js +8 -1
  30. package/dist/es2019/view/FlexibleCard/components/blocks/block/index.js +11 -1
  31. package/dist/es2019/view/FlexibleCard/components/blocks/utils.js +5 -3
  32. package/dist/es2019/view/FlexibleCard/components/elements/avatar-group/index.js +2 -0
  33. package/dist/es2019/view/FlexibleCard/components/elements/badge/index.js +2 -0
  34. package/dist/es2019/view/FlexibleCard/components/elements/date-time/index.js +2 -0
  35. package/dist/es2019/view/FlexibleCard/components/elements/icon/index.js +2 -0
  36. package/dist/es2019/view/FlexibleCard/components/elements/index.js +12 -0
  37. package/dist/es2019/view/FlexibleCard/components/elements/link/index.js +2 -0
  38. package/dist/es2019/view/FlexibleCard/components/elements/lozenge/index.js +2 -0
  39. package/dist/es2019/view/FlexibleCard/components/elements/media/index.js +2 -0
  40. package/dist/es2019/view/FlexibleCard/components/elements/text/index.js +2 -0
  41. package/dist/es2019/view/FlexibleCard/components/elements/utils.js +26 -16
  42. package/dist/es2019/view/HoverCard/components/hover-card-content.js +11 -5
  43. package/dist/es2019/view/HoverCard/index.js +1 -1
  44. package/dist/es2019/view/HoverCard/styled.js +31 -5
  45. package/dist/es2019/view/HoverCard/utils.js +27 -4
  46. package/dist/esm/constants.js +3 -1
  47. package/dist/esm/extractors/flexible/index.js +5 -3
  48. package/dist/esm/extractors/flexible/utils.js +13 -0
  49. package/dist/esm/extractors/hover/extractMetadata.js +3 -2
  50. package/dist/esm/state/actions/index.js +1 -1
  51. package/dist/esm/state/hooks/usePrefetch.js +1 -1
  52. package/dist/esm/utils/mocks.js +1 -1
  53. package/dist/esm/version.json +1 -1
  54. package/dist/esm/view/BlockCard/actions/DownloadAction.js +1 -1
  55. package/dist/esm/view/BlockCard/actions/PreviewAction.js +1 -1
  56. package/dist/esm/view/BlockCard/actions/RetryAction.js +1 -1
  57. package/dist/esm/view/BlockCard/actions/ViewAction.js +1 -1
  58. package/dist/esm/view/CardWithUrl/component.js +8 -1
  59. package/dist/esm/view/FlexibleCard/components/blocks/block/index.js +2 -2
  60. package/dist/esm/view/FlexibleCard/components/blocks/utils.js +1 -1
  61. package/dist/esm/view/FlexibleCard/components/elements/avatar-group/index.js +2 -0
  62. package/dist/esm/view/FlexibleCard/components/elements/badge/index.js +2 -0
  63. package/dist/esm/view/FlexibleCard/components/elements/date-time/index.js +2 -0
  64. package/dist/esm/view/FlexibleCard/components/elements/icon/index.js +2 -0
  65. package/dist/esm/view/FlexibleCard/components/elements/index.js +12 -0
  66. package/dist/esm/view/FlexibleCard/components/elements/link/index.js +2 -0
  67. package/dist/esm/view/FlexibleCard/components/elements/lozenge/index.js +2 -0
  68. package/dist/esm/view/FlexibleCard/components/elements/media/index.js +3 -1
  69. package/dist/esm/view/FlexibleCard/components/elements/text/index.js +2 -0
  70. package/dist/esm/view/FlexibleCard/components/elements/utils.js +20 -12
  71. package/dist/esm/view/HoverCard/components/hover-card-content.js +11 -5
  72. package/dist/esm/view/HoverCard/index.js +1 -1
  73. package/dist/esm/view/HoverCard/styled.js +8 -5
  74. package/dist/esm/view/HoverCard/utils.js +27 -3
  75. package/dist/types/constants.d.ts +3 -1
  76. package/dist/types/extractors/common/__mocks__/jsonld.d.ts +11 -6
  77. package/dist/types/extractors/flexible/utils.d.ts +2 -0
  78. package/dist/types/state/flexible-ui-context/types.d.ts +22 -10
  79. package/dist/types/view/FlexibleCard/components/blocks/types.d.ts +15 -1
  80. package/dist/types/view/FlexibleCard/components/elements/index.d.ts +10 -0
  81. package/dist/types/view/FlexibleCard/components/elements/types.d.ts +7 -1
  82. package/dist/types/view/HoverCard/types.d.ts +1 -0
  83. package/dist/types/view/HoverCard/utils.d.ts +1 -1
  84. package/package.json +2 -2
  85. package/report.api.md +505 -0
@@ -52,6 +52,10 @@ export declare type FlexibleUiDataContext = {
52
52
  * @see CreatedOn
53
53
  */
54
54
  createdOn?: string;
55
+ /**
56
+ * Contains the information about the latest commit in the repository
57
+ */
58
+ latestCommit?: string;
55
59
  /**
56
60
  * Contains the favicon of the resource.
57
61
  * @type Icon
@@ -88,12 +92,24 @@ export declare type FlexibleUiDataContext = {
88
92
  * @see ProgrammingLanguage
89
93
  */
90
94
  programmingLanguage?: string;
95
+ /**
96
+ * Contains the provider icon of the linked resource.
97
+ * @type Icon
98
+ * @see Provider
99
+ */
100
+ provider?: Icon;
91
101
  /**
92
102
  * Contains the snippet of the resource.
93
103
  * @type string
94
104
  * @see Snippet
95
105
  */
96
106
  snippet?: string;
107
+ /**
108
+ * Contains the source branch name of the link typed pull request.
109
+ * @type string
110
+ * @see SourceBranch
111
+ */
112
+ sourceBranch?: string;
97
113
  /**
98
114
  * Contains the number of subscribers of the linked resource.
99
115
  * @type number
@@ -106,6 +122,12 @@ export declare type FlexibleUiDataContext = {
106
122
  * @see SubscriberCount
107
123
  */
108
124
  state?: LinkLozenge;
125
+ /**
126
+ * Contains the target branch name of the link typed pull request.
127
+ * @type string
128
+ * @see TargetBranch
129
+ */
130
+ targetBranch?: string;
109
131
  /**
110
132
  * Contains the Title of the linked resource.
111
133
  * @type string
@@ -118,16 +140,6 @@ export declare type FlexibleUiDataContext = {
118
140
  * @see Title
119
141
  */
120
142
  url?: string;
121
- /**
122
- * Contains the provider icon of the linked resource.
123
- * @type Icon
124
- * @see Provider
125
- */
126
- provider?: Icon;
127
- /**
128
- * Contains the information about the latest commit in the repository
129
- */
130
- latestCommit?: string;
131
143
  };
132
144
  export declare type Icon = {
133
145
  icon?: IconType;
@@ -103,7 +103,7 @@ export declare type ActionItem = NamedActionItem | CustomActionItem;
103
103
  /**
104
104
  * A type that contains all the possible combinations of elements with their corresponding props.
105
105
  */
106
- export declare type ElementItemProps = AuthorGroup | CollaboratorGroup | CommentCount | CreatedBy | CreatedOn | LatestCommit | LinkIcon | ModifiedBy | ModifiedOn | Preview | Priority | ProgrammingLanguage | Provider | ReactCount | Snippet | State | SubscriberCount | Title | ViewCount | VoteCount;
106
+ export declare type ElementItemProps = AuthorGroup | CollaboratorGroup | CommentCount | CreatedBy | CreatedOn | LatestCommit | LinkIcon | ModifiedBy | ModifiedOn | Preview | Priority | ProgrammingLanguage | Provider | ReactCount | Snippet | SourceBranch | State | SubscriberCount | TargetBranch | Title | ViewCount | VoteCount;
107
107
  /**
108
108
  * Represents the props available for an AuthorGroup element.
109
109
  * @see AuthorGroup
@@ -217,6 +217,13 @@ export declare type ReactCount = {
217
217
  export declare type Snippet = {
218
218
  name: ElementName.Snippet;
219
219
  };
220
+ /**
221
+ * Represents the props available for an SourceBranch element.
222
+ * @see SourceBranch
223
+ */
224
+ export declare type SourceBranch = {
225
+ name: ElementName.SourceBranch;
226
+ };
220
227
  /**
221
228
  * Represents the props available for an State element.
222
229
  * @see State
@@ -231,6 +238,13 @@ export declare type State = {
231
238
  export declare type SubscriberCount = {
232
239
  name: ElementName.SubscriberCount;
233
240
  };
241
+ /**
242
+ * Represents the props available for an TargetBranch element.
243
+ * @see TargetBranch
244
+ */
245
+ export declare type TargetBranch = {
246
+ name: ElementName.TargetBranch;
247
+ };
234
248
  /**
235
249
  * Represents the props available for an Title element.
236
250
  * @see Title
@@ -81,6 +81,11 @@ export declare const ReactCount: import("react").FC<BadgeProps>;
81
81
  * @see Text
82
82
  */
83
83
  export declare const Snippet: import("react").FC<TextProps>;
84
+ /**
85
+ * Creates a SourceBranch Text element using the data from sourceBranch in the Flexible UI Context.
86
+ * @see Text
87
+ */
88
+ export declare const SourceBranch: import("react").FC<TextProps>;
84
89
  /**
85
90
  * Creates a State Lozenge element using the data from State in the Flexible UI Context.
86
91
  * @see Lozenge
@@ -91,6 +96,11 @@ export declare const State: import("react").FC<LozengeProps>;
91
96
  * @see Badge
92
97
  */
93
98
  export declare const SubscriberCount: import("react").FC<BadgeProps>;
99
+ /**
100
+ * Creates a TargetBranch Text element using the data from targetBranch in the Flexible UI Context.
101
+ * @see Text
102
+ */
103
+ export declare const TargetBranch: import("react").FC<TextProps>;
94
104
  /**
95
105
  * Creates a Title Link element using the data from Title in the Flexible UI Context.
96
106
  * This represents the main link text within the Smart Link.
@@ -1,6 +1,12 @@
1
1
  import { SerializedStyles } from '@emotion/core';
2
- import { SmartLinkSize } from '../../../../constants';
2
+ import { ElementName, SmartLinkSize } from '../../../../constants';
3
3
  export declare type ElementProps = {
4
+ /**
5
+ * Name of the element, can be used as a selector.
6
+ * E.g. [data-smart-element="Provider"]
7
+ * @internal
8
+ */
9
+ name?: ElementName;
4
10
  /**
5
11
  * Any additional CSS properties to apply to the element.
6
12
  */
@@ -13,6 +13,7 @@ export declare type PreviewInvokeMethod = 'keyboard' | 'mouse_hover' | 'mouse_cl
13
13
  export interface MetadataOptions {
14
14
  primary: Array<ElementItem>;
15
15
  secondary: Array<ElementItem>;
16
+ subtitle: Array<ElementItem>;
16
17
  }
17
18
  export declare type HoverCardContentProps = {
18
19
  analytics: AnalyticsFacade;
@@ -1,3 +1,3 @@
1
1
  import { JsonLd } from 'json-ld-types';
2
2
  export declare const HOVER_CARD_ANALYTICS_DISPLAY = "flexible";
3
- export declare const getSimulatedMetadata: (extensionKey?: string) => JsonLd.Primitives.Property<any>;
3
+ export declare const getSimulatedMetadata: (extensionKey?: string, types?: JsonLd.Primitives.ObjectType[]) => JsonLd.Primitives.Property<any>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "19.1.27",
3
+ "version": "19.1.30",
4
4
  "description": "Smart card component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -50,7 +50,7 @@
50
50
  "@emotion/styled": "^10.0.7",
51
51
  "@formatjs/intl-utils": "^3.8.4",
52
52
  "facepaint": "^1.2.1",
53
- "json-ld-types": "2.4.2",
53
+ "json-ld-types": "3.0.2",
54
54
  "react-error-boundary": "^3.1.3",
55
55
  "react-lazily-render": "^1.2.0",
56
56
  "react-loadable": "^5.1.0",
package/report.api.md ADDED
@@ -0,0 +1,505 @@
1
+ ## API Report File for "@atlaskit/smart-card"
2
+
3
+ > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4
+
5
+ ```ts
6
+ /// <reference types="react" />
7
+
8
+ import { APIError } from '@atlaskit/linking-common';
9
+ import { Appearance } from '@atlaskit/button/types';
10
+ import { BlockCardAdf } from '@atlaskit/linking-common';
11
+ import { CardAdf } from '@atlaskit/linking-common';
12
+ import { CardAppearance } from '@atlaskit/linking-common';
13
+ import { CardContext } from '@atlaskit/link-provider';
14
+ import { CardPlatform } from '@atlaskit/linking-common';
15
+ import { CardType } from '@atlaskit/linking-common';
16
+ import { CardClient as Client } from '@atlaskit/link-provider';
17
+ import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
18
+ import { EditorCardProvider } from '@atlaskit/link-provider';
19
+ import { editorCardProvider } from '@atlaskit/link-provider';
20
+ import { EmbedCardAdf } from '@atlaskit/linking-common';
21
+ import { GasPayload } from '@atlaskit/analytics-gas-types';
22
+ import { InlineCardAdf } from '@atlaskit/linking-common';
23
+ import { JsonLd } from 'json-ld-types';
24
+ import { MessageDescriptor } from 'react-intl-next';
25
+ import { SmartCardProvider as Provider } from '@atlaskit/link-provider';
26
+ import { ProviderProps } from '@atlaskit/link-provider';
27
+ import { default as React_2 } from 'react';
28
+ import { ReactChild } from 'react';
29
+ import { SerializedStyles } from '@emotion/core';
30
+ import { SmartCardContext } from '@atlaskit/link-provider';
31
+ import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
32
+ import { WithContextProps } from '@atlaskit/analytics-next';
33
+ import { WithIntlProps } from 'react-intl-next';
34
+ import { WrappedComponentProps } from 'react-intl-next';
35
+
36
+ // @public (undocumented)
37
+ export type ActionItem = NamedActionItem | CustomActionItem;
38
+
39
+ // @public
40
+ export enum ActionName {
41
+ // (undocumented)
42
+ CustomAction = 'CustomAction',
43
+ // (undocumented)
44
+ DeleteAction = 'DeleteAction',
45
+ // (undocumented)
46
+ EditAction = 'EditAction',
47
+ }
48
+
49
+ // @public (undocumented)
50
+ export type AnalyticsAction =
51
+ | 'resolved'
52
+ | 'unresolved'
53
+ | 'connectSucceeded'
54
+ | 'connectFailed'
55
+ | 'connected'
56
+ | 'clicked'
57
+ | 'closed'
58
+ | 'renderFailed'
59
+ | 'renderWithStatus'
60
+ | 'renderSuccess'
61
+ | 'inserted'
62
+ | 'viewed'
63
+ | 'dismissed'
64
+ | 'created';
65
+
66
+ // @public (undocumented)
67
+ export type AnalyticsActionSubject =
68
+ | 'smartLink'
69
+ | 'smartLinkAction'
70
+ | 'applicationAccount'
71
+ | 'button'
72
+ | 'consentModal'
73
+ | 'hoverCard';
74
+
75
+ // @public (undocumented)
76
+ export type AnalyticsHandler = (event: AnalyticsPayload) => void;
77
+
78
+ // @public (undocumented)
79
+ export type AnalyticsPayload = GasPayload & {
80
+ action?: AnalyticsAction;
81
+ actionSubject: AnalyticsActionSubject;
82
+ attributes: GasPayload['attributes'] & {
83
+ display?: CardInnerAppearance;
84
+ };
85
+ };
86
+
87
+ export { APIError };
88
+
89
+ export { BlockCardAdf };
90
+
91
+ // @public (undocumented)
92
+ export const blockCardContentClassName = 'block-card-content';
93
+
94
+ // @public (undocumented)
95
+ export const blockCardContentHeaderClassName = 'block-card-content-header';
96
+
97
+ // @public (undocumented)
98
+ export const blockCardContentHeaderNameClassName =
99
+ 'block-card-content-header-name';
100
+
101
+ // @public (undocumented)
102
+ export const blockCardErroredViewClassName = 'block-card-errored-view';
103
+
104
+ // @public (undocumented)
105
+ export const blockCardForbiddenViewClassName = 'block-card-forbidden-view';
106
+
107
+ // @public (undocumented)
108
+ export const blockCardForbiddenViewLinkClassName =
109
+ 'block-card-forbidden-view-link';
110
+
111
+ // @public (undocumented)
112
+ export const blockCardIconImageClassName = 'block-card-icon-image';
113
+
114
+ // @public (undocumented)
115
+ export const blockCardNotFoundViewClassName = 'block-card-not-found-view';
116
+
117
+ // @public (undocumented)
118
+ export const blockCardResolvedViewByClassName = 'block-card-resolved-view-by';
119
+
120
+ // @public (undocumented)
121
+ export const blockCardResolvedViewClassName = 'block-card-resolved-view';
122
+
123
+ // @public (undocumented)
124
+ export const blockCardResolvingViewClassName = 'block-card-resolving-view';
125
+
126
+ // @public (undocumented)
127
+ export const Card: React_2.ForwardRefExoticComponent<
128
+ Pick<
129
+ Omit<
130
+ React_2.PropsWithChildren<
131
+ WithIntlProps<CardProps & WrappedComponentProps<'intl'>>
132
+ >,
133
+ keyof WithAnalyticsEventsProps
134
+ > &
135
+ React_2.RefAttributes<any> &
136
+ WithContextProps,
137
+ | 'children'
138
+ | 'data'
139
+ | 'appearance'
140
+ | 'testId'
141
+ | 'isSelected'
142
+ | 'inheritDimensions'
143
+ | 'id'
144
+ | 'placeholder'
145
+ | 'onClick'
146
+ | 'analyticsContext'
147
+ | 'key'
148
+ | 'url'
149
+ | 'ui'
150
+ | 'showActions'
151
+ | 'onResolve'
152
+ | 'platform'
153
+ | 'isFrameVisible'
154
+ | 'embedIframeRef'
155
+ | 'showHoverPreview'
156
+ | 'inlinePreloaderStyle'
157
+ | 'importer'
158
+ | 'container'
159
+ | 'analyticsEvents'
160
+ | 'forwardedRef'
161
+ > &
162
+ React_2.RefAttributes<any>
163
+ >;
164
+
165
+ export { CardAdf };
166
+
167
+ export { CardAppearance };
168
+
169
+ export { CardContext };
170
+
171
+ export { CardPlatform };
172
+
173
+ // @public (undocumented)
174
+ export interface CardProps extends WithAnalyticsEventsProps {
175
+ // (undocumented)
176
+ analyticsEvents?: AnalyticsFacade;
177
+ // (undocumented)
178
+ appearance: CardAppearance;
179
+ // (undocumented)
180
+ children?: React.ReactNode;
181
+ // (undocumented)
182
+ container?: HTMLElement;
183
+ // (undocumented)
184
+ data?: any;
185
+ // (undocumented)
186
+ embedIframeRef?: React.Ref<HTMLIFrameElement>;
187
+ // (undocumented)
188
+ id?: string;
189
+ // (undocumented)
190
+ importer?: (target: any) => void;
191
+ // (undocumented)
192
+ inheritDimensions?: boolean;
193
+ // (undocumented)
194
+ inlinePreloaderStyle?: InlinePreloaderStyle;
195
+ // (undocumented)
196
+ isFrameVisible?: boolean;
197
+ // (undocumented)
198
+ isSelected?: boolean;
199
+ // (undocumented)
200
+ onClick?: React.EventHandler<React.MouseEvent | React.KeyboardEvent>;
201
+ // (undocumented)
202
+ onResolve?: OnResolveCallback;
203
+ // (undocumented)
204
+ placeholder?: string;
205
+ // (undocumented)
206
+ platform?: CardPlatform;
207
+ // (undocumented)
208
+ showActions?: boolean;
209
+ // (undocumented)
210
+ showHoverPreview?: boolean;
211
+ // (undocumented)
212
+ testId?: string;
213
+ // (undocumented)
214
+ ui?: FlexibleUiOptions;
215
+ // (undocumented)
216
+ url?: string;
217
+ }
218
+
219
+ export { CardType };
220
+
221
+ export { Client };
222
+
223
+ // @public (undocumented)
224
+ export const contentFooterClassName = 'smart-link-content-footer';
225
+
226
+ export { EditorCardProvider };
227
+
228
+ export { editorCardProvider };
229
+
230
+ // @public
231
+ export type ElementItem = {
232
+ overrideCss?: SerializedStyles;
233
+ size?: SmartLinkSize;
234
+ testId?: string;
235
+ } & ElementItemProps;
236
+
237
+ // @public
238
+ export enum ElementName {
239
+ // (undocumented)
240
+ AuthorGroup = 'AuthorGroup',
241
+ // (undocumented)
242
+ CollaboratorGroup = 'CollaboratorGroup',
243
+ // (undocumented)
244
+ CommentCount = 'CommentCount',
245
+ // (undocumented)
246
+ CreatedBy = 'CreatedBy',
247
+ // (undocumented)
248
+ CreatedOn = 'CreatedOn',
249
+ // (undocumented)
250
+ LatestCommit = 'LatestCommit',
251
+ // (undocumented)
252
+ LinkIcon = 'LinkIcon',
253
+ // (undocumented)
254
+ ModifiedBy = 'ModifiedBy',
255
+ // (undocumented)
256
+ ModifiedOn = 'ModifiedOn',
257
+ // (undocumented)
258
+ Preview = 'Preview',
259
+ // (undocumented)
260
+ Priority = 'Priority',
261
+ // (undocumented)
262
+ ProgrammingLanguage = 'ProgrammingLanguage',
263
+ // (undocumented)
264
+ Provider = 'Provider',
265
+ // (undocumented)
266
+ ReactCount = 'ReactCount',
267
+ // (undocumented)
268
+ Snippet = 'Snippet',
269
+ // (undocumented)
270
+ SourceBranch = 'SourceBranch',
271
+ // (undocumented)
272
+ State = 'State',
273
+ // (undocumented)
274
+ SubscriberCount = 'SubscriberCount',
275
+ // (undocumented)
276
+ TargetBranch = 'TargetBranch',
277
+ // (undocumented)
278
+ Title = 'Title',
279
+ // (undocumented)
280
+ ViewCount = 'ViewCount',
281
+ // (undocumented)
282
+ VoteCount = 'VoteCount',
283
+ }
284
+
285
+ export { EmbedCardAdf };
286
+
287
+ // @public (undocumented)
288
+ export const embedHeaderHeight = 32;
289
+
290
+ // @public (undocumented)
291
+ export class EmbedResizeMessageListener extends React_2.Component<
292
+ Props,
293
+ State
294
+ > {
295
+ // (undocumented)
296
+ componentDidMount(): void;
297
+ // (undocumented)
298
+ componentWillUnmount(): void;
299
+ // (undocumented)
300
+ render(): React_2.ReactNode;
301
+ }
302
+
303
+ // @public
304
+ export const FooterBlock: React_2.FC<FooterBlockProps>;
305
+
306
+ export { InlineCardAdf };
307
+
308
+ // @public (undocumented)
309
+ export const loadingPlaceholderClassName = 'smart-link-loading-placeholder';
310
+
311
+ // @public
312
+ export const MetadataBlock: React_2.FC<MetadataBlockProps>;
313
+
314
+ // @public (undocumented)
315
+ export const metadataListClassName = 'smart-link-metadata-list';
316
+
317
+ // @public
318
+ export const PreviewBlock: React_2.FC<PreviewBlockProps>;
319
+
320
+ export { Provider };
321
+
322
+ export { ProviderProps };
323
+
324
+ // @public (undocumented)
325
+ export type ResolveResponse = JsonLd.Response;
326
+
327
+ export { SmartCardContext as Context };
328
+ export { SmartCardContext };
329
+
330
+ // @public
331
+ export enum SmartLinkDirection {
332
+ // (undocumented)
333
+ Horizontal = 'horizontal',
334
+ // (undocumented)
335
+ Vertical = 'vertical',
336
+ }
337
+
338
+ // @public (undocumented)
339
+ export class SmartLinkEvents {
340
+ // (undocumented)
341
+ insertSmartLink(
342
+ url: string,
343
+ type: CardInnerAppearance,
344
+ createAnalyticsEvent?: CreateUIAnalyticsEvent,
345
+ ): void;
346
+ }
347
+
348
+ // @public
349
+ export enum SmartLinkPosition {
350
+ // (undocumented)
351
+ Center = 'center',
352
+ // (undocumented)
353
+ Top = 'top',
354
+ }
355
+
356
+ // @public
357
+ export enum SmartLinkSize {
358
+ // (undocumented)
359
+ Large = 'large',
360
+ // (undocumented)
361
+ Medium = 'medium',
362
+ // (undocumented)
363
+ Small = 'small',
364
+ // (undocumented)
365
+ XLarge = 'xlarge',
366
+ }
367
+
368
+ // @public
369
+ export enum SmartLinkTheme {
370
+ // (undocumented)
371
+ Black = 'black',
372
+ // (undocumented)
373
+ Link = 'link',
374
+ }
375
+
376
+ // @public
377
+ export const SnippetBlock: React_2.FC<SnippetBlockProps>;
378
+
379
+ // @public
380
+ export const TitleBlock: React_2.FC<TitleBlockProps>;
381
+
382
+ // @public
383
+ export const useSmartLinkAnalytics: (
384
+ url: string,
385
+ dispatchAnalytics: AnalyticsHandler,
386
+ id?: string | undefined,
387
+ defaultLocation?: string | undefined,
388
+ ) => {
389
+ ui: {
390
+ authEvent: (
391
+ display: CardInnerAppearance,
392
+ definitionId?: string | undefined,
393
+ extensionKey?: string | undefined,
394
+ ) => void;
395
+ authAlternateAccountEvent: (
396
+ display: CardInnerAppearance,
397
+ definitionId?: string | undefined,
398
+ extensionKey?: string | undefined,
399
+ ) => void;
400
+ cardClickedEvent: (
401
+ id: string | undefined,
402
+ display: CardInnerAppearance,
403
+ status: CardType,
404
+ definitionId?: string | undefined,
405
+ extensionKey?: string | undefined,
406
+ isModifierKeyPressed?: boolean | undefined,
407
+ location?: string | undefined,
408
+ destinationProduct?: DestinationProduct | string | undefined,
409
+ destinationSubproduct?: DestinationSubproduct | string | undefined,
410
+ actionSubjectId?: string | undefined,
411
+ ) => void;
412
+ actionClickedEvent: (
413
+ id: string | undefined,
414
+ extensionKey: string | undefined,
415
+ actionType: string,
416
+ display: CardInnerAppearance,
417
+ invokeType: InvokeType,
418
+ ) => void;
419
+ hoverCardOpenLinkClickedEvent: (
420
+ previewDisplay: PreviewDisplay,
421
+ definitionId?: string | undefined,
422
+ extensionKey?: string | undefined,
423
+ previewInvokeMethod?: PreviewInvokeMethod | undefined,
424
+ ) => void;
425
+ closedAuthEvent: (
426
+ display: CardInnerAppearance,
427
+ definitionId?: string | undefined,
428
+ extensionKey?: string | undefined,
429
+ ) => void;
430
+ renderSuccessEvent: (
431
+ display: CardInnerAppearance,
432
+ status: CardType,
433
+ id?: string,
434
+ definitionId?: string | undefined,
435
+ extensionKey?: string | undefined,
436
+ ) => void;
437
+ hoverCardViewedEvent: (
438
+ previewDisplay: PreviewDisplay,
439
+ previewInvokeMethod?: PreviewInvokeMethod | undefined,
440
+ id?: string,
441
+ definitionId?: string | undefined,
442
+ extensionKey?: string | undefined,
443
+ ) => void;
444
+ hoverCardDismissedEvent: (
445
+ previewDisplay: PreviewDisplay,
446
+ hoverTime: number,
447
+ previewInvokeMethod?: PreviewInvokeMethod | undefined,
448
+ id?: string,
449
+ definitionId?: string | undefined,
450
+ extensionKey?: string | undefined,
451
+ ) => void;
452
+ };
453
+ operational: {
454
+ invokeSucceededEvent: (
455
+ id: string | undefined,
456
+ extensionKey: string | undefined,
457
+ actionType: string,
458
+ display: CardInnerAppearance,
459
+ ) => void;
460
+ invokeFailedEvent: (
461
+ id: string | undefined,
462
+ providerKey: string | undefined,
463
+ actionType: string,
464
+ display: CardInnerAppearance,
465
+ reason: string,
466
+ ) => void;
467
+ connectSucceededEvent: (
468
+ id?: string,
469
+ definitionId?: string | undefined,
470
+ extensionKey?: string | undefined,
471
+ ) => void;
472
+ connectFailedEvent: (
473
+ id?: string,
474
+ definitionId?: string | undefined,
475
+ extensionKey?: string | undefined,
476
+ reason?: string | undefined,
477
+ ) => void;
478
+ instrument: (
479
+ id: string | undefined,
480
+ status: CardType,
481
+ definitionId?: string | undefined,
482
+ extensionKey?: string | undefined,
483
+ resourceType?: string | undefined,
484
+ error?: APIError | undefined,
485
+ ) => void;
486
+ };
487
+ track: {
488
+ appAccountConnected: (
489
+ definitionId?: string | undefined,
490
+ extensionKey?: string | undefined,
491
+ ) => void;
492
+ };
493
+ screen: {
494
+ authPopupEvent: (
495
+ definitionId?: string | undefined,
496
+ extensionKey?: string | undefined,
497
+ ) => void;
498
+ };
499
+ };
500
+
501
+ // @public (undocumented)
502
+ export function useSmartLinkEvents(): SmartLinkEvents;
503
+
504
+ // (No @packageDocumentation comment for this package)
505
+ ```