@atlaskit/smart-card 28.3.1 → 29.0.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 +28 -0
- package/dist/cjs/index.js +0 -6
- package/dist/cjs/state/analytics/useSmartLinkAnalytics.js +2 -12
- package/dist/cjs/state/hooks/useSmartLink.js +2 -7
- package/dist/cjs/state/hooks-external/useSmartLinkActions.js +1 -2
- package/dist/cjs/state/hooks-external/useSmartLinkReload.js +2 -3
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/utils/index.js +1 -14
- package/dist/cjs/view/CardWithUrl/component.js +2 -5
- package/dist/cjs/view/CardWithUrl/loader.js +1 -5
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-trigger/index.js +14 -4
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/styled.js +1 -5
- package/dist/cjs/view/HoverCard/components/HoverCardComponent.js +1 -1
- package/dist/cjs/view/HoverCard/components/HoverCardContent.js +1 -1
- package/dist/cjs/view/HoverCard/index.js +1 -1
- package/dist/cjs/view/InlineCard/Icon.js +3 -17
- package/dist/cjs/view/InlineCard/IconAndTitleLayout/index.js +13 -29
- package/dist/cjs/view/InlineCard/IconAndTitleLayout/styled.js +6 -43
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/client/index.js +4 -0
- package/dist/es2019/index.js +20 -1
- package/dist/es2019/state/analytics/useSmartLinkAnalytics.js +2 -12
- package/dist/es2019/state/hooks/useSmartLink.js +2 -7
- package/dist/es2019/state/hooks-external/useSmartLinkActions.js +1 -2
- package/dist/es2019/state/hooks-external/useSmartLinkReload.js +2 -3
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/utils/index.js +0 -13
- package/dist/es2019/view/CardWithUrl/component.js +3 -6
- package/dist/es2019/view/CardWithUrl/loader.js +1 -5
- package/dist/es2019/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-trigger/index.js +14 -4
- package/dist/es2019/view/FlexibleCard/components/elements/lozenge/lozenge-action/styled.js +1 -5
- package/dist/es2019/view/HoverCard/components/HoverCardComponent.js +1 -1
- package/dist/es2019/view/HoverCard/components/HoverCardContent.js +1 -1
- package/dist/es2019/view/HoverCard/index.js +1 -1
- package/dist/es2019/view/InlineCard/Icon.js +2 -16
- package/dist/es2019/view/InlineCard/IconAndTitleLayout/index.js +15 -31
- package/dist/es2019/view/InlineCard/IconAndTitleLayout/styled.js +5 -71
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/client/index.js +4 -0
- package/dist/esm/index.js +20 -1
- package/dist/esm/state/analytics/useSmartLinkAnalytics.js +2 -12
- package/dist/esm/state/hooks/useSmartLink.js +2 -7
- package/dist/esm/state/hooks-external/useSmartLinkActions.js +1 -2
- package/dist/esm/state/hooks-external/useSmartLinkReload.js +2 -3
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/utils/index.js +0 -13
- package/dist/esm/view/CardWithUrl/component.js +3 -6
- package/dist/esm/view/CardWithUrl/loader.js +1 -5
- package/dist/esm/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-trigger/index.js +14 -4
- package/dist/esm/view/FlexibleCard/components/elements/lozenge/lozenge-action/styled.js +1 -5
- package/dist/esm/view/HoverCard/components/HoverCardComponent.js +1 -1
- package/dist/esm/view/HoverCard/components/HoverCardContent.js +1 -1
- package/dist/esm/view/HoverCard/index.js +1 -1
- package/dist/esm/view/InlineCard/Icon.js +2 -16
- package/dist/esm/view/InlineCard/IconAndTitleLayout/index.js +15 -31
- package/dist/esm/view/InlineCard/IconAndTitleLayout/styled.js +5 -42
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/types/client/index.d.ts +4 -0
- package/dist/types/index.d.ts +9 -1
- package/dist/types/state/analytics/useSmartLinkAnalytics.d.ts +2 -12
- package/dist/types/state/hooks/useSmartLink.d.ts +4 -11
- package/dist/types/state/hooks-external/useSmartLinkActions.d.ts +2 -10
- package/dist/types/state/hooks-external/useSmartLinkReload.d.ts +1 -10
- package/dist/types/utils/index.d.ts +0 -6
- package/dist/types/utils/mocks.d.ts +0 -1
- package/dist/types/view/Card/index.d.ts +1 -1
- package/dist/types/view/Card/types.d.ts +0 -25
- package/dist/types/view/CardWithData/types.d.ts +0 -6
- package/dist/types/view/CardWithUrl/types.d.ts +0 -19
- package/dist/types/view/HoverCard/types.d.ts +1 -7
- package/dist/types/view/InlineCard/Icon.d.ts +0 -4
- package/dist/types/view/InlineCard/IconAndTitleLayout/styled.d.ts +2 -16
- package/dist/types-ts4.5/client/index.d.ts +4 -0
- package/dist/types-ts4.5/index.d.ts +9 -1
- package/dist/types-ts4.5/state/analytics/useSmartLinkAnalytics.d.ts +2 -12
- package/dist/types-ts4.5/state/hooks/useSmartLink.d.ts +4 -11
- package/dist/types-ts4.5/state/hooks-external/useSmartLinkActions.d.ts +2 -10
- package/dist/types-ts4.5/state/hooks-external/useSmartLinkReload.d.ts +1 -10
- package/dist/types-ts4.5/utils/index.d.ts +0 -6
- package/dist/types-ts4.5/utils/mocks.d.ts +0 -1
- package/dist/types-ts4.5/view/Card/index.d.ts +1 -1
- package/dist/types-ts4.5/view/Card/types.d.ts +0 -25
- package/dist/types-ts4.5/view/CardWithData/types.d.ts +0 -6
- package/dist/types-ts4.5/view/CardWithUrl/types.d.ts +0 -19
- package/dist/types-ts4.5/view/HoverCard/types.d.ts +1 -7
- package/dist/types-ts4.5/view/InlineCard/Icon.d.ts +0 -4
- package/dist/types-ts4.5/view/InlineCard/IconAndTitleLayout/styled.d.ts +2 -16
- package/package.json +3 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,33 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 29.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [#147220](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/147220)
|
|
8
|
+
[`07a9416026f88`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/07a9416026f88) -
|
|
9
|
+
Remove isFrameVisible from smart card public export
|
|
10
|
+
- [#147220](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/147220)
|
|
11
|
+
[`07a9416026f88`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/07a9416026f88) -
|
|
12
|
+
Remove showActions and showServerActions from smart-card
|
|
13
|
+
- [#147220](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/147220)
|
|
14
|
+
[`07a9416026f88`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/07a9416026f88) -
|
|
15
|
+
Remove useSmartLinkAnalytics from publicly exported API and remove analyticsEvents from Card
|
|
16
|
+
|
|
17
|
+
### Minor Changes
|
|
18
|
+
|
|
19
|
+
- [#147259](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/147259)
|
|
20
|
+
[`33c2291672ccf`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/33c2291672ccf) -
|
|
21
|
+
Enable new icons behind a feature flag.
|
|
22
|
+
|
|
23
|
+
## 28.4.0
|
|
24
|
+
|
|
25
|
+
### Minor Changes
|
|
26
|
+
|
|
27
|
+
- [#147041](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/147041)
|
|
28
|
+
[`d0989d8277f3f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d0989d8277f3f) -
|
|
29
|
+
Clean up inline icon size FF
|
|
30
|
+
|
|
3
31
|
## 28.3.1
|
|
4
32
|
|
|
5
33
|
### Patch Changes
|
package/dist/cjs/index.js
CHANGED
|
@@ -243,12 +243,6 @@ Object.defineProperty(exports, "metadataListClassName", {
|
|
|
243
243
|
return _classNames.metadataListClassName;
|
|
244
244
|
}
|
|
245
245
|
});
|
|
246
|
-
Object.defineProperty(exports, "useSmartLinkAnalytics", {
|
|
247
|
-
enumerable: true,
|
|
248
|
-
get: function get() {
|
|
249
|
-
return _state.useSmartLinkAnalytics;
|
|
250
|
-
}
|
|
251
|
-
});
|
|
252
246
|
Object.defineProperty(exports, "useSmartLinkEvents", {
|
|
253
247
|
enumerable: true,
|
|
254
248
|
get: function get() {
|
|
@@ -35,18 +35,14 @@ var applyCommonAttributes = function applyCommonAttributes(event, commonAttribut
|
|
|
35
35
|
* This hook provides usage of Smart Link analytics outside of the Card component.
|
|
36
36
|
* Can be provided to Card via the analyticsEvents prop to change the analytics events.
|
|
37
37
|
*
|
|
38
|
-
* @deprecated {@link https://hello.atlassian.net/browse/ENGHEALTH-2681 Internal documentation for deprecation (no external access)}
|
|
39
|
-
* This hook's external use is deprecated and may no longer be exported from this package in future releases.
|
|
40
|
-
* Please avoid using it in conjunction with the `analyticsEvents` prop.
|
|
41
|
-
*
|
|
42
38
|
* @param url URL of the link
|
|
43
39
|
* @param dispatchAnalytics dispatchAnalytics function
|
|
44
40
|
* @param id fallback id of the events sent if no id is available
|
|
45
41
|
* @param defaultLocation location attribute to be used
|
|
46
42
|
* @returns
|
|
47
43
|
*/
|
|
48
|
-
var useSmartLinkAnalytics = exports.useSmartLinkAnalytics = function useSmartLinkAnalytics(url,
|
|
49
|
-
var _useDispatchAnalytics = (0, _useDispatchAnalytics2.useDispatchAnalytics)(
|
|
44
|
+
var useSmartLinkAnalytics = exports.useSmartLinkAnalytics = function useSmartLinkAnalytics(url, id, defaultLocation) {
|
|
45
|
+
var _useDispatchAnalytics = (0, _useDispatchAnalytics2.useDispatchAnalytics)(),
|
|
50
46
|
dispatchAnalytics = _useDispatchAnalytics.dispatchAnalytics;
|
|
51
47
|
var defaultId = id || 'NULL';
|
|
52
48
|
// We don't want to trigger a re-render by using useSmartCardState
|
|
@@ -254,7 +250,6 @@ var useSmartLinkAnalytics = exports.useSmartLinkAnalytics = function useSmartLin
|
|
|
254
250
|
* @param extensionKey The extensionKey of the Smart Link resovler invoked.
|
|
255
251
|
* @param actionType The type of the action that was clicked, e.g. PreviewAction
|
|
256
252
|
* @param display Whether the card was an Inline, Block, Embed or Flexible UI.
|
|
257
|
-
* @param invokeType @deprecated {@link https://hello.atlassian.net/browse/ENGHEALTH-2681 Internal documentation for deprecation (no external access)}
|
|
258
253
|
* @returns
|
|
259
254
|
*/
|
|
260
255
|
actionClickedEvent: function actionClickedEvent(_ref6) {
|
|
@@ -753,11 +748,6 @@ var useSmartLinkAnalytics = exports.useSmartLinkAnalytics = function useSmartLin
|
|
|
753
748
|
location: location
|
|
754
749
|
})), commonAttributes));
|
|
755
750
|
},
|
|
756
|
-
/**
|
|
757
|
-
* Removed in EDM-5153: This is an even from an experiment.
|
|
758
|
-
* @deprecated
|
|
759
|
-
*/
|
|
760
|
-
linkUpdated: function linkUpdated() {},
|
|
761
751
|
/**
|
|
762
752
|
* This fires a tracking event before an action invoke api call is made
|
|
763
753
|
*/
|
|
@@ -13,16 +13,11 @@ var _config = require("../config");
|
|
|
13
13
|
var _analytics = require("../analytics");
|
|
14
14
|
var _renderers = require("../renderers");
|
|
15
15
|
var _linkProvider = require("@atlaskit/link-provider");
|
|
16
|
-
function useSmartLink(id, url
|
|
17
|
-
/**
|
|
18
|
-
* @deprecated {@link https://hello.atlassian.net/browse/ENGHEALTH-2681 Internal documentation for deprecation (no external access)}
|
|
19
|
-
* Avoid prop drilling analytics handlers. Continue passing a handler for now if there's already one in place.
|
|
20
|
-
*/
|
|
21
|
-
dispatchAnalytics) {
|
|
16
|
+
function useSmartLink(id, url) {
|
|
22
17
|
var state = (0, _store.useSmartCardState)(url);
|
|
23
18
|
var _useSmartLinkContext = (0, _linkProvider.useSmartLinkContext)(),
|
|
24
19
|
store = _useSmartLinkContext.store;
|
|
25
|
-
var analytics = (0, _analytics.useSmartLinkAnalytics)(url,
|
|
20
|
+
var analytics = (0, _analytics.useSmartLinkAnalytics)(url, id);
|
|
26
21
|
var actions = (0, _actions.useSmartCardActions)(id, url, analytics);
|
|
27
22
|
var config = (0, _config.useSmartLinkConfig)();
|
|
28
23
|
var renderers = (0, _renderers.useSmartLinkRenderers)();
|
|
@@ -15,7 +15,6 @@ var _helpers = require("../helpers");
|
|
|
15
15
|
function useSmartLinkActions(_ref) {
|
|
16
16
|
var url = _ref.url,
|
|
17
17
|
appearance = _ref.appearance,
|
|
18
|
-
analyticsHandler = _ref.analyticsHandler,
|
|
19
18
|
_ref$platform = _ref.platform,
|
|
20
19
|
platform = _ref$platform === void 0 ? 'web' : _ref$platform,
|
|
21
20
|
origin = _ref.origin,
|
|
@@ -24,7 +23,7 @@ function useSmartLinkActions(_ref) {
|
|
|
24
23
|
return (0, _uuid.default)();
|
|
25
24
|
}, []);
|
|
26
25
|
var linkState = (0, _store.useSmartCardState)(url);
|
|
27
|
-
var linkAnalytics = (0, _analytics.useSmartLinkAnalytics)(url,
|
|
26
|
+
var linkAnalytics = (0, _analytics.useSmartLinkAnalytics)(url, id);
|
|
28
27
|
var linkActions = (0, _actions.useSmartCardActions)(id, url, linkAnalytics);
|
|
29
28
|
if (linkState.details && !(actionOptions !== null && actionOptions !== void 0 && actionOptions.hide)) {
|
|
30
29
|
var cardProperties = (0, _block.extractBlockProps)(linkState.details.data, linkState.details.meta, {
|
|
@@ -15,12 +15,11 @@ var _analytics = require("../analytics");
|
|
|
15
15
|
* @returns
|
|
16
16
|
*/
|
|
17
17
|
function useSmartLinkReload(_ref) {
|
|
18
|
-
var url = _ref.url
|
|
19
|
-
analyticsHandler = _ref.analyticsHandler;
|
|
18
|
+
var url = _ref.url;
|
|
20
19
|
var id = (0, _react.useMemo)(function () {
|
|
21
20
|
return (0, _uuid.default)();
|
|
22
21
|
}, []);
|
|
23
|
-
var linkAnalytics = (0, _analytics.useSmartLinkAnalytics)(url,
|
|
22
|
+
var linkAnalytics = (0, _analytics.useSmartLinkAnalytics)(url, id);
|
|
24
23
|
var linkActions = (0, _actions.useSmartCardActions)(id, url, linkAnalytics);
|
|
25
24
|
return linkActions.reload;
|
|
26
25
|
}
|
|
@@ -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: "
|
|
25
|
+
packageVersion: "29.0.0"
|
|
26
26
|
};
|
|
27
27
|
var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
28
28
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
package/dist/cjs/utils/index.js
CHANGED
|
@@ -5,7 +5,7 @@ var _typeof = require("@babel/runtime/helpers/typeof");
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.sleep = exports.openUrl = exports.isSpecialKey = exports.isSpecialEvent = exports.isSpecialClick = exports.isIntersectionObserverSupported = exports.isIframe = exports.isCardWithData = exports.importWithRetry = exports.handleOnClick = exports.getPreviewUrlWithTheme = exports.getLabelForFileType = exports.getIframeSandboxAttribute = exports.getIconForFileType = exports.downloadUrl =
|
|
8
|
+
exports.sleep = exports.openUrl = exports.isSpecialKey = exports.isSpecialEvent = exports.isSpecialClick = exports.isIntersectionObserverSupported = exports.isIframe = exports.isCardWithData = exports.importWithRetry = exports.handleOnClick = exports.getPreviewUrlWithTheme = exports.getLabelForFileType = exports.getIframeSandboxAttribute = exports.getIconForFileType = exports.downloadUrl = void 0;
|
|
9
9
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
10
10
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
11
11
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
@@ -454,19 +454,6 @@ var openUrl = exports.openUrl = /*#__PURE__*/function () {
|
|
|
454
454
|
};
|
|
455
455
|
}();
|
|
456
456
|
|
|
457
|
-
/**
|
|
458
|
-
* Migrate internal usages of the deprecated isFrameVisible to frameStyle
|
|
459
|
-
* This function is to be removed on deprecation of isFrameVisible.
|
|
460
|
-
*/
|
|
461
|
-
var combineFrameStyle = exports.combineFrameStyle = function combineFrameStyle(frameStyle, isFrameVisible) {
|
|
462
|
-
if (frameStyle !== undefined) {
|
|
463
|
-
return frameStyle;
|
|
464
|
-
}
|
|
465
|
-
if (isFrameVisible) {
|
|
466
|
-
return 'show';
|
|
467
|
-
}
|
|
468
|
-
};
|
|
469
|
-
|
|
470
457
|
/**
|
|
471
458
|
* Append a theme to the URL if it exists
|
|
472
459
|
* @param previewUrl
|
|
@@ -29,12 +29,10 @@ function Component(_ref) {
|
|
|
29
29
|
url = _ref.url,
|
|
30
30
|
isSelected = _ref.isSelected,
|
|
31
31
|
isHovered = _ref.isHovered,
|
|
32
|
-
|
|
33
|
-
frameStyleProp = _ref.frameStyle,
|
|
32
|
+
frameStyle = _ref.frameStyle,
|
|
34
33
|
platform = _ref.platform,
|
|
35
34
|
onClick = _ref.onClick,
|
|
36
35
|
appearance = _ref.appearance,
|
|
37
|
-
dispatchAnalytics = _ref.dispatchAnalytics,
|
|
38
36
|
onResolve = _ref.onResolve,
|
|
39
37
|
onError = _ref.onError,
|
|
40
38
|
testId = _ref.testId,
|
|
@@ -57,7 +55,7 @@ function Component(_ref) {
|
|
|
57
55
|
createAnalyticsEvent = _useAnalyticsEvents.createAnalyticsEvent;
|
|
58
56
|
|
|
59
57
|
// Get state, actions for this card.
|
|
60
|
-
var _useSmartLink = (0, _state.useSmartLink)(id, url
|
|
58
|
+
var _useSmartLink = (0, _state.useSmartLink)(id, url),
|
|
61
59
|
state = _useSmartLink.state,
|
|
62
60
|
actions = _useSmartLink.actions,
|
|
63
61
|
defaultAnalytics = _useSmartLink.analytics,
|
|
@@ -79,7 +77,6 @@ function Component(_ref) {
|
|
|
79
77
|
actionOptions: actionOptionsProp,
|
|
80
78
|
platform: platform
|
|
81
79
|
});
|
|
82
|
-
var frameStyle = (0, _utils.combineFrameStyle)(frameStyleProp, isFrameVisible);
|
|
83
80
|
|
|
84
81
|
// Setup UI handlers.
|
|
85
82
|
var handleClickWrapper = (0, _react.useCallback)(function (event) {
|
|
@@ -43,7 +43,6 @@ function CardWithURLRenderer(props) {
|
|
|
43
43
|
appearance = props.appearance,
|
|
44
44
|
isSelected = props.isSelected,
|
|
45
45
|
isHovered = props.isHovered,
|
|
46
|
-
isFrameVisible = props.isFrameVisible,
|
|
47
46
|
frameStyle = props.frameStyle,
|
|
48
47
|
onClick = props.onClick,
|
|
49
48
|
container = props.container,
|
|
@@ -61,14 +60,13 @@ function CardWithURLRenderer(props) {
|
|
|
61
60
|
showHoverPreview = props.showHoverPreview,
|
|
62
61
|
hoverPreviewOptions = props.hoverPreviewOptions,
|
|
63
62
|
showAuthTooltip = props.showAuthTooltip,
|
|
64
|
-
analyticsEvents = props.analyticsEvents,
|
|
65
63
|
placeholder = props.placeholder,
|
|
66
64
|
fallbackComponent = props.fallbackComponent,
|
|
67
65
|
useLegacyBlockCard = props.useLegacyBlockCard,
|
|
68
66
|
removeTextHighlightingFromTitle = props.removeTextHighlightingFromTitle,
|
|
69
67
|
resolvingPlaceholder = props.resolvingPlaceholder,
|
|
70
68
|
truncateInline = props.truncateInline;
|
|
71
|
-
var analytics = (0, _analytics.useSmartLinkAnalytics)(url !== null && url !== void 0 ? url : '',
|
|
69
|
+
var analytics = (0, _analytics.useSmartLinkAnalytics)(url !== null && url !== void 0 ? url : '', id);
|
|
72
70
|
var isFlexibleUi = (0, _flexible.isFlexibleUiCard)(children);
|
|
73
71
|
var errorHandler = (0, _react.useCallback)(function (error, info) {
|
|
74
72
|
var componentStack = info.componentStack;
|
|
@@ -117,7 +115,6 @@ function CardWithURLRenderer(props) {
|
|
|
117
115
|
onClick: onClick,
|
|
118
116
|
isSelected: isSelected,
|
|
119
117
|
isHovered: isHovered,
|
|
120
|
-
isFrameVisible: isFrameVisible,
|
|
121
118
|
frameStyle: frameStyle,
|
|
122
119
|
container: container,
|
|
123
120
|
onResolve: onResolve,
|
|
@@ -133,7 +130,6 @@ function CardWithURLRenderer(props) {
|
|
|
133
130
|
showHoverPreview: showHoverPreview,
|
|
134
131
|
hoverPreviewOptions: hoverPreviewOptions,
|
|
135
132
|
showAuthTooltip: showAuthTooltip,
|
|
136
|
-
analyticsEvents: analyticsEvents,
|
|
137
133
|
placeholder: placeholder,
|
|
138
134
|
useLegacyBlockCard: useLegacyBlockCard,
|
|
139
135
|
removeTextHighlightingFromTitle: removeTextHighlightingFromTitle,
|
|
@@ -11,14 +11,19 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
|
|
|
11
11
|
var _react = require("@emotion/react");
|
|
12
12
|
var _react2 = require("react");
|
|
13
13
|
var _lozenge = _interopRequireDefault(require("@atlaskit/lozenge"));
|
|
14
|
-
var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/
|
|
14
|
+
var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/utility/migration/chevron-down"));
|
|
15
15
|
var _styled = require("../styled");
|
|
16
|
+
var _primitives = require("@atlaskit/primitives");
|
|
16
17
|
var _excluded = ["appearance", "isOpen", "testId", "text", "triggerRef"];
|
|
17
18
|
/**
|
|
18
19
|
* @jsxRuntime classic
|
|
19
20
|
* @jsx jsx
|
|
20
21
|
*/
|
|
21
22
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
23
|
+
var chevronDownStyles = (0, _primitives.xcss)({
|
|
24
|
+
marginLeft: 'space.075',
|
|
25
|
+
display: 'flex'
|
|
26
|
+
});
|
|
22
27
|
var LozengeActionTrigger = function LozengeActionTrigger(_ref) {
|
|
23
28
|
var appearance = _ref.appearance,
|
|
24
29
|
isOpen = _ref.isOpen,
|
|
@@ -42,10 +47,15 @@ var LozengeActionTrigger = function LozengeActionTrigger(_ref) {
|
|
|
42
47
|
isBold: isBold
|
|
43
48
|
}, (0, _react.jsx)("span", {
|
|
44
49
|
css: _styled.triggerLozengeStyles
|
|
45
|
-
}, (0, _react.jsx)("span", null, text), (0, _react.jsx)(
|
|
50
|
+
}, (0, _react.jsx)("span", null, text), (0, _react.jsx)(_primitives.Box, {
|
|
51
|
+
as: "span",
|
|
52
|
+
xcss: chevronDownStyles
|
|
53
|
+
}, (0, _react.jsx)(_chevronDown.default, {
|
|
54
|
+
color: "currentColor",
|
|
46
55
|
label: "options",
|
|
47
|
-
|
|
48
|
-
|
|
56
|
+
LEGACY_size: "medium",
|
|
57
|
+
LEGACY_margin: "-4px -8px -4px -7px"
|
|
58
|
+
}))));
|
|
49
59
|
}, [appearance, isBold, text]);
|
|
50
60
|
return (0, _react.jsx)("button", (0, _extends2.default)({
|
|
51
61
|
type: "button"
|
|
@@ -34,11 +34,7 @@ var triggerButtonStyles = exports.triggerButtonStyles = (0, _react.css)({
|
|
|
34
34
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
35
35
|
var triggerLozengeStyles = exports.triggerLozengeStyles = (0, _react.css)({
|
|
36
36
|
alignItems: 'center',
|
|
37
|
-
display: 'flex'
|
|
38
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
39
|
-
"span[role='img']": {
|
|
40
|
-
margin: "var(--ds-space-negative-050, -4px)".concat(" ", "var(--ds-space-negative-100, -8px)", " ", "var(--ds-space-negative-050, -4px)", " -1px")
|
|
41
|
-
}
|
|
37
|
+
display: 'flex'
|
|
42
38
|
});
|
|
43
39
|
|
|
44
40
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
@@ -68,7 +68,7 @@ var HoverCardComponent = exports.HoverCardComponent = function HoverCardComponen
|
|
|
68
68
|
var parentSpan = (0, _react2.useRef)(null);
|
|
69
69
|
var renderers = (0, _renderers.useSmartLinkRenderers)();
|
|
70
70
|
var linkState = (0, _store.useSmartCardState)(url);
|
|
71
|
-
var analytics = (0, _analytics.useSmartLinkAnalytics)(url,
|
|
71
|
+
var analytics = (0, _analytics.useSmartLinkAnalytics)(url, id);
|
|
72
72
|
var _useSmartCardActions = (0, _actions.useSmartCardActions)(id, url, analytics),
|
|
73
73
|
loadMetadata = _useSmartCardActions.loadMetadata;
|
|
74
74
|
var actionOptions = (0, _combineActionOptions.combineActionOptions)({
|
|
@@ -48,7 +48,7 @@ var HoverCardContent = function HoverCardContent(_ref) {
|
|
|
48
48
|
actionOptions = _ref.actionOptions;
|
|
49
49
|
var _useAnalyticsEvents = (0, _analyticsNext.useAnalyticsEvents)(),
|
|
50
50
|
createAnalyticsEvent = _useAnalyticsEvents.createAnalyticsEvent;
|
|
51
|
-
var defaultAnalytics = (0, _analytics2.useSmartLinkAnalytics)(url,
|
|
51
|
+
var defaultAnalytics = (0, _analytics2.useSmartLinkAnalytics)(url, id);
|
|
52
52
|
var analytics = _analytics !== null && _analytics !== void 0 ? _analytics : defaultAnalytics;
|
|
53
53
|
var extensionKey = (0, _react2.useMemo)(function () {
|
|
54
54
|
return (0, _helpers.getExtensionKey)(cardState.details);
|
|
@@ -24,7 +24,7 @@ var HoverCardWithErrorBoundary = function HoverCardWithErrorBoundary(props) {
|
|
|
24
24
|
var url = props.url,
|
|
25
25
|
id = props.id,
|
|
26
26
|
children = props.children;
|
|
27
|
-
var analytics = (0, _analytics.useSmartLinkAnalytics)(url,
|
|
27
|
+
var analytics = (0, _analytics.useSmartLinkAnalytics)(url, id);
|
|
28
28
|
var onError = (0, _react2.useCallback)(function (error, info) {
|
|
29
29
|
analytics.ui.renderFailedEvent({
|
|
30
30
|
display: _constants.CardDisplay.HoverCardPreview,
|
|
@@ -4,10 +4,9 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.Shimmer = exports.
|
|
7
|
+
exports.Shimmer = exports.Icon = exports.AKIconWrapper = void 0;
|
|
8
8
|
var _styled = _interopRequireDefault(require("@emotion/styled"));
|
|
9
9
|
var _linkingCommon = require("@atlaskit/linking-common");
|
|
10
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
11
10
|
var _react = _interopRequireDefault(require("react"));
|
|
12
11
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
13
12
|
|
|
@@ -18,19 +17,6 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
18
17
|
// to position it with appropriate whitespace from the top.
|
|
19
18
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
20
19
|
var Icon = exports.Icon = _styled.default.img({
|
|
21
|
-
height: '14px',
|
|
22
|
-
width: '14px',
|
|
23
|
-
marginRight: "var(--ds-space-050, 4px)",
|
|
24
|
-
borderRadius: '2px',
|
|
25
|
-
userSelect: 'none',
|
|
26
|
-
position: 'absolute',
|
|
27
|
-
top: '50%',
|
|
28
|
-
left: '50%',
|
|
29
|
-
transform: 'translate(-50%, -50%)'
|
|
30
|
-
});
|
|
31
|
-
|
|
32
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
33
|
-
var IconResized = exports.IconResized = _styled.default.img({
|
|
34
20
|
height: '16px',
|
|
35
21
|
width: '16px',
|
|
36
22
|
marginRight: "var(--ds-space-050, 4px)",
|
|
@@ -61,8 +47,8 @@ var Shimmer = exports.Shimmer = function Shimmer(_ref) {
|
|
|
61
47
|
marginRight: "var(--ds-space-050, 4px)"
|
|
62
48
|
};
|
|
63
49
|
return /*#__PURE__*/_react.default.createElement(_linkingCommon.SpanSkeleton, {
|
|
64
|
-
width:
|
|
65
|
-
height:
|
|
50
|
+
width: 16,
|
|
51
|
+
height: 16,
|
|
66
52
|
borderRadius: 2,
|
|
67
53
|
testId: testId
|
|
68
54
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
@@ -18,7 +18,6 @@ var _Icon = require("../Icon");
|
|
|
18
18
|
var _styled = require("./styled");
|
|
19
19
|
var _link = _interopRequireDefault(require("@atlaskit/icon/core/migration/link"));
|
|
20
20
|
var _styled2 = require("../styled");
|
|
21
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
22
21
|
function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = (0, _getPrototypeOf2.default)(t); if (r) { var s = (0, _getPrototypeOf2.default)(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return (0, _possibleConstructorReturn2.default)(this, e); }; }
|
|
23
22
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
24
23
|
var IconAndTitleLayout = exports.IconAndTitleLayout = /*#__PURE__*/function (_React$Component) {
|
|
@@ -59,12 +58,12 @@ var IconAndTitleLayout = exports.IconAndTitleLayout = /*#__PURE__*/function (_Re
|
|
|
59
58
|
icon = _this$props.icon,
|
|
60
59
|
emoji = _this$props.emoji;
|
|
61
60
|
if (emoji) {
|
|
62
|
-
return
|
|
61
|
+
return /*#__PURE__*/_react.default.createElement(_styled.EmojiWrapper, null, emoji);
|
|
63
62
|
}
|
|
64
63
|
if (!icon || typeof icon === 'string') {
|
|
65
64
|
return null;
|
|
66
65
|
}
|
|
67
|
-
return
|
|
66
|
+
return /*#__PURE__*/_react.default.createElement(_styled.IconWrapper, null, icon);
|
|
68
67
|
}
|
|
69
68
|
}, {
|
|
70
69
|
key: "renderImageIcon",
|
|
@@ -73,22 +72,15 @@ var IconAndTitleLayout = exports.IconAndTitleLayout = /*#__PURE__*/function (_Re
|
|
|
73
72
|
if (!url || typeof url !== 'string') {
|
|
74
73
|
return null;
|
|
75
74
|
}
|
|
76
|
-
var icon = (0, _platformFeatureFlags.fg)('linking-platform-increase-inline-card-icon-size') ? /*#__PURE__*/_react.default.createElement(_Icon.IconResized
|
|
77
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
78
|
-
, {
|
|
79
|
-
className: "smart-link-icon",
|
|
80
|
-
src: url,
|
|
81
|
-
"data-testid": "".concat(testId, "-image")
|
|
82
|
-
}) : /*#__PURE__*/_react.default.createElement(_Icon.Icon
|
|
83
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
84
|
-
, {
|
|
85
|
-
className: "smart-link-icon",
|
|
86
|
-
src: url,
|
|
87
|
-
"data-testid": "".concat(testId, "-image")
|
|
88
|
-
});
|
|
89
75
|
return /*#__PURE__*/_react.default.createElement(_reactRenderImage.default, {
|
|
90
76
|
src: url,
|
|
91
|
-
loaded:
|
|
77
|
+
loaded: /*#__PURE__*/_react.default.createElement(_Icon.Icon
|
|
78
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
79
|
+
, {
|
|
80
|
+
className: "smart-link-icon",
|
|
81
|
+
src: url,
|
|
82
|
+
"data-testid": "".concat(testId, "-image")
|
|
83
|
+
}),
|
|
92
84
|
errored: errored,
|
|
93
85
|
loading: /*#__PURE__*/_react.default.createElement(_Icon.Shimmer, {
|
|
94
86
|
testId: "".concat(testId, "-loading")
|
|
@@ -102,14 +94,7 @@ var IconAndTitleLayout = exports.IconAndTitleLayout = /*#__PURE__*/function (_Re
|
|
|
102
94
|
if (defaultIcon) {
|
|
103
95
|
return /*#__PURE__*/_react.default.createElement(_styled.IconWrapper, null, defaultIcon);
|
|
104
96
|
}
|
|
105
|
-
return (
|
|
106
|
-
"data-testid": "".concat(testId, "-default")
|
|
107
|
-
}, /*#__PURE__*/_react.default.createElement(_link.default, {
|
|
108
|
-
label: "link",
|
|
109
|
-
LEGACY_size: "small",
|
|
110
|
-
testId: "".concat(testId, "-default"),
|
|
111
|
-
color: "currentColor"
|
|
112
|
-
})) : /*#__PURE__*/_react.default.createElement(_styled.IconWrapper, null, /*#__PURE__*/_react.default.createElement(_link.default, {
|
|
97
|
+
return /*#__PURE__*/_react.default.createElement(_styled.IconWrapper, null, /*#__PURE__*/_react.default.createElement(_link.default, {
|
|
113
98
|
label: "link",
|
|
114
99
|
LEGACY_size: "small",
|
|
115
100
|
testId: "".concat(testId, "-default"),
|
|
@@ -143,12 +128,11 @@ var IconAndTitleLayout = exports.IconAndTitleLayout = /*#__PURE__*/function (_Re
|
|
|
143
128
|
rightSide = _this$props2.rightSide,
|
|
144
129
|
_this$props2$testId = _this$props2.testId,
|
|
145
130
|
testId = _this$props2$testId === void 0 ? 'inline-card-icon-and-title' : _this$props2$testId;
|
|
146
|
-
var
|
|
131
|
+
var titlePart = /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_styled.IconPositionWrapper, {
|
|
147
132
|
"data-testid": "icon-position-wrapper"
|
|
148
|
-
}, children || /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_styled.
|
|
133
|
+
}, children || /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_styled.IconEmptyWrapper, {
|
|
149
134
|
"data-testid": "icon-empty-wrapper"
|
|
150
|
-
}), this.renderIcon(testId)))
|
|
151
|
-
var titlePart = /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, iconPart, /*#__PURE__*/_react.default.createElement(_styled.TitleWrapper
|
|
135
|
+
}), this.renderIcon(testId))), /*#__PURE__*/_react.default.createElement(_styled.TitleWrapper
|
|
152
136
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
153
137
|
, {
|
|
154
138
|
style: {
|
|
@@ -4,51 +4,34 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.TitleWrapperClassName = exports.TitleWrapper = exports.RightIconPositionWrapper = exports.LozengeWrapper = exports.
|
|
7
|
+
exports.TitleWrapperClassName = exports.TitleWrapper = exports.RightIconPositionWrapper = exports.LozengeWrapper = exports.IconWrapper = exports.IconTitleWrapper = exports.IconPositionWrapper = exports.IconOverrides = exports.IconObjectOverrides = exports.IconEmptyWrapper = exports.EmojiWrapper = void 0;
|
|
8
8
|
var _styled = _interopRequireDefault(require("@emotion/styled"));
|
|
9
9
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
10
10
|
|
|
11
|
-
// TODO: remove this override behaviour for @atlaskit/icon-object
|
|
12
|
-
// Replace with IconObjectOverridesResized during linking-platform-increase-inline-card-icon-size cleanup (EDM=10529)
|
|
13
|
-
var IconObjectOverrides = exports.IconObjectOverrides = "\n & > span {\n height: 16px;\n width: 14px;\n position: absolute;\n top: 3px;\n left: 0;\n line-height: 14px;\n & > svg {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n }\n }\n";
|
|
14
|
-
|
|
15
|
-
// TODO: remove this override behaviour for @atlaskit/icon
|
|
16
|
-
// Replace with IconOverridesResized during linking-platform-increase-inline-card-icon-size cleanup (EDM=10529)
|
|
17
|
-
var IconOverrides = exports.IconOverrides = "\n\n & > * > span {\n height: 16px;\n width: 14px;\n position: absolute;\n left: 0;\n & > svg {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n }\n }\n";
|
|
18
|
-
|
|
19
11
|
// Wraps all icons represented in Inline Links. Icons have three sources/types:
|
|
20
12
|
// - JSON-LD: from the generator.icon property coming back from ORS.
|
|
21
13
|
// - @atlaskit/icon: for lock icons, unauthorized, etc.
|
|
22
14
|
// - @atlaskit/icon-object: for object icons, e.g. repository, branch, etc.
|
|
23
15
|
// NB: the first set of overrides style icons imported from @atlaskit/icon-object correctly.
|
|
24
16
|
// NB: the second set of overrides style icons imported from @atlaskit/icon correctly.
|
|
25
|
-
// Replace with IconWrapperResized during linking-platform-increase-inline-card-icon-size cleanup (EDM=10529)
|
|
26
17
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
27
|
-
var IconWrapper = exports.IconWrapper = _styled.default.span({
|
|
28
|
-
userSelect: 'none'
|
|
29
|
-
},
|
|
30
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
31
|
-
IconOverrides,
|
|
32
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
33
|
-
IconObjectOverrides);
|
|
34
18
|
|
|
35
19
|
// TODO: remove this override behaviour for @atlaskit/icon-object
|
|
36
|
-
var
|
|
20
|
+
var IconObjectOverrides = exports.IconObjectOverrides = "\n & > span {\n height: 16px;\n width: 16px;\n position: absolute;\n top: 3px;\n left: 0;\n & > svg {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n }\n }\n";
|
|
37
21
|
|
|
38
22
|
// TODO: remove this override behaviour for @atlaskit/icon
|
|
39
|
-
var
|
|
23
|
+
var IconOverrides = exports.IconOverrides = "\n & > * > span {\n height: 16px;\n width: 16px;\n position: absolute;\n left: 0;\n & > svg {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n }\n }\n";
|
|
40
24
|
|
|
41
25
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
42
|
-
var
|
|
26
|
+
var IconWrapper = exports.IconWrapper = _styled.default.span({
|
|
43
27
|
userSelect: 'none'
|
|
44
28
|
},
|
|
45
29
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
46
|
-
|
|
30
|
+
IconOverrides,
|
|
47
31
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
48
|
-
|
|
32
|
+
IconObjectOverrides);
|
|
49
33
|
|
|
50
34
|
// Wraps all emoji in Inline Links similar to icon
|
|
51
|
-
// Replace with EmojiWrapperResized during linking-platform-increase-inline-card-icon-size cleanup (EDM=10529)
|
|
52
35
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
53
36
|
var EmojiWrapper = exports.EmojiWrapper = _styled.default.span({
|
|
54
37
|
display: 'inline-block',
|
|
@@ -60,17 +43,6 @@ IconOverrides,
|
|
|
60
43
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
61
44
|
IconObjectOverrides);
|
|
62
45
|
|
|
63
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
64
|
-
var EmojiWrapperResized = exports.EmojiWrapperResized = _styled.default.span({
|
|
65
|
-
display: 'inline-block',
|
|
66
|
-
marginRight: "var(--ds-space-025, 2px)",
|
|
67
|
-
userSelect: 'none'
|
|
68
|
-
},
|
|
69
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
70
|
-
IconOverridesResized,
|
|
71
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
72
|
-
IconObjectOverridesResized);
|
|
73
|
-
|
|
74
46
|
// The main 'wrapping' element, title of the content.
|
|
75
47
|
// NB: `white-space` adds little whitespace before wrapping.
|
|
76
48
|
// NB: `word-break` line breaks as soon as an overflow takes place.
|
|
@@ -107,17 +79,8 @@ var IconPositionWrapper = exports.IconPositionWrapper = _styled.default.span({
|
|
|
107
79
|
display: 'inline-block'
|
|
108
80
|
});
|
|
109
81
|
|
|
110
|
-
// Replace with IconEmptyWrapperResized during linking-platform-increase-inline-card-icon-size cleanup (EDM=10529)
|
|
111
82
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
112
83
|
var IconEmptyWrapper = exports.IconEmptyWrapper = _styled.default.span({
|
|
113
|
-
width: '14px',
|
|
114
|
-
height: '100%',
|
|
115
|
-
display: 'inline-block',
|
|
116
|
-
opacity: 0
|
|
117
|
-
});
|
|
118
|
-
|
|
119
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
120
|
-
var IconEmptyWrapperResized = exports.IconEmptyWrapperResized = _styled.default.span({
|
|
121
84
|
width: '16px',
|
|
122
85
|
height: '100%',
|
|
123
86
|
display: 'inline-block',
|
|
@@ -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: "
|
|
20
|
+
packageVersion: "29.0.0",
|
|
21
21
|
componentName: 'linkUrl'
|
|
22
22
|
};
|
|
23
23
|
var Link = (0, _click.withLinkClickedEvent)('a');
|
|
@@ -1 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @deprecated {@link https://hello.atlassian.net/browse/ENGHEALTH-15961 Internal documentation for deprecation (no external access)}
|
|
3
|
+
* Remove access from entrypoint /client and use `@atlaskit/link-provider`
|
|
4
|
+
**/
|
|
1
5
|
export { CardClient as default } from '@atlaskit/link-provider';
|
package/dist/es2019/index.js
CHANGED
|
@@ -1,14 +1,33 @@
|
|
|
1
|
-
|
|
1
|
+
/** @deprecated {@link https://hello.atlassian.net/browse/ENGHEALTH-15961 Internal documentation for deprecation (no external access)} */
|
|
2
|
+
|
|
3
|
+
/** @deprecated {@link https://hello.atlassian.net/browse/ENGHEALTH-15961 Internal documentation for deprecation (no external access)} */
|
|
4
|
+
export { SmartCardProvider as Provider, SmartCardContext } from './state';
|
|
5
|
+
|
|
6
|
+
/** @deprecated {@link https://hello.atlassian.net/browse/ENGHEALTH-15961 Internal documentation for deprecation (no external access)} */
|
|
7
|
+
|
|
8
|
+
/** @deprecated {@link https://hello.atlassian.net/browse/ENGHEALTH-15961 Internal documentation for deprecation (no external access)} */
|
|
9
|
+
|
|
10
|
+
/** @deprecated {@link https://hello.atlassian.net/browse/ENGHEALTH-15961 Internal documentation for deprecation (no external access)} */
|
|
2
11
|
export { APIError } from '@atlaskit/linking-common';
|
|
12
|
+
|
|
13
|
+
/** @deprecated {@link https://hello.atlassian.net/browse/ENGHEALTH-15961 Internal documentation for deprecation (no external access)} */
|
|
3
14
|
export { CardClient as Client } from '@atlaskit/link-provider';
|
|
4
15
|
export { Card } from './view/Card';
|
|
5
16
|
export { CardAction } from './view/Card/types';
|
|
17
|
+
|
|
18
|
+
/** @deprecated {@link https://hello.atlassian.net/browse/ENGHEALTH-15961 Internal documentation for deprecation (no external access)} */
|
|
6
19
|
export { SmartCardContext as Context } from '@atlaskit/link-provider';
|
|
20
|
+
|
|
21
|
+
/** @deprecated {@link https://hello.atlassian.net/browse/ENGHEALTH-15961 Internal documentation for deprecation (no external access)} */
|
|
22
|
+
|
|
7
23
|
export { EmbedResizeMessageListener } from './view/EmbedCard/EmbedResizeMessageListener';
|
|
8
24
|
export { ExpandedFrame } from './view/EmbedCard/components/ExpandedFrame';
|
|
9
25
|
export { embedHeaderHeight } from './view/EmbedCard/components/styled';
|
|
10
26
|
export { SmartLinkEvents } from './utils/analytics/analytics';
|
|
27
|
+
|
|
28
|
+
// This hook should be migrated to /hooks entrypoint
|
|
11
29
|
export { useSmartLinkEvents } from './view/SmartLinkEvents/useSmartLinkEvents';
|
|
30
|
+
|
|
12
31
|
// Classnames for integrators
|
|
13
32
|
export { contentFooterClassName, metadataListClassName, blockCardResolvingViewClassName, blockCardResolvedViewClassName, blockCardForbiddenViewClassName, blockCardIconImageClassName, blockCardResolvedViewByClassName, blockCardForbiddenViewLinkClassName, blockCardContentClassName, blockCardContentHeaderClassName, blockCardContentHeaderNameClassName, blockCardNotFoundViewClassName, blockCardErroredViewClassName } from './classNames';
|
|
14
33
|
export { loadingPlaceholderClassName } from './view/CardWithUrl/component-lazy/LazyFallback';
|