@atlaskit/smart-card 32.7.6 → 32.7.8
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 +16 -0
- package/dist/cjs/extractors/flexible/actions/index.js +5 -7
- package/dist/cjs/state/actions/index.js +13 -38
- package/dist/cjs/state/analytics/useSmartLinkAnalytics.js +54 -305
- package/dist/cjs/state/hooks/use-ai-summary/ai-summary-service/index.js +1 -2
- package/dist/cjs/state/hooks/use-ai-summary/ai-summary-service/types.js +4 -5
- package/dist/cjs/utils/analytics/analytics.js +28 -304
- package/dist/cjs/utils/analytics/index.js +0 -66
- package/dist/cjs/utils/mocks.js +5 -7
- package/dist/cjs/view/BlockCard/views/styled.js +1 -1
- package/dist/cjs/view/Card/index.js +5 -7
- package/dist/cjs/view/CardWithUrl/component.js +7 -22
- package/dist/cjs/view/EmbedCard/EmbedResizeMessageListener.js +7 -10
- package/dist/cjs/view/FlexibleCard/components/actions/action/action-button/index.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/actions/action/server-action/index.js +4 -13
- package/dist/cjs/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/test-utils.js +10 -12
- package/dist/cjs/view/FlexibleCard/components/blocks/utils.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/common/atlaskit-icon/index.js +61 -61
- package/dist/cjs/view/FlexibleCard/components/elements/badge/index.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/index.js +4 -16
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/index.js +1 -5
- package/dist/cjs/view/FlexibleCard/components/elements/utils.js +34 -34
- package/dist/cjs/view/FlexibleCard/components/utils.js +5 -5
- package/dist/cjs/view/HoverCard/components/HoverCardContent.js +21 -53
- package/dist/cjs/view/HoverCard/styled.js +1 -1
- package/dist/cjs/view/InlineCard/ErroredView/index.js +8 -11
- package/dist/cjs/view/InlineCard/ForbiddenView/index.js +10 -13
- package/dist/cjs/view/InlineCard/IconAndTitleLayout/index.js +7 -10
- package/dist/cjs/view/InlineCard/ResolvedView/index.js +5 -7
- package/dist/cjs/view/InlineCard/ResolvingView/index.js +5 -7
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/cjs/view/LinkView/index.js +5 -7
- package/dist/cjs/view/common/UnauthorisedViewContent.js +3 -9
- package/dist/es2019/state/actions/index.js +13 -38
- package/dist/es2019/state/analytics/useSmartLinkAnalytics.js +2 -238
- package/dist/es2019/utils/analytics/analytics.js +2 -286
- package/dist/es2019/utils/analytics/index.js +1 -1
- package/dist/es2019/view/BlockCard/views/styled.js +1 -1
- package/dist/es2019/view/CardWithUrl/component.js +8 -23
- package/dist/es2019/view/FlexibleCard/components/actions/action/action-button/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/actions/action/server-action/index.js +4 -13
- package/dist/es2019/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/test-utils.js +3 -3
- package/dist/es2019/view/FlexibleCard/components/elements/lozenge/lozenge-action/index.js +4 -16
- package/dist/es2019/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/index.js +1 -5
- package/dist/es2019/view/FlexibleCard/components/utils.js +3 -3
- package/dist/es2019/view/HoverCard/components/HoverCardContent.js +21 -53
- package/dist/es2019/view/HoverCard/styled.js +1 -1
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/es2019/view/common/UnauthorisedViewContent.js +3 -9
- package/dist/esm/extractors/flexible/actions/index.js +5 -7
- package/dist/esm/state/actions/index.js +13 -38
- package/dist/esm/state/analytics/useSmartLinkAnalytics.js +55 -306
- package/dist/esm/state/hooks/use-ai-summary/ai-summary-service/index.js +1 -2
- package/dist/esm/state/hooks/use-ai-summary/ai-summary-service/types.js +4 -5
- package/dist/esm/utils/analytics/analytics.js +27 -303
- package/dist/esm/utils/analytics/index.js +1 -1
- package/dist/esm/utils/mocks.js +5 -7
- package/dist/esm/view/BlockCard/views/styled.js +1 -1
- package/dist/esm/view/Card/index.js +5 -7
- package/dist/esm/view/CardWithUrl/component.js +8 -23
- package/dist/esm/view/EmbedCard/EmbedResizeMessageListener.js +7 -10
- package/dist/esm/view/FlexibleCard/components/actions/action/action-button/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/actions/action/server-action/index.js +4 -13
- package/dist/esm/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/test-utils.js +10 -12
- package/dist/esm/view/FlexibleCard/components/blocks/utils.js +1 -1
- package/dist/esm/view/FlexibleCard/components/common/atlaskit-icon/index.js +61 -61
- package/dist/esm/view/FlexibleCard/components/elements/badge/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/elements/lozenge/lozenge-action/index.js +4 -16
- package/dist/esm/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/index.js +1 -5
- package/dist/esm/view/FlexibleCard/components/elements/utils.js +34 -34
- package/dist/esm/view/FlexibleCard/components/utils.js +5 -5
- package/dist/esm/view/HoverCard/components/HoverCardContent.js +21 -53
- package/dist/esm/view/HoverCard/styled.js +1 -1
- package/dist/esm/view/InlineCard/ErroredView/index.js +8 -11
- package/dist/esm/view/InlineCard/ForbiddenView/index.js +10 -13
- package/dist/esm/view/InlineCard/IconAndTitleLayout/index.js +7 -10
- package/dist/esm/view/InlineCard/ResolvedView/index.js +5 -7
- package/dist/esm/view/InlineCard/ResolvingView/index.js +5 -7
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/esm/view/LinkView/index.js +5 -7
- package/dist/esm/view/common/UnauthorisedViewContent.js +3 -9
- package/dist/types/state/analytics/useSmartLinkAnalytics.d.ts +1 -101
- package/dist/types/state/hooks/useSmartLink.d.ts +0 -12
- package/dist/types/utils/analytics/analytics.d.ts +1 -51
- package/dist/types/utils/analytics/index.d.ts +1 -1
- package/dist/types/utils/analytics/types.d.ts +0 -60
- package/dist/types/utils/mocks.d.ts +0 -12
- package/dist/types/view/common/UnauthorisedViewContent.d.ts +1 -1
- package/dist/types-ts4.5/state/analytics/useSmartLinkAnalytics.d.ts +1 -101
- package/dist/types-ts4.5/state/hooks/useSmartLink.d.ts +0 -12
- package/dist/types-ts4.5/utils/analytics/analytics.d.ts +1 -51
- package/dist/types-ts4.5/utils/analytics/index.d.ts +1 -1
- package/dist/types-ts4.5/utils/analytics/types.d.ts +0 -60
- package/dist/types-ts4.5/utils/mocks.d.ts +0 -12
- package/dist/types-ts4.5/view/common/UnauthorisedViewContent.d.ts +1 -1
- package/package.json +2 -5
|
@@ -47,11 +47,7 @@ var LozengeActionError = function LozengeActionError(_ref) {
|
|
|
47
47
|
}, [reload, url]);
|
|
48
48
|
var handlePreviewOpen = (0, _react.useCallback)(function () {
|
|
49
49
|
if (isPreviewAvailable) {
|
|
50
|
-
|
|
51
|
-
fireEvent('ui.button.clicked.smartLinkStatusOpenPreview', {});
|
|
52
|
-
} else {
|
|
53
|
-
analytics === null || analytics === void 0 || analytics.ui.smartLinkLozengeActionErrorOpenPreviewClickedEvent();
|
|
54
|
-
}
|
|
50
|
+
fireEvent('ui.button.clicked.smartLinkStatusOpenPreview', {});
|
|
55
51
|
if ((0, _platformFeatureFlags.fg)('platform-smart-card-migrate-embed-modal-analytics')) {
|
|
56
52
|
invokePreviewAction && invoke(invokePreviewAction);
|
|
57
53
|
} else {
|
|
@@ -26,106 +26,106 @@ var _text = _interopRequireDefault(require("./text"));
|
|
|
26
26
|
var _elementMappings;
|
|
27
27
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
28
28
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof3(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
29
|
-
var elementMappings = (_elementMappings = {}, (0, _defineProperty2.default)(_elementMappings, _constants.ElementName.AttachmentCount, {
|
|
29
|
+
var elementMappings = (_elementMappings = {}, (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)(_elementMappings, _constants.ElementName.AttachmentCount, {
|
|
30
30
|
component: _badge.default,
|
|
31
31
|
props: {
|
|
32
32
|
icon: _constants.IconType.Attachment
|
|
33
33
|
}
|
|
34
|
-
}),
|
|
34
|
+
}), _constants.ElementName.AuthorGroup, {
|
|
35
35
|
component: _avatarGroup.default
|
|
36
|
-
}),
|
|
36
|
+
}), _constants.ElementName.ChecklistProgress, {
|
|
37
37
|
component: _badge.default,
|
|
38
38
|
props: {
|
|
39
39
|
icon: _constants.IconType.CheckItem
|
|
40
40
|
}
|
|
41
|
-
}),
|
|
41
|
+
}), _constants.ElementName.CollaboratorGroup, {
|
|
42
42
|
component: _avatarGroup.default
|
|
43
|
-
}),
|
|
43
|
+
}), _constants.ElementName.CommentCount, {
|
|
44
44
|
component: _badge.default,
|
|
45
45
|
props: {
|
|
46
46
|
icon: _constants.IconType.Comment
|
|
47
47
|
}
|
|
48
|
-
}),
|
|
48
|
+
}), _constants.ElementName.ViewCount, {
|
|
49
49
|
component: _badge.default,
|
|
50
50
|
props: {
|
|
51
51
|
icon: _constants.IconType.View
|
|
52
52
|
}
|
|
53
|
-
}),
|
|
53
|
+
}), _constants.ElementName.ReactCount, {
|
|
54
54
|
component: _badge.default,
|
|
55
55
|
props: {
|
|
56
56
|
icon: _constants.IconType.React
|
|
57
57
|
}
|
|
58
|
-
}),
|
|
58
|
+
}), _constants.ElementName.VoteCount, {
|
|
59
59
|
component: _badge.default,
|
|
60
60
|
props: {
|
|
61
61
|
icon: _constants.IconType.Vote
|
|
62
62
|
}
|
|
63
|
-
}),
|
|
63
|
+
}), _constants.ElementName.CreatedBy, {
|
|
64
64
|
component: _text.default
|
|
65
|
-
}),
|
|
65
|
+
}), _constants.ElementName.OwnedBy, {
|
|
66
66
|
component: _text.default
|
|
67
|
-
}), (0, _defineProperty2.default)(_elementMappings, _constants.ElementName.AssignedTo, {
|
|
67
|
+
}), (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)(_elementMappings, _constants.ElementName.AssignedTo, {
|
|
68
68
|
component: _text.default
|
|
69
|
-
}),
|
|
69
|
+
}), _constants.ElementName.AssignedToGroup, {
|
|
70
70
|
component: _avatarGroup.default
|
|
71
|
-
}),
|
|
71
|
+
}), _constants.ElementName.OwnedByGroup, {
|
|
72
72
|
component: _avatarGroup.default
|
|
73
|
-
}),
|
|
73
|
+
}), _constants.ElementName.CreatedOn, {
|
|
74
74
|
component: _dateTime.default
|
|
75
|
-
}),
|
|
75
|
+
}), _constants.ElementName.DueOn, {
|
|
76
76
|
component: _lozenge.default
|
|
77
|
-
}),
|
|
77
|
+
}), _constants.ElementName.LatestCommit, {
|
|
78
78
|
component: _badge.default,
|
|
79
79
|
props: {
|
|
80
80
|
icon: _constants.IconType.Commit
|
|
81
81
|
}
|
|
82
|
-
}),
|
|
82
|
+
}), _constants.ElementName.LinkIcon, {
|
|
83
83
|
component: _icon.default
|
|
84
|
-
}),
|
|
84
|
+
}), _constants.ElementName.ModifiedBy, {
|
|
85
85
|
component: _text.default
|
|
86
|
-
}),
|
|
86
|
+
}), _constants.ElementName.ModifiedOn, {
|
|
87
87
|
component: _dateTime.default
|
|
88
|
-
}),
|
|
88
|
+
}), _constants.ElementName.Preview, {
|
|
89
89
|
component: _media.default
|
|
90
|
-
}), (0, _defineProperty2.default)(_elementMappings, _constants.ElementName.Priority, {
|
|
90
|
+
}), (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)(_elementMappings, _constants.ElementName.Priority, {
|
|
91
91
|
component: _badge.default
|
|
92
|
-
}),
|
|
92
|
+
}), _constants.ElementName.ProgrammingLanguage, {
|
|
93
93
|
component: _badge.default,
|
|
94
94
|
props: {
|
|
95
95
|
icon: _constants.IconType.ProgrammingLanguage
|
|
96
96
|
}
|
|
97
|
-
}),
|
|
97
|
+
}), _constants.ElementName.Provider, {
|
|
98
98
|
component: _badge.default
|
|
99
|
-
}),
|
|
99
|
+
}), _constants.ElementName.ReadTime, {
|
|
100
100
|
component: _text.default
|
|
101
|
-
}),
|
|
101
|
+
}), _constants.ElementName.SentOn, {
|
|
102
102
|
component: _dateTime.default
|
|
103
|
-
}),
|
|
103
|
+
}), _constants.ElementName.SourceBranch, {
|
|
104
104
|
component: _text.default
|
|
105
|
-
}),
|
|
105
|
+
}), _constants.ElementName.State, {
|
|
106
106
|
component: _lozenge.default
|
|
107
|
-
}),
|
|
107
|
+
}), _constants.ElementName.SubscriberCount, {
|
|
108
108
|
component: _badge.default,
|
|
109
109
|
props: {
|
|
110
110
|
icon: _constants.IconType.Subscriber
|
|
111
111
|
}
|
|
112
|
-
}),
|
|
112
|
+
}), _constants.ElementName.SubTasksProgress, {
|
|
113
113
|
component: _badge.default,
|
|
114
114
|
props: {
|
|
115
115
|
icon: _constants.IconType.SubTasksProgress
|
|
116
116
|
}
|
|
117
|
-
}),
|
|
117
|
+
}), _constants.ElementName.StoryPoints, {
|
|
118
118
|
component: _atlaskitBadge.default
|
|
119
|
-
}), (0, _defineProperty2.default)(_elementMappings, _constants.ElementName.TargetBranch, {
|
|
119
|
+
}), (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)(_elementMappings, _constants.ElementName.TargetBranch, {
|
|
120
120
|
component: _text.default
|
|
121
|
-
}),
|
|
121
|
+
}), _constants.ElementName.Title, {
|
|
122
122
|
component: _link.default
|
|
123
|
-
}),
|
|
123
|
+
}), _constants.ElementName.Location, {
|
|
124
124
|
component: _link.default,
|
|
125
125
|
props: {
|
|
126
126
|
theme: _constants.SmartLinkInternalTheme.Grey
|
|
127
127
|
}
|
|
128
|
-
})
|
|
128
|
+
}));
|
|
129
129
|
var getContextKey = function getContextKey(name) {
|
|
130
130
|
// Attempt to predict context prop name in advance to reduce the amount of
|
|
131
131
|
// code run during runtime
|
|
@@ -17,10 +17,10 @@ var _constants = require("../../../constants");
|
|
|
17
17
|
var _utils = require("../../EmbedModal/utils");
|
|
18
18
|
var _icon = _interopRequireDefault(require("./elements/icon"));
|
|
19
19
|
var _excluded = ["linkIcon"];
|
|
20
|
-
var
|
|
20
|
+
var _templateObject; // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
21
21
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
22
22
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
23
|
-
var sizeToButtonSpacing = exports.sizeToButtonSpacing = (
|
|
23
|
+
var sizeToButtonSpacing = exports.sizeToButtonSpacing = (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, _constants.SmartLinkSize.Small, 'none'), _constants.SmartLinkSize.Medium, 'compact'), _constants.SmartLinkSize.Large, 'compact'), _constants.SmartLinkSize.XLarge, 'default');
|
|
24
24
|
var getFormattedMessage = exports.getFormattedMessage = function getFormattedMessage(message) {
|
|
25
25
|
if (message) {
|
|
26
26
|
var descriptor = message.descriptor,
|
|
@@ -98,7 +98,7 @@ var getLinkSizeStyles = exports.getLinkSizeStyles = function getLinkSizeStyles(s
|
|
|
98
98
|
case _constants.SmartLinkSize.XLarge:
|
|
99
99
|
return (0, _react2.css)({
|
|
100
100
|
fontSize: '1.25rem',
|
|
101
|
-
fontWeight: 400,
|
|
101
|
+
fontWeight: "var(--ds-font-weight-regular, 400)",
|
|
102
102
|
letterSpacing: '-0.008em',
|
|
103
103
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
104
104
|
lineHeight: getLinkLineHeight(size)
|
|
@@ -107,7 +107,7 @@ var getLinkSizeStyles = exports.getLinkSizeStyles = function getLinkSizeStyles(s
|
|
|
107
107
|
case _constants.SmartLinkSize.Medium:
|
|
108
108
|
return (0, _react2.css)({
|
|
109
109
|
fontSize: '0.875rem',
|
|
110
|
-
fontWeight: 400,
|
|
110
|
+
fontWeight: "var(--ds-font-weight-regular, 400)",
|
|
111
111
|
letterSpacing: '-0.003em',
|
|
112
112
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
113
113
|
lineHeight: getLinkLineHeight(size)
|
|
@@ -116,7 +116,7 @@ var getLinkSizeStyles = exports.getLinkSizeStyles = function getLinkSizeStyles(s
|
|
|
116
116
|
default:
|
|
117
117
|
return (0, _react2.css)({
|
|
118
118
|
fontSize: '0.75rem',
|
|
119
|
-
fontWeight: 400,
|
|
119
|
+
fontWeight: "var(--ds-font-weight-regular, 400)",
|
|
120
120
|
letterSpacing: '0em',
|
|
121
121
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
122
122
|
lineHeight: getLinkLineHeight(size)
|
|
@@ -10,7 +10,6 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
10
10
|
var _react2 = require("@emotion/react");
|
|
11
11
|
var _analyticsNext = require("@atlaskit/analytics-next");
|
|
12
12
|
var _linkProvider = require("@atlaskit/link-provider");
|
|
13
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
14
13
|
var _useAnalyticsEvents2 = require("../../../common/analytics/generated/use-analytics-events");
|
|
15
14
|
var _constants = require("../../../constants");
|
|
16
15
|
var _analytics2 = require("../../../state/analytics");
|
|
@@ -68,17 +67,13 @@ var HoverCardContent = function HoverCardContent(_ref) {
|
|
|
68
67
|
var isAISummaryEnabled = (0, _aiSummary.getIsAISummaryEnabled)(isAdminHubAIEnabled, cardState.details);
|
|
69
68
|
var services = (0, _helpers.getServices)(linkState.details);
|
|
70
69
|
var statusRef = (0, _react.useRef)(linkStatus);
|
|
71
|
-
var analyticsRef = (0, _react.useRef)(analytics);
|
|
72
70
|
var fireEventRef = (0, _react.useRef)(fireEvent);
|
|
73
71
|
var definitionIdRef = (0, _react.useRef)(definitionId);
|
|
74
72
|
(0, _react.useEffect)(function () {
|
|
75
73
|
/**
|
|
76
|
-
* Must access
|
|
74
|
+
* Must access object value via ref because its not stable
|
|
77
75
|
* and it can trigger useEffect to re-run below
|
|
78
76
|
*/
|
|
79
|
-
if (analyticsRef.current !== analytics) {
|
|
80
|
-
analyticsRef.current = analytics;
|
|
81
|
-
}
|
|
82
77
|
if (statusRef.current !== linkStatus) {
|
|
83
78
|
statusRef.current = linkStatus;
|
|
84
79
|
}
|
|
@@ -88,66 +83,39 @@ var HoverCardContent = function HoverCardContent(_ref) {
|
|
|
88
83
|
if (definitionIdRef.current !== definitionId) {
|
|
89
84
|
definitionIdRef.current = definitionId;
|
|
90
85
|
}
|
|
91
|
-
}, [
|
|
86
|
+
}, [linkStatus, fireEvent, definitionId]);
|
|
92
87
|
(0, _react.useEffect)(function () {
|
|
88
|
+
var _definitionIdRef$curr;
|
|
93
89
|
var previewDisplay = 'card';
|
|
94
90
|
var previewInvokeMethod = 'mouse_hover';
|
|
95
91
|
var cardOpenTime = Date.now();
|
|
96
92
|
var fireEventCurrent = fireEventRef.current;
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
93
|
+
fireEventCurrent('ui.hoverCard.viewed', {
|
|
94
|
+
previewDisplay: previewDisplay,
|
|
95
|
+
previewInvokeMethod: previewInvokeMethod,
|
|
96
|
+
definitionId: (_definitionIdRef$curr = definitionIdRef.current) !== null && _definitionIdRef$curr !== void 0 ? _definitionIdRef$curr : null
|
|
97
|
+
});
|
|
98
|
+
return function () {
|
|
99
|
+
var _definitionIdRef$curr2;
|
|
100
|
+
var hoverTime = Date.now() - cardOpenTime;
|
|
101
|
+
fireEventCurrent('ui.hoverCard.dismissed', {
|
|
106
102
|
previewDisplay: previewDisplay,
|
|
107
103
|
previewInvokeMethod: previewInvokeMethod,
|
|
108
|
-
|
|
104
|
+
hoverTime: hoverTime,
|
|
105
|
+
definitionId: (_definitionIdRef$curr2 = definitionIdRef.current) !== null && _definitionIdRef$curr2 !== void 0 ? _definitionIdRef$curr2 : null
|
|
109
106
|
});
|
|
110
|
-
}
|
|
111
|
-
return function () {
|
|
112
|
-
var hoverTime = Date.now() - cardOpenTime;
|
|
113
|
-
if ((0, _platformFeatureFlags.fg)('platform_migrate-some-ui-events-smart-card')) {
|
|
114
|
-
var _definitionIdRef$curr2;
|
|
115
|
-
fireEventCurrent('ui.hoverCard.dismissed', {
|
|
116
|
-
previewDisplay: previewDisplay,
|
|
117
|
-
previewInvokeMethod: previewInvokeMethod,
|
|
118
|
-
hoverTime: hoverTime,
|
|
119
|
-
definitionId: (_definitionIdRef$curr2 = definitionIdRef.current) !== null && _definitionIdRef$curr2 !== void 0 ? _definitionIdRef$curr2 : null
|
|
120
|
-
});
|
|
121
|
-
} else {
|
|
122
|
-
analyticsRef.current.ui.hoverCardDismissedEvent({
|
|
123
|
-
previewDisplay: previewDisplay,
|
|
124
|
-
previewInvokeMethod: previewInvokeMethod,
|
|
125
|
-
hoverTime: hoverTime,
|
|
126
|
-
status: statusRef.current
|
|
127
|
-
});
|
|
128
|
-
}
|
|
129
107
|
};
|
|
130
108
|
}, []);
|
|
131
109
|
var onClick = (0, _react.useCallback)(function (event) {
|
|
132
110
|
var isModifierKeyPressed = (0, _utils.isSpecialEvent)(event);
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
});
|
|
140
|
-
} else {
|
|
141
|
-
analytics.ui.cardClickedEvent({
|
|
142
|
-
id: id,
|
|
143
|
-
display: _constants.CardDisplay.HoverCardPreview,
|
|
144
|
-
status: cardState.status,
|
|
145
|
-
isModifierKeyPressed: isModifierKeyPressed,
|
|
146
|
-
actionSubjectId: 'titleGoToLink'
|
|
147
|
-
});
|
|
148
|
-
}
|
|
111
|
+
fireEvent('ui.smartLink.clicked.titleGoToLink', {
|
|
112
|
+
id: id,
|
|
113
|
+
display: _constants.CardDisplay.HoverCardPreview,
|
|
114
|
+
isModifierKeyPressed: isModifierKeyPressed,
|
|
115
|
+
definitionId: definitionId !== null && definitionId !== void 0 ? definitionId : null
|
|
116
|
+
});
|
|
149
117
|
(0, _click.fireLinkClickedEvent)(createAnalyticsEvent)(event);
|
|
150
|
-
}, [createAnalyticsEvent,
|
|
118
|
+
}, [createAnalyticsEvent, id, fireEvent, definitionId]);
|
|
151
119
|
var data = (_cardState$details = cardState.details) === null || _cardState$details === void 0 ? void 0 : _cardState$details.data;
|
|
152
120
|
var _getMetadata = (0, _utils2.getMetadata)(extensionKey, data),
|
|
153
121
|
subtitle = _getMetadata.subtitle;
|
|
@@ -38,7 +38,7 @@ var separatorCss = exports.separatorCss = (0, _react.css)({
|
|
|
38
38
|
var HoverCardContainer = exports.HoverCardContainer = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\tbackground: none;\n\tborder-width: 0;\n\tbox-sizing: border-box;\n\twidth: ", "rem;\n\n\t.", " {\n\t\tdisplay: none;\n\t}\n"])), NEW_CARD_WIDTH_REM, _index.loadingPlaceholderClassName);
|
|
39
39
|
|
|
40
40
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
41
|
-
var titleBlockCss = exports.titleBlockCss = (0, _react.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n\tgap: ", ";\n\n\t", "\n\n\t// title and subtitle element group\n [data-smart-element-group] {\n\t\t// gap between title and subtitle\n\t\tgap: 0.06rem;\n\t\tdisplay: flex;\n\t\t/* subtitle element group */\n\t\t> [data-smart-element-group] {\n\t\t\t> span {\n\t\t\t\tmargin-right: ", ";\n\t\t\t}\n\t\t}\n\t}\n\n\t[data-smart-element='Title'] {\n\t\tfont-weight:
|
|
41
|
+
var titleBlockCss = exports.titleBlockCss = (0, _react.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n\tgap: ", ";\n\n\t", "\n\n\t// title and subtitle element group\n [data-smart-element-group] {\n\t\t// gap between title and subtitle\n\t\tgap: 0.06rem;\n\t\tdisplay: flex;\n\t\t/* subtitle element group */\n\t\t> [data-smart-element-group] {\n\t\t\t> span {\n\t\t\t\tmargin-right: ", ";\n\t\t\t}\n\t\t}\n\t}\n\n\t[data-smart-element='Title'] {\n\t\tfont-weight: ", ";\n\t}\n"])), blockGap, separatorCss, elementGap, "var(--ds-font-weight-semibold, 600)");
|
|
42
42
|
var getTransitionStyles = exports.getTransitionStyles = function getTransitionStyles(snippetHeight) {
|
|
43
43
|
return (0, _react.css)({
|
|
44
44
|
transition: 'height 300ms ease-in-out',
|
|
@@ -7,10 +7,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.InlineCardErroredView = void 0;
|
|
8
8
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
9
9
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
10
|
-
var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));
|
|
11
|
-
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
12
10
|
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
13
11
|
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
12
|
+
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
14
13
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
15
14
|
var _react = _interopRequireDefault(require("react"));
|
|
16
15
|
var _reactIntlNext = require("react-intl-next");
|
|
@@ -24,20 +23,18 @@ var _Icon = require("../Icon");
|
|
|
24
23
|
var _IconAndTitleLayout = require("../IconAndTitleLayout");
|
|
25
24
|
var _styled = require("../styled");
|
|
26
25
|
var _withFrameStyleControl = _interopRequireDefault(require("../utils/withFrameStyleControl"));
|
|
27
|
-
function
|
|
26
|
+
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
|
|
28
27
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
29
28
|
var InlineCardErroredView = exports.InlineCardErroredView = /*#__PURE__*/function (_React$Component) {
|
|
30
|
-
(0, _inherits2.default)(InlineCardErroredView, _React$Component);
|
|
31
|
-
var _super = _createSuper(InlineCardErroredView);
|
|
32
29
|
function InlineCardErroredView() {
|
|
33
30
|
var _this;
|
|
34
31
|
(0, _classCallCheck2.default)(this, InlineCardErroredView);
|
|
35
32
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
36
33
|
args[_key] = arguments[_key];
|
|
37
34
|
}
|
|
38
|
-
_this =
|
|
39
|
-
(0, _defineProperty2.default)(
|
|
40
|
-
(0, _defineProperty2.default)(
|
|
35
|
+
_this = _callSuper(this, InlineCardErroredView, [].concat(args));
|
|
36
|
+
(0, _defineProperty2.default)(_this, "frameRef", /*#__PURE__*/_react.default.createRef());
|
|
37
|
+
(0, _defineProperty2.default)(_this, "handleRetry", function (event) {
|
|
41
38
|
var onRetry = _this.props.onRetry;
|
|
42
39
|
if (onRetry) {
|
|
43
40
|
event.preventDefault();
|
|
@@ -45,7 +42,7 @@ var InlineCardErroredView = exports.InlineCardErroredView = /*#__PURE__*/functio
|
|
|
45
42
|
onRetry();
|
|
46
43
|
}
|
|
47
44
|
});
|
|
48
|
-
(0, _defineProperty2.default)(
|
|
45
|
+
(0, _defineProperty2.default)(_this, "renderActionButton", function () {
|
|
49
46
|
var onRetry = _this.props.onRetry;
|
|
50
47
|
var ActionButton = (0, _withFrameStyleControl.default)(_button.default, _this.frameRef);
|
|
51
48
|
return onRetry && /*#__PURE__*/_react.default.createElement(ActionButton, {
|
|
@@ -57,7 +54,8 @@ var InlineCardErroredView = exports.InlineCardErroredView = /*#__PURE__*/functio
|
|
|
57
54
|
});
|
|
58
55
|
return _this;
|
|
59
56
|
}
|
|
60
|
-
(0,
|
|
57
|
+
(0, _inherits2.default)(InlineCardErroredView, _React$Component);
|
|
58
|
+
return (0, _createClass2.default)(InlineCardErroredView, [{
|
|
61
59
|
key: "render",
|
|
62
60
|
value: function render() {
|
|
63
61
|
var _this$props = this.props,
|
|
@@ -94,5 +92,4 @@ var InlineCardErroredView = exports.InlineCardErroredView = /*#__PURE__*/functio
|
|
|
94
92
|
return content;
|
|
95
93
|
}
|
|
96
94
|
}]);
|
|
97
|
-
return InlineCardErroredView;
|
|
98
95
|
}(_react.default.Component);
|
|
@@ -8,10 +8,9 @@ exports.InlineCardForbiddenView = void 0;
|
|
|
8
8
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
9
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
10
10
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
11
|
-
var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));
|
|
12
|
-
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
13
11
|
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
14
12
|
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
13
|
+
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
15
14
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
16
15
|
var _react = _interopRequireDefault(require("react"));
|
|
17
16
|
var _reactIntlNext = require("react-intl-next");
|
|
@@ -27,7 +26,7 @@ var _IconAndTitleLayout = require("../IconAndTitleLayout");
|
|
|
27
26
|
var _styled = require("../IconAndTitleLayout/styled");
|
|
28
27
|
var _styled2 = require("../styled");
|
|
29
28
|
var _withFrameStyleControl = _interopRequireDefault(require("../utils/withFrameStyleControl"));
|
|
30
|
-
function
|
|
29
|
+
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
|
|
31
30
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
32
31
|
var FallbackForbiddenIcon = /*#__PURE__*/_react.default.createElement(_Icon.AKIconWrapper, null, /*#__PURE__*/_react.default.createElement(_lockFilled.default, {
|
|
33
32
|
label: "error",
|
|
@@ -36,8 +35,6 @@ var FallbackForbiddenIcon = /*#__PURE__*/_react.default.createElement(_Icon.AKIc
|
|
|
36
35
|
testId: "forbidden-view-fallback-icon"
|
|
37
36
|
}));
|
|
38
37
|
var InlineCardForbiddenView = exports.InlineCardForbiddenView = /*#__PURE__*/function (_React$Component) {
|
|
39
|
-
(0, _inherits2.default)(InlineCardForbiddenView, _React$Component);
|
|
40
|
-
var _super = _createSuper(InlineCardForbiddenView);
|
|
41
38
|
function InlineCardForbiddenView() {
|
|
42
39
|
var _this$props;
|
|
43
40
|
var _this;
|
|
@@ -45,12 +42,12 @@ var InlineCardForbiddenView = exports.InlineCardForbiddenView = /*#__PURE__*/fun
|
|
|
45
42
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
46
43
|
args[_key] = arguments[_key];
|
|
47
44
|
}
|
|
48
|
-
_this =
|
|
49
|
-
(0, _defineProperty2.default)(
|
|
50
|
-
(0, _defineProperty2.default)(
|
|
45
|
+
_this = _callSuper(this, InlineCardForbiddenView, [].concat(args));
|
|
46
|
+
(0, _defineProperty2.default)(_this, "frameRef", /*#__PURE__*/_react.default.createRef());
|
|
47
|
+
(0, _defineProperty2.default)(_this, "state", {
|
|
51
48
|
hasRequestAccessContextMessage: !!((_this$props = _this.props) !== null && _this$props !== void 0 && (_this$props = _this$props.requestAccessContext) !== null && _this$props !== void 0 && _this$props.callToActionMessageKey)
|
|
52
49
|
});
|
|
53
|
-
(0, _defineProperty2.default)(
|
|
50
|
+
(0, _defineProperty2.default)(_this, "handleRetry", function (event) {
|
|
54
51
|
var onAuthorise = _this.props.onAuthorise;
|
|
55
52
|
event.preventDefault();
|
|
56
53
|
event.stopPropagation();
|
|
@@ -61,7 +58,7 @@ var InlineCardForbiddenView = exports.InlineCardForbiddenView = /*#__PURE__*/fun
|
|
|
61
58
|
(_this$props2 = _this.props) === null || _this$props2 === void 0 || (_this$props2 = _this$props2.requestAccessContext) === null || _this$props2 === void 0 || (_this$props2 = _this$props2.action) === null || _this$props2 === void 0 || _this$props2.promise();
|
|
62
59
|
}
|
|
63
60
|
});
|
|
64
|
-
(0, _defineProperty2.default)(
|
|
61
|
+
(0, _defineProperty2.default)(_this, "renderForbiddenAccessMessage", function () {
|
|
65
62
|
var _this$props3;
|
|
66
63
|
if ((_this$props3 = _this.props) !== null && _this$props3 !== void 0 && (_this$props3 = _this$props3.requestAccessContext) !== null && _this$props3 !== void 0 && _this$props3.callToActionMessageKey) {
|
|
67
64
|
var callToActionMessageKey = _this.props.requestAccessContext.callToActionMessageKey;
|
|
@@ -75,7 +72,7 @@ var InlineCardForbiddenView = exports.InlineCardForbiddenView = /*#__PURE__*/fun
|
|
|
75
72
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, formattedMessage);
|
|
76
73
|
}));
|
|
77
74
|
});
|
|
78
|
-
(0, _defineProperty2.default)(
|
|
75
|
+
(0, _defineProperty2.default)(_this, "renderActionButton", function () {
|
|
79
76
|
var _this$props$requestAc;
|
|
80
77
|
var onAuthorise = _this.props.onAuthorise;
|
|
81
78
|
var ActionButton = (0, _withFrameStyleControl.default)(_button.default, _this.frameRef);
|
|
@@ -105,7 +102,8 @@ var InlineCardForbiddenView = exports.InlineCardForbiddenView = /*#__PURE__*/fun
|
|
|
105
102
|
});
|
|
106
103
|
return _this;
|
|
107
104
|
}
|
|
108
|
-
(0,
|
|
105
|
+
(0, _inherits2.default)(InlineCardForbiddenView, _React$Component);
|
|
106
|
+
return (0, _createClass2.default)(InlineCardForbiddenView, [{
|
|
109
107
|
key: "render",
|
|
110
108
|
value: function render() {
|
|
111
109
|
var _this$props4 = this.props,
|
|
@@ -136,5 +134,4 @@ var InlineCardForbiddenView = exports.InlineCardForbiddenView = /*#__PURE__*/fun
|
|
|
136
134
|
return content;
|
|
137
135
|
}
|
|
138
136
|
}]);
|
|
139
|
-
return InlineCardForbiddenView;
|
|
140
137
|
}(_react.default.Component);
|
|
@@ -7,10 +7,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.IconAndTitleLayout = void 0;
|
|
8
8
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
9
9
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
10
|
-
var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));
|
|
11
|
-
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
12
10
|
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
13
11
|
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
12
|
+
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
14
13
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
15
14
|
var _react = _interopRequireDefault(require("react"));
|
|
16
15
|
var _reactRenderImage = _interopRequireDefault(require("react-render-image"));
|
|
@@ -18,19 +17,17 @@ var _link = _interopRequireDefault(require("@atlaskit/icon/core/migration/link")
|
|
|
18
17
|
var _Icon = require("../Icon");
|
|
19
18
|
var _styled = require("../styled");
|
|
20
19
|
var _styled2 = require("./styled");
|
|
21
|
-
function
|
|
20
|
+
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
|
|
22
21
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
23
22
|
var IconAndTitleLayout = exports.IconAndTitleLayout = /*#__PURE__*/function (_React$Component) {
|
|
24
|
-
(0, _inherits2.default)(IconAndTitleLayout, _React$Component);
|
|
25
|
-
var _super = _createSuper(IconAndTitleLayout);
|
|
26
23
|
function IconAndTitleLayout() {
|
|
27
24
|
var _this;
|
|
28
25
|
(0, _classCallCheck2.default)(this, IconAndTitleLayout);
|
|
29
26
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
30
27
|
args[_key] = arguments[_key];
|
|
31
28
|
}
|
|
32
|
-
_this =
|
|
33
|
-
(0, _defineProperty2.default)(
|
|
29
|
+
_this = _callSuper(this, IconAndTitleLayout, [].concat(args));
|
|
30
|
+
(0, _defineProperty2.default)(_this, "handleClick", function (event) {
|
|
34
31
|
var onClick = _this.props.onClick;
|
|
35
32
|
if (onClick) {
|
|
36
33
|
event.preventDefault();
|
|
@@ -38,7 +35,7 @@ var IconAndTitleLayout = exports.IconAndTitleLayout = /*#__PURE__*/function (_Re
|
|
|
38
35
|
onClick(event);
|
|
39
36
|
}
|
|
40
37
|
});
|
|
41
|
-
(0, _defineProperty2.default)(
|
|
38
|
+
(0, _defineProperty2.default)(_this, "handleKeyPress", function (event) {
|
|
42
39
|
var onClick = _this.props.onClick;
|
|
43
40
|
if (event.key !== ' ' && event.key !== 'Enter') {
|
|
44
41
|
return;
|
|
@@ -51,7 +48,8 @@ var IconAndTitleLayout = exports.IconAndTitleLayout = /*#__PURE__*/function (_Re
|
|
|
51
48
|
});
|
|
52
49
|
return _this;
|
|
53
50
|
}
|
|
54
|
-
(0,
|
|
51
|
+
(0, _inherits2.default)(IconAndTitleLayout, _React$Component);
|
|
52
|
+
return (0, _createClass2.default)(IconAndTitleLayout, [{
|
|
55
53
|
key: "renderAtlaskitIcon",
|
|
56
54
|
value: function renderAtlaskitIcon() {
|
|
57
55
|
var _this$props = this.props,
|
|
@@ -158,7 +156,6 @@ var IconAndTitleLayout = exports.IconAndTitleLayout = /*#__PURE__*/function (_Re
|
|
|
158
156
|
);
|
|
159
157
|
}
|
|
160
158
|
}]);
|
|
161
|
-
return IconAndTitleLayout;
|
|
162
159
|
}(_react.default.Component);
|
|
163
160
|
(0, _defineProperty2.default)(IconAndTitleLayout, "defaultProps", {
|
|
164
161
|
rightSideSpacer: true
|
|
@@ -7,25 +7,24 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.InlineCardResolvedView = void 0;
|
|
8
8
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
9
9
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
10
|
-
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
11
10
|
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
12
11
|
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
12
|
+
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
13
13
|
var _react = _interopRequireDefault(require("react"));
|
|
14
14
|
var _lozenge = _interopRequireDefault(require("@atlaskit/lozenge"));
|
|
15
15
|
var _HoverCard = require("../../HoverCard");
|
|
16
16
|
var _Frame = require("../Frame");
|
|
17
17
|
var _IconAndTitleLayout = require("../IconAndTitleLayout");
|
|
18
18
|
var _styled = require("../IconAndTitleLayout/styled");
|
|
19
|
-
function
|
|
19
|
+
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
|
|
20
20
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
21
21
|
var InlineCardResolvedView = exports.InlineCardResolvedView = /*#__PURE__*/function (_React$Component) {
|
|
22
|
-
(0, _inherits2.default)(InlineCardResolvedView, _React$Component);
|
|
23
|
-
var _super = _createSuper(InlineCardResolvedView);
|
|
24
22
|
function InlineCardResolvedView() {
|
|
25
23
|
(0, _classCallCheck2.default)(this, InlineCardResolvedView);
|
|
26
|
-
return
|
|
24
|
+
return _callSuper(this, InlineCardResolvedView, arguments);
|
|
27
25
|
}
|
|
28
|
-
(0,
|
|
26
|
+
(0, _inherits2.default)(InlineCardResolvedView, _React$Component);
|
|
27
|
+
return (0, _createClass2.default)(InlineCardResolvedView, [{
|
|
29
28
|
key: "renderLozenge",
|
|
30
29
|
value: function renderLozenge() {
|
|
31
30
|
var lozenge = this.props.lozenge;
|
|
@@ -87,5 +86,4 @@ var InlineCardResolvedView = exports.InlineCardResolvedView = /*#__PURE__*/funct
|
|
|
87
86
|
return inlineCardResolvedView;
|
|
88
87
|
}
|
|
89
88
|
}]);
|
|
90
|
-
return InlineCardResolvedView;
|
|
91
89
|
}(_react.default.Component);
|
|
@@ -7,25 +7,24 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.InlineCardResolvingView = void 0;
|
|
8
8
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
9
9
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
10
|
-
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
11
10
|
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
12
11
|
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
12
|
+
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
13
13
|
var _react = _interopRequireDefault(require("react"));
|
|
14
14
|
var _spinner = _interopRequireDefault(require("@atlaskit/spinner"));
|
|
15
15
|
var _Frame = require("../Frame");
|
|
16
16
|
var _IconAndTitleLayout = require("../IconAndTitleLayout");
|
|
17
17
|
var _styled = require("../IconAndTitleLayout/styled");
|
|
18
18
|
var _styled2 = require("./styled");
|
|
19
|
-
function
|
|
19
|
+
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
|
|
20
20
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
21
21
|
var InlineCardResolvingView = exports.InlineCardResolvingView = /*#__PURE__*/function (_React$Component) {
|
|
22
|
-
(0, _inherits2.default)(InlineCardResolvingView, _React$Component);
|
|
23
|
-
var _super = _createSuper(InlineCardResolvingView);
|
|
24
22
|
function InlineCardResolvingView() {
|
|
25
23
|
(0, _classCallCheck2.default)(this, InlineCardResolvingView);
|
|
26
|
-
return
|
|
24
|
+
return _callSuper(this, InlineCardResolvingView, arguments);
|
|
27
25
|
}
|
|
28
|
-
(0,
|
|
26
|
+
(0, _inherits2.default)(InlineCardResolvingView, _React$Component);
|
|
27
|
+
return (0, _createClass2.default)(InlineCardResolvingView, [{
|
|
29
28
|
key: "render",
|
|
30
29
|
value: function render() {
|
|
31
30
|
var _this$props = this.props,
|
|
@@ -68,5 +67,4 @@ var InlineCardResolvingView = exports.InlineCardResolvingView = /*#__PURE__*/fun
|
|
|
68
67
|
}
|
|
69
68
|
}
|
|
70
69
|
}]);
|
|
71
|
-
return InlineCardResolvingView;
|
|
72
70
|
}(_react.default.Component);
|
|
@@ -20,7 +20,7 @@ var _excluded = ["href", "children", "checkSafety", "onClick", "testId", "isLink
|
|
|
20
20
|
_excluded2 = ["isLinkSafe", "showSafetyWarningModal"];
|
|
21
21
|
var PACKAGE_DATA = {
|
|
22
22
|
packageName: "@atlaskit/smart-card",
|
|
23
|
-
packageVersion: "32.7.
|
|
23
|
+
packageVersion: "32.7.8",
|
|
24
24
|
componentName: 'linkUrl'
|
|
25
25
|
};
|
|
26
26
|
var Anchor = (0, _click.withLinkClickedEvent)('a');
|