@atlaskit/smart-card 45.18.5 → 45.18.7
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 +14 -0
- package/dist/cjs/extractors/inline/index.js +2 -2
- 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 +2 -2
- 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 +2 -2
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/package.json +7 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 45.18.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 45.18.6
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`b000b69f907fc`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b000b69f907fc) -
|
|
14
|
+
[ux] Migrate major experiments in implementing to new experiments API.
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 45.18.5
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -12,8 +12,8 @@ var _extractSmartLinkUrl = require("@atlaskit/link-extractors/extract-smart-link
|
|
|
12
12
|
var _extractType = require("@atlaskit/link-extractors/extract-type");
|
|
13
13
|
var _isEntityPresent = require("@atlaskit/link-extractors/is-entity-present");
|
|
14
14
|
var _extractSmartLinkInlineIcon = require("@atlaskit/link-extractors/extract-smart-link-inline-icon");
|
|
15
|
+
var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
|
|
15
16
|
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
16
|
-
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
17
17
|
var _jsonld = require("../../utils/jsonld");
|
|
18
18
|
var _icon = require("../common/icon");
|
|
19
19
|
var _lozenge = require("../common/lozenge");
|
|
@@ -65,7 +65,7 @@ var extractInlineProps = exports.extractInlineProps = function extractInlineProp
|
|
|
65
65
|
return {
|
|
66
66
|
link: (0, _extractSmartLinkUrl.extractSmartLinkUrl)(response),
|
|
67
67
|
title: (0, _extractSmartLinkTitle.extractSmartLinkTitle)(response, removeTextHighlightingFromTitle),
|
|
68
|
-
icon: (0,
|
|
68
|
+
icon: (0, _isExperimentEnabled.isExperimentEnabled)('confluence_1p_and_3p_connection_byline_experiment') ? (0, _extractSmartLinkInlineIcon.extractSmartLinkInlineIcon)(response, showLabel) : extractSmartLinkInlineIcon(response, showLabel),
|
|
69
69
|
// As we migrate to support more entities we can incorporate these fields
|
|
70
70
|
lozenge: (0, _lozenge.extractLozenge)(jsonLd),
|
|
71
71
|
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.18.
|
|
14
|
+
packageVersion: "45.18.6" || ''
|
|
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.18.
|
|
22
|
+
packageVersion: "45.18.6",
|
|
23
23
|
componentName: 'linkUrl'
|
|
24
24
|
};
|
|
25
25
|
var LinkUrl = function LinkUrl(_ref) {
|
|
@@ -6,8 +6,8 @@ import { extractSmartLinkUrl } from '@atlaskit/link-extractors/extract-smart-lin
|
|
|
6
6
|
import { extractType } from '@atlaskit/link-extractors/extract-type';
|
|
7
7
|
import { isEntityPresent } from '@atlaskit/link-extractors/is-entity-present';
|
|
8
8
|
import { extractSmartLinkInlineIcon as extractSmartLinkInlineIconFromLinkExtractors } from '@atlaskit/link-extractors/extract-smart-link-inline-icon';
|
|
9
|
+
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
9
10
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
10
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
11
11
|
import { getEmptyJsonLd } from '../../utils/jsonld';
|
|
12
12
|
import { extractIcon } from '../common/icon';
|
|
13
13
|
import { extractLozenge, extractTaskType } from '../common/lozenge';
|
|
@@ -56,7 +56,7 @@ export const extractInlineProps = (response, renderers, removeTextHighlightingFr
|
|
|
56
56
|
return {
|
|
57
57
|
link: extractSmartLinkUrl(response),
|
|
58
58
|
title: extractSmartLinkTitle(response, removeTextHighlightingFromTitle),
|
|
59
|
-
icon:
|
|
59
|
+
icon: isExperimentEnabled('confluence_1p_and_3p_connection_byline_experiment') ? extractSmartLinkInlineIconFromLinkExtractors(response, showLabel) : extractSmartLinkInlineIcon(response, showLabel),
|
|
60
60
|
// As we migrate to support more entities we can incorporate these fields
|
|
61
61
|
lozenge: extractLozenge(jsonLd),
|
|
62
62
|
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.18.
|
|
5
|
+
packageVersion: "45.18.6" || ''
|
|
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.18.
|
|
12
|
+
packageVersion: "45.18.6",
|
|
13
13
|
componentName: 'linkUrl'
|
|
14
14
|
};
|
|
15
15
|
const LinkUrl = ({
|
|
@@ -6,8 +6,8 @@ import { extractSmartLinkUrl } from '@atlaskit/link-extractors/extract-smart-lin
|
|
|
6
6
|
import { extractType } from '@atlaskit/link-extractors/extract-type';
|
|
7
7
|
import { isEntityPresent } from '@atlaskit/link-extractors/is-entity-present';
|
|
8
8
|
import { extractSmartLinkInlineIcon as extractSmartLinkInlineIconFromLinkExtractors } from '@atlaskit/link-extractors/extract-smart-link-inline-icon';
|
|
9
|
+
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
9
10
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
10
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
11
11
|
import { getEmptyJsonLd } from '../../utils/jsonld';
|
|
12
12
|
import { extractIcon } from '../common/icon';
|
|
13
13
|
import { extractLozenge, extractTaskType } from '../common/lozenge';
|
|
@@ -59,7 +59,7 @@ export var extractInlineProps = function extractInlineProps(response, renderers,
|
|
|
59
59
|
return {
|
|
60
60
|
link: extractSmartLinkUrl(response),
|
|
61
61
|
title: extractSmartLinkTitle(response, removeTextHighlightingFromTitle),
|
|
62
|
-
icon:
|
|
62
|
+
icon: isExperimentEnabled('confluence_1p_and_3p_connection_byline_experiment') ? extractSmartLinkInlineIconFromLinkExtractors(response, showLabel) : extractSmartLinkInlineIcon(response, showLabel),
|
|
63
63
|
// As we migrate to support more entities we can incorporate these fields
|
|
64
64
|
lozenge: extractLozenge(jsonLd),
|
|
65
65
|
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.18.
|
|
7
|
+
packageVersion: "45.18.6" || ''
|
|
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.18.
|
|
15
|
+
packageVersion: "45.18.6",
|
|
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.18.
|
|
3
|
+
"version": "45.18.7",
|
|
4
4
|
"description": "Smart card component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -73,23 +73,24 @@
|
|
|
73
73
|
"@atlaskit/motion": "^8.4.0",
|
|
74
74
|
"@atlaskit/object": "^2.3.0",
|
|
75
75
|
"@atlaskit/outbound-auth-flow-client": "^4.1.0",
|
|
76
|
+
"@atlaskit/platform-feature-experiments": "^0.3.0",
|
|
76
77
|
"@atlaskit/platform-feature-flags": "^2.1.0",
|
|
77
78
|
"@atlaskit/platform-feature-flags-react": "^1.1.0",
|
|
78
79
|
"@atlaskit/popup": "^6.2.0",
|
|
79
80
|
"@atlaskit/primitives": "^22.4.0",
|
|
80
81
|
"@atlaskit/react-compiler-gating": "^0.2.0",
|
|
81
82
|
"@atlaskit/react-ufo": "^7.7.0",
|
|
82
|
-
"@atlaskit/rovo-triggers": "^10.
|
|
83
|
+
"@atlaskit/rovo-triggers": "^10.21.0",
|
|
83
84
|
"@atlaskit/section-message": "^10.1.0",
|
|
84
|
-
"@atlaskit/select": "^22.
|
|
85
|
+
"@atlaskit/select": "^22.9.0",
|
|
85
86
|
"@atlaskit/spinner": "^20.3.0",
|
|
86
87
|
"@atlaskit/tabs": "^21.1.0",
|
|
87
|
-
"@atlaskit/tag": "^15.
|
|
88
|
+
"@atlaskit/tag": "^15.7.0",
|
|
88
89
|
"@atlaskit/textarea": "^10.1.0",
|
|
89
90
|
"@atlaskit/textfield": "^10.1.0",
|
|
90
91
|
"@atlaskit/theme": "^28.1.0",
|
|
91
92
|
"@atlaskit/tile": "^4.1.0",
|
|
92
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
93
|
+
"@atlaskit/tmp-editor-statsig": "^162.0.0",
|
|
93
94
|
"@atlaskit/tokens": "^16.8.0",
|
|
94
95
|
"@atlaskit/tooltip": "^24.2.0",
|
|
95
96
|
"@atlaskit/ufo": "^1.0.0",
|
|
@@ -130,6 +131,7 @@
|
|
|
130
131
|
"@atlaskit/toggle": "^17.2.0",
|
|
131
132
|
"@atlassian/a11y-jest-testing": "^0.17.0",
|
|
132
133
|
"@atlassian/analytics-tooling": "workspace:^",
|
|
134
|
+
"@atlassian/experiment-test-utils": "^0.2.0",
|
|
133
135
|
"@atlassian/feature-flags-test-utils": "^1.2.0",
|
|
134
136
|
"@atlassian/gemini": "^1.52.0",
|
|
135
137
|
"@atlassian/structured-docs-types": "workspace:^",
|