@atlaskit/smart-card 43.1.8 → 43.1.9
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 +8 -0
- package/analytics.spec.yaml +7 -7
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/LinkUrl/HyperlinkResolver/index.js +1 -1
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/LinkUrl/HyperlinkResolver/index.js +1 -1
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/LinkUrl/HyperlinkResolver/index.js +1 -1
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/types/common/analytics/generated/analytics.types.d.ts +13 -13
- package/dist/types/view/Card/types.d.ts +1 -1
- package/dist/types-ts4.5/common/analytics/generated/analytics.types.d.ts +13 -13
- package/dist/types-ts4.5/view/Card/types.d.ts +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 43.1.9
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`6b483642e86d0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6b483642e86d0) -
|
|
8
|
+
Change the analytics "display" value for connection actions to be "url" instead of "hyperlink" for
|
|
9
|
+
consistency
|
|
10
|
+
|
|
3
11
|
## 43.1.8
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
package/analytics.spec.yaml
CHANGED
|
@@ -165,7 +165,7 @@ attributes:
|
|
|
165
165
|
description: The definitionId of the Smart Link resolver invoked.
|
|
166
166
|
display:
|
|
167
167
|
required: false
|
|
168
|
-
type: ['inline', 'block', 'embed', 'embedPreview', 'flexible', 'hoverCardPreview', '
|
|
168
|
+
type: ['inline', 'block', 'embed', 'embedPreview', 'flexible', 'hoverCardPreview', 'url']
|
|
169
169
|
description: Whether the card was an Inline, Block, Embed or Flexible UI.
|
|
170
170
|
resourceType:
|
|
171
171
|
required: false
|
|
@@ -313,7 +313,7 @@ events:
|
|
|
313
313
|
description: The unique ID for this Smart Link
|
|
314
314
|
display:
|
|
315
315
|
required: true
|
|
316
|
-
type: ['inline', 'block', 'embed', 'embedPreview', 'flexible', 'hoverCardPreview', '
|
|
316
|
+
type: ['inline', 'block', 'embed', 'embedPreview', 'flexible', 'hoverCardPreview', 'url']
|
|
317
317
|
description: Whether the card was an Inline, Block, Embed or Flexible UI
|
|
318
318
|
definitionId:
|
|
319
319
|
required: false
|
|
@@ -337,7 +337,7 @@ events:
|
|
|
337
337
|
description: The unique ID for this Smart Link.
|
|
338
338
|
display:
|
|
339
339
|
required: true
|
|
340
|
-
type: ['inline', 'block', 'embed', 'embedPreview', 'flexible', 'hoverCardPreview', '
|
|
340
|
+
type: ['inline', 'block', 'embed', 'embedPreview', 'flexible', 'hoverCardPreview', 'url']
|
|
341
341
|
description: Whether the card was an Inline, Block, Embed or Flexible UI.
|
|
342
342
|
definitionId:
|
|
343
343
|
required: false
|
|
@@ -480,7 +480,7 @@ events:
|
|
|
480
480
|
<<: [*PackageMetaDataContext, *CommonContext]
|
|
481
481
|
display:
|
|
482
482
|
required: true
|
|
483
|
-
type: ['inline', 'block', 'embed', 'embedPreview', 'flexible', 'hoverCardPreview', '
|
|
483
|
+
type: ['inline', 'block', 'embed', 'embedPreview', 'flexible', 'hoverCardPreview', 'url']
|
|
484
484
|
description: Whether the card was an Inline, Block, Embed or Flexible UI.
|
|
485
485
|
definitionId:
|
|
486
486
|
required: false
|
|
@@ -679,7 +679,7 @@ events:
|
|
|
679
679
|
<<: [*PackageMetaDataContext, *CommonContext]
|
|
680
680
|
display:
|
|
681
681
|
required: true
|
|
682
|
-
type: ['inline', 'block', 'embed', 'embedPreview', 'flexible', 'hoverCardPreview', '
|
|
682
|
+
type: ['inline', 'block', 'embed', 'embedPreview', 'flexible', 'hoverCardPreview', 'url']
|
|
683
683
|
description: Whether the card was an Inline, Block, Embed or Flexible UI.
|
|
684
684
|
definitionId:
|
|
685
685
|
required: false
|
|
@@ -694,7 +694,7 @@ events:
|
|
|
694
694
|
<<: [*PackageMetaDataContext, *CommonContext]
|
|
695
695
|
display:
|
|
696
696
|
required: true
|
|
697
|
-
type: ['inline', 'block', 'embed', 'embedPreview', 'flexible', 'hoverCardPreview', '
|
|
697
|
+
type: ['inline', 'block', 'embed', 'embedPreview', 'flexible', 'hoverCardPreview', 'url']
|
|
698
698
|
description: Whether the card was an Inline, Block, Embed or Flexible UI.
|
|
699
699
|
definitionId:
|
|
700
700
|
required: false
|
|
@@ -709,7 +709,7 @@ events:
|
|
|
709
709
|
<<: [*PackageMetaDataContext, *CommonContext]
|
|
710
710
|
display:
|
|
711
711
|
required: true
|
|
712
|
-
type: ['inline', 'block', 'embed', 'embedPreview', 'flexible', 'hoverCardPreview', '
|
|
712
|
+
type: ['inline', 'block', 'embed', 'embedPreview', 'flexible', 'hoverCardPreview', 'url']
|
|
713
713
|
description: Whether the card was an Inline, Block, Embed or Flexible UI.
|
|
714
714
|
definitionId:
|
|
715
715
|
required: false
|
|
@@ -11,7 +11,7 @@ var ANALYTICS_CHANNEL = exports.ANALYTICS_CHANNEL = 'media';
|
|
|
11
11
|
var context = exports.context = {
|
|
12
12
|
componentName: 'smart-cards',
|
|
13
13
|
packageName: "@atlaskit/smart-card",
|
|
14
|
-
packageVersion: "
|
|
14
|
+
packageVersion: "0.0.0-development"
|
|
15
15
|
};
|
|
16
16
|
var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
17
17
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -56,7 +56,7 @@ var HyperlinkWithSmartLinkResolverInner = function HyperlinkWithSmartLinkResolve
|
|
|
56
56
|
onClickCallback === null || onClickCallback === void 0 || onClickCallback(e);
|
|
57
57
|
}, [onClickCallback, fire3PClickEvent, state === null || state === void 0 ? void 0 : state.status]);
|
|
58
58
|
var onAuthorize = (0, _react.useCallback)(function () {
|
|
59
|
-
return actions.authorize('
|
|
59
|
+
return actions.authorize('url');
|
|
60
60
|
}, [actions]);
|
|
61
61
|
var shouldRenderConnectBtn = function shouldRenderConnectBtn() {
|
|
62
62
|
if (!props.children || !Array.isArray(props.children) || props.children.length === 0) {
|
|
@@ -22,7 +22,7 @@ var _excluded = ["href", "children", "checkSafety", "onClick", "testId", "isLink
|
|
|
22
22
|
_excluded2 = ["isLinkSafe", "showSafetyWarningModal"];
|
|
23
23
|
var PACKAGE_DATA = {
|
|
24
24
|
packageName: "@atlaskit/smart-card",
|
|
25
|
-
packageVersion: "
|
|
25
|
+
packageVersion: "0.0.0-development",
|
|
26
26
|
componentName: 'linkUrl'
|
|
27
27
|
};
|
|
28
28
|
var Anchor = (0, _click.withLinkClickedEvent)('a');
|
|
@@ -2,7 +2,7 @@ export const ANALYTICS_CHANNEL = 'media';
|
|
|
2
2
|
export const context = {
|
|
3
3
|
componentName: 'smart-cards',
|
|
4
4
|
packageName: "@atlaskit/smart-card",
|
|
5
|
-
packageVersion: "
|
|
5
|
+
packageVersion: "0.0.0-development"
|
|
6
6
|
};
|
|
7
7
|
export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
8
8
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -42,7 +42,7 @@ const HyperlinkWithSmartLinkResolverInner = ({
|
|
|
42
42
|
}
|
|
43
43
|
onClickCallback === null || onClickCallback === void 0 ? void 0 : onClickCallback(e);
|
|
44
44
|
}, [onClickCallback, fire3PClickEvent, state === null || state === void 0 ? void 0 : state.status]);
|
|
45
|
-
const onAuthorize = useCallback(() => actions.authorize('
|
|
45
|
+
const onAuthorize = useCallback(() => actions.authorize('url'), [actions]);
|
|
46
46
|
const shouldRenderConnectBtn = () => {
|
|
47
47
|
if (!props.children || !Array.isArray(props.children) || props.children.length === 0) {
|
|
48
48
|
return false;
|
|
@@ -12,7 +12,7 @@ import LinkWarningModal from './LinkWarningModal';
|
|
|
12
12
|
import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
|
|
13
13
|
const PACKAGE_DATA = {
|
|
14
14
|
packageName: "@atlaskit/smart-card",
|
|
15
|
-
packageVersion: "
|
|
15
|
+
packageVersion: "0.0.0-development",
|
|
16
16
|
componentName: 'linkUrl'
|
|
17
17
|
};
|
|
18
18
|
const Anchor = withLinkClickedEvent('a');
|
|
@@ -4,7 +4,7 @@ export var ANALYTICS_CHANNEL = 'media';
|
|
|
4
4
|
export var context = {
|
|
5
5
|
componentName: 'smart-cards',
|
|
6
6
|
packageName: "@atlaskit/smart-card",
|
|
7
|
-
packageVersion: "
|
|
7
|
+
packageVersion: "0.0.0-development"
|
|
8
8
|
};
|
|
9
9
|
export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
10
10
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -47,7 +47,7 @@ var HyperlinkWithSmartLinkResolverInner = function HyperlinkWithSmartLinkResolve
|
|
|
47
47
|
onClickCallback === null || onClickCallback === void 0 || onClickCallback(e);
|
|
48
48
|
}, [onClickCallback, fire3PClickEvent, state === null || state === void 0 ? void 0 : state.status]);
|
|
49
49
|
var onAuthorize = useCallback(function () {
|
|
50
|
-
return actions.authorize('
|
|
50
|
+
return actions.authorize('url');
|
|
51
51
|
}, [actions]);
|
|
52
52
|
var shouldRenderConnectBtn = function shouldRenderConnectBtn() {
|
|
53
53
|
if (!props.children || !Array.isArray(props.children) || props.children.length === 0) {
|
|
@@ -15,7 +15,7 @@ import LinkWarningModal from './LinkWarningModal';
|
|
|
15
15
|
import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
|
|
16
16
|
var PACKAGE_DATA = {
|
|
17
17
|
packageName: "@atlaskit/smart-card",
|
|
18
|
-
packageVersion: "
|
|
18
|
+
packageVersion: "0.0.0-development",
|
|
19
19
|
componentName: 'linkUrl'
|
|
20
20
|
};
|
|
21
21
|
var Anchor = withLinkClickedEvent('a');
|
|
@@ -37,35 +37,35 @@ export type ButtonClickedCopyLinkAttributesType = {
|
|
|
37
37
|
actionType: string | null;
|
|
38
38
|
id: string | null;
|
|
39
39
|
definitionId: string | null;
|
|
40
|
-
display: 'inline' | 'block' | 'embed' | 'embedPreview' | 'flexible' | 'hoverCardPreview' | '
|
|
40
|
+
display: 'inline' | 'block' | 'embed' | 'embedPreview' | 'flexible' | 'hoverCardPreview' | 'url' | null;
|
|
41
41
|
resourceType: string | null;
|
|
42
42
|
};
|
|
43
43
|
export type ButtonClickedDownloadDocumentAttributesType = {
|
|
44
44
|
actionType: string | null;
|
|
45
45
|
id: string | null;
|
|
46
46
|
definitionId: string | null;
|
|
47
|
-
display: 'inline' | 'block' | 'embed' | 'embedPreview' | 'flexible' | 'hoverCardPreview' | '
|
|
47
|
+
display: 'inline' | 'block' | 'embed' | 'embedPreview' | 'flexible' | 'hoverCardPreview' | 'url' | null;
|
|
48
48
|
resourceType: string | null;
|
|
49
49
|
};
|
|
50
50
|
export type ButtonClickedInvokePreviewScreenAttributesType = {
|
|
51
51
|
actionType: string | null;
|
|
52
52
|
id: string | null;
|
|
53
53
|
definitionId: string | null;
|
|
54
|
-
display: 'inline' | 'block' | 'embed' | 'embedPreview' | 'flexible' | 'hoverCardPreview' | '
|
|
54
|
+
display: 'inline' | 'block' | 'embed' | 'embedPreview' | 'flexible' | 'hoverCardPreview' | 'url' | null;
|
|
55
55
|
resourceType: string | null;
|
|
56
56
|
};
|
|
57
57
|
export type ButtonClickedShortcutGoToLinkAttributesType = {
|
|
58
58
|
actionType: string | null;
|
|
59
59
|
id: string | null;
|
|
60
60
|
definitionId: string | null;
|
|
61
|
-
display: 'inline' | 'block' | 'embed' | 'embedPreview' | 'flexible' | 'hoverCardPreview' | '
|
|
61
|
+
display: 'inline' | 'block' | 'embed' | 'embedPreview' | 'flexible' | 'hoverCardPreview' | 'url' | null;
|
|
62
62
|
resourceType: string | null;
|
|
63
63
|
};
|
|
64
64
|
export type ButtonClickedIssueStatusUpdateAttributesType = {
|
|
65
65
|
actionType: string | null;
|
|
66
66
|
id: string | null;
|
|
67
67
|
definitionId: string | null;
|
|
68
|
-
display: 'inline' | 'block' | 'embed' | 'embedPreview' | 'flexible' | 'hoverCardPreview' | '
|
|
68
|
+
display: 'inline' | 'block' | 'embed' | 'embedPreview' | 'flexible' | 'hoverCardPreview' | 'url' | null;
|
|
69
69
|
resourceType: string | null;
|
|
70
70
|
};
|
|
71
71
|
export type ButtonClickedAiSummaryAttributesType = {};
|
|
@@ -99,14 +99,14 @@ export type RelatedLinksFailedAttributesType = {
|
|
|
99
99
|
};
|
|
100
100
|
export type SmartLinkIframeDwelledAttributesType = {
|
|
101
101
|
id: string;
|
|
102
|
-
display: 'inline' | 'block' | 'embed' | 'embedPreview' | 'flexible' | 'hoverCardPreview' | '
|
|
102
|
+
display: 'inline' | 'block' | 'embed' | 'embedPreview' | 'flexible' | 'hoverCardPreview' | 'url';
|
|
103
103
|
definitionId: string | null;
|
|
104
104
|
dwellTime: number;
|
|
105
105
|
dwellPercentVisible: number;
|
|
106
106
|
};
|
|
107
107
|
export type SmartLinkIframeFocusedAttributesType = {
|
|
108
108
|
id: string;
|
|
109
|
-
display: 'inline' | 'block' | 'embed' | 'embedPreview' | 'flexible' | 'hoverCardPreview' | '
|
|
109
|
+
display: 'inline' | 'block' | 'embed' | 'embedPreview' | 'flexible' | 'hoverCardPreview' | 'url';
|
|
110
110
|
definitionId: string | null;
|
|
111
111
|
};
|
|
112
112
|
export type ApplicationAccountConnectedAttributesType = {
|
|
@@ -147,7 +147,7 @@ export type SmartLinkUnresolvedAttributesType = {
|
|
|
147
147
|
reason: string;
|
|
148
148
|
};
|
|
149
149
|
export type SmartLinkChunkLoadFailedAttributesType = {
|
|
150
|
-
display: 'inline' | 'block' | 'embed' | 'embedPreview' | 'flexible' | 'hoverCardPreview' | '
|
|
150
|
+
display: 'inline' | 'block' | 'embed' | 'embedPreview' | 'flexible' | 'hoverCardPreview' | 'url';
|
|
151
151
|
definitionId: string | null;
|
|
152
152
|
error: Record<string, unknown>;
|
|
153
153
|
errorInfo: Record<string, unknown>;
|
|
@@ -156,7 +156,7 @@ export type SmartLinkActionResolvedAttributesType = {
|
|
|
156
156
|
actionType: string | null;
|
|
157
157
|
id: string | null;
|
|
158
158
|
definitionId: string | null;
|
|
159
|
-
display: 'inline' | 'block' | 'embed' | 'embedPreview' | 'flexible' | 'hoverCardPreview' | '
|
|
159
|
+
display: 'inline' | 'block' | 'embed' | 'embedPreview' | 'flexible' | 'hoverCardPreview' | 'url' | null;
|
|
160
160
|
resourceType: string | null;
|
|
161
161
|
duration: number | null;
|
|
162
162
|
};
|
|
@@ -164,7 +164,7 @@ export type SmartLinkActionUnresolvedAttributesType = {
|
|
|
164
164
|
actionType: string | null;
|
|
165
165
|
id: string | null;
|
|
166
166
|
definitionId: string | null;
|
|
167
|
-
display: 'inline' | 'block' | 'embed' | 'embedPreview' | 'flexible' | 'hoverCardPreview' | '
|
|
167
|
+
display: 'inline' | 'block' | 'embed' | 'embedPreview' | 'flexible' | 'hoverCardPreview' | 'url' | null;
|
|
168
168
|
resourceType: string | null;
|
|
169
169
|
duration: number | null;
|
|
170
170
|
reason: string | null;
|
|
@@ -211,15 +211,15 @@ export type HoverCardDismissedAttributesType = {
|
|
|
211
211
|
definitionId: string | null;
|
|
212
212
|
};
|
|
213
213
|
export type ButtonClickedConnectAccountAttributesType = {
|
|
214
|
-
display: 'inline' | 'block' | 'embed' | 'embedPreview' | 'flexible' | 'hoverCardPreview' | '
|
|
214
|
+
display: 'inline' | 'block' | 'embed' | 'embedPreview' | 'flexible' | 'hoverCardPreview' | 'url';
|
|
215
215
|
definitionId: string | null;
|
|
216
216
|
};
|
|
217
217
|
export type SmartLinkClickedTryAnotherAccountAttributesType = {
|
|
218
|
-
display: 'inline' | 'block' | 'embed' | 'embedPreview' | 'flexible' | 'hoverCardPreview' | '
|
|
218
|
+
display: 'inline' | 'block' | 'embed' | 'embedPreview' | 'flexible' | 'hoverCardPreview' | 'url';
|
|
219
219
|
definitionId: string | null;
|
|
220
220
|
};
|
|
221
221
|
export type ConsentModalClosedAttributesType = {
|
|
222
|
-
display: 'inline' | 'block' | 'embed' | 'embedPreview' | 'flexible' | 'hoverCardPreview' | '
|
|
222
|
+
display: 'inline' | 'block' | 'embed' | 'embedPreview' | 'flexible' | 'hoverCardPreview' | 'url';
|
|
223
223
|
definitionId: string | null;
|
|
224
224
|
};
|
|
225
225
|
export type ModalClosedEmbedPreviewAttributesType = {
|
|
@@ -7,7 +7,7 @@ import { type FlexibleUiOptions } from '../FlexibleCard/types';
|
|
|
7
7
|
import { type HoverPreviewOptions } from '../HoverCard/types';
|
|
8
8
|
import { type InlinePreloaderStyle, type OnErrorCallback } from '../types';
|
|
9
9
|
export type { CardAppearance, CardPlatform };
|
|
10
|
-
export type CardInnerAppearance = CardAppearance | 'embedPreview' | 'flexible' | 'hoverCardPreview' | '
|
|
10
|
+
export type CardInnerAppearance = CardAppearance | 'embedPreview' | 'flexible' | 'hoverCardPreview' | 'url';
|
|
11
11
|
export type EmbedIframeUrlType = 'href' | 'interactiveHref';
|
|
12
12
|
export type OnResolveCallback = (data: {
|
|
13
13
|
aspectRatio?: number;
|
|
@@ -37,35 +37,35 @@ export type ButtonClickedCopyLinkAttributesType = {
|
|
|
37
37
|
actionType: string | null;
|
|
38
38
|
id: string | null;
|
|
39
39
|
definitionId: string | null;
|
|
40
|
-
display: 'inline' | 'block' | 'embed' | 'embedPreview' | 'flexible' | 'hoverCardPreview' | '
|
|
40
|
+
display: 'inline' | 'block' | 'embed' | 'embedPreview' | 'flexible' | 'hoverCardPreview' | 'url' | null;
|
|
41
41
|
resourceType: string | null;
|
|
42
42
|
};
|
|
43
43
|
export type ButtonClickedDownloadDocumentAttributesType = {
|
|
44
44
|
actionType: string | null;
|
|
45
45
|
id: string | null;
|
|
46
46
|
definitionId: string | null;
|
|
47
|
-
display: 'inline' | 'block' | 'embed' | 'embedPreview' | 'flexible' | 'hoverCardPreview' | '
|
|
47
|
+
display: 'inline' | 'block' | 'embed' | 'embedPreview' | 'flexible' | 'hoverCardPreview' | 'url' | null;
|
|
48
48
|
resourceType: string | null;
|
|
49
49
|
};
|
|
50
50
|
export type ButtonClickedInvokePreviewScreenAttributesType = {
|
|
51
51
|
actionType: string | null;
|
|
52
52
|
id: string | null;
|
|
53
53
|
definitionId: string | null;
|
|
54
|
-
display: 'inline' | 'block' | 'embed' | 'embedPreview' | 'flexible' | 'hoverCardPreview' | '
|
|
54
|
+
display: 'inline' | 'block' | 'embed' | 'embedPreview' | 'flexible' | 'hoverCardPreview' | 'url' | null;
|
|
55
55
|
resourceType: string | null;
|
|
56
56
|
};
|
|
57
57
|
export type ButtonClickedShortcutGoToLinkAttributesType = {
|
|
58
58
|
actionType: string | null;
|
|
59
59
|
id: string | null;
|
|
60
60
|
definitionId: string | null;
|
|
61
|
-
display: 'inline' | 'block' | 'embed' | 'embedPreview' | 'flexible' | 'hoverCardPreview' | '
|
|
61
|
+
display: 'inline' | 'block' | 'embed' | 'embedPreview' | 'flexible' | 'hoverCardPreview' | 'url' | null;
|
|
62
62
|
resourceType: string | null;
|
|
63
63
|
};
|
|
64
64
|
export type ButtonClickedIssueStatusUpdateAttributesType = {
|
|
65
65
|
actionType: string | null;
|
|
66
66
|
id: string | null;
|
|
67
67
|
definitionId: string | null;
|
|
68
|
-
display: 'inline' | 'block' | 'embed' | 'embedPreview' | 'flexible' | 'hoverCardPreview' | '
|
|
68
|
+
display: 'inline' | 'block' | 'embed' | 'embedPreview' | 'flexible' | 'hoverCardPreview' | 'url' | null;
|
|
69
69
|
resourceType: string | null;
|
|
70
70
|
};
|
|
71
71
|
export type ButtonClickedAiSummaryAttributesType = {};
|
|
@@ -99,14 +99,14 @@ export type RelatedLinksFailedAttributesType = {
|
|
|
99
99
|
};
|
|
100
100
|
export type SmartLinkIframeDwelledAttributesType = {
|
|
101
101
|
id: string;
|
|
102
|
-
display: 'inline' | 'block' | 'embed' | 'embedPreview' | 'flexible' | 'hoverCardPreview' | '
|
|
102
|
+
display: 'inline' | 'block' | 'embed' | 'embedPreview' | 'flexible' | 'hoverCardPreview' | 'url';
|
|
103
103
|
definitionId: string | null;
|
|
104
104
|
dwellTime: number;
|
|
105
105
|
dwellPercentVisible: number;
|
|
106
106
|
};
|
|
107
107
|
export type SmartLinkIframeFocusedAttributesType = {
|
|
108
108
|
id: string;
|
|
109
|
-
display: 'inline' | 'block' | 'embed' | 'embedPreview' | 'flexible' | 'hoverCardPreview' | '
|
|
109
|
+
display: 'inline' | 'block' | 'embed' | 'embedPreview' | 'flexible' | 'hoverCardPreview' | 'url';
|
|
110
110
|
definitionId: string | null;
|
|
111
111
|
};
|
|
112
112
|
export type ApplicationAccountConnectedAttributesType = {
|
|
@@ -147,7 +147,7 @@ export type SmartLinkUnresolvedAttributesType = {
|
|
|
147
147
|
reason: string;
|
|
148
148
|
};
|
|
149
149
|
export type SmartLinkChunkLoadFailedAttributesType = {
|
|
150
|
-
display: 'inline' | 'block' | 'embed' | 'embedPreview' | 'flexible' | 'hoverCardPreview' | '
|
|
150
|
+
display: 'inline' | 'block' | 'embed' | 'embedPreview' | 'flexible' | 'hoverCardPreview' | 'url';
|
|
151
151
|
definitionId: string | null;
|
|
152
152
|
error: Record<string, unknown>;
|
|
153
153
|
errorInfo: Record<string, unknown>;
|
|
@@ -156,7 +156,7 @@ export type SmartLinkActionResolvedAttributesType = {
|
|
|
156
156
|
actionType: string | null;
|
|
157
157
|
id: string | null;
|
|
158
158
|
definitionId: string | null;
|
|
159
|
-
display: 'inline' | 'block' | 'embed' | 'embedPreview' | 'flexible' | 'hoverCardPreview' | '
|
|
159
|
+
display: 'inline' | 'block' | 'embed' | 'embedPreview' | 'flexible' | 'hoverCardPreview' | 'url' | null;
|
|
160
160
|
resourceType: string | null;
|
|
161
161
|
duration: number | null;
|
|
162
162
|
};
|
|
@@ -164,7 +164,7 @@ export type SmartLinkActionUnresolvedAttributesType = {
|
|
|
164
164
|
actionType: string | null;
|
|
165
165
|
id: string | null;
|
|
166
166
|
definitionId: string | null;
|
|
167
|
-
display: 'inline' | 'block' | 'embed' | 'embedPreview' | 'flexible' | 'hoverCardPreview' | '
|
|
167
|
+
display: 'inline' | 'block' | 'embed' | 'embedPreview' | 'flexible' | 'hoverCardPreview' | 'url' | null;
|
|
168
168
|
resourceType: string | null;
|
|
169
169
|
duration: number | null;
|
|
170
170
|
reason: string | null;
|
|
@@ -211,15 +211,15 @@ export type HoverCardDismissedAttributesType = {
|
|
|
211
211
|
definitionId: string | null;
|
|
212
212
|
};
|
|
213
213
|
export type ButtonClickedConnectAccountAttributesType = {
|
|
214
|
-
display: 'inline' | 'block' | 'embed' | 'embedPreview' | 'flexible' | 'hoverCardPreview' | '
|
|
214
|
+
display: 'inline' | 'block' | 'embed' | 'embedPreview' | 'flexible' | 'hoverCardPreview' | 'url';
|
|
215
215
|
definitionId: string | null;
|
|
216
216
|
};
|
|
217
217
|
export type SmartLinkClickedTryAnotherAccountAttributesType = {
|
|
218
|
-
display: 'inline' | 'block' | 'embed' | 'embedPreview' | 'flexible' | 'hoverCardPreview' | '
|
|
218
|
+
display: 'inline' | 'block' | 'embed' | 'embedPreview' | 'flexible' | 'hoverCardPreview' | 'url';
|
|
219
219
|
definitionId: string | null;
|
|
220
220
|
};
|
|
221
221
|
export type ConsentModalClosedAttributesType = {
|
|
222
|
-
display: 'inline' | 'block' | 'embed' | 'embedPreview' | 'flexible' | 'hoverCardPreview' | '
|
|
222
|
+
display: 'inline' | 'block' | 'embed' | 'embedPreview' | 'flexible' | 'hoverCardPreview' | 'url';
|
|
223
223
|
definitionId: string | null;
|
|
224
224
|
};
|
|
225
225
|
export type ModalClosedEmbedPreviewAttributesType = {
|
|
@@ -7,7 +7,7 @@ import { type FlexibleUiOptions } from '../FlexibleCard/types';
|
|
|
7
7
|
import { type HoverPreviewOptions } from '../HoverCard/types';
|
|
8
8
|
import { type InlinePreloaderStyle, type OnErrorCallback } from '../types';
|
|
9
9
|
export type { CardAppearance, CardPlatform };
|
|
10
|
-
export type CardInnerAppearance = CardAppearance | 'embedPreview' | 'flexible' | 'hoverCardPreview' | '
|
|
10
|
+
export type CardInnerAppearance = CardAppearance | 'embedPreview' | 'flexible' | 'hoverCardPreview' | 'url';
|
|
11
11
|
export type EmbedIframeUrlType = 'href' | 'interactiveHref';
|
|
12
12
|
export type OnResolveCallback = (data: {
|
|
13
13
|
aspectRatio?: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/smart-card",
|
|
3
|
-
"version": "43.1.
|
|
3
|
+
"version": "43.1.9",
|
|
4
4
|
"description": "Smart card component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"@atlaskit/textarea": "^8.0.0",
|
|
71
71
|
"@atlaskit/textfield": "^8.0.0",
|
|
72
72
|
"@atlaskit/theme": "^21.0.0",
|
|
73
|
-
"@atlaskit/tmp-editor-statsig": "^13.
|
|
73
|
+
"@atlaskit/tmp-editor-statsig": "^13.12.0",
|
|
74
74
|
"@atlaskit/tokens": "^6.5.0",
|
|
75
75
|
"@atlaskit/tooltip": "^20.5.0",
|
|
76
76
|
"@atlaskit/ufo": "^0.4.0",
|