@atlaskit/smart-card 40.10.7 → 40.10.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 +15 -0
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/BlockCard/index.js +4 -6
- package/dist/cjs/view/CardWithUrl/component.js +2 -3
- package/dist/cjs/view/EmbedCard/index.js +14 -16
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/BlockCard/index.js +4 -6
- package/dist/es2019/view/CardWithUrl/component.js +2 -3
- package/dist/es2019/view/EmbedCard/index.js +14 -16
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/BlockCard/index.js +4 -6
- package/dist/esm/view/CardWithUrl/component.js +2 -3
- package/dist/esm/view/EmbedCard/index.js +14 -16
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 40.10.9
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`cd3b62d1e54e9`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/cd3b62d1e54e9) -
|
|
8
|
+
Removing Feature-Gate checks for contacting DSP on smart card evaluation
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 40.10.8
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [`1550f241c339b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/1550f241c339b) -
|
|
16
|
+
Updated CardWithURL to remove clickedAt field for component non breaking issue
|
|
17
|
+
|
|
3
18
|
## 40.10.7
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -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: "40.10.
|
|
14
|
+
packageVersion: "40.10.8"
|
|
15
15
|
};
|
|
16
16
|
var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
17
17
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -65,12 +65,10 @@ var BlockCard = exports.BlockCard = function BlockCard(_ref2) {
|
|
|
65
65
|
testId: "smart-block-resolving-view"
|
|
66
66
|
})));
|
|
67
67
|
case 'resolved':
|
|
68
|
-
if ((0,
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
}));
|
|
73
|
-
}
|
|
68
|
+
if ((0, _shouldDataExport.getIsDataExportEnabled)(shouldControlDataExport, cardState.details)) {
|
|
69
|
+
return /*#__PURE__*/_react.default.createElement(_UnauthorisedView.default, (0, _extends2.default)({}, blockCardProps, {
|
|
70
|
+
onAuthorize: handleAuthorize
|
|
71
|
+
}));
|
|
74
72
|
}
|
|
75
73
|
return /*#__PURE__*/_react.default.createElement(_ResolvedView.default, blockCardProps);
|
|
76
74
|
case 'unauthorized':
|
|
@@ -103,11 +103,10 @@ function Component(_ref) {
|
|
|
103
103
|
action: 'clicked',
|
|
104
104
|
actionSubject: 'smartLink',
|
|
105
105
|
actionSubjectId: 'smartlinkClickAnalyticsWorkflows',
|
|
106
|
-
eventType: '
|
|
106
|
+
eventType: 'ui',
|
|
107
107
|
attributes: {
|
|
108
108
|
eventName: 'smartLinkClickAnalyticsThirdPartyWorkflows',
|
|
109
|
-
firstPartyIdentifier: firstPartyIdentifier
|
|
110
|
-
clickedAt: Date.now().toString()
|
|
109
|
+
firstPartyIdentifier: firstPartyIdentifier
|
|
111
110
|
},
|
|
112
111
|
nonPrivacySafeAttributes: {
|
|
113
112
|
thirdPartyARI: thirdPartyARI
|
|
@@ -82,22 +82,20 @@ var EmbedCard = exports.EmbedCard = /*#__PURE__*/_react.default.forwardRef(funct
|
|
|
82
82
|
aspectRatio: (_resolvedViewProps$pr = resolvedViewProps.preview) === null || _resolvedViewProps$pr === void 0 ? void 0 : _resolvedViewProps$pr.aspectRatio
|
|
83
83
|
});
|
|
84
84
|
}
|
|
85
|
-
if ((0,
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
});
|
|
100
|
-
}
|
|
85
|
+
if ((0, _shouldDataExport.getIsDataExportEnabled)(shouldControlDataExport, cardState.details)) {
|
|
86
|
+
var unauthViewProps = (0, _embed.extractEmbedProps)(details, platform);
|
|
87
|
+
return /*#__PURE__*/_react.default.createElement(_unauthorizedView.default, {
|
|
88
|
+
context: unauthViewProps.context,
|
|
89
|
+
extensionKey: extensionKey,
|
|
90
|
+
frameStyle: frameStyle,
|
|
91
|
+
isProductIntegrationSupported: isProductIntegrationSupported,
|
|
92
|
+
inheritDimensions: inheritDimensions,
|
|
93
|
+
isSelected: isSelected,
|
|
94
|
+
onAuthorize: handleAuthorize,
|
|
95
|
+
onClick: handleFrameClick,
|
|
96
|
+
testId: testId,
|
|
97
|
+
url: unauthViewProps.link
|
|
98
|
+
});
|
|
101
99
|
}
|
|
102
100
|
if (resolvedViewProps.preview) {
|
|
103
101
|
return /*#__PURE__*/_react.default.createElement(_ResolvedView3.EmbedCardResolvedView, (0, _extends2.default)({}, resolvedViewProps, {
|
|
@@ -19,7 +19,7 @@ var _excluded = ["href", "children", "checkSafety", "onClick", "testId", "isLink
|
|
|
19
19
|
_excluded2 = ["isLinkSafe", "showSafetyWarningModal"];
|
|
20
20
|
var PACKAGE_DATA = {
|
|
21
21
|
packageName: "@atlaskit/smart-card",
|
|
22
|
-
packageVersion: "40.10.
|
|
22
|
+
packageVersion: "40.10.8",
|
|
23
23
|
componentName: 'linkUrl'
|
|
24
24
|
};
|
|
25
25
|
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: "40.10.
|
|
5
|
+
packageVersion: "40.10.8"
|
|
6
6
|
};
|
|
7
7
|
export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
8
8
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -60,12 +60,10 @@ export const BlockCard = ({
|
|
|
60
60
|
testId: "smart-block-resolving-view"
|
|
61
61
|
})));
|
|
62
62
|
case 'resolved':
|
|
63
|
-
if (
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
}));
|
|
68
|
-
}
|
|
63
|
+
if (getIsDataExportEnabled(shouldControlDataExport, cardState.details)) {
|
|
64
|
+
return /*#__PURE__*/React.createElement(UnauthorisedView, _extends({}, blockCardProps, {
|
|
65
|
+
onAuthorize: handleAuthorize
|
|
66
|
+
}));
|
|
69
67
|
}
|
|
70
68
|
return /*#__PURE__*/React.createElement(ResolvedView, blockCardProps);
|
|
71
69
|
case 'unauthorized':
|
|
@@ -96,11 +96,10 @@ function Component({
|
|
|
96
96
|
action: 'clicked',
|
|
97
97
|
actionSubject: 'smartLink',
|
|
98
98
|
actionSubjectId: 'smartlinkClickAnalyticsWorkflows',
|
|
99
|
-
eventType: '
|
|
99
|
+
eventType: 'ui',
|
|
100
100
|
attributes: {
|
|
101
101
|
eventName: 'smartLinkClickAnalyticsThirdPartyWorkflows',
|
|
102
|
-
firstPartyIdentifier: firstPartyIdentifier
|
|
103
|
-
clickedAt: Date.now().toString()
|
|
102
|
+
firstPartyIdentifier: firstPartyIdentifier
|
|
104
103
|
},
|
|
105
104
|
nonPrivacySafeAttributes: {
|
|
106
105
|
thirdPartyARI: thirdPartyARI
|
|
@@ -80,22 +80,20 @@ export const EmbedCard = /*#__PURE__*/React.forwardRef(({
|
|
|
80
80
|
aspectRatio: (_resolvedViewProps$pr = resolvedViewProps.preview) === null || _resolvedViewProps$pr === void 0 ? void 0 : _resolvedViewProps$pr.aspectRatio
|
|
81
81
|
});
|
|
82
82
|
}
|
|
83
|
-
if (
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
});
|
|
98
|
-
}
|
|
83
|
+
if (getIsDataExportEnabled(shouldControlDataExport, cardState.details)) {
|
|
84
|
+
const unauthViewProps = extractEmbedProps(details, platform);
|
|
85
|
+
return /*#__PURE__*/React.createElement(UnauthorizedView, {
|
|
86
|
+
context: unauthViewProps.context,
|
|
87
|
+
extensionKey: extensionKey,
|
|
88
|
+
frameStyle: frameStyle,
|
|
89
|
+
isProductIntegrationSupported: isProductIntegrationSupported,
|
|
90
|
+
inheritDimensions: inheritDimensions,
|
|
91
|
+
isSelected: isSelected,
|
|
92
|
+
onAuthorize: handleAuthorize,
|
|
93
|
+
onClick: handleFrameClick,
|
|
94
|
+
testId: testId,
|
|
95
|
+
url: unauthViewProps.link
|
|
96
|
+
});
|
|
99
97
|
}
|
|
100
98
|
if (resolvedViewProps.preview) {
|
|
101
99
|
return /*#__PURE__*/React.createElement(EmbedCardResolvedView, _extends({}, resolvedViewProps, {
|
|
@@ -9,7 +9,7 @@ import LinkWarningModal from './LinkWarningModal';
|
|
|
9
9
|
import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
|
|
10
10
|
const PACKAGE_DATA = {
|
|
11
11
|
packageName: "@atlaskit/smart-card",
|
|
12
|
-
packageVersion: "40.10.
|
|
12
|
+
packageVersion: "40.10.8",
|
|
13
13
|
componentName: 'linkUrl'
|
|
14
14
|
};
|
|
15
15
|
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: "40.10.
|
|
7
|
+
packageVersion: "40.10.8"
|
|
8
8
|
};
|
|
9
9
|
export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
10
10
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -58,12 +58,10 @@ export var BlockCard = function BlockCard(_ref2) {
|
|
|
58
58
|
testId: "smart-block-resolving-view"
|
|
59
59
|
})));
|
|
60
60
|
case 'resolved':
|
|
61
|
-
if (
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
}));
|
|
66
|
-
}
|
|
61
|
+
if (getIsDataExportEnabled(shouldControlDataExport, cardState.details)) {
|
|
62
|
+
return /*#__PURE__*/React.createElement(UnauthorisedView, _extends({}, blockCardProps, {
|
|
63
|
+
onAuthorize: handleAuthorize
|
|
64
|
+
}));
|
|
67
65
|
}
|
|
68
66
|
return /*#__PURE__*/React.createElement(ResolvedView, blockCardProps);
|
|
69
67
|
case 'unauthorized':
|
|
@@ -94,11 +94,10 @@ function Component(_ref) {
|
|
|
94
94
|
action: 'clicked',
|
|
95
95
|
actionSubject: 'smartLink',
|
|
96
96
|
actionSubjectId: 'smartlinkClickAnalyticsWorkflows',
|
|
97
|
-
eventType: '
|
|
97
|
+
eventType: 'ui',
|
|
98
98
|
attributes: {
|
|
99
99
|
eventName: 'smartLinkClickAnalyticsThirdPartyWorkflows',
|
|
100
|
-
firstPartyIdentifier: firstPartyIdentifier
|
|
101
|
-
clickedAt: Date.now().toString()
|
|
100
|
+
firstPartyIdentifier: firstPartyIdentifier
|
|
102
101
|
},
|
|
103
102
|
nonPrivacySafeAttributes: {
|
|
104
103
|
thirdPartyARI: thirdPartyARI
|
|
@@ -75,22 +75,20 @@ export var EmbedCard = /*#__PURE__*/React.forwardRef(function (_ref2, iframeRef)
|
|
|
75
75
|
aspectRatio: (_resolvedViewProps$pr = resolvedViewProps.preview) === null || _resolvedViewProps$pr === void 0 ? void 0 : _resolvedViewProps$pr.aspectRatio
|
|
76
76
|
});
|
|
77
77
|
}
|
|
78
|
-
if (
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
});
|
|
93
|
-
}
|
|
78
|
+
if (getIsDataExportEnabled(shouldControlDataExport, cardState.details)) {
|
|
79
|
+
var unauthViewProps = extractEmbedProps(details, platform);
|
|
80
|
+
return /*#__PURE__*/React.createElement(UnauthorizedView, {
|
|
81
|
+
context: unauthViewProps.context,
|
|
82
|
+
extensionKey: extensionKey,
|
|
83
|
+
frameStyle: frameStyle,
|
|
84
|
+
isProductIntegrationSupported: isProductIntegrationSupported,
|
|
85
|
+
inheritDimensions: inheritDimensions,
|
|
86
|
+
isSelected: isSelected,
|
|
87
|
+
onAuthorize: handleAuthorize,
|
|
88
|
+
onClick: handleFrameClick,
|
|
89
|
+
testId: testId,
|
|
90
|
+
url: unauthViewProps.link
|
|
91
|
+
});
|
|
94
92
|
}
|
|
95
93
|
if (resolvedViewProps.preview) {
|
|
96
94
|
return /*#__PURE__*/React.createElement(EmbedCardResolvedView, _extends({}, resolvedViewProps, {
|
|
@@ -12,7 +12,7 @@ import LinkWarningModal from './LinkWarningModal';
|
|
|
12
12
|
import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
|
|
13
13
|
var PACKAGE_DATA = {
|
|
14
14
|
packageName: "@atlaskit/smart-card",
|
|
15
|
-
packageVersion: "40.10.
|
|
15
|
+
packageVersion: "40.10.8",
|
|
16
16
|
componentName: 'linkUrl'
|
|
17
17
|
};
|
|
18
18
|
var Anchor = withLinkClickedEvent('a');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/smart-card",
|
|
3
|
-
"version": "40.10.
|
|
3
|
+
"version": "40.10.9",
|
|
4
4
|
"description": "Smart card component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"@atlaskit/link-client-extension": "^5.0.0",
|
|
53
53
|
"@atlaskit/link-extractors": "^2.4.0",
|
|
54
54
|
"@atlaskit/link-test-helpers": "^8.3.0",
|
|
55
|
-
"@atlaskit/linking-common": "^9.
|
|
55
|
+
"@atlaskit/linking-common": "^9.5.0",
|
|
56
56
|
"@atlaskit/linking-types": "^14.0.0",
|
|
57
57
|
"@atlaskit/logo": "^19.7.0",
|
|
58
58
|
"@atlaskit/lozenge": "^13.0.0",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"@atlaskit/textarea": "^8.0.0",
|
|
69
69
|
"@atlaskit/textfield": "^8.0.0",
|
|
70
70
|
"@atlaskit/theme": "^19.0.0",
|
|
71
|
-
"@atlaskit/tmp-editor-statsig": "^11.
|
|
71
|
+
"@atlaskit/tmp-editor-statsig": "^11.3.0",
|
|
72
72
|
"@atlaskit/tokens": "^6.0.0",
|
|
73
73
|
"@atlaskit/tooltip": "^20.4.0",
|
|
74
74
|
"@atlaskit/ufo": "^0.4.0",
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
"uuid": "^3.1.0"
|
|
88
88
|
},
|
|
89
89
|
"peerDependencies": {
|
|
90
|
-
"@atlaskit/link-provider": "^3.
|
|
90
|
+
"@atlaskit/link-provider": "^3.7.0",
|
|
91
91
|
"react": "^18.2.0",
|
|
92
92
|
"react-dom": "^18.2.0",
|
|
93
93
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
"@atlaskit/analytics-listeners": "^9.0.0",
|
|
99
99
|
"@atlaskit/css-reset": "^7.3.0",
|
|
100
100
|
"@atlaskit/media-test-helpers": "^39.0.0",
|
|
101
|
-
"@atlaskit/react-ufo": "^4.
|
|
101
|
+
"@atlaskit/react-ufo": "^4.4.0",
|
|
102
102
|
"@atlaskit/ssr": "workspace:^",
|
|
103
103
|
"@atlaskit/visual-regression": "workspace:^",
|
|
104
104
|
"@atlassian/analytics-tooling": "^0.5.0",
|
|
@@ -188,7 +188,7 @@
|
|
|
188
188
|
"fix_a11y_violation_in_hover_card_trigger": {
|
|
189
189
|
"type": "boolean"
|
|
190
190
|
},
|
|
191
|
-
"
|
|
191
|
+
"smart_links_noun_support": {
|
|
192
192
|
"type": "boolean"
|
|
193
193
|
},
|
|
194
194
|
"platform-linking-ai-summary-migration-to-convo-ai": {
|