@atlaskit/smart-card 25.9.5 → 26.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/version.json +1 -1
- package/package.json +46 -46
- package/report.api.md +1 -1
- package/tmp/api-report-tmp.d.ts +0 -894
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 26.0.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
|
|
3
13
|
## 25.9.5
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
package/dist/cjs/version.json
CHANGED
package/dist/es2019/version.json
CHANGED
package/dist/esm/version.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/smart-card",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "26.0.0",
|
|
4
4
|
"description": "Smart card component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -22,31 +22,31 @@
|
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@atlaskit/analytics-gas-types": "^5.
|
|
26
|
-
"@atlaskit/analytics-next": "^9.
|
|
27
|
-
"@atlaskit/avatar": "^21.
|
|
28
|
-
"@atlaskit/avatar-group": "^9.
|
|
29
|
-
"@atlaskit/button": "^16.
|
|
30
|
-
"@atlaskit/dropdown-menu": "^11.
|
|
31
|
-
"@atlaskit/icon": "^21.
|
|
32
|
-
"@atlaskit/icon-file-type": "^6.
|
|
33
|
-
"@atlaskit/icon-object": "^6.
|
|
25
|
+
"@atlaskit/analytics-gas-types": "^5.1.0",
|
|
26
|
+
"@atlaskit/analytics-next": "^9.1.0",
|
|
27
|
+
"@atlaskit/avatar": "^21.3.0",
|
|
28
|
+
"@atlaskit/avatar-group": "^9.3.0",
|
|
29
|
+
"@atlaskit/button": "^16.7.0",
|
|
30
|
+
"@atlaskit/dropdown-menu": "^11.8.0",
|
|
31
|
+
"@atlaskit/icon": "^21.12.0",
|
|
32
|
+
"@atlaskit/icon-file-type": "^6.4.0",
|
|
33
|
+
"@atlaskit/icon-object": "^6.3.0",
|
|
34
34
|
"@atlaskit/icon-priority": "^6.3.0",
|
|
35
|
-
"@atlaskit/in-product-testing": "^0.
|
|
36
|
-
"@atlaskit/link-client-extension": "^0.
|
|
37
|
-
"@atlaskit/linking-common": "^2.
|
|
38
|
-
"@atlaskit/linking-types": "^1.
|
|
39
|
-
"@atlaskit/logo": "^13.
|
|
40
|
-
"@atlaskit/lozenge": "^11.
|
|
41
|
-
"@atlaskit/media-common": "^4.
|
|
42
|
-
"@atlaskit/modal-dialog": "^12.
|
|
43
|
-
"@atlaskit/outbound-auth-flow-client": "^3.
|
|
44
|
-
"@atlaskit/popup": "^1.
|
|
45
|
-
"@atlaskit/spinner": "^15.
|
|
46
|
-
"@atlaskit/theme": "^12.
|
|
47
|
-
"@atlaskit/tokens": "^1.
|
|
48
|
-
"@atlaskit/tooltip": "^17.
|
|
49
|
-
"@atlaskit/ufo": "^0.
|
|
35
|
+
"@atlaskit/in-product-testing": "^0.2.0",
|
|
36
|
+
"@atlaskit/link-client-extension": "^1.0.0",
|
|
37
|
+
"@atlaskit/linking-common": "^2.8.0",
|
|
38
|
+
"@atlaskit/linking-types": "^1.4.0",
|
|
39
|
+
"@atlaskit/logo": "^13.14.0",
|
|
40
|
+
"@atlaskit/lozenge": "^11.4.0",
|
|
41
|
+
"@atlaskit/media-common": "^4.1.0",
|
|
42
|
+
"@atlaskit/modal-dialog": "^12.5.0",
|
|
43
|
+
"@atlaskit/outbound-auth-flow-client": "^3.4.0",
|
|
44
|
+
"@atlaskit/popup": "^1.6.0",
|
|
45
|
+
"@atlaskit/spinner": "^15.5.0",
|
|
46
|
+
"@atlaskit/theme": "^12.5.0",
|
|
47
|
+
"@atlaskit/tokens": "^1.3.0",
|
|
48
|
+
"@atlaskit/tooltip": "^17.8.0",
|
|
49
|
+
"@atlaskit/ufo": "^0.2.0",
|
|
50
50
|
"@babel/runtime": "^7.0.0",
|
|
51
51
|
"@emotion/react": "^11.7.1",
|
|
52
52
|
"@emotion/styled": "^11.0.0",
|
|
@@ -60,34 +60,34 @@
|
|
|
60
60
|
"uuid": "^3.1.0"
|
|
61
61
|
},
|
|
62
62
|
"peerDependencies": {
|
|
63
|
-
"@atlaskit/link-provider": "^1.
|
|
63
|
+
"@atlaskit/link-provider": "^1.6.0",
|
|
64
64
|
"react": "^16.8.0",
|
|
65
65
|
"react-dom": "^16.8.0",
|
|
66
66
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
|
-
"@atlaskit/avatar": "^21.
|
|
70
|
-
"@atlaskit/checkbox": "^12.
|
|
71
|
-
"@atlaskit/code": "^14.
|
|
72
|
-
"@atlaskit/css-reset": "^6.
|
|
69
|
+
"@atlaskit/avatar": "^21.3.0",
|
|
70
|
+
"@atlaskit/checkbox": "^12.5.0",
|
|
71
|
+
"@atlaskit/code": "^14.6.0",
|
|
72
|
+
"@atlaskit/css-reset": "^6.5.0",
|
|
73
73
|
"@atlaskit/docs": "*",
|
|
74
|
-
"@atlaskit/field-base": "^15.
|
|
75
|
-
"@atlaskit/form": "^8.
|
|
76
|
-
"@atlaskit/inline-message": "^11.
|
|
77
|
-
"@atlaskit/link-test-helpers": "^2.
|
|
78
|
-
"@atlaskit/lozenge": "^11.
|
|
74
|
+
"@atlaskit/field-base": "^15.2.0",
|
|
75
|
+
"@atlaskit/form": "^8.11.0",
|
|
76
|
+
"@atlaskit/inline-message": "^11.5.0",
|
|
77
|
+
"@atlaskit/link-test-helpers": "^2.3.0",
|
|
78
|
+
"@atlaskit/lozenge": "^11.4.0",
|
|
79
79
|
"@atlaskit/media-integration-test-helpers": "^2.6.0",
|
|
80
|
-
"@atlaskit/media-test-helpers": "^
|
|
81
|
-
"@atlaskit/page": "^12.
|
|
82
|
-
"@atlaskit/radio": "^5.
|
|
83
|
-
"@atlaskit/range": "^7.
|
|
84
|
-
"@atlaskit/section-message": "^6.
|
|
85
|
-
"@atlaskit/select": "^16.
|
|
86
|
-
"@atlaskit/table-tree": "^9.
|
|
87
|
-
"@atlaskit/tabs": "^13.
|
|
88
|
-
"@atlaskit/textarea": "^4.
|
|
89
|
-
"@atlaskit/textfield": "^5.
|
|
90
|
-
"@atlaskit/toggle": "^12.
|
|
80
|
+
"@atlaskit/media-test-helpers": "^33.0.0",
|
|
81
|
+
"@atlaskit/page": "^12.3.0",
|
|
82
|
+
"@atlaskit/radio": "^5.5.0",
|
|
83
|
+
"@atlaskit/range": "^7.1.0",
|
|
84
|
+
"@atlaskit/section-message": "^6.4.0",
|
|
85
|
+
"@atlaskit/select": "^16.2.0",
|
|
86
|
+
"@atlaskit/table-tree": "^9.4.0",
|
|
87
|
+
"@atlaskit/tabs": "^13.4.0",
|
|
88
|
+
"@atlaskit/textarea": "^4.6.0",
|
|
89
|
+
"@atlaskit/textfield": "^5.4.0",
|
|
90
|
+
"@atlaskit/toggle": "^12.6.0",
|
|
91
91
|
"@atlaskit/visual-regression": "*",
|
|
92
92
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
93
93
|
"@testing-library/dom": "^8.17.1",
|
package/report.api.md
CHANGED
package/tmp/api-report-tmp.d.ts
DELETED
|
@@ -1,894 +0,0 @@
|
|
|
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
|
-
|
|
7
|
-
/// <reference types="react" />
|
|
8
|
-
|
|
9
|
-
import { APIError } from '@atlaskit/linking-common';
|
|
10
|
-
import { Appearance } from '@atlaskit/button/types';
|
|
11
|
-
import { BlockCardAdf } from '@atlaskit/linking-common';
|
|
12
|
-
import { CardAdf } from '@atlaskit/linking-common';
|
|
13
|
-
import { CardAppearance } from '@atlaskit/linking-common';
|
|
14
|
-
import { CardContext } from '@atlaskit/link-provider';
|
|
15
|
-
import { CardPlatform } from '@atlaskit/linking-common';
|
|
16
|
-
import { CardType } from '@atlaskit/linking-common';
|
|
17
|
-
import { CardClient as Client } from '@atlaskit/link-provider';
|
|
18
|
-
import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
19
|
-
import { EditorCardProvider } from '@atlaskit/link-provider';
|
|
20
|
-
import { editorCardProvider } from '@atlaskit/link-provider';
|
|
21
|
-
import { EmbedCardAdf } from '@atlaskit/linking-common';
|
|
22
|
-
import { ErrorInfo } from 'react';
|
|
23
|
-
import { GasPayload } from '@atlaskit/analytics-gas-types';
|
|
24
|
-
import { InlineCardAdf } from '@atlaskit/linking-common';
|
|
25
|
-
import { JsonLd } from 'json-ld-types';
|
|
26
|
-
import { MessageDescriptor } from 'react-intl-next';
|
|
27
|
-
import { SmartCardProvider as Provider } from '@atlaskit/link-provider';
|
|
28
|
-
import { ProviderProps } from '@atlaskit/link-provider';
|
|
29
|
-
import { default as React_2 } from 'react';
|
|
30
|
-
import { ReactChild } from 'react';
|
|
31
|
-
import { Ref } from 'react';
|
|
32
|
-
import { SerializedStyles } from '@emotion/react';
|
|
33
|
-
import { SmartCardContext } from '@atlaskit/link-provider';
|
|
34
|
-
import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
35
|
-
import { WithContextProps } from '@atlaskit/analytics-next';
|
|
36
|
-
import { WithIntlProps } from 'react-intl-next';
|
|
37
|
-
import { WrappedComponentProps } from 'react-intl-next';
|
|
38
|
-
|
|
39
|
-
// @public (undocumented)
|
|
40
|
-
export type ActionItem = CustomActionItem | NamedActionItem | NamedDataActionItem;
|
|
41
|
-
|
|
42
|
-
// @public
|
|
43
|
-
export enum ActionName {
|
|
44
|
-
// (undocumented)
|
|
45
|
-
CustomAction = "CustomAction",
|
|
46
|
-
// (undocumented)
|
|
47
|
-
DeleteAction = "DeleteAction",
|
|
48
|
-
// (undocumented)
|
|
49
|
-
DownloadAction = "DownloadAction",
|
|
50
|
-
// (undocumented)
|
|
51
|
-
EditAction = "EditAction",
|
|
52
|
-
// (undocumented)
|
|
53
|
-
PreviewAction = "PreviewAction",
|
|
54
|
-
// (undocumented)
|
|
55
|
-
ViewAction = "ViewAction"
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
// @public (undocumented)
|
|
59
|
-
type ActionProps = {
|
|
60
|
-
size?: SmartLinkSize;
|
|
61
|
-
content?: React.ReactNode;
|
|
62
|
-
appearance?: Appearance;
|
|
63
|
-
onClick: () => any;
|
|
64
|
-
icon?: ReactChild;
|
|
65
|
-
iconPosition?: 'after' | 'before';
|
|
66
|
-
tooltipMessage?: React.ReactNode;
|
|
67
|
-
asDropDownItem?: boolean;
|
|
68
|
-
overrideCss?: SerializedStyles;
|
|
69
|
-
testId?: string;
|
|
70
|
-
};
|
|
71
|
-
|
|
72
|
-
// @public (undocumented)
|
|
73
|
-
export type AnalyticsAction = 'authStarted' | 'chunkLoadFailed' | 'clicked' | 'closed' | 'connectFailed' | 'connectSucceeded' | 'connected' | 'created' | 'dismissed' | 'dwelled' | 'focused' | 'inserted' | 'renderFailed' | 'renderSuccess' | 'renderWithStatus' | 'resolved' | 'unresolved' | 'updated' | 'viewed';
|
|
74
|
-
|
|
75
|
-
// @public (undocumented)
|
|
76
|
-
export type AnalyticsActionSubject = 'applicationAccount' | 'button' | 'consentModal' | 'embedPreviewModal' | 'hoverCard' | 'link' | 'modal' | 'smartLink' | 'smartLinkAction' | 'smartLinkIframe';
|
|
77
|
-
|
|
78
|
-
// @public (undocumented)
|
|
79
|
-
type AnalyticsFacade = ReturnType<typeof useSmartLinkAnalytics>;
|
|
80
|
-
|
|
81
|
-
// @public (undocumented)
|
|
82
|
-
export type AnalyticsHandler = (event: AnalyticsPayload) => void;
|
|
83
|
-
|
|
84
|
-
// @public (undocumented)
|
|
85
|
-
type AnalyticsName = 'embedPreviewModal';
|
|
86
|
-
|
|
87
|
-
// @public (undocumented)
|
|
88
|
-
export type AnalyticsPayload = GasPayload & {
|
|
89
|
-
action?: AnalyticsAction;
|
|
90
|
-
actionSubject: AnalyticsActionSubject;
|
|
91
|
-
attributes: GasPayload['attributes'] & {
|
|
92
|
-
display?: CardInnerAppearance;
|
|
93
|
-
};
|
|
94
|
-
};
|
|
95
|
-
|
|
96
|
-
// @public (undocumented)
|
|
97
|
-
type AnchorTarget = '_blank' | '_parent' | '_self' | '_top';
|
|
98
|
-
|
|
99
|
-
export { APIError }
|
|
100
|
-
|
|
101
|
-
// @public
|
|
102
|
-
type AttachmentCount = {
|
|
103
|
-
name: ElementName.AttachmentCount;
|
|
104
|
-
};
|
|
105
|
-
|
|
106
|
-
// @public
|
|
107
|
-
type AuthorGroup = {
|
|
108
|
-
name: ElementName.AuthorGroup;
|
|
109
|
-
};
|
|
110
|
-
|
|
111
|
-
// @public
|
|
112
|
-
type BaseActionItem = {
|
|
113
|
-
hideContent?: boolean;
|
|
114
|
-
hideIcon?: boolean;
|
|
115
|
-
name: ActionName;
|
|
116
|
-
onClick: () => any;
|
|
117
|
-
overrideCss?: SerializedStyles;
|
|
118
|
-
size?: SmartLinkSize;
|
|
119
|
-
testId?: string;
|
|
120
|
-
};
|
|
121
|
-
|
|
122
|
-
// @public
|
|
123
|
-
type BaseDataActionItem = {
|
|
124
|
-
hideContent?: boolean;
|
|
125
|
-
hideIcon?: boolean;
|
|
126
|
-
name: ActionName;
|
|
127
|
-
onClick?: () => any;
|
|
128
|
-
overrideCss?: SerializedStyles;
|
|
129
|
-
size?: SmartLinkSize;
|
|
130
|
-
testId?: string;
|
|
131
|
-
};
|
|
132
|
-
|
|
133
|
-
export { BlockCardAdf }
|
|
134
|
-
|
|
135
|
-
// @public (undocumented)
|
|
136
|
-
export const blockCardContentClassName = "block-card-content";
|
|
137
|
-
|
|
138
|
-
// @public (undocumented)
|
|
139
|
-
export const blockCardContentHeaderClassName = "block-card-content-header";
|
|
140
|
-
|
|
141
|
-
// @public (undocumented)
|
|
142
|
-
export const blockCardContentHeaderNameClassName = "block-card-content-header-name";
|
|
143
|
-
|
|
144
|
-
// @public (undocumented)
|
|
145
|
-
export const blockCardErroredViewClassName = "block-card-errored-view";
|
|
146
|
-
|
|
147
|
-
// @public (undocumented)
|
|
148
|
-
export const blockCardForbiddenViewClassName = "block-card-forbidden-view";
|
|
149
|
-
|
|
150
|
-
// @public (undocumented)
|
|
151
|
-
export const blockCardForbiddenViewLinkClassName = "block-card-forbidden-view-link";
|
|
152
|
-
|
|
153
|
-
// @public (undocumented)
|
|
154
|
-
export const blockCardIconImageClassName = "block-card-icon-image";
|
|
155
|
-
|
|
156
|
-
// @public (undocumented)
|
|
157
|
-
export const blockCardNotFoundViewClassName = "block-card-not-found-view";
|
|
158
|
-
|
|
159
|
-
// @public (undocumented)
|
|
160
|
-
export const blockCardResolvedViewByClassName = "block-card-resolved-view-by";
|
|
161
|
-
|
|
162
|
-
// @public (undocumented)
|
|
163
|
-
export const blockCardResolvedViewClassName = "block-card-resolved-view";
|
|
164
|
-
|
|
165
|
-
// @public (undocumented)
|
|
166
|
-
export const blockCardResolvingViewClassName = "block-card-resolving-view";
|
|
167
|
-
|
|
168
|
-
// @public (undocumented)
|
|
169
|
-
type BlockProps = {
|
|
170
|
-
direction?: SmartLinkDirection;
|
|
171
|
-
overrideCss?: SerializedStyles;
|
|
172
|
-
size?: SmartLinkSize;
|
|
173
|
-
status?: SmartLinkStatus;
|
|
174
|
-
testId?: string;
|
|
175
|
-
blockRef?: Ref<HTMLDivElement>;
|
|
176
|
-
onRender?: () => void;
|
|
177
|
-
onTransitionEnd?: () => void;
|
|
178
|
-
};
|
|
179
|
-
|
|
180
|
-
// @public (undocumented)
|
|
181
|
-
export const Card: React_2.ForwardRefExoticComponent<Pick<Omit<React_2.PropsWithChildren<WithIntlProps<CardProps & WrappedComponentProps<"intl">>>, keyof WithAnalyticsEventsProps> & React_2.RefAttributes<any> & WithContextProps, "analyticsContext" | "analyticsEvents" | "appearance" | "children" | "container" | "data" | "embedIframeRef" | "embedIframeUrlType" | "forwardedRef" | "frameStyle" | "id" | "importer" | "inheritDimensions" | "inlinePreloaderStyle" | "isFrameVisible" | "isSelected" | "key" | "onClick" | "onError" | "onResolve" | "placeholder" | "platform" | "showActions" | "showAuthTooltip" | "showHoverPreview" | "showServerActions" | "testId" | "ui" | "url"> & React_2.RefAttributes<any>>;
|
|
182
|
-
|
|
183
|
-
export { CardAdf }
|
|
184
|
-
|
|
185
|
-
export { CardAppearance }
|
|
186
|
-
|
|
187
|
-
export { CardContext }
|
|
188
|
-
|
|
189
|
-
// @public (undocumented)
|
|
190
|
-
type CardInnerAppearance = 'embedPreview' | 'flexible' | 'hoverCardPreview' | CardAppearance;
|
|
191
|
-
|
|
192
|
-
export { CardPlatform }
|
|
193
|
-
|
|
194
|
-
// @public (undocumented)
|
|
195
|
-
export interface CardProps extends WithAnalyticsEventsProps {
|
|
196
|
-
// @deprecated (undocumented)
|
|
197
|
-
analyticsEvents?: AnalyticsFacade;
|
|
198
|
-
// (undocumented)
|
|
199
|
-
appearance: CardAppearance;
|
|
200
|
-
// (undocumented)
|
|
201
|
-
children?: React.ReactNode;
|
|
202
|
-
// (undocumented)
|
|
203
|
-
container?: HTMLElement;
|
|
204
|
-
// (undocumented)
|
|
205
|
-
data?: any;
|
|
206
|
-
// (undocumented)
|
|
207
|
-
embedIframeRef?: React.Ref<HTMLIFrameElement>;
|
|
208
|
-
// (undocumented)
|
|
209
|
-
embedIframeUrlType?: EmbedIframeUrlType;
|
|
210
|
-
frameStyle?: FrameStyle;
|
|
211
|
-
// (undocumented)
|
|
212
|
-
id?: string;
|
|
213
|
-
// (undocumented)
|
|
214
|
-
importer?: (target: any) => void;
|
|
215
|
-
inheritDimensions?: boolean;
|
|
216
|
-
// (undocumented)
|
|
217
|
-
inlinePreloaderStyle?: InlinePreloaderStyle;
|
|
218
|
-
// @deprecated (undocumented)
|
|
219
|
-
isFrameVisible?: boolean;
|
|
220
|
-
// (undocumented)
|
|
221
|
-
isSelected?: boolean;
|
|
222
|
-
// (undocumented)
|
|
223
|
-
onClick?: React.EventHandler<React.KeyboardEvent | React.MouseEvent>;
|
|
224
|
-
// (undocumented)
|
|
225
|
-
onError?: OnErrorCallback;
|
|
226
|
-
// (undocumented)
|
|
227
|
-
onResolve?: OnResolveCallback;
|
|
228
|
-
// (undocumented)
|
|
229
|
-
placeholder?: string;
|
|
230
|
-
// (undocumented)
|
|
231
|
-
platform?: CardPlatform;
|
|
232
|
-
showActions?: boolean;
|
|
233
|
-
// (undocumented)
|
|
234
|
-
showAuthTooltip?: boolean;
|
|
235
|
-
// (undocumented)
|
|
236
|
-
showHoverPreview?: boolean;
|
|
237
|
-
showServerActions?: boolean;
|
|
238
|
-
// (undocumented)
|
|
239
|
-
testId?: string;
|
|
240
|
-
// (undocumented)
|
|
241
|
-
ui?: FlexibleUiOptions;
|
|
242
|
-
// (undocumented)
|
|
243
|
-
url?: string;
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
export { CardType }
|
|
247
|
-
|
|
248
|
-
// @public
|
|
249
|
-
type ChecklistProgress = {
|
|
250
|
-
name: ElementName.ChecklistProgress;
|
|
251
|
-
};
|
|
252
|
-
|
|
253
|
-
export { Client }
|
|
254
|
-
|
|
255
|
-
// @public
|
|
256
|
-
type CollaboratorGroup = {
|
|
257
|
-
name: ElementName.CollaboratorGroup;
|
|
258
|
-
};
|
|
259
|
-
|
|
260
|
-
// @public
|
|
261
|
-
type CommentCount = {
|
|
262
|
-
name: ElementName.CommentCount;
|
|
263
|
-
};
|
|
264
|
-
|
|
265
|
-
// @public (undocumented)
|
|
266
|
-
interface CommonEventProps {
|
|
267
|
-
// (undocumented)
|
|
268
|
-
definitionId?: string;
|
|
269
|
-
// (undocumented)
|
|
270
|
-
destinationProduct?: DestinationProduct | string;
|
|
271
|
-
// (undocumented)
|
|
272
|
-
destinationSubproduct?: DestinationSubproduct | string;
|
|
273
|
-
// (undocumented)
|
|
274
|
-
extensionKey?: string;
|
|
275
|
-
// (undocumented)
|
|
276
|
-
id?: string;
|
|
277
|
-
// (undocumented)
|
|
278
|
-
location?: string;
|
|
279
|
-
// (undocumented)
|
|
280
|
-
resourceType?: string;
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
// @public (undocumented)
|
|
284
|
-
type ConnectFailedEventProps = CommonEventProps & {
|
|
285
|
-
id?: string;
|
|
286
|
-
reason?: string;
|
|
287
|
-
};
|
|
288
|
-
|
|
289
|
-
// @public (undocumented)
|
|
290
|
-
type ConnectSucceededEventProps = CommonEventProps & {
|
|
291
|
-
id?: string;
|
|
292
|
-
};
|
|
293
|
-
|
|
294
|
-
// @public (undocumented)
|
|
295
|
-
export const contentFooterClassName = "smart-link-content-footer";
|
|
296
|
-
|
|
297
|
-
// @public
|
|
298
|
-
type CreatedBy = {
|
|
299
|
-
name: ElementName.CreatedBy;
|
|
300
|
-
};
|
|
301
|
-
|
|
302
|
-
// @public
|
|
303
|
-
type CreatedOn = {
|
|
304
|
-
name: ElementName.CreatedOn;
|
|
305
|
-
text?: string;
|
|
306
|
-
};
|
|
307
|
-
|
|
308
|
-
// @public
|
|
309
|
-
type CustomActionItem = BaseActionItem & {
|
|
310
|
-
name: ActionName.CustomAction;
|
|
311
|
-
} & (((Required<Pick<ActionProps, 'content'>> & Pick<ActionProps, 'icon' | 'iconPosition'>) & Pick<ActionProps, 'tooltipMessage'>) | (Required<Pick<ActionProps, 'icon' | 'iconPosition'>> & Pick<ActionProps, 'content'>));
|
|
312
|
-
|
|
313
|
-
// @public (undocumented)
|
|
314
|
-
type DestinationProduct = 'bitbucket' | 'confluence' | 'jira' | 'trello';
|
|
315
|
-
|
|
316
|
-
// @public (undocumented)
|
|
317
|
-
type DestinationSubproduct = 'core' | 'servicedesk' | 'software';
|
|
318
|
-
|
|
319
|
-
// @public
|
|
320
|
-
type DueOn = {
|
|
321
|
-
name: ElementName.DueOn;
|
|
322
|
-
};
|
|
323
|
-
|
|
324
|
-
export { EditorCardProvider }
|
|
325
|
-
|
|
326
|
-
export { editorCardProvider }
|
|
327
|
-
|
|
328
|
-
// @public
|
|
329
|
-
export type ElementItem = {
|
|
330
|
-
overrideCss?: SerializedStyles;
|
|
331
|
-
size?: SmartLinkSize;
|
|
332
|
-
testId?: string;
|
|
333
|
-
} & ElementItemProps;
|
|
334
|
-
|
|
335
|
-
// @public
|
|
336
|
-
type ElementItemProps = AttachmentCount | AuthorGroup | ChecklistProgress | CollaboratorGroup | CommentCount | CreatedBy | CreatedOn | DueOn | LatestCommit | LinkIcon | Location_2 | ModifiedBy | ModifiedOn | OwnedBy | Preview | Priority | ProgrammingLanguage | Provider_2 | ReactCount | Snippet | SourceBranch | State_2 | SubscriberCount | TargetBranch | Title | ViewCount | VoteCount;
|
|
337
|
-
|
|
338
|
-
// @public
|
|
339
|
-
export enum ElementName {
|
|
340
|
-
// (undocumented)
|
|
341
|
-
AttachmentCount = "AttachmentCount",
|
|
342
|
-
// (undocumented)
|
|
343
|
-
AuthorGroup = "AuthorGroup",
|
|
344
|
-
// (undocumented)
|
|
345
|
-
ChecklistProgress = "ChecklistProgress",
|
|
346
|
-
// (undocumented)
|
|
347
|
-
CollaboratorGroup = "CollaboratorGroup",
|
|
348
|
-
// (undocumented)
|
|
349
|
-
CommentCount = "CommentCount",
|
|
350
|
-
// (undocumented)
|
|
351
|
-
CreatedBy = "CreatedBy",
|
|
352
|
-
// (undocumented)
|
|
353
|
-
CreatedOn = "CreatedOn",
|
|
354
|
-
// (undocumented)
|
|
355
|
-
DueOn = "DueOn",
|
|
356
|
-
// (undocumented)
|
|
357
|
-
LatestCommit = "LatestCommit",
|
|
358
|
-
// (undocumented)
|
|
359
|
-
LinkIcon = "LinkIcon",
|
|
360
|
-
// (undocumented)
|
|
361
|
-
Location = "Location",
|
|
362
|
-
// (undocumented)
|
|
363
|
-
ModifiedBy = "ModifiedBy",
|
|
364
|
-
// (undocumented)
|
|
365
|
-
ModifiedOn = "ModifiedOn",
|
|
366
|
-
// (undocumented)
|
|
367
|
-
OwnedBy = "OwnedBy",
|
|
368
|
-
// (undocumented)
|
|
369
|
-
Preview = "Preview",
|
|
370
|
-
// (undocumented)
|
|
371
|
-
Priority = "Priority",
|
|
372
|
-
// (undocumented)
|
|
373
|
-
ProgrammingLanguage = "ProgrammingLanguage",
|
|
374
|
-
// (undocumented)
|
|
375
|
-
Provider = "Provider",
|
|
376
|
-
// (undocumented)
|
|
377
|
-
ReactCount = "ReactCount",
|
|
378
|
-
// (undocumented)
|
|
379
|
-
Snippet = "Snippet",
|
|
380
|
-
// (undocumented)
|
|
381
|
-
SourceBranch = "SourceBranch",
|
|
382
|
-
// (undocumented)
|
|
383
|
-
State = "State",
|
|
384
|
-
// (undocumented)
|
|
385
|
-
SubscriberCount = "SubscriberCount",
|
|
386
|
-
// (undocumented)
|
|
387
|
-
TargetBranch = "TargetBranch",
|
|
388
|
-
// (undocumented)
|
|
389
|
-
Title = "Title",
|
|
390
|
-
// (undocumented)
|
|
391
|
-
ViewCount = "ViewCount",
|
|
392
|
-
// (undocumented)
|
|
393
|
-
VoteCount = "VoteCount"
|
|
394
|
-
}
|
|
395
|
-
|
|
396
|
-
export { EmbedCardAdf }
|
|
397
|
-
|
|
398
|
-
// @public (undocumented)
|
|
399
|
-
export const embedHeaderHeight = 32;
|
|
400
|
-
|
|
401
|
-
// @public (undocumented)
|
|
402
|
-
type EmbedIframeUrlType = 'href' | 'interactiveHref';
|
|
403
|
-
|
|
404
|
-
// @public (undocumented)
|
|
405
|
-
export class EmbedResizeMessageListener extends React_2.Component<Props, State> {
|
|
406
|
-
// (undocumented)
|
|
407
|
-
componentDidMount(): void;
|
|
408
|
-
// (undocumented)
|
|
409
|
-
componentWillUnmount(): void;
|
|
410
|
-
// (undocumented)
|
|
411
|
-
render(): React_2.ReactNode;
|
|
412
|
-
}
|
|
413
|
-
|
|
414
|
-
// @public (undocumented)
|
|
415
|
-
type ErrorCardType = 'errored' | 'fallback' | 'forbidden' | 'not_found' | 'unauthorized';
|
|
416
|
-
|
|
417
|
-
// @public (undocumented)
|
|
418
|
-
type FlexibleUiOptions = {
|
|
419
|
-
clickableContainer?: boolean;
|
|
420
|
-
hideElevation?: boolean;
|
|
421
|
-
hideHoverCardPreviewButton?: boolean;
|
|
422
|
-
hidePadding?: boolean;
|
|
423
|
-
hideBackground?: boolean;
|
|
424
|
-
size?: SmartLinkSize;
|
|
425
|
-
theme?: SmartLinkTheme;
|
|
426
|
-
zIndex?: number;
|
|
427
|
-
};
|
|
428
|
-
|
|
429
|
-
// @public
|
|
430
|
-
export const FooterBlock: React_2.FC<FooterBlockProps>;
|
|
431
|
-
|
|
432
|
-
// @public (undocumented)
|
|
433
|
-
type FooterBlockProps = {
|
|
434
|
-
actions?: ActionItem[];
|
|
435
|
-
onActionMenuOpenChange?: (options: OnActionMenuOpenChangeOptions) => void;
|
|
436
|
-
} & BlockProps;
|
|
437
|
-
|
|
438
|
-
// @public (undocumented)
|
|
439
|
-
type FrameStyle = 'hide' | 'show' | 'showOnHover';
|
|
440
|
-
|
|
441
|
-
export { InlineCardAdf }
|
|
442
|
-
|
|
443
|
-
// @public (undocumented)
|
|
444
|
-
type InlinePreloaderStyle = 'on-left-with-skeleton' | 'on-right-without-skeleton';
|
|
445
|
-
|
|
446
|
-
// @public (undocumented)
|
|
447
|
-
type InstrumentEventProps = CommonEventProps & {
|
|
448
|
-
error?: APIError;
|
|
449
|
-
status: CardType;
|
|
450
|
-
id: string;
|
|
451
|
-
};
|
|
452
|
-
|
|
453
|
-
// @public (undocumented)
|
|
454
|
-
type InvokeFailedEventProps = CommonEventProps & {
|
|
455
|
-
id: string;
|
|
456
|
-
actionType: string;
|
|
457
|
-
display: CardInnerAppearance;
|
|
458
|
-
reason: string;
|
|
459
|
-
};
|
|
460
|
-
|
|
461
|
-
// @public (undocumented)
|
|
462
|
-
type InvokeSucceededEventProps = CommonEventProps & {
|
|
463
|
-
id: string;
|
|
464
|
-
actionType: string;
|
|
465
|
-
display: CardInnerAppearance;
|
|
466
|
-
};
|
|
467
|
-
|
|
468
|
-
// @public (undocumented)
|
|
469
|
-
type InvokeType = 'client' | 'server';
|
|
470
|
-
|
|
471
|
-
// @public
|
|
472
|
-
type LatestCommit = {
|
|
473
|
-
name: ElementName.LatestCommit;
|
|
474
|
-
};
|
|
475
|
-
|
|
476
|
-
// @public
|
|
477
|
-
type LinkIcon = {
|
|
478
|
-
name: ElementName.LinkIcon;
|
|
479
|
-
};
|
|
480
|
-
|
|
481
|
-
// @public (undocumented)
|
|
482
|
-
export const loadingPlaceholderClassName = "smart-link-loading-placeholder";
|
|
483
|
-
|
|
484
|
-
// @public
|
|
485
|
-
type Location_2 = {
|
|
486
|
-
name: ElementName.Location;
|
|
487
|
-
};
|
|
488
|
-
|
|
489
|
-
// @public (undocumented)
|
|
490
|
-
export enum MediaPlacement {
|
|
491
|
-
// (undocumented)
|
|
492
|
-
Left = "left",
|
|
493
|
-
// (undocumented)
|
|
494
|
-
Right = "right"
|
|
495
|
-
}
|
|
496
|
-
|
|
497
|
-
// @public
|
|
498
|
-
export const MetadataBlock: React_2.FC<MetadataBlockProps>;
|
|
499
|
-
|
|
500
|
-
// @public (undocumented)
|
|
501
|
-
type MetadataBlockProps = {
|
|
502
|
-
maxLines?: number;
|
|
503
|
-
primary?: ElementItem[];
|
|
504
|
-
secondary?: ElementItem[];
|
|
505
|
-
} & BlockProps;
|
|
506
|
-
|
|
507
|
-
// @public (undocumented)
|
|
508
|
-
export const metadataListClassName = "smart-link-metadata-list";
|
|
509
|
-
|
|
510
|
-
// @public
|
|
511
|
-
type ModifiedBy = {
|
|
512
|
-
name: ElementName.ModifiedBy;
|
|
513
|
-
};
|
|
514
|
-
|
|
515
|
-
// @public
|
|
516
|
-
type ModifiedOn = {
|
|
517
|
-
name: ElementName.ModifiedOn;
|
|
518
|
-
text?: string;
|
|
519
|
-
};
|
|
520
|
-
|
|
521
|
-
// @public
|
|
522
|
-
type NamedActionItem = BaseActionItem & {
|
|
523
|
-
name: ActionName.DeleteAction | ActionName.EditAction;
|
|
524
|
-
};
|
|
525
|
-
|
|
526
|
-
// @public
|
|
527
|
-
type NamedDataActionItem = BaseDataActionItem & {
|
|
528
|
-
name: ActionName.DownloadAction | ActionName.PreviewAction | ActionName.ViewAction;
|
|
529
|
-
};
|
|
530
|
-
|
|
531
|
-
// @public (undocumented)
|
|
532
|
-
export type OnActionMenuOpenChangeOptions = {
|
|
533
|
-
isOpen: boolean;
|
|
534
|
-
};
|
|
535
|
-
|
|
536
|
-
// @public (undocumented)
|
|
537
|
-
type OnErrorCallback = (data: {
|
|
538
|
-
status: Extract<CardType, ErrorCardType>;
|
|
539
|
-
url: string;
|
|
540
|
-
}) => void;
|
|
541
|
-
|
|
542
|
-
// @public (undocumented)
|
|
543
|
-
type OnResolveCallback = (data: {
|
|
544
|
-
url?: string;
|
|
545
|
-
title?: string;
|
|
546
|
-
aspectRatio?: number;
|
|
547
|
-
}) => void;
|
|
548
|
-
|
|
549
|
-
// @public
|
|
550
|
-
type OwnedBy = {
|
|
551
|
-
name: ElementName.OwnedBy;
|
|
552
|
-
};
|
|
553
|
-
|
|
554
|
-
// @public
|
|
555
|
-
type Preview = {
|
|
556
|
-
name: ElementName.Preview;
|
|
557
|
-
};
|
|
558
|
-
|
|
559
|
-
// @public
|
|
560
|
-
export const PreviewBlock: React_2.FC<PreviewBlockProps>;
|
|
561
|
-
|
|
562
|
-
// @public (undocumented)
|
|
563
|
-
type PreviewBlockProps = {
|
|
564
|
-
ignoreContainerPadding?: boolean;
|
|
565
|
-
onError?: () => void;
|
|
566
|
-
placement?: MediaPlacement;
|
|
567
|
-
} & BlockProps;
|
|
568
|
-
|
|
569
|
-
// @public (undocumented)
|
|
570
|
-
type PreviewDisplay = 'card' | 'embed';
|
|
571
|
-
|
|
572
|
-
// @public (undocumented)
|
|
573
|
-
type PreviewInvokeMethod = 'keyboard' | 'mouse_click' | 'mouse_hover';
|
|
574
|
-
|
|
575
|
-
// @public
|
|
576
|
-
type Priority = {
|
|
577
|
-
name: ElementName.Priority;
|
|
578
|
-
};
|
|
579
|
-
|
|
580
|
-
// @public
|
|
581
|
-
type ProgrammingLanguage = {
|
|
582
|
-
name: ElementName.ProgrammingLanguage;
|
|
583
|
-
};
|
|
584
|
-
|
|
585
|
-
// @public (undocumented)
|
|
586
|
-
interface Props {
|
|
587
|
-
// (undocumented)
|
|
588
|
-
embedIframeRef: React_2.RefObject<HTMLIFrameElement>;
|
|
589
|
-
// (undocumented)
|
|
590
|
-
onHeightUpdate: (height: number) => void;
|
|
591
|
-
}
|
|
592
|
-
|
|
593
|
-
export { Provider }
|
|
594
|
-
|
|
595
|
-
// @public
|
|
596
|
-
type Provider_2 = {
|
|
597
|
-
name: ElementName.Provider;
|
|
598
|
-
};
|
|
599
|
-
|
|
600
|
-
export { ProviderProps }
|
|
601
|
-
|
|
602
|
-
// @public
|
|
603
|
-
type ReactCount = {
|
|
604
|
-
name: ElementName.ReactCount;
|
|
605
|
-
};
|
|
606
|
-
|
|
607
|
-
// @public (undocumented)
|
|
608
|
-
export type ResolveResponse = JsonLd.Response;
|
|
609
|
-
|
|
610
|
-
// @public
|
|
611
|
-
type RetryOptions = {
|
|
612
|
-
descriptor?: MessageDescriptor;
|
|
613
|
-
onClick?: ((e: React.MouseEvent<HTMLElement>) => void) | undefined;
|
|
614
|
-
values?: Record<string, string>;
|
|
615
|
-
};
|
|
616
|
-
|
|
617
|
-
// @public (undocumented)
|
|
618
|
-
type ScreenAuthPopupEventProps = CommonEventProps;
|
|
619
|
-
|
|
620
|
-
export { SmartCardContext as Context }
|
|
621
|
-
export { SmartCardContext }
|
|
622
|
-
|
|
623
|
-
// @public
|
|
624
|
-
export enum SmartLinkDirection {
|
|
625
|
-
// (undocumented)
|
|
626
|
-
Horizontal = "horizontal",
|
|
627
|
-
// (undocumented)
|
|
628
|
-
Vertical = "vertical"
|
|
629
|
-
}
|
|
630
|
-
|
|
631
|
-
// @public (undocumented)
|
|
632
|
-
export class SmartLinkEvents {
|
|
633
|
-
// (undocumented)
|
|
634
|
-
insertSmartLink(url: string, type: CardInnerAppearance, createAnalyticsEvent?: CreateUIAnalyticsEvent): void;
|
|
635
|
-
}
|
|
636
|
-
|
|
637
|
-
// @public
|
|
638
|
-
export enum SmartLinkPosition {
|
|
639
|
-
// (undocumented)
|
|
640
|
-
Center = "center",
|
|
641
|
-
// (undocumented)
|
|
642
|
-
Top = "top"
|
|
643
|
-
}
|
|
644
|
-
|
|
645
|
-
// @public
|
|
646
|
-
export enum SmartLinkSize {
|
|
647
|
-
// (undocumented)
|
|
648
|
-
Large = "large",
|
|
649
|
-
// (undocumented)
|
|
650
|
-
Medium = "medium",
|
|
651
|
-
// (undocumented)
|
|
652
|
-
Small = "small",
|
|
653
|
-
// (undocumented)
|
|
654
|
-
XLarge = "xlarge"
|
|
655
|
-
}
|
|
656
|
-
|
|
657
|
-
// @public
|
|
658
|
-
enum SmartLinkStatus {
|
|
659
|
-
// (undocumented)
|
|
660
|
-
Errored = "errored",
|
|
661
|
-
// (undocumented)
|
|
662
|
-
Fallback = "fallback",
|
|
663
|
-
// (undocumented)
|
|
664
|
-
Forbidden = "forbidden",
|
|
665
|
-
// (undocumented)
|
|
666
|
-
NotFound = "not_found",
|
|
667
|
-
// (undocumented)
|
|
668
|
-
Pending = "pending",
|
|
669
|
-
// (undocumented)
|
|
670
|
-
Resolved = "resolved",
|
|
671
|
-
// (undocumented)
|
|
672
|
-
Resolving = "resolving",
|
|
673
|
-
// (undocumented)
|
|
674
|
-
Unauthorized = "unauthorized"
|
|
675
|
-
}
|
|
676
|
-
|
|
677
|
-
// @public
|
|
678
|
-
export enum SmartLinkTheme {
|
|
679
|
-
// (undocumented)
|
|
680
|
-
Black = "black",
|
|
681
|
-
// (undocumented)
|
|
682
|
-
Link = "link"
|
|
683
|
-
}
|
|
684
|
-
|
|
685
|
-
// @public
|
|
686
|
-
type Snippet = {
|
|
687
|
-
name: ElementName.Snippet;
|
|
688
|
-
};
|
|
689
|
-
|
|
690
|
-
// @public
|
|
691
|
-
export const SnippetBlock: React_2.FC<SnippetBlockProps>;
|
|
692
|
-
|
|
693
|
-
// @public (undocumented)
|
|
694
|
-
type SnippetBlockProps = {
|
|
695
|
-
maxLines?: number;
|
|
696
|
-
} & BlockProps;
|
|
697
|
-
|
|
698
|
-
// @public
|
|
699
|
-
type SourceBranch = {
|
|
700
|
-
name: ElementName.SourceBranch;
|
|
701
|
-
};
|
|
702
|
-
|
|
703
|
-
// @public (undocumented)
|
|
704
|
-
interface State {
|
|
705
|
-
}
|
|
706
|
-
|
|
707
|
-
// @public
|
|
708
|
-
type State_2 = {
|
|
709
|
-
name: ElementName.State;
|
|
710
|
-
};
|
|
711
|
-
|
|
712
|
-
// @public
|
|
713
|
-
type SubscriberCount = {
|
|
714
|
-
name: ElementName.SubscriberCount;
|
|
715
|
-
};
|
|
716
|
-
|
|
717
|
-
// @public
|
|
718
|
-
type TargetBranch = {
|
|
719
|
-
name: ElementName.TargetBranch;
|
|
720
|
-
};
|
|
721
|
-
|
|
722
|
-
// @public
|
|
723
|
-
type Title = {
|
|
724
|
-
name: ElementName.Title;
|
|
725
|
-
};
|
|
726
|
-
|
|
727
|
-
// @public
|
|
728
|
-
export const TitleBlock: React_2.FC<TitleBlockProps>;
|
|
729
|
-
|
|
730
|
-
// @public (undocumented)
|
|
731
|
-
type TitleBlockProps = {
|
|
732
|
-
actions?: ActionItem[];
|
|
733
|
-
anchorTarget?: AnchorTarget;
|
|
734
|
-
hideTitleTooltip?: boolean;
|
|
735
|
-
maxLines?: number;
|
|
736
|
-
metadata?: ElementItem[];
|
|
737
|
-
onActionMenuOpenChange?: (options: OnActionMenuOpenChangeOptions) => void;
|
|
738
|
-
position?: SmartLinkPosition;
|
|
739
|
-
onClick?: React_2.EventHandler<React_2.KeyboardEvent | React_2.MouseEvent>;
|
|
740
|
-
retry?: RetryOptions;
|
|
741
|
-
hideRetry?: boolean;
|
|
742
|
-
showActionOnHover?: boolean;
|
|
743
|
-
subtitle?: ElementItem[];
|
|
744
|
-
text?: string;
|
|
745
|
-
theme?: SmartLinkTheme;
|
|
746
|
-
} & BlockProps;
|
|
747
|
-
|
|
748
|
-
// @public (undocumented)
|
|
749
|
-
type TrackAppAccountConnectedProps = CommonEventProps;
|
|
750
|
-
|
|
751
|
-
// @public (undocumented)
|
|
752
|
-
type UiActionClickedEventProps = CommonEventProps & {
|
|
753
|
-
id: string;
|
|
754
|
-
display: CardInnerAppearance;
|
|
755
|
-
actionType: string;
|
|
756
|
-
invokeType?: InvokeType;
|
|
757
|
-
};
|
|
758
|
-
|
|
759
|
-
// @public (undocumented)
|
|
760
|
-
type UiAuthAlternateAccountEventProps = CommonEventProps & {
|
|
761
|
-
display: CardInnerAppearance;
|
|
762
|
-
};
|
|
763
|
-
|
|
764
|
-
// @public (undocumented)
|
|
765
|
-
type UiAuthEventProps = CommonEventProps & {
|
|
766
|
-
display: CardInnerAppearance;
|
|
767
|
-
};
|
|
768
|
-
|
|
769
|
-
// @public (undocumented)
|
|
770
|
-
type UiCardClickedEventProps = CommonEventProps & {
|
|
771
|
-
id: string;
|
|
772
|
-
display: CardInnerAppearance;
|
|
773
|
-
status: CardType;
|
|
774
|
-
isModifierKeyPressed?: boolean;
|
|
775
|
-
actionSubjectId?: string;
|
|
776
|
-
};
|
|
777
|
-
|
|
778
|
-
// @public (undocumented)
|
|
779
|
-
type UiClosedAuthEventProps = CommonEventProps & {
|
|
780
|
-
display: CardInnerAppearance;
|
|
781
|
-
};
|
|
782
|
-
|
|
783
|
-
// @public (undocumented)
|
|
784
|
-
type UiHoverCardDismissedEventProps = CommonEventProps & {
|
|
785
|
-
previewDisplay: PreviewDisplay;
|
|
786
|
-
hoverTime: number;
|
|
787
|
-
previewInvokeMethod?: PreviewInvokeMethod;
|
|
788
|
-
status: CardType;
|
|
789
|
-
};
|
|
790
|
-
|
|
791
|
-
// @public (undocumented)
|
|
792
|
-
type UiHoverCardOpenLinkClickedEventProps = CommonEventProps & {
|
|
793
|
-
previewDisplay: PreviewDisplay;
|
|
794
|
-
previewInvokeMethod?: PreviewInvokeMethod;
|
|
795
|
-
};
|
|
796
|
-
|
|
797
|
-
// @public (undocumented)
|
|
798
|
-
type UiHoverCardViewedEventProps = CommonEventProps & {
|
|
799
|
-
previewDisplay: PreviewDisplay;
|
|
800
|
-
previewInvokeMethod?: PreviewInvokeMethod;
|
|
801
|
-
status: CardType;
|
|
802
|
-
};
|
|
803
|
-
|
|
804
|
-
// @public (undocumented)
|
|
805
|
-
type UiIframeDwelledEventProps = CommonEventProps & {
|
|
806
|
-
id: string;
|
|
807
|
-
display: CardInnerAppearance;
|
|
808
|
-
status: CardType;
|
|
809
|
-
dwellTime: number;
|
|
810
|
-
dwellPercentVisible: number;
|
|
811
|
-
};
|
|
812
|
-
|
|
813
|
-
// @public (undocumented)
|
|
814
|
-
type UiIframeFocusedEventProps = CommonEventProps & {
|
|
815
|
-
id: string;
|
|
816
|
-
display: CardInnerAppearance;
|
|
817
|
-
status: CardType;
|
|
818
|
-
};
|
|
819
|
-
|
|
820
|
-
// @public (undocumented)
|
|
821
|
-
type UiRenderFailedEventProps = CommonEventProps & {
|
|
822
|
-
display: CardInnerAppearance;
|
|
823
|
-
error: Error;
|
|
824
|
-
errorInfo: ErrorInfo;
|
|
825
|
-
};
|
|
826
|
-
|
|
827
|
-
// @public (undocumented)
|
|
828
|
-
type UiRenderSuccessEventProps = CommonEventProps & {
|
|
829
|
-
display: CardInnerAppearance;
|
|
830
|
-
status: CardType;
|
|
831
|
-
};
|
|
832
|
-
|
|
833
|
-
// @public @deprecated
|
|
834
|
-
export const useSmartLinkAnalytics: (url: string, _dispatchAnalytics?: AnalyticsHandler | undefined, id?: string | undefined, defaultLocation?: string | undefined) => {
|
|
835
|
-
ui: {
|
|
836
|
-
authEvent: ({ display, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: UiAuthEventProps) => void;
|
|
837
|
-
authAlternateAccountEvent: ({ display, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: UiAuthAlternateAccountEventProps) => void;
|
|
838
|
-
buttonClickedEvent: (data: Partial<AnalyticsPayload> & {
|
|
839
|
-
actionSubjectId: Required<string>;
|
|
840
|
-
}) => void;
|
|
841
|
-
cardClickedEvent: ({ id, display, status, definitionId, extensionKey, isModifierKeyPressed, location, destinationProduct, destinationSubproduct, actionSubjectId, }: UiCardClickedEventProps) => void;
|
|
842
|
-
iframeDwelledEvent: ({ id, display, status, definitionId, extensionKey, location, destinationProduct, destinationSubproduct, dwellTime, dwellPercentVisible, }: UiIframeDwelledEventProps) => void;
|
|
843
|
-
iframeFocusedEvent: ({ id, display, status, definitionId, extensionKey, location, destinationProduct, destinationSubproduct, }: UiIframeFocusedEventProps) => void;
|
|
844
|
-
actionClickedEvent: ({ id, actionType, display, invokeType, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: UiActionClickedEventProps) => void;
|
|
845
|
-
hoverCardOpenLinkClickedEvent: ({ previewDisplay, definitionId, extensionKey, destinationProduct, destinationSubproduct, location, previewInvokeMethod, }: UiHoverCardOpenLinkClickedEventProps) => void;
|
|
846
|
-
closedAuthEvent: ({ display, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: UiClosedAuthEventProps) => void;
|
|
847
|
-
modalClosedEvent: (data: Partial<AnalyticsPayload> & {
|
|
848
|
-
actionSubjectId: Required<string>;
|
|
849
|
-
}) => void;
|
|
850
|
-
renderSuccessEvent: ({ display, status, id, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: UiRenderSuccessEventProps) => void;
|
|
851
|
-
renderFailedEvent: ({ display, id, error, errorInfo, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: UiRenderFailedEventProps) => void;
|
|
852
|
-
hoverCardViewedEvent: ({ previewDisplay, previewInvokeMethod, id, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, status, }: UiHoverCardViewedEventProps) => void;
|
|
853
|
-
hoverCardDismissedEvent: ({ id, previewDisplay, hoverTime, previewInvokeMethod, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, status, }: UiHoverCardDismissedEventProps) => void;
|
|
854
|
-
learnMoreClickedEvent: () => void;
|
|
855
|
-
};
|
|
856
|
-
operational: {
|
|
857
|
-
invokeSucceededEvent: ({ id, actionType, display, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: InvokeSucceededEventProps) => void;
|
|
858
|
-
invokeFailedEvent: ({ id, actionType, display, reason, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: InvokeFailedEventProps) => void;
|
|
859
|
-
connectSucceededEvent: ({ id, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: ConnectSucceededEventProps) => void;
|
|
860
|
-
connectFailedEvent: ({ id, reason, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: ConnectFailedEventProps) => void;
|
|
861
|
-
instrument: ({ id, status, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, error, }: InstrumentEventProps) => void;
|
|
862
|
-
chunkloadFailedEvent: ({ display, error, errorInfo, extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: UiRenderFailedEventProps) => void;
|
|
863
|
-
};
|
|
864
|
-
track: {
|
|
865
|
-
appAccountConnected: ({ extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: TrackAppAccountConnectedProps) => void;
|
|
866
|
-
appAccountAuthStarted: ({ extensionKey, location, }: TrackAppAccountConnectedProps) => void;
|
|
867
|
-
linkUpdated: (props: CommonEventProps & {
|
|
868
|
-
[key: string]: any;
|
|
869
|
-
}) => void;
|
|
870
|
-
};
|
|
871
|
-
screen: {
|
|
872
|
-
authPopupEvent: ({ extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: ScreenAuthPopupEventProps) => void;
|
|
873
|
-
modalViewedEvent: (data: Partial<AnalyticsPayload> & {
|
|
874
|
-
name: Extract<AnalyticsName, 'embedPreviewModal'>;
|
|
875
|
-
}) => void;
|
|
876
|
-
};
|
|
877
|
-
};
|
|
878
|
-
|
|
879
|
-
// @public (undocumented)
|
|
880
|
-
export function useSmartLinkEvents(): SmartLinkEvents;
|
|
881
|
-
|
|
882
|
-
// @public
|
|
883
|
-
type ViewCount = {
|
|
884
|
-
name: ElementName.ViewCount;
|
|
885
|
-
};
|
|
886
|
-
|
|
887
|
-
// @public
|
|
888
|
-
type VoteCount = {
|
|
889
|
-
name: ElementName.VoteCount;
|
|
890
|
-
};
|
|
891
|
-
|
|
892
|
-
// (No @packageDocumentation comment for this package)
|
|
893
|
-
|
|
894
|
-
```
|