@atlaskit/smart-card 26.45.1 → 26.45.2
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/flexible/index.js +1 -2
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/actions/action/action-button/index.js +1 -11
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/extractors/flexible/index.js +1 -2
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/actions/action/action-button/index.js +1 -11
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/extractors/flexible/index.js +1 -2
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/FlexibleCard/components/actions/action/action-button/index.js +1 -11
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/package.json +1 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 26.45.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#67800](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/67800) [`1791437d1cc2`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1791437d1cc2) - Follow action feature flag cleanup
|
|
8
|
+
|
|
3
9
|
## 26.45.1
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
9
8
|
var _primitives = require("../common/primitives");
|
|
10
9
|
var _extractFollowAction = _interopRequireDefault(require("./actions/extract-follow-action"));
|
|
11
10
|
var _icon = require("./icon");
|
|
@@ -47,7 +46,7 @@ var extractFlexibleUiContext = function extractFlexibleUiContext() {
|
|
|
47
46
|
assignedTo: (0, _utils.extractAssignedTo)(data),
|
|
48
47
|
createdOn: (0, _linkExtractors.extractDateCreated)(data),
|
|
49
48
|
dueOn: (0, _utils.extractDueOn)(data),
|
|
50
|
-
followAction: (0,
|
|
49
|
+
followAction: (0, _extractFollowAction.default)(response, actionOptions, id),
|
|
51
50
|
previewAction: (0, _extractPreviewAction.extractPreviewAction)(response, actionOptions),
|
|
52
51
|
viewAction: (0, _extractViewAction.extractViewAction)(data, actionOptions),
|
|
53
52
|
downloadAction: (0, _extractDownloadAction.extractDownloadAction)(data, actionOptions),
|
|
@@ -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: "26.45.
|
|
25
|
+
packageVersion: "26.45.2"
|
|
26
26
|
};
|
|
27
27
|
var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
28
28
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -9,9 +9,7 @@ exports.default = void 0;
|
|
|
9
9
|
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
var _react2 = require("@emotion/react");
|
|
12
|
-
var _customThemeButton = _interopRequireDefault(require("@atlaskit/button/custom-theme-button"));
|
|
13
12
|
var _button = require("@atlaskit/button");
|
|
14
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
15
13
|
var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
|
|
16
14
|
var _constants = require("../../../../../../constants");
|
|
17
15
|
var _utils = require("../../../utils");
|
|
@@ -57,7 +55,7 @@ var ActionButton = function ActionButton(_ref) {
|
|
|
57
55
|
content: tooltipMessage,
|
|
58
56
|
hideTooltipOnClick: true,
|
|
59
57
|
testId: "".concat(testId, "-tooltip")
|
|
60
|
-
}, (0,
|
|
58
|
+
}, (0, _react2.jsx)(_button.LoadingButton, {
|
|
61
59
|
appearance: appearance,
|
|
62
60
|
iconAfter: iconAfter,
|
|
63
61
|
iconBefore: iconBefore,
|
|
@@ -66,14 +64,6 @@ var ActionButton = function ActionButton(_ref) {
|
|
|
66
64
|
onClick: onButtonClick(onClick),
|
|
67
65
|
spacing: _utils.sizeToButtonSpacing[size],
|
|
68
66
|
testId: testId
|
|
69
|
-
}, content) : (0, _react2.jsx)(_customThemeButton.default, {
|
|
70
|
-
appearance: appearance,
|
|
71
|
-
iconAfter: iconAfter,
|
|
72
|
-
iconBefore: iconBefore,
|
|
73
|
-
onClick: onButtonClick(onClick),
|
|
74
|
-
spacing: _utils.sizeToButtonSpacing[size],
|
|
75
|
-
testId: testId,
|
|
76
|
-
isDisabled: isDisabled
|
|
77
67
|
}, content)));
|
|
78
68
|
};
|
|
79
69
|
var _default = exports.default = ActionButton;
|
|
@@ -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: "26.45.
|
|
20
|
+
packageVersion: "26.45.2",
|
|
21
21
|
componentName: 'linkUrl'
|
|
22
22
|
};
|
|
23
23
|
var Link = (0, _click.withLinkClickedEvent)('a');
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
2
1
|
import { extractSummary } from '../common/primitives';
|
|
3
2
|
import extractFollowAction from './actions/extract-follow-action';
|
|
4
3
|
import { extractLinkIcon } from './icon';
|
|
@@ -40,7 +39,7 @@ const extractFlexibleUiContext = ({
|
|
|
40
39
|
assignedTo: extractAssignedTo(data),
|
|
41
40
|
createdOn: extractDateCreated(data),
|
|
42
41
|
dueOn: extractDueOn(data),
|
|
43
|
-
followAction:
|
|
42
|
+
followAction: extractFollowAction(response, actionOptions, id),
|
|
44
43
|
previewAction: extractPreviewAction(response, actionOptions),
|
|
45
44
|
viewAction: extractViewAction(data, actionOptions),
|
|
46
45
|
downloadAction: extractDownloadAction(data, actionOptions),
|
|
@@ -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: "26.45.
|
|
7
|
+
packageVersion: "26.45.2"
|
|
8
8
|
};
|
|
9
9
|
export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
10
10
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import React, { useCallback } from 'react';
|
|
3
3
|
import { css, jsx } from '@emotion/react';
|
|
4
|
-
import Button from '@atlaskit/button/custom-theme-button';
|
|
5
4
|
import { LoadingButton } from '@atlaskit/button';
|
|
6
|
-
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
7
5
|
import Tooltip from '@atlaskit/tooltip';
|
|
8
6
|
import { SmartLinkSize } from '../../../../../../constants';
|
|
9
7
|
import { sizeToButtonSpacing } from '../../../utils';
|
|
@@ -70,7 +68,7 @@ const ActionButton = ({
|
|
|
70
68
|
content: tooltipMessage,
|
|
71
69
|
hideTooltipOnClick: true,
|
|
72
70
|
testId: `${testId}-tooltip`
|
|
73
|
-
},
|
|
71
|
+
}, jsx(LoadingButton, {
|
|
74
72
|
appearance: appearance,
|
|
75
73
|
iconAfter: iconAfter,
|
|
76
74
|
iconBefore: iconBefore,
|
|
@@ -79,14 +77,6 @@ const ActionButton = ({
|
|
|
79
77
|
onClick: onButtonClick(onClick),
|
|
80
78
|
spacing: sizeToButtonSpacing[size],
|
|
81
79
|
testId: testId
|
|
82
|
-
}, content) : jsx(Button, {
|
|
83
|
-
appearance: appearance,
|
|
84
|
-
iconAfter: iconAfter,
|
|
85
|
-
iconBefore: iconBefore,
|
|
86
|
-
onClick: onButtonClick(onClick),
|
|
87
|
-
spacing: sizeToButtonSpacing[size],
|
|
88
|
-
testId: testId,
|
|
89
|
-
isDisabled: isDisabled
|
|
90
80
|
}, content)));
|
|
91
81
|
};
|
|
92
82
|
export default ActionButton;
|
|
@@ -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: "26.45.
|
|
10
|
+
packageVersion: "26.45.2",
|
|
11
11
|
componentName: 'linkUrl'
|
|
12
12
|
};
|
|
13
13
|
const Link = withLinkClickedEvent('a');
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
2
1
|
import { extractSummary } from '../common/primitives';
|
|
3
2
|
import extractFollowAction from './actions/extract-follow-action';
|
|
4
3
|
import { extractLinkIcon } from './icon';
|
|
@@ -40,7 +39,7 @@ var extractFlexibleUiContext = function extractFlexibleUiContext() {
|
|
|
40
39
|
assignedTo: extractAssignedTo(data),
|
|
41
40
|
createdOn: extractDateCreated(data),
|
|
42
41
|
dueOn: extractDueOn(data),
|
|
43
|
-
followAction:
|
|
42
|
+
followAction: extractFollowAction(response, actionOptions, id),
|
|
44
43
|
previewAction: extractPreviewAction(response, actionOptions),
|
|
45
44
|
viewAction: extractViewAction(data, actionOptions),
|
|
46
45
|
downloadAction: extractDownloadAction(data, actionOptions),
|
|
@@ -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: "26.45.
|
|
18
|
+
packageVersion: "26.45.2"
|
|
19
19
|
};
|
|
20
20
|
export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
21
21
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -3,9 +3,7 @@ var _templateObject, _templateObject2;
|
|
|
3
3
|
/** @jsx jsx */
|
|
4
4
|
import React, { useCallback } from 'react';
|
|
5
5
|
import { css, jsx } from '@emotion/react';
|
|
6
|
-
import Button from '@atlaskit/button/custom-theme-button';
|
|
7
6
|
import { LoadingButton } from '@atlaskit/button';
|
|
8
|
-
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
9
7
|
import Tooltip from '@atlaskit/tooltip';
|
|
10
8
|
import { SmartLinkSize } from '../../../../../../constants';
|
|
11
9
|
import { sizeToButtonSpacing } from '../../../utils';
|
|
@@ -47,7 +45,7 @@ var ActionButton = function ActionButton(_ref) {
|
|
|
47
45
|
content: tooltipMessage,
|
|
48
46
|
hideTooltipOnClick: true,
|
|
49
47
|
testId: "".concat(testId, "-tooltip")
|
|
50
|
-
},
|
|
48
|
+
}, jsx(LoadingButton, {
|
|
51
49
|
appearance: appearance,
|
|
52
50
|
iconAfter: iconAfter,
|
|
53
51
|
iconBefore: iconBefore,
|
|
@@ -56,14 +54,6 @@ var ActionButton = function ActionButton(_ref) {
|
|
|
56
54
|
onClick: onButtonClick(onClick),
|
|
57
55
|
spacing: sizeToButtonSpacing[size],
|
|
58
56
|
testId: testId
|
|
59
|
-
}, content) : jsx(Button, {
|
|
60
|
-
appearance: appearance,
|
|
61
|
-
iconAfter: iconAfter,
|
|
62
|
-
iconBefore: iconBefore,
|
|
63
|
-
onClick: onButtonClick(onClick),
|
|
64
|
-
spacing: sizeToButtonSpacing[size],
|
|
65
|
-
testId: testId,
|
|
66
|
-
isDisabled: isDisabled
|
|
67
57
|
}, content)));
|
|
68
58
|
};
|
|
69
59
|
export default ActionButton;
|
|
@@ -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: "26.45.
|
|
13
|
+
packageVersion: "26.45.2",
|
|
14
14
|
componentName: 'linkUrl'
|
|
15
15
|
};
|
|
16
16
|
var Link = withLinkClickedEvent('a');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/smart-card",
|
|
3
|
-
"version": "26.45.
|
|
3
|
+
"version": "26.45.2",
|
|
4
4
|
"description": "Smart card component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -137,9 +137,6 @@
|
|
|
137
137
|
".": "./src/index.ts"
|
|
138
138
|
},
|
|
139
139
|
"platform-feature-flags": {
|
|
140
|
-
"platform.linking-platform.smart-card.follow-button": {
|
|
141
|
-
"type": "boolean"
|
|
142
|
-
},
|
|
143
140
|
"platform.linking-platform.smart-card.fix-is-trusted-pop": {
|
|
144
141
|
"type": "boolean"
|
|
145
142
|
},
|