@atlaskit/smart-card 26.56.2 → 26.56.3
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/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/HoverCard/components/HoverCardContent.js +2 -1
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/HoverCard/components/HoverCardContent.js +2 -1
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/HoverCard/components/HoverCardContent.js +2 -1
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/types/view/HoverCard/components/HoverCardContent.d.ts +0 -1
- package/dist/types-ts4.5/view/HoverCard/components/HoverCardContent.d.ts +0 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 26.56.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#91582](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91582) [`a43b331b2043`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a43b331b2043) - Hide copy link button on hover card when redesign ff is on
|
|
8
|
+
|
|
3
9
|
## 26.56.2
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -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.56.
|
|
25
|
+
packageVersion: "26.56.3"
|
|
26
26
|
};
|
|
27
27
|
var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
28
28
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -8,6 +8,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
8
8
|
exports.hoverCardClassName = exports.getCopyAction = exports.default = void 0;
|
|
9
9
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
10
10
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
11
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
11
12
|
var _react = require("@emotion/react");
|
|
12
13
|
var _analyticsNext = require("@atlaskit/analytics-next");
|
|
13
14
|
var _copy = _interopRequireDefault(require("@atlaskit/icon/glyph/copy"));
|
|
@@ -146,7 +147,7 @@ var HoverCardContent = function HoverCardContent(_ref) {
|
|
|
146
147
|
subtitle = _extractMetadata.subtitle;
|
|
147
148
|
var titleMaxLines = subtitle && subtitle.length > 0 ? 1 : 2;
|
|
148
149
|
var titleBlockProps = {
|
|
149
|
-
actions: titleActions,
|
|
150
|
+
actions: (0, _platformFeatureFlags.getBooleanFF)('platform.linking-platform.smart-card.hover-card-action-redesign') ? undefined : titleActions,
|
|
150
151
|
maxLines: titleMaxLines,
|
|
151
152
|
overrideCss: _styled.titleBlockCss,
|
|
152
153
|
size: _constants.SmartLinkSize.Large,
|
|
@@ -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.56.
|
|
20
|
+
packageVersion: "26.56.3",
|
|
21
21
|
componentName: 'linkUrl'
|
|
22
22
|
};
|
|
23
23
|
var Link = (0, _click.withLinkClickedEvent)('a');
|
|
@@ -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.56.
|
|
7
|
+
packageVersion: "26.56.3"
|
|
8
8
|
};
|
|
9
9
|
export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
10
10
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
+
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
2
3
|
import { jsx } from '@emotion/react';
|
|
3
4
|
import { useAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
4
5
|
import CopyIcon from '@atlaskit/icon/glyph/copy';
|
|
@@ -110,7 +111,7 @@ const HoverCardContent = ({
|
|
|
110
111
|
} = extractMetadata(getSimulatedMetadata(extensionKey, data));
|
|
111
112
|
const titleMaxLines = subtitle && subtitle.length > 0 ? 1 : 2;
|
|
112
113
|
const titleBlockProps = {
|
|
113
|
-
actions: titleActions,
|
|
114
|
+
actions: getBooleanFF('platform.linking-platform.smart-card.hover-card-action-redesign') ? undefined : titleActions,
|
|
114
115
|
maxLines: titleMaxLines,
|
|
115
116
|
overrideCss: titleBlockCss,
|
|
116
117
|
size: SmartLinkSize.Large,
|
|
@@ -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.56.
|
|
10
|
+
packageVersion: "26.56.3",
|
|
11
11
|
componentName: 'linkUrl'
|
|
12
12
|
};
|
|
13
13
|
const Link = withLinkClickedEvent('a');
|
|
@@ -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.56.
|
|
18
|
+
packageVersion: "26.56.3"
|
|
19
19
|
};
|
|
20
20
|
export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
21
21
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
2
2
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
3
3
|
/** @jsx jsx */
|
|
4
|
+
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
4
5
|
import { jsx } from '@emotion/react';
|
|
5
6
|
import { useAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
6
7
|
import CopyIcon from '@atlaskit/icon/glyph/copy';
|
|
@@ -135,7 +136,7 @@ var HoverCardContent = function HoverCardContent(_ref) {
|
|
|
135
136
|
subtitle = _extractMetadata.subtitle;
|
|
136
137
|
var titleMaxLines = subtitle && subtitle.length > 0 ? 1 : 2;
|
|
137
138
|
var titleBlockProps = {
|
|
138
|
-
actions: titleActions,
|
|
139
|
+
actions: getBooleanFF('platform.linking-platform.smart-card.hover-card-action-redesign') ? undefined : titleActions,
|
|
139
140
|
maxLines: titleMaxLines,
|
|
140
141
|
overrideCss: titleBlockCss,
|
|
141
142
|
size: SmartLinkSize.Large,
|
|
@@ -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.56.
|
|
13
|
+
packageVersion: "26.56.3",
|
|
14
14
|
componentName: 'linkUrl'
|
|
15
15
|
};
|
|
16
16
|
var Link = withLinkClickedEvent('a');
|