@atlaskit/smart-card 29.3.0 → 29.4.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 +8 -0
- package/dist/cjs/extractors/common/icon/extractIcon.js +4 -4
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/extractors/common/icon/extractIcon.js +5 -5
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/extractors/common/icon/extractIcon.js +5 -5
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 29.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#151001](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/151001)
|
|
8
|
+
[`a08a91f358eaf`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a08a91f358eaf) -
|
|
9
|
+
Enable new icons behind a feature flag.
|
|
10
|
+
|
|
3
11
|
## 29.3.0
|
|
4
12
|
|
|
5
13
|
### Minor Changes
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.extractIcon = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _peopleGroup = _interopRequireDefault(require("@atlaskit/icon/
|
|
9
|
+
var _peopleGroup = _interopRequireDefault(require("@atlaskit/icon/core/migration/people-group"));
|
|
10
10
|
var _ = _interopRequireDefault(require("@atlaskit/icon-object/glyph/commit/16"));
|
|
11
11
|
var _2 = _interopRequireDefault(require("@atlaskit/icon-object/glyph/pull-request/16"));
|
|
12
12
|
var _3 = _interopRequireDefault(require("@atlaskit/icon-object/glyph/branch/16"));
|
|
@@ -49,11 +49,11 @@ function typeToIcon(type, opts) {
|
|
|
49
49
|
testId: "commit-icon"
|
|
50
50
|
});
|
|
51
51
|
case 'atlassian:Project':
|
|
52
|
-
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19498
|
|
53
52
|
return /*#__PURE__*/_react.default.createElement(_peopleGroup.default, {
|
|
54
53
|
label: opts.title || 'project',
|
|
55
|
-
|
|
56
|
-
testId: "project-icon"
|
|
54
|
+
LEGACY_size: "small",
|
|
55
|
+
testId: "project-icon",
|
|
56
|
+
color: "currentColor"
|
|
57
57
|
});
|
|
58
58
|
case 'atlassian:SourceCodePullRequest':
|
|
59
59
|
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19493
|
|
@@ -22,7 +22,7 @@ var ANALYTICS_CHANNEL = exports.ANALYTICS_CHANNEL = 'media';
|
|
|
22
22
|
var context = exports.context = {
|
|
23
23
|
componentName: 'smart-cards',
|
|
24
24
|
packageName: "@atlaskit/smart-card",
|
|
25
|
-
packageVersion: "29.
|
|
25
|
+
packageVersion: "29.4.0"
|
|
26
26
|
};
|
|
27
27
|
var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
28
28
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -17,7 +17,7 @@ var _excluded = ["href", "children", "checkSafety", "onClick", "testId"],
|
|
|
17
17
|
_excluded2 = ["isLinkSafe", "showSafetyWarningModal"];
|
|
18
18
|
var PACKAGE_DATA = {
|
|
19
19
|
packageName: "@atlaskit/smart-card",
|
|
20
|
-
packageVersion: "29.
|
|
20
|
+
packageVersion: "29.4.0",
|
|
21
21
|
componentName: 'linkUrl'
|
|
22
22
|
};
|
|
23
23
|
var Link = (0, _click.withLinkClickedEvent)('a');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import PeopleGroupIcon from '@atlaskit/icon/core/migration/people-group';
|
|
3
3
|
import CommitIcon from '@atlaskit/icon-object/glyph/commit/16';
|
|
4
4
|
import PullRequestIcon from '@atlaskit/icon-object/glyph/pull-request/16';
|
|
5
5
|
import BranchIcon from '@atlaskit/icon-object/glyph/branch/16';
|
|
@@ -39,11 +39,11 @@ function typeToIcon(type, opts) {
|
|
|
39
39
|
testId: "commit-icon"
|
|
40
40
|
});
|
|
41
41
|
case 'atlassian:Project':
|
|
42
|
-
|
|
43
|
-
return /*#__PURE__*/React.createElement(ProjectIcon, {
|
|
42
|
+
return /*#__PURE__*/React.createElement(PeopleGroupIcon, {
|
|
44
43
|
label: opts.title || 'project',
|
|
45
|
-
|
|
46
|
-
testId: "project-icon"
|
|
44
|
+
LEGACY_size: "small",
|
|
45
|
+
testId: "project-icon",
|
|
46
|
+
color: "currentColor"
|
|
47
47
|
});
|
|
48
48
|
case 'atlassian:SourceCodePullRequest':
|
|
49
49
|
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19493
|
|
@@ -4,7 +4,7 @@ export const ANALYTICS_CHANNEL = 'media';
|
|
|
4
4
|
export const context = {
|
|
5
5
|
componentName: 'smart-cards',
|
|
6
6
|
packageName: "@atlaskit/smart-card",
|
|
7
|
-
packageVersion: "29.
|
|
7
|
+
packageVersion: "29.4.0"
|
|
8
8
|
};
|
|
9
9
|
export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
10
10
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -7,7 +7,7 @@ import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-m
|
|
|
7
7
|
import LinkWarningModal from './LinkWarningModal';
|
|
8
8
|
const PACKAGE_DATA = {
|
|
9
9
|
packageName: "@atlaskit/smart-card",
|
|
10
|
-
packageVersion: "29.
|
|
10
|
+
packageVersion: "29.4.0",
|
|
11
11
|
componentName: 'linkUrl'
|
|
12
12
|
};
|
|
13
13
|
const Link = withLinkClickedEvent('a');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import PeopleGroupIcon from '@atlaskit/icon/core/migration/people-group';
|
|
3
3
|
import CommitIcon from '@atlaskit/icon-object/glyph/commit/16';
|
|
4
4
|
import PullRequestIcon from '@atlaskit/icon-object/glyph/pull-request/16';
|
|
5
5
|
import BranchIcon from '@atlaskit/icon-object/glyph/branch/16';
|
|
@@ -42,11 +42,11 @@ function typeToIcon(type, opts) {
|
|
|
42
42
|
testId: "commit-icon"
|
|
43
43
|
});
|
|
44
44
|
case 'atlassian:Project':
|
|
45
|
-
|
|
46
|
-
return /*#__PURE__*/React.createElement(ProjectIcon, {
|
|
45
|
+
return /*#__PURE__*/React.createElement(PeopleGroupIcon, {
|
|
47
46
|
label: opts.title || 'project',
|
|
48
|
-
|
|
49
|
-
testId: "project-icon"
|
|
47
|
+
LEGACY_size: "small",
|
|
48
|
+
testId: "project-icon",
|
|
49
|
+
color: "currentColor"
|
|
50
50
|
});
|
|
51
51
|
case 'atlassian:SourceCodePullRequest':
|
|
52
52
|
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19493
|
|
@@ -15,7 +15,7 @@ export var ANALYTICS_CHANNEL = 'media';
|
|
|
15
15
|
export var context = {
|
|
16
16
|
componentName: 'smart-cards',
|
|
17
17
|
packageName: "@atlaskit/smart-card",
|
|
18
|
-
packageVersion: "29.
|
|
18
|
+
packageVersion: "29.4.0"
|
|
19
19
|
};
|
|
20
20
|
export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
21
21
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -10,7 +10,7 @@ import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-m
|
|
|
10
10
|
import LinkWarningModal from './LinkWarningModal';
|
|
11
11
|
var PACKAGE_DATA = {
|
|
12
12
|
packageName: "@atlaskit/smart-card",
|
|
13
|
-
packageVersion: "29.
|
|
13
|
+
packageVersion: "29.4.0",
|
|
14
14
|
componentName: 'linkUrl'
|
|
15
15
|
};
|
|
16
16
|
var Link = withLinkClickedEvent('a');
|