@atlaskit/smart-card 26.20.1 → 26.21.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 +6 -0
- package/dist/cjs/extractors/common/meta/extractIsTrusted.js +7 -0
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/extractors/common/meta/extractIsTrusted.js +7 -0
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/extractors/common/meta/extractIsTrusted.js +7 -0
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/package.json +6 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 26.21.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`b2ea37e78dc`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b2ea37e78dc) - We are testing a fix for internal conditional logic that determines when the sandbox attribute is applied to smart link embeds behind the feature flag "platform.linking-platform.smart-card.fix-is-trusted-pop". If this is successful it will be changed permanently in a future release.
|
|
8
|
+
|
|
3
9
|
## 26.20.1
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -4,7 +4,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.extractIsTrusted = void 0;
|
|
7
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
7
8
|
var extractIsTrusted = function extractIsTrusted(meta) {
|
|
9
|
+
if ((0, _platformFeatureFlags.getBooleanFF)('platform.linking-platform.smart-card.fix-is-trusted-pop')) {
|
|
10
|
+
if (!(meta !== null && meta !== void 0 && meta.key)) {
|
|
11
|
+
return false;
|
|
12
|
+
}
|
|
13
|
+
return !['iframely-object-provider', 'public-object-provider'].includes(meta.key);
|
|
14
|
+
}
|
|
8
15
|
return Boolean((meta === null || meta === void 0 ? void 0 : meta.key) && meta.key !== 'iframely-object-provider');
|
|
9
16
|
};
|
|
10
17
|
exports.extractIsTrusted = extractIsTrusted;
|
|
@@ -21,7 +21,7 @@ exports.ANALYTICS_CHANNEL = ANALYTICS_CHANNEL;
|
|
|
21
21
|
var context = {
|
|
22
22
|
componentName: 'smart-cards',
|
|
23
23
|
packageName: "@atlaskit/smart-card",
|
|
24
|
-
packageVersion: "26.
|
|
24
|
+
packageVersion: "26.21.0"
|
|
25
25
|
};
|
|
26
26
|
exports.context = context;
|
|
27
27
|
var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
@@ -18,7 +18,7 @@ var _excluded = ["href", "children", "checkSafety", "onClick", "testId"],
|
|
|
18
18
|
_excluded2 = ["isLinkSafe", "showSafetyWarningModal"];
|
|
19
19
|
var PACKAGE_DATA = {
|
|
20
20
|
packageName: "@atlaskit/smart-card",
|
|
21
|
-
packageVersion: "26.
|
|
21
|
+
packageVersion: "26.21.0",
|
|
22
22
|
componentName: 'linkUrl'
|
|
23
23
|
};
|
|
24
24
|
var Link = (0, _click.withLinkClickedEvent)('a');
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
1
2
|
export const extractIsTrusted = meta => {
|
|
3
|
+
if (getBooleanFF('platform.linking-platform.smart-card.fix-is-trusted-pop')) {
|
|
4
|
+
if (!(meta !== null && meta !== void 0 && meta.key)) {
|
|
5
|
+
return false;
|
|
6
|
+
}
|
|
7
|
+
return !['iframely-object-provider', 'public-object-provider'].includes(meta.key);
|
|
8
|
+
}
|
|
2
9
|
return Boolean((meta === null || meta === void 0 ? void 0 : meta.key) && meta.key !== 'iframely-object-provider');
|
|
3
10
|
};
|
|
@@ -3,7 +3,7 @@ export const ANALYTICS_CHANNEL = 'media';
|
|
|
3
3
|
export const context = {
|
|
4
4
|
componentName: 'smart-cards',
|
|
5
5
|
packageName: "@atlaskit/smart-card",
|
|
6
|
-
packageVersion: "26.
|
|
6
|
+
packageVersion: "26.21.0"
|
|
7
7
|
};
|
|
8
8
|
export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
9
9
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -8,7 +8,7 @@ import LinkWarningModal from './LinkWarningModal';
|
|
|
8
8
|
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
9
9
|
const PACKAGE_DATA = {
|
|
10
10
|
packageName: "@atlaskit/smart-card",
|
|
11
|
-
packageVersion: "26.
|
|
11
|
+
packageVersion: "26.21.0",
|
|
12
12
|
componentName: 'linkUrl'
|
|
13
13
|
};
|
|
14
14
|
const Link = withLinkClickedEvent('a');
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
1
2
|
export var extractIsTrusted = function extractIsTrusted(meta) {
|
|
3
|
+
if (getBooleanFF('platform.linking-platform.smart-card.fix-is-trusted-pop')) {
|
|
4
|
+
if (!(meta !== null && meta !== void 0 && meta.key)) {
|
|
5
|
+
return false;
|
|
6
|
+
}
|
|
7
|
+
return !['iframely-object-provider', 'public-object-provider'].includes(meta.key);
|
|
8
|
+
}
|
|
2
9
|
return Boolean((meta === null || meta === void 0 ? void 0 : meta.key) && meta.key !== 'iframely-object-provider');
|
|
3
10
|
};
|
|
@@ -13,7 +13,7 @@ export var ANALYTICS_CHANNEL = 'media';
|
|
|
13
13
|
export var context = {
|
|
14
14
|
componentName: 'smart-cards',
|
|
15
15
|
packageName: "@atlaskit/smart-card",
|
|
16
|
-
packageVersion: "26.
|
|
16
|
+
packageVersion: "26.21.0"
|
|
17
17
|
};
|
|
18
18
|
export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
19
19
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -11,7 +11,7 @@ import LinkWarningModal from './LinkWarningModal';
|
|
|
11
11
|
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
12
12
|
var PACKAGE_DATA = {
|
|
13
13
|
packageName: "@atlaskit/smart-card",
|
|
14
|
-
packageVersion: "26.
|
|
14
|
+
packageVersion: "26.21.0",
|
|
15
15
|
componentName: 'linkUrl'
|
|
16
16
|
};
|
|
17
17
|
var Link = withLinkClickedEvent('a');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/smart-card",
|
|
3
|
-
"version": "26.
|
|
3
|
+
"version": "26.21.0",
|
|
4
4
|
"description": "Smart card component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"@atlaskit/avatar-group": "^9.4.0",
|
|
29
29
|
"@atlaskit/badge": "^15.1.0",
|
|
30
30
|
"@atlaskit/button": "^16.9.0",
|
|
31
|
-
"@atlaskit/dropdown-menu": "^11.
|
|
31
|
+
"@atlaskit/dropdown-menu": "^11.13.0",
|
|
32
32
|
"@atlaskit/frontend-utilities": "^2.7.0",
|
|
33
33
|
"@atlaskit/icon": "^21.12.0",
|
|
34
34
|
"@atlaskit/icon-file-type": "^6.4.0",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@atlaskit/link-client-extension": "^1.6.0",
|
|
40
40
|
"@atlaskit/link-extractors": "^1.1.0",
|
|
41
41
|
"@atlaskit/linking-common": "^4.6.0",
|
|
42
|
-
"@atlaskit/linking-types": "^8.
|
|
42
|
+
"@atlaskit/linking-types": "^8.3.0",
|
|
43
43
|
"@atlaskit/logo": "^13.14.0",
|
|
44
44
|
"@atlaskit/lozenge": "^11.4.0",
|
|
45
45
|
"@atlaskit/modal-dialog": "^12.6.0",
|
|
@@ -144,6 +144,9 @@
|
|
|
144
144
|
},
|
|
145
145
|
"platform.linking-platform.smart-card.enable-better-metadata_iojwg": {
|
|
146
146
|
"type": "boolean"
|
|
147
|
+
},
|
|
148
|
+
"platform.linking-platform.smart-card.fix-is-trusted-pop": {
|
|
149
|
+
"type": "boolean"
|
|
147
150
|
}
|
|
148
151
|
},
|
|
149
152
|
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1"
|