@atlaskit/smart-card 45.1.1 → 45.2.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 +11 -0
- package/dist/cjs/extractors/inline/index.js +3 -1
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/extractors/inline/index.js +3 -1
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/extractors/inline/index.js +3 -1
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 45.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`91fb45b6e63f3`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/91fb45b6e63f3) -
|
|
8
|
+
Add gated inline Smart Link icon extraction through link-extractors
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
3
14
|
## 45.1.1
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
|
@@ -5,7 +5,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.extractInlineProps = void 0;
|
|
7
7
|
var _linkExtractors = require("@atlaskit/link-extractors");
|
|
8
|
+
var _extractSmartLinkInlineIcon = require("@atlaskit/link-extractors/extract-smart-link-inline-icon");
|
|
8
9
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
10
|
+
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
9
11
|
var _jsonld = require("../../utils/jsonld");
|
|
10
12
|
var _icon = require("../common/icon");
|
|
11
13
|
var _lozenge = require("../common/lozenge");
|
|
@@ -48,7 +50,7 @@ var extractInlineProps = exports.extractInlineProps = function extractInlineProp
|
|
|
48
50
|
return {
|
|
49
51
|
link: (0, _linkExtractors.extractSmartLinkUrl)(response),
|
|
50
52
|
title: (0, _linkExtractors.extractSmartLinkTitle)(response, removeTextHighlightingFromTitle),
|
|
51
|
-
icon: extractSmartLinkInlineIcon(response, showLabel),
|
|
53
|
+
icon: (0, _expValEquals.expValEquals)('confluence_1p_and_3p_connection_byline_experiment', 'isEnabled', true) ? (0, _extractSmartLinkInlineIcon.extractSmartLinkInlineIcon)(response, showLabel) : extractSmartLinkInlineIcon(response, showLabel),
|
|
52
54
|
// As we migrate to support more entities we can incorporate these fields
|
|
53
55
|
lozenge: (0, _lozenge.extractLozenge)(jsonLd),
|
|
54
56
|
titleTextColor: (0, _primitives.extractTitleTextColor)(jsonLd),
|
|
@@ -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.1.
|
|
14
|
+
packageVersion: "45.1.1" || ''
|
|
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.1.
|
|
22
|
+
packageVersion: "45.1.1",
|
|
23
23
|
componentName: 'linkUrl'
|
|
24
24
|
};
|
|
25
25
|
var LinkUrl = function LinkUrl(_ref) {
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { extractEntityIcon, extractEntityProvider, extractProvider, extractSmartLinkTitle, extractSmartLinkUrl, extractType, isEntityPresent } from '@atlaskit/link-extractors';
|
|
2
|
+
import { extractSmartLinkInlineIcon as extractSmartLinkInlineIconFromLinkExtractors } from '@atlaskit/link-extractors/extract-smart-link-inline-icon';
|
|
2
3
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
3
5
|
import { getEmptyJsonLd } from '../../utils/jsonld';
|
|
4
6
|
import { extractIcon } from '../common/icon';
|
|
5
7
|
import { extractLozenge } from '../common/lozenge';
|
|
@@ -39,7 +41,7 @@ export const extractInlineProps = (response, renderers, removeTextHighlightingFr
|
|
|
39
41
|
return {
|
|
40
42
|
link: extractSmartLinkUrl(response),
|
|
41
43
|
title: extractSmartLinkTitle(response, removeTextHighlightingFromTitle),
|
|
42
|
-
icon: extractSmartLinkInlineIcon(response, showLabel),
|
|
44
|
+
icon: expValEquals('confluence_1p_and_3p_connection_byline_experiment', 'isEnabled', true) ? extractSmartLinkInlineIconFromLinkExtractors(response, showLabel) : extractSmartLinkInlineIcon(response, showLabel),
|
|
43
45
|
// As we migrate to support more entities we can incorporate these fields
|
|
44
46
|
lozenge: extractLozenge(jsonLd),
|
|
45
47
|
titleTextColor: extractTitleTextColor(jsonLd),
|
|
@@ -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.1.
|
|
5
|
+
packageVersion: "45.1.1" || ''
|
|
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.1.
|
|
12
|
+
packageVersion: "45.1.1",
|
|
13
13
|
componentName: 'linkUrl'
|
|
14
14
|
};
|
|
15
15
|
const LinkUrl = ({
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { extractEntityIcon, extractEntityProvider, extractProvider, extractSmartLinkTitle, extractSmartLinkUrl, extractType, isEntityPresent } from '@atlaskit/link-extractors';
|
|
2
|
+
import { extractSmartLinkInlineIcon as extractSmartLinkInlineIconFromLinkExtractors } from '@atlaskit/link-extractors/extract-smart-link-inline-icon';
|
|
2
3
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
3
5
|
import { getEmptyJsonLd } from '../../utils/jsonld';
|
|
4
6
|
import { extractIcon } from '../common/icon';
|
|
5
7
|
import { extractLozenge } from '../common/lozenge';
|
|
@@ -42,7 +44,7 @@ export var extractInlineProps = function extractInlineProps(response, renderers,
|
|
|
42
44
|
return {
|
|
43
45
|
link: extractSmartLinkUrl(response),
|
|
44
46
|
title: extractSmartLinkTitle(response, removeTextHighlightingFromTitle),
|
|
45
|
-
icon: extractSmartLinkInlineIcon(response, showLabel),
|
|
47
|
+
icon: expValEquals('confluence_1p_and_3p_connection_byline_experiment', 'isEnabled', true) ? extractSmartLinkInlineIconFromLinkExtractors(response, showLabel) : extractSmartLinkInlineIcon(response, showLabel),
|
|
46
48
|
// As we migrate to support more entities we can incorporate these fields
|
|
47
49
|
lozenge: extractLozenge(jsonLd),
|
|
48
50
|
titleTextColor: extractTitleTextColor(jsonLd),
|
|
@@ -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.1.
|
|
7
|
+
packageVersion: "45.1.1" || ''
|
|
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.1.
|
|
15
|
+
packageVersion: "45.1.1",
|
|
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.2.0",
|
|
4
4
|
"description": "Smart card component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"@atlaskit/link": "^4.0.0",
|
|
63
63
|
"@atlaskit/link-analytics": "^12.0.0",
|
|
64
64
|
"@atlaskit/link-client-extension": "^7.0.0",
|
|
65
|
-
"@atlaskit/link-extractors": "^3.
|
|
65
|
+
"@atlaskit/link-extractors": "^3.1.0",
|
|
66
66
|
"@atlaskit/link-test-helpers": "^11.0.0",
|
|
67
67
|
"@atlaskit/linking-common": "^10.0.0",
|
|
68
68
|
"@atlaskit/linking-types": "^15.0.0",
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"@atlaskit/popup": "^5.0.0",
|
|
79
79
|
"@atlaskit/primitives": "^20.0.0",
|
|
80
80
|
"@atlaskit/react-ufo": "^7.1.0",
|
|
81
|
-
"@atlaskit/rovo-triggers": "^9.
|
|
81
|
+
"@atlaskit/rovo-triggers": "^9.1.0",
|
|
82
82
|
"@atlaskit/section-message": "^9.0.0",
|
|
83
83
|
"@atlaskit/select": "^22.0.0",
|
|
84
84
|
"@atlaskit/spinner": "^20.0.0",
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
"@atlaskit/textfield": "^9.0.0",
|
|
88
88
|
"@atlaskit/theme": "^26.0.0",
|
|
89
89
|
"@atlaskit/tile": "^2.0.0",
|
|
90
|
-
"@atlaskit/tmp-editor-statsig": "^108.
|
|
90
|
+
"@atlaskit/tmp-editor-statsig": "^108.2.0",
|
|
91
91
|
"@atlaskit/tokens": "^14.0.0",
|
|
92
92
|
"@atlaskit/tooltip": "^23.0.0",
|
|
93
93
|
"@atlaskit/ufo": "^1.0.0",
|