@atlaskit/smart-card 45.7.3 → 45.8.1
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 +20 -0
- package/dist/cjs/state/hooks/use-response/index.js +4 -1
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/state/hooks/use-response/index.js +4 -1
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/state/hooks/use-response/index.js +4 -1
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/package.json +26 -15
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 45.8.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`3e0cde5dabf41`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3e0cde5dabf41) -
|
|
8
|
+
Resolve hover card metadata for unauthorized Smart Links when inline resolve optimization is
|
|
9
|
+
enabled.
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 45.8.0
|
|
13
|
+
|
|
14
|
+
### Minor Changes
|
|
15
|
+
|
|
16
|
+
- [`2f56c78f969b8`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/2f56c78f969b8) -
|
|
17
|
+
Update i18n NPM package versions for teamwork-graph (Group 16)
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- Updated dependencies
|
|
22
|
+
|
|
3
23
|
## 45.7.3
|
|
4
24
|
|
|
5
25
|
### Patch Changes
|
|
@@ -80,7 +80,10 @@ var useResponse = function useResponse() {
|
|
|
80
80
|
var handleResolvedLinkSuccess = (0, _react.useCallback)(function (resourceUrl, response, isReloading, isMetadataRequest) {
|
|
81
81
|
var metadataStatus = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 'resolved';
|
|
82
82
|
// Some optimized resolves intentionally leave metadata pending so hover can fetch it.
|
|
83
|
-
|
|
83
|
+
// Check response status before evaluating the feature gate so non-resolved responses
|
|
84
|
+
// do not fire a gate exposure when the gate result would be ignored.
|
|
85
|
+
var shouldUseProvidedMetadataStatus = (0, _linkingCommon.getStatus)(response) === 'resolved' && (0, _platformFeatureFlags.fg)('platform_smartlink_inline_resolve_optimization');
|
|
86
|
+
setMetadataStatus(resourceUrl, shouldUseProvidedMetadataStatus ? metadataStatus : 'resolved');
|
|
84
87
|
// Dispatch Analytics and resolved card action - including unauthorized states.
|
|
85
88
|
if (isReloading) {
|
|
86
89
|
dispatch((0, _linkingCommon.cardAction)(_linkingCommon.ACTION_RELOADING, {
|
|
@@ -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: "45.
|
|
14
|
+
packageVersion: "45.8.0" || ''
|
|
15
15
|
};
|
|
16
16
|
var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
17
17
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -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: "45.
|
|
22
|
+
packageVersion: "45.8.0",
|
|
23
23
|
componentName: 'linkUrl'
|
|
24
24
|
};
|
|
25
25
|
var LinkUrl = function LinkUrl(_ref) {
|
|
@@ -77,7 +77,10 @@ const useResponse = () => {
|
|
|
77
77
|
}, [getState, setMetadataStatus, dispatch]);
|
|
78
78
|
const handleResolvedLinkSuccess = useCallback((resourceUrl, response, isReloading, isMetadataRequest, metadataStatus = 'resolved') => {
|
|
79
79
|
// Some optimized resolves intentionally leave metadata pending so hover can fetch it.
|
|
80
|
-
|
|
80
|
+
// Check response status before evaluating the feature gate so non-resolved responses
|
|
81
|
+
// do not fire a gate exposure when the gate result would be ignored.
|
|
82
|
+
const shouldUseProvidedMetadataStatus = getStatus(response) === 'resolved' && fg('platform_smartlink_inline_resolve_optimization');
|
|
83
|
+
setMetadataStatus(resourceUrl, shouldUseProvidedMetadataStatus ? metadataStatus : 'resolved');
|
|
81
84
|
// Dispatch Analytics and resolved card action - including unauthorized states.
|
|
82
85
|
if (isReloading) {
|
|
83
86
|
dispatch(cardAction(ACTION_RELOADING, {
|
|
@@ -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: "45.
|
|
5
|
+
packageVersion: "45.8.0" || ''
|
|
6
6
|
};
|
|
7
7
|
export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
8
8
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -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: "45.
|
|
12
|
+
packageVersion: "45.8.0",
|
|
13
13
|
componentName: 'linkUrl'
|
|
14
14
|
};
|
|
15
15
|
const LinkUrl = ({
|
|
@@ -74,7 +74,10 @@ var useResponse = function useResponse() {
|
|
|
74
74
|
var handleResolvedLinkSuccess = useCallback(function (resourceUrl, response, isReloading, isMetadataRequest) {
|
|
75
75
|
var metadataStatus = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 'resolved';
|
|
76
76
|
// Some optimized resolves intentionally leave metadata pending so hover can fetch it.
|
|
77
|
-
|
|
77
|
+
// Check response status before evaluating the feature gate so non-resolved responses
|
|
78
|
+
// do not fire a gate exposure when the gate result would be ignored.
|
|
79
|
+
var shouldUseProvidedMetadataStatus = getStatus(response) === 'resolved' && fg('platform_smartlink_inline_resolve_optimization');
|
|
80
|
+
setMetadataStatus(resourceUrl, shouldUseProvidedMetadataStatus ? metadataStatus : 'resolved');
|
|
78
81
|
// Dispatch Analytics and resolved card action - including unauthorized states.
|
|
79
82
|
if (isReloading) {
|
|
80
83
|
dispatch(cardAction(ACTION_RELOADING, {
|
|
@@ -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: "45.
|
|
7
|
+
packageVersion: "45.8.0" || ''
|
|
8
8
|
};
|
|
9
9
|
export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
10
10
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -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: "45.
|
|
15
|
+
packageVersion: "45.8.0",
|
|
16
16
|
componentName: 'linkUrl'
|
|
17
17
|
};
|
|
18
18
|
var LinkUrl = function LinkUrl(_ref) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/smart-card",
|
|
3
|
-
"version": "45.
|
|
3
|
+
"version": "45.8.1",
|
|
4
4
|
"description": "Smart card component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -12,7 +12,9 @@
|
|
|
12
12
|
"module": "dist/esm/index.js",
|
|
13
13
|
"module:es2019": "dist/es2019/index.js",
|
|
14
14
|
"types": "dist/types/index.d.ts",
|
|
15
|
-
"sideEffects": [
|
|
15
|
+
"sideEffects": [
|
|
16
|
+
"**/*.compiled.css"
|
|
17
|
+
],
|
|
16
18
|
"atlaskit:src": "src/index.ts",
|
|
17
19
|
"atlassian": {
|
|
18
20
|
"i18n": true,
|
|
@@ -51,7 +53,7 @@
|
|
|
51
53
|
"@atlaskit/flag": "^18.1.0",
|
|
52
54
|
"@atlaskit/form": "^16.1.0",
|
|
53
55
|
"@atlaskit/frontend-utilities": "^4.1.0",
|
|
54
|
-
"@atlaskit/heading": "^6.
|
|
56
|
+
"@atlaskit/heading": "^6.2.0",
|
|
55
57
|
"@atlaskit/icon": "^36.2.0",
|
|
56
58
|
"@atlaskit/icon-file-type": "^8.1.0",
|
|
57
59
|
"@atlaskit/icon-lab": "^7.3.0",
|
|
@@ -64,30 +66,30 @@
|
|
|
64
66
|
"@atlaskit/link-test-helpers": "^11.0.0",
|
|
65
67
|
"@atlaskit/linking-common": "^11.0.0",
|
|
66
68
|
"@atlaskit/linking-types": "^15.0.0",
|
|
67
|
-
"@atlaskit/logo": "^21.
|
|
69
|
+
"@atlaskit/logo": "^21.4.0",
|
|
68
70
|
"@atlaskit/lozenge": "^14.1.0",
|
|
69
71
|
"@atlaskit/menu": "^9.1.0",
|
|
70
72
|
"@atlaskit/modal-dialog": "^16.1.0",
|
|
71
73
|
"@atlaskit/motion": "^7.2.0",
|
|
72
|
-
"@atlaskit/object": "^2.
|
|
74
|
+
"@atlaskit/object": "^2.2.0",
|
|
73
75
|
"@atlaskit/outbound-auth-flow-client": "^4.0.0",
|
|
74
76
|
"@atlaskit/platform-feature-flags": "^2.0.0",
|
|
75
77
|
"@atlaskit/platform-feature-flags-react": "^1.1.0",
|
|
76
78
|
"@atlaskit/popup": "^5.1.0",
|
|
77
|
-
"@atlaskit/primitives": "^20.
|
|
79
|
+
"@atlaskit/primitives": "^20.5.0",
|
|
78
80
|
"@atlaskit/react-compiler-gating": "^0.2.0",
|
|
79
81
|
"@atlaskit/react-ufo": "^7.3.0",
|
|
80
82
|
"@atlaskit/rovo-triggers": "^9.7.0",
|
|
81
83
|
"@atlaskit/section-message": "^9.2.0",
|
|
82
84
|
"@atlaskit/select": "^22.4.0",
|
|
83
85
|
"@atlaskit/spinner": "^20.1.0",
|
|
84
|
-
"@atlaskit/tag": "^15.
|
|
86
|
+
"@atlaskit/tag": "^15.2.0",
|
|
85
87
|
"@atlaskit/textarea": "^9.1.0",
|
|
86
88
|
"@atlaskit/textfield": "^9.1.0",
|
|
87
89
|
"@atlaskit/theme": "^26.1.0",
|
|
88
|
-
"@atlaskit/tile": "^2.
|
|
89
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
90
|
-
"@atlaskit/tokens": "^15.
|
|
90
|
+
"@atlaskit/tile": "^2.2.0",
|
|
91
|
+
"@atlaskit/tmp-editor-statsig": "^122.0.0",
|
|
92
|
+
"@atlaskit/tokens": "^15.5.0",
|
|
91
93
|
"@atlaskit/tooltip": "^23.1.0",
|
|
92
94
|
"@atlaskit/ufo": "^1.0.0",
|
|
93
95
|
"@atlaskit/width-detector": "^6.2.0",
|
|
@@ -115,7 +117,7 @@
|
|
|
115
117
|
"@af/integration-testing": "workspace:^",
|
|
116
118
|
"@af/visual-regression": "workspace:^",
|
|
117
119
|
"@atlaskit/analytics-listeners": "^11.1.0",
|
|
118
|
-
"@atlaskit/css-reset": "^8.
|
|
120
|
+
"@atlaskit/css-reset": "^8.1.0",
|
|
119
121
|
"@atlaskit/media-test-helpers": "^42.2.0",
|
|
120
122
|
"@atlaskit/ssr": "workspace:^",
|
|
121
123
|
"@atlassian/a11y-jest-testing": "^0.13.0",
|
|
@@ -150,12 +152,21 @@
|
|
|
150
152
|
},
|
|
151
153
|
"techstack": {
|
|
152
154
|
"@repo/internal": {
|
|
153
|
-
"design-tokens": [
|
|
154
|
-
|
|
155
|
+
"design-tokens": [
|
|
156
|
+
"color",
|
|
157
|
+
"spacing"
|
|
158
|
+
],
|
|
159
|
+
"styling": [
|
|
160
|
+
"compiled"
|
|
161
|
+
]
|
|
155
162
|
},
|
|
156
163
|
"@atlassian/frontend": {
|
|
157
|
-
"import-structure": [
|
|
158
|
-
|
|
164
|
+
"import-structure": [
|
|
165
|
+
"atlassian-conventions"
|
|
166
|
+
],
|
|
167
|
+
"circular-dependencies": [
|
|
168
|
+
"file-and-folder-level"
|
|
169
|
+
]
|
|
159
170
|
}
|
|
160
171
|
},
|
|
161
172
|
"platform-feature-flags": {
|