@atlaskit/smart-card 30.2.4 → 30.2.5
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 +9 -0
- package/analytics.spec.yaml +8 -8
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/CardWithUrl/component.js +0 -2
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/CardWithUrl/component.js +0 -2
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/CardWithUrl/component.js +0 -2
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/types/common/analytics/generated/analytics.types.d.ts +3 -3
- package/dist/types-ts4.5/common/analytics/generated/analytics.types.d.ts +3 -3
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 30.2.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#164921](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/164921)
|
|
8
|
+
[`e8067159036a3`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/e8067159036a3) -
|
|
9
|
+
Fix smartLinkIframe location attribute not being included when fired
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 30.2.4
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
package/analytics.spec.yaml
CHANGED
|
@@ -82,6 +82,14 @@ context:
|
|
|
82
82
|
type: boolean
|
|
83
83
|
required: false
|
|
84
84
|
description: An indicator that a link can be converted to datasource view
|
|
85
|
+
location:
|
|
86
|
+
required: false
|
|
87
|
+
type: string
|
|
88
|
+
description: Where the Smart Link is currently rendered
|
|
89
|
+
resourceType:
|
|
90
|
+
required: false
|
|
91
|
+
type: string
|
|
92
|
+
description: Type of resource the link is pointing to
|
|
85
93
|
|
|
86
94
|
attributes:
|
|
87
95
|
AiInteractionAttributes: &AiInteractionAttributes
|
|
@@ -222,10 +230,6 @@ events:
|
|
|
222
230
|
required: false
|
|
223
231
|
type: string
|
|
224
232
|
description: The definitionId of the Smart Link resolver invoked.
|
|
225
|
-
location:
|
|
226
|
-
required: false
|
|
227
|
-
type: string
|
|
228
|
-
description: Where the Smart Link is currently rendered
|
|
229
233
|
dwellTime:
|
|
230
234
|
required: true
|
|
231
235
|
type: number
|
|
@@ -250,7 +254,3 @@ events:
|
|
|
250
254
|
required: false
|
|
251
255
|
type: string
|
|
252
256
|
description: The definitionId of the Smart Link resolver invoked.
|
|
253
|
-
location:
|
|
254
|
-
required: false
|
|
255
|
-
type: string
|
|
256
|
-
description: Where the Smart Link is currently rendered.
|
|
@@ -22,7 +22,7 @@ var ANALYTICS_CHANNEL = exports.ANALYTICS_CHANNEL = 'media';
|
|
|
22
22
|
var context = exports.context = {
|
|
23
23
|
componentName: 'smart-cards',
|
|
24
24
|
packageName: "@atlaskit/smart-card",
|
|
25
|
-
packageVersion: "30.2.
|
|
25
|
+
packageVersion: "30.2.5"
|
|
26
26
|
};
|
|
27
27
|
var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
28
28
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -164,7 +164,6 @@ function Component(_ref) {
|
|
|
164
164
|
fireEvent('ui.smartLinkIframe.dwelled', {
|
|
165
165
|
id: id,
|
|
166
166
|
definitionId: definitionId !== null && definitionId !== void 0 ? definitionId : null,
|
|
167
|
-
location: null,
|
|
168
167
|
display: isFlexibleUi ? 'flexible' : appearance,
|
|
169
168
|
dwellPercentVisible: dwellPercentVisible,
|
|
170
169
|
dwellTime: dwellTime
|
|
@@ -188,7 +187,6 @@ function Component(_ref) {
|
|
|
188
187
|
fireEvent('ui.smartLinkIframe.focus', {
|
|
189
188
|
id: id,
|
|
190
189
|
definitionId: definitionId !== null && definitionId !== void 0 ? definitionId : null,
|
|
191
|
-
location: null,
|
|
192
190
|
display: isFlexibleUi ? 'flexible' : appearance
|
|
193
191
|
});
|
|
194
192
|
} else {
|
|
@@ -17,7 +17,7 @@ var _excluded = ["href", "children", "checkSafety", "onClick", "testId"],
|
|
|
17
17
|
_excluded2 = ["isLinkSafe", "showSafetyWarningModal"];
|
|
18
18
|
var PACKAGE_DATA = {
|
|
19
19
|
packageName: "@atlaskit/smart-card",
|
|
20
|
-
packageVersion: "30.2.
|
|
20
|
+
packageVersion: "30.2.5",
|
|
21
21
|
componentName: 'linkUrl'
|
|
22
22
|
};
|
|
23
23
|
var Link = (0, _click.withLinkClickedEvent)('a');
|
|
@@ -4,7 +4,7 @@ export const ANALYTICS_CHANNEL = 'media';
|
|
|
4
4
|
export const context = {
|
|
5
5
|
componentName: 'smart-cards',
|
|
6
6
|
packageName: "@atlaskit/smart-card",
|
|
7
|
-
packageVersion: "30.2.
|
|
7
|
+
packageVersion: "30.2.5"
|
|
8
8
|
};
|
|
9
9
|
export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
10
10
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -152,7 +152,6 @@ function Component({
|
|
|
152
152
|
fireEvent('ui.smartLinkIframe.dwelled', {
|
|
153
153
|
id,
|
|
154
154
|
definitionId: definitionId !== null && definitionId !== void 0 ? definitionId : null,
|
|
155
|
-
location: null,
|
|
156
155
|
display: isFlexibleUi ? 'flexible' : appearance,
|
|
157
156
|
dwellPercentVisible,
|
|
158
157
|
dwellTime
|
|
@@ -176,7 +175,6 @@ function Component({
|
|
|
176
175
|
fireEvent('ui.smartLinkIframe.focus', {
|
|
177
176
|
id,
|
|
178
177
|
definitionId: definitionId !== null && definitionId !== void 0 ? definitionId : null,
|
|
179
|
-
location: null,
|
|
180
178
|
display: isFlexibleUi ? 'flexible' : appearance
|
|
181
179
|
});
|
|
182
180
|
} else {
|
|
@@ -7,7 +7,7 @@ import LinkWarningModal from './LinkWarningModal';
|
|
|
7
7
|
import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
|
|
8
8
|
const PACKAGE_DATA = {
|
|
9
9
|
packageName: "@atlaskit/smart-card",
|
|
10
|
-
packageVersion: "30.2.
|
|
10
|
+
packageVersion: "30.2.5",
|
|
11
11
|
componentName: 'linkUrl'
|
|
12
12
|
};
|
|
13
13
|
const Link = withLinkClickedEvent('a');
|
|
@@ -15,7 +15,7 @@ export var ANALYTICS_CHANNEL = 'media';
|
|
|
15
15
|
export var context = {
|
|
16
16
|
componentName: 'smart-cards',
|
|
17
17
|
packageName: "@atlaskit/smart-card",
|
|
18
|
-
packageVersion: "30.2.
|
|
18
|
+
packageVersion: "30.2.5"
|
|
19
19
|
};
|
|
20
20
|
export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
21
21
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -154,7 +154,6 @@ function Component(_ref) {
|
|
|
154
154
|
fireEvent('ui.smartLinkIframe.dwelled', {
|
|
155
155
|
id: id,
|
|
156
156
|
definitionId: definitionId !== null && definitionId !== void 0 ? definitionId : null,
|
|
157
|
-
location: null,
|
|
158
157
|
display: isFlexibleUi ? 'flexible' : appearance,
|
|
159
158
|
dwellPercentVisible: dwellPercentVisible,
|
|
160
159
|
dwellTime: dwellTime
|
|
@@ -178,7 +177,6 @@ function Component(_ref) {
|
|
|
178
177
|
fireEvent('ui.smartLinkIframe.focus', {
|
|
179
178
|
id: id,
|
|
180
179
|
definitionId: definitionId !== null && definitionId !== void 0 ? definitionId : null,
|
|
181
|
-
location: null,
|
|
182
180
|
display: isFlexibleUi ? 'flexible' : appearance
|
|
183
181
|
});
|
|
184
182
|
} else {
|
|
@@ -10,7 +10,7 @@ import LinkWarningModal from './LinkWarningModal';
|
|
|
10
10
|
import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
|
|
11
11
|
var PACKAGE_DATA = {
|
|
12
12
|
packageName: "@atlaskit/smart-card",
|
|
13
|
-
packageVersion: "30.2.
|
|
13
|
+
packageVersion: "30.2.5",
|
|
14
14
|
componentName: 'linkUrl'
|
|
15
15
|
};
|
|
16
16
|
var Link = withLinkClickedEvent('a');
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Generates Typescript types for analytics events from analytics.spec.yaml
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::1b003c1bbf9093c5eb592e8d6a034d9c>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlassian/analytics-tooling run analytics:codegen smart-card
|
|
8
8
|
*/
|
|
9
9
|
export type PackageMetaDataContextType = {
|
|
@@ -23,6 +23,8 @@ export type ResolvedContextType = {
|
|
|
23
23
|
destinationContainerId: string | null;
|
|
24
24
|
destinationTenantId: string | null;
|
|
25
25
|
canBeDatasource: boolean | null;
|
|
26
|
+
location: string | null;
|
|
27
|
+
resourceType: string | null;
|
|
26
28
|
};
|
|
27
29
|
export type ButtonClickedAiSummaryAttributesType = {};
|
|
28
30
|
export type ButtonClickedCopySummaryAttributesType = {};
|
|
@@ -57,7 +59,6 @@ export type SmartLinkIframeDwelledAttributesType = {
|
|
|
57
59
|
id: string;
|
|
58
60
|
display: 'inline' | 'block' | 'embed' | 'embedPreview' | 'flexible' | 'hoverCardPreview';
|
|
59
61
|
definitionId: string | null;
|
|
60
|
-
location: string | null;
|
|
61
62
|
dwellTime: number;
|
|
62
63
|
dwellPercentVisible: number;
|
|
63
64
|
};
|
|
@@ -65,7 +66,6 @@ export type SmartLinkIframeFocusAttributesType = {
|
|
|
65
66
|
id: string;
|
|
66
67
|
display: 'inline' | 'block' | 'embed' | 'embedPreview' | 'flexible' | 'hoverCardPreview';
|
|
67
68
|
definitionId: string | null;
|
|
68
|
-
location: string | null;
|
|
69
69
|
};
|
|
70
70
|
export type AnalyticsEventAttributes = {
|
|
71
71
|
/**
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Generates Typescript types for analytics events from analytics.spec.yaml
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::1b003c1bbf9093c5eb592e8d6a034d9c>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlassian/analytics-tooling run analytics:codegen smart-card
|
|
8
8
|
*/
|
|
9
9
|
export type PackageMetaDataContextType = {
|
|
@@ -23,6 +23,8 @@ export type ResolvedContextType = {
|
|
|
23
23
|
destinationContainerId: string | null;
|
|
24
24
|
destinationTenantId: string | null;
|
|
25
25
|
canBeDatasource: boolean | null;
|
|
26
|
+
location: string | null;
|
|
27
|
+
resourceType: string | null;
|
|
26
28
|
};
|
|
27
29
|
export type ButtonClickedAiSummaryAttributesType = {};
|
|
28
30
|
export type ButtonClickedCopySummaryAttributesType = {};
|
|
@@ -57,7 +59,6 @@ export type SmartLinkIframeDwelledAttributesType = {
|
|
|
57
59
|
id: string;
|
|
58
60
|
display: 'inline' | 'block' | 'embed' | 'embedPreview' | 'flexible' | 'hoverCardPreview';
|
|
59
61
|
definitionId: string | null;
|
|
60
|
-
location: string | null;
|
|
61
62
|
dwellTime: number;
|
|
62
63
|
dwellPercentVisible: number;
|
|
63
64
|
};
|
|
@@ -65,7 +66,6 @@ export type SmartLinkIframeFocusAttributesType = {
|
|
|
65
66
|
id: string;
|
|
66
67
|
display: 'inline' | 'block' | 'embed' | 'embedPreview' | 'flexible' | 'hoverCardPreview';
|
|
67
68
|
definitionId: string | null;
|
|
68
|
-
location: string | null;
|
|
69
69
|
};
|
|
70
70
|
export type AnalyticsEventAttributes = {
|
|
71
71
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/smart-card",
|
|
3
|
-
"version": "30.2.
|
|
3
|
+
"version": "30.2.5",
|
|
4
4
|
"description": "Smart card component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"@atlaskit/outbound-auth-flow-client": "^3.4.0",
|
|
53
53
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
54
54
|
"@atlaskit/popup": "^1.29.0",
|
|
55
|
-
"@atlaskit/primitives": "^13.
|
|
55
|
+
"@atlaskit/primitives": "^13.2.0",
|
|
56
56
|
"@atlaskit/section-message": "^6.6.0",
|
|
57
57
|
"@atlaskit/select": "^18.5.0",
|
|
58
58
|
"@atlaskit/spinner": "^16.3.0",
|