@atlaskit/smart-card 26.68.0 → 26.69.1
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 +26 -0
- package/dist/cjs/messages.js +27 -22
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/BlockCard/views/styled.js +1 -0
- package/dist/cjs/view/EmbedCard/components/styled.js +28 -2
- package/dist/cjs/view/FlexibleCard/components/actions/ai-summary-action/copy-summary-action.js +5 -2
- package/dist/cjs/view/FlexibleCard/components/blocks/ai-summary-block/ai-state-indicator/ai-indicator-tooltip.js +1 -0
- package/dist/cjs/view/InlineCard/Frame/styled.js +4 -0
- package/dist/cjs/view/InlineCard/Icon.js +2 -0
- package/dist/cjs/view/InlineCard/IconAndTitleLayout/styled.js +11 -0
- package/dist/cjs/view/InlineCard/ResolvingView/index.js +2 -2
- package/dist/cjs/view/InlineCard/ResolvingView/styled.js +1 -0
- package/dist/cjs/view/InlineCard/styled.js +7 -0
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/cjs/view/RelatedLinksModal/components/RelatedLinksBaseModal.js +27 -0
- package/dist/cjs/view/RelatedLinksModal/types.js +5 -0
- package/dist/es2019/messages.js +27 -22
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/BlockCard/views/styled.js +1 -0
- package/dist/es2019/view/EmbedCard/components/styled.js +28 -2
- package/dist/es2019/view/FlexibleCard/components/actions/ai-summary-action/copy-summary-action.js +3 -2
- package/dist/es2019/view/FlexibleCard/components/blocks/ai-summary-block/ai-state-indicator/ai-indicator-tooltip.js +1 -0
- package/dist/es2019/view/InlineCard/Frame/styled.js +4 -0
- package/dist/es2019/view/InlineCard/Icon.js +2 -0
- package/dist/es2019/view/InlineCard/IconAndTitleLayout/styled.js +11 -0
- package/dist/es2019/view/InlineCard/ResolvingView/index.js +2 -2
- package/dist/es2019/view/InlineCard/ResolvingView/styled.js +2 -0
- package/dist/es2019/view/InlineCard/styled.js +7 -0
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/es2019/view/RelatedLinksModal/components/RelatedLinksBaseModal.js +18 -0
- package/dist/es2019/view/RelatedLinksModal/types.js +1 -0
- package/dist/esm/messages.js +27 -22
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/BlockCard/views/styled.js +1 -0
- package/dist/esm/view/EmbedCard/components/styled.js +28 -2
- package/dist/esm/view/FlexibleCard/components/actions/ai-summary-action/copy-summary-action.js +5 -2
- package/dist/esm/view/FlexibleCard/components/blocks/ai-summary-block/ai-state-indicator/ai-indicator-tooltip.js +1 -0
- package/dist/esm/view/InlineCard/Frame/styled.js +4 -0
- package/dist/esm/view/InlineCard/Icon.js +2 -0
- package/dist/esm/view/InlineCard/IconAndTitleLayout/styled.js +11 -0
- package/dist/esm/view/InlineCard/ResolvingView/index.js +2 -2
- package/dist/esm/view/InlineCard/ResolvingView/styled.js +2 -0
- package/dist/esm/view/InlineCard/styled.js +7 -0
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/esm/view/RelatedLinksModal/components/RelatedLinksBaseModal.js +17 -0
- package/dist/esm/view/RelatedLinksModal/types.js +1 -0
- package/dist/types/messages.d.ts +1 -1
- package/dist/types/view/InlineCard/ResolvingView/index.d.ts +1 -1
- package/dist/types/view/RelatedLinksModal/components/RelatedLinksBaseModal.d.ts +4 -0
- package/dist/types/view/RelatedLinksModal/types.d.ts +6 -0
- package/dist/types-ts4.5/messages.d.ts +1 -1
- package/dist/types-ts4.5/view/InlineCard/ResolvingView/index.d.ts +1 -1
- package/dist/types-ts4.5/view/RelatedLinksModal/components/RelatedLinksBaseModal.d.ts +4 -0
- package/dist/types-ts4.5/view/RelatedLinksModal/types.d.ts +6 -0
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 26.69.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#101914](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/101914)
|
|
8
|
+
[`d43b23ecd5e3`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d43b23ecd5e3) -
|
|
9
|
+
Updating inline resolving view to not have invalid html structure
|
|
10
|
+
- [#101941](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/101941)
|
|
11
|
+
[`2d2d3941c769`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/2d2d3941c769) -
|
|
12
|
+
EDM-9966: create related-links-modal component in smart cards
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
15
|
+
## 26.69.0
|
|
16
|
+
|
|
17
|
+
### Minor Changes
|
|
18
|
+
|
|
19
|
+
- [#101702](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/101702)
|
|
20
|
+
[`2d087cf38dab`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/2d087cf38dab) -
|
|
21
|
+
Fixes issue with the tooltip on the copy summary action
|
|
22
|
+
|
|
23
|
+
### Patch Changes
|
|
24
|
+
|
|
25
|
+
- [#101752](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/101752)
|
|
26
|
+
[`ce0a0cf5380a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/ce0a0cf5380a) -
|
|
27
|
+
Finalise hover card redesign localisation
|
|
28
|
+
|
|
3
29
|
## 26.68.0
|
|
4
30
|
|
|
5
31
|
### Minor Changes
|
package/dist/cjs/messages.js
CHANGED
|
@@ -37,7 +37,7 @@ var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
|
|
|
37
37
|
description: 'Additional info about the content summarised by AI.'
|
|
38
38
|
},
|
|
39
39
|
ai_summarized_info_short: {
|
|
40
|
-
id: 'fabric.linking.ai_summarized_info_short
|
|
40
|
+
id: 'fabric.linking.ai_summarized_info_short',
|
|
41
41
|
defaultMessage: 'Content quality may vary',
|
|
42
42
|
description: 'Additional info about the content summarised by AI.'
|
|
43
43
|
},
|
|
@@ -192,7 +192,7 @@ var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
|
|
|
192
192
|
description: ''
|
|
193
193
|
},
|
|
194
194
|
copied_url_to_clipboard: {
|
|
195
|
-
id: 'fabric.linking.copied_url_to_clipboard
|
|
195
|
+
id: 'fabric.linking.copied_url_to_clipboard',
|
|
196
196
|
defaultMessage: 'Copied!',
|
|
197
197
|
description: 'Url has been copied to the clipboard'
|
|
198
198
|
},
|
|
@@ -227,37 +227,37 @@ var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
|
|
|
227
227
|
description: ''
|
|
228
228
|
},
|
|
229
229
|
download_description: {
|
|
230
|
-
id: 'fabric.linking.download_description
|
|
230
|
+
id: 'fabric.linking.download_description',
|
|
231
231
|
defaultMessage: 'Download this file into your local storage',
|
|
232
232
|
description: 'Description on what Download does'
|
|
233
233
|
},
|
|
234
234
|
download_file: {
|
|
235
|
-
id: 'fabric.linking.download_file
|
|
235
|
+
id: 'fabric.linking.download_file',
|
|
236
236
|
defaultMessage: 'Download file',
|
|
237
237
|
description: 'Allow a user to download a file'
|
|
238
238
|
},
|
|
239
239
|
ai_summary_action: {
|
|
240
|
-
id: 'fabric.linking.ai_summary_action
|
|
240
|
+
id: 'fabric.linking.ai_summary_action',
|
|
241
241
|
defaultMessage: 'Summarize with AI',
|
|
242
242
|
description: 'Allow a user to summarize a link'
|
|
243
243
|
},
|
|
244
244
|
ai_summary_action_description: {
|
|
245
|
-
id: 'fabric.linking.ai_summary_action_description
|
|
245
|
+
id: 'fabric.linking.ai_summary_action_description',
|
|
246
246
|
defaultMessage: 'Summarize the content of this link using Atlassian Intelligence.',
|
|
247
247
|
description: 'Description of what the summarize link with AI action does'
|
|
248
248
|
},
|
|
249
249
|
copy_summary_action: {
|
|
250
|
-
id: 'fabric.linking.copy_summary_action
|
|
250
|
+
id: 'fabric.linking.copy_summary_action',
|
|
251
251
|
defaultMessage: 'Copy summary',
|
|
252
252
|
description: 'Allow a user to copy a generated summary'
|
|
253
253
|
},
|
|
254
254
|
copy_summary_action_description: {
|
|
255
|
-
id: 'fabric.linking.
|
|
255
|
+
id: 'fabric.linking.copy_summary_action_description',
|
|
256
256
|
defaultMessage: 'Copy summary',
|
|
257
257
|
description: 'Description of what the copy summary AI action does'
|
|
258
258
|
},
|
|
259
259
|
copied_summary_action_description: {
|
|
260
|
-
id: 'fabric.linking.copied_summary_action_description
|
|
260
|
+
id: 'fabric.linking.copied_summary_action_description',
|
|
261
261
|
defaultMessage: 'Copied summary to clipboard',
|
|
262
262
|
description: 'Confirmation to the user that the summry has been copied'
|
|
263
263
|
},
|
|
@@ -272,32 +272,32 @@ var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
|
|
|
272
272
|
description: 'Click to follow a project.'
|
|
273
273
|
},
|
|
274
274
|
follow_project_description: {
|
|
275
|
-
id: 'fabric.linking.follow_project_description
|
|
275
|
+
id: 'fabric.linking.follow_project_description',
|
|
276
276
|
defaultMessage: 'Follow to get notifications on this project',
|
|
277
277
|
description: 'Description on what Follow does'
|
|
278
278
|
},
|
|
279
279
|
follow_project: {
|
|
280
|
-
id: 'fabric.linking.follow_project
|
|
280
|
+
id: 'fabric.linking.follow_project',
|
|
281
281
|
defaultMessage: 'Follow project',
|
|
282
282
|
description: 'Click to follow a project.'
|
|
283
283
|
},
|
|
284
284
|
follow_project_error: {
|
|
285
|
-
id: 'fabric.linking.follow_project_error
|
|
285
|
+
id: 'fabric.linking.follow_project_error',
|
|
286
286
|
defaultMessage: 'We encountered an error while trying to follow the project. Check your connection or refresh the page and try again.',
|
|
287
287
|
description: 'Shown when an unknown error occurs when following an Atlas project'
|
|
288
288
|
},
|
|
289
289
|
follow_goal_description: {
|
|
290
|
-
id: 'fabric.linking.follow_goal_description
|
|
290
|
+
id: 'fabric.linking.follow_goal_description',
|
|
291
291
|
defaultMessage: 'Follow this goal to get notifications on updates',
|
|
292
292
|
description: 'Description on what Follow does'
|
|
293
293
|
},
|
|
294
294
|
follow_goal: {
|
|
295
|
-
id: 'fabric.linking.follow_goal
|
|
295
|
+
id: 'fabric.linking.follow_goal',
|
|
296
296
|
defaultMessage: 'Follow goal',
|
|
297
297
|
description: 'Click to follow a project.'
|
|
298
298
|
},
|
|
299
299
|
follow_goal_error: {
|
|
300
|
-
id: 'fabric.linking.follow_goal_error
|
|
300
|
+
id: 'fabric.linking.follow_goal_error',
|
|
301
301
|
defaultMessage: 'We encountered an error while trying to follow the goal. Check your connection or refresh the page and try again.',
|
|
302
302
|
description: 'Shown when an unknown error occurs when following an Atlas goal'
|
|
303
303
|
},
|
|
@@ -372,7 +372,7 @@ var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
|
|
|
372
372
|
description: 'Indicates the person or entity that owns or maintains the resource.'
|
|
373
373
|
},
|
|
374
374
|
preview_description: {
|
|
375
|
-
id: 'fabric.linking.preview_description
|
|
375
|
+
id: 'fabric.linking.preview_description',
|
|
376
376
|
defaultMessage: 'Open a full screen preview of this link',
|
|
377
377
|
description: 'Description on what Preview does'
|
|
378
378
|
},
|
|
@@ -562,32 +562,32 @@ var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
|
|
|
562
562
|
description: 'Click to unfollow a project.'
|
|
563
563
|
},
|
|
564
564
|
unfollow_project_description: {
|
|
565
|
-
id: 'fabric.linking.unfollow_project_description
|
|
565
|
+
id: 'fabric.linking.unfollow_project_description',
|
|
566
566
|
defaultMessage: 'Unfollow to stop receiving project notifications',
|
|
567
567
|
description: 'Description on what Unfollow does'
|
|
568
568
|
},
|
|
569
569
|
unfollow_project: {
|
|
570
|
-
id: 'fabric.linking.unfollow_project
|
|
570
|
+
id: 'fabric.linking.unfollow_project',
|
|
571
571
|
defaultMessage: 'Unfollow project',
|
|
572
572
|
description: 'Click to unfollow a project.'
|
|
573
573
|
},
|
|
574
574
|
unfollow_project_error: {
|
|
575
|
-
id: 'fabric.linking.unfollow_project_error
|
|
575
|
+
id: 'fabric.linking.unfollow_project_error',
|
|
576
576
|
defaultMessage: 'We encountered an error while trying to unfollow the project. Check your connection or refresh the page and try again.',
|
|
577
577
|
description: 'Shown when an unknown error occurs when unfollowing an Atlas project'
|
|
578
578
|
},
|
|
579
579
|
unfollow_goal_description: {
|
|
580
|
-
id: 'fabric.linking.unfollow_goal_description
|
|
580
|
+
id: 'fabric.linking.unfollow_goal_description',
|
|
581
581
|
defaultMessage: 'Unfollow to stop receiving notifications for this goal',
|
|
582
582
|
description: 'Description on what Unfollow does'
|
|
583
583
|
},
|
|
584
584
|
unfollow_goal: {
|
|
585
|
-
id: 'fabric.linking.unfollow_goal
|
|
585
|
+
id: 'fabric.linking.unfollow_goal',
|
|
586
586
|
defaultMessage: 'Unfollow goal',
|
|
587
587
|
description: 'Click to unfollow a project.'
|
|
588
588
|
},
|
|
589
589
|
unfollow_goal_error: {
|
|
590
|
-
id: 'fabric.linking.unfollow_goal_error
|
|
590
|
+
id: 'fabric.linking.unfollow_goal_error',
|
|
591
591
|
defaultMessage: 'We encountered an error while trying to unfollow the goal. Check your connection or refresh the page and try again.',
|
|
592
592
|
description: 'Shown when an unknown error occurs when unfollowing an Atlas goal'
|
|
593
593
|
},
|
|
@@ -705,5 +705,10 @@ var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
|
|
|
705
705
|
id: 'fabric.linking.generic_error_message',
|
|
706
706
|
defaultMessage: 'An error occurred',
|
|
707
707
|
description: 'A generic error message to the user'
|
|
708
|
+
},
|
|
709
|
+
related_links_modal_title_nonfinal: {
|
|
710
|
+
id: 'fabric.linking.related_links_modal_title.nonfinal',
|
|
711
|
+
defaultMessage: 'Recent Links',
|
|
712
|
+
description: 'Shown as the title for the related links modal'
|
|
708
713
|
}
|
|
709
714
|
});
|
|
@@ -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.
|
|
25
|
+
packageVersion: "26.69.1"
|
|
26
26
|
};
|
|
27
27
|
var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
28
28
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -7,6 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.LozengeBlockWrapper = void 0;
|
|
8
8
|
var _styled = _interopRequireDefault(require("@emotion/styled"));
|
|
9
9
|
// TODO: Replace overrides with proper AtlasKit solution.
|
|
10
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
10
11
|
var LozengeBlockWrapper = exports.LozengeBlockWrapper = _styled.default.span({
|
|
11
12
|
'& > span': {
|
|
12
13
|
marginLeft: "var(--ds-space-050, 4px)"
|
|
@@ -76,10 +76,12 @@ function visible(_ref7) {
|
|
|
76
76
|
return frameStyle === 'show' ? visibleStyles : '';
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
-
// eslint-disable-next-line @atlaskit/design-system/no-styled-tagged-template-expression
|
|
79
|
+
// eslint-disable-next-line @atlaskit/design-system/no-styled-tagged-template-expression, @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
80
80
|
var LinkWrapper = exports.LinkWrapper = _styled.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n ", " &:hover {\n text-decoration: none;\n }\n"])), function (props) {
|
|
81
81
|
return wrapperStyles(props);
|
|
82
82
|
});
|
|
83
|
+
|
|
84
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
83
85
|
var Wrapper = exports.Wrapper = _styled.default.div(function (props) {
|
|
84
86
|
return wrapperStyles(props);
|
|
85
87
|
}, {
|
|
@@ -89,6 +91,7 @@ var Wrapper = exports.Wrapper = _styled.default.div(function (props) {
|
|
|
89
91
|
marginTop: '10px'
|
|
90
92
|
});
|
|
91
93
|
var embedHeaderHeight = exports.embedHeaderHeight = 32;
|
|
94
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
92
95
|
var Header = exports.Header = _styled.default.div({
|
|
93
96
|
height: "".concat(embedHeaderHeight, "px"),
|
|
94
97
|
position: 'absolute',
|
|
@@ -103,6 +106,7 @@ var Header = exports.Header = _styled.default.div({
|
|
|
103
106
|
var frameStyle = _ref8.frameStyle;
|
|
104
107
|
return frameStyle === 'show' ? "\n box-sizing: border-box;\n padding: 0 ".concat("var(--ds-space-100, 8px)", ";\n ") : '';
|
|
105
108
|
});
|
|
109
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
106
110
|
var IconWrapper = exports.IconWrapper = _styled.default.div(borderRadius, csssize(16), function (_ref9) {
|
|
107
111
|
var isPlaceholder = _ref9.isPlaceholder;
|
|
108
112
|
if (isPlaceholder) {
|
|
@@ -113,6 +117,8 @@ var IconWrapper = exports.IconWrapper = _styled.default.div(borderRadius, csssiz
|
|
|
113
117
|
}, {
|
|
114
118
|
marginRight: "var(--ds-space-050, 4px)"
|
|
115
119
|
});
|
|
120
|
+
|
|
121
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
116
122
|
var TextWrapper = exports.TextWrapper = _styled.default.div(function (_ref10) {
|
|
117
123
|
var isPlaceholder = _ref10.isPlaceholder;
|
|
118
124
|
if (isPlaceholder) {
|
|
@@ -125,13 +131,15 @@ var TextWrapper = exports.TextWrapper = _styled.default.div(function (_ref10) {
|
|
|
125
131
|
fontSize: '12px',
|
|
126
132
|
lineHeight: '16px'
|
|
127
133
|
}, ellipsis('none'));
|
|
134
|
+
|
|
135
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
128
136
|
var TooltipWrapper = exports.TooltipWrapper = _styled.default.div({
|
|
129
137
|
overflow: 'hidden'
|
|
130
138
|
});
|
|
131
139
|
// NB: `overflow` is kept as `hidden` since
|
|
132
140
|
// the internal contents of the `iframe` should
|
|
133
141
|
// manage scrolling behaviour.
|
|
134
|
-
// eslint-disable-next-line @atlaskit/design-system/no-styled-tagged-template-expression
|
|
142
|
+
// eslint-disable-next-line @atlaskit/design-system/no-styled-tagged-template-expression, @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
135
143
|
var Content = exports.Content = _styled.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n ", ";\n border: 1px solid ", ";\n background-color: ", ";\n position: absolute;\n z-index: 1;\n width: 100%;\n transition: box-shadow 0.3s;\n\n > .calc-height > div > div {\n left: unset !important;\n width: unset !important;\n height: unset !important;\n position: initial !important;\n padding-bottom: unset !important;\n }\n > .embed-preview > div {\n margin: 0 auto;\n }\n\n ", "\n\n ", "\n\n ", "\n"])), contentBorderRadius, "var(--ds-border, ".concat(_colors.N40, ")"), "var(--ds-surface-raised, white)", function (_ref11) {
|
|
136
144
|
var allowScrollBar = _ref11.allowScrollBar,
|
|
137
145
|
removeOverflow = _ref11.removeOverflow;
|
|
@@ -146,6 +154,7 @@ var Content = exports.Content = _styled.default.div(_templateObject2 || (_templa
|
|
|
146
154
|
var frameStyle = _ref13.frameStyle;
|
|
147
155
|
return frameStyle === 'hide' ? 'height: 100%;' : "\n height: calc(100% - ".concat("var(--ds-space-400, 32px)", ");\n top: ", "var(--ds-space-400, 32px)", ";\n ");
|
|
148
156
|
});
|
|
157
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
149
158
|
var Image = exports.Image = _styled.default.img(function (_ref14) {
|
|
150
159
|
var size = _ref14.size;
|
|
151
160
|
return csssize(size);
|
|
@@ -153,12 +162,16 @@ var Image = exports.Image = _styled.default.img(function (_ref14) {
|
|
|
153
162
|
overflow: 'hidden'
|
|
154
163
|
});
|
|
155
164
|
var maxAvatarCount = exports.maxAvatarCount = 6;
|
|
165
|
+
|
|
166
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
156
167
|
var ContentWrapper = exports.ContentWrapper = _styled.default.div({
|
|
157
168
|
display: 'flex',
|
|
158
169
|
flexDirection: 'row',
|
|
159
170
|
boxSizing: 'border-box',
|
|
160
171
|
padding: "var(--ds-space-100, 8px)".concat(" ", "var(--ds-space-150, 12px)", " ", "var(--ds-space-150, 12px)", " ", "var(--ds-space-150, 12px)")
|
|
161
172
|
});
|
|
173
|
+
|
|
174
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
162
175
|
var Title = exports.Title = _styled.default.div({
|
|
163
176
|
color: "var(--ds-text, ".concat(colors.N900, ")"),
|
|
164
177
|
fontSize: '16px',
|
|
@@ -167,6 +180,8 @@ var Title = exports.Title = _styled.default.div({
|
|
|
167
180
|
maxHeight: "".concat(20 * 4, "px"),
|
|
168
181
|
overflow: 'hidden'
|
|
169
182
|
});
|
|
183
|
+
|
|
184
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
170
185
|
var Byline = exports.Byline = _styled.default.div({
|
|
171
186
|
marginTop: "var(--ds-space-050, 4px)",
|
|
172
187
|
color: "var(--ds-text-subtlest, ".concat(colors.N300, ")"),
|
|
@@ -174,6 +189,8 @@ var Byline = exports.Byline = _styled.default.div({
|
|
|
174
189
|
fontWeight: 'normal',
|
|
175
190
|
lineHeight: 16 / 12
|
|
176
191
|
}, ellipsis('100%'));
|
|
192
|
+
|
|
193
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
177
194
|
var Description = exports.Description = _styled.default.div({
|
|
178
195
|
marginTop: "calc(".concat("var(--ds-space-100, 8px)", " - 1px)"),
|
|
179
196
|
color: "var(--ds-text, ".concat(colors.N800, ")"),
|
|
@@ -183,9 +200,12 @@ var Description = exports.Description = _styled.default.div({
|
|
|
183
200
|
maxHeight: "".concat(18 * 3, "px"),
|
|
184
201
|
overflow: 'hidden'
|
|
185
202
|
});
|
|
203
|
+
|
|
204
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
186
205
|
var ResolvedViewIconWrapper = exports.ResolvedViewIconWrapper = _styled.default.div({
|
|
187
206
|
marginTop: "var(--ds-space-050, 4px)"
|
|
188
207
|
});
|
|
208
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
189
209
|
var Thumbnail = exports.Thumbnail = _styled.default.div(borderRadius, csssize(48), function (props) {
|
|
190
210
|
return {
|
|
191
211
|
float: 'right',
|
|
@@ -195,9 +215,13 @@ var Thumbnail = exports.Thumbnail = _styled.default.div(borderRadius, csssize(48
|
|
|
195
215
|
backgroundSize: 'cover'
|
|
196
216
|
};
|
|
197
217
|
});
|
|
218
|
+
|
|
219
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
198
220
|
var UsersWrapper = exports.UsersWrapper = _styled.default.div({
|
|
199
221
|
marginTop: "var(--ds-space-100, 8px)"
|
|
200
222
|
});
|
|
223
|
+
|
|
224
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
201
225
|
var ActionsWrapper = exports.ActionsWrapper = _styled.default.div({
|
|
202
226
|
marginTop: "var(--ds-space-100, 8px)",
|
|
203
227
|
textAlign: 'right',
|
|
@@ -208,6 +232,8 @@ var ActionsWrapper = exports.ActionsWrapper = _styled.default.div({
|
|
|
208
232
|
marginLeft: "var(--ds-space-050, 4px)"
|
|
209
233
|
}
|
|
210
234
|
});
|
|
235
|
+
|
|
236
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
211
237
|
var AlertWrapper = exports.AlertWrapper = _styled.default.div({
|
|
212
238
|
position: 'absolute',
|
|
213
239
|
top: 0,
|
package/dist/cjs/view/FlexibleCard/components/actions/ai-summary-action/copy-summary-action.js
CHANGED
|
@@ -30,7 +30,7 @@ function CopySummaryAction(_ref) {
|
|
|
30
30
|
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
31
31
|
var _useAnalyticsEvents = (0, _useAnalyticsEvents2.useAnalyticsEvents)(),
|
|
32
32
|
fireEvent = _useAnalyticsEvents.fireEvent;
|
|
33
|
-
var _useState = (0, _react.useState)(_messages.messages.
|
|
33
|
+
var _useState = (0, _react.useState)(_messages.messages.copy_summary_action_description),
|
|
34
34
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
35
35
|
tooltipMessage = _useState2[0],
|
|
36
36
|
setTooltipMessage = _useState2[1];
|
|
@@ -57,6 +57,9 @@ function CopySummaryAction(_ref) {
|
|
|
57
57
|
}),
|
|
58
58
|
onClick: handleCopySummaryClick,
|
|
59
59
|
testId: "".concat(testId, "-copy-summary-action"),
|
|
60
|
-
tooltipMessage: /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, tooltipMessage)
|
|
60
|
+
tooltipMessage: /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, tooltipMessage),
|
|
61
|
+
tooltipOnHide: function tooltipOnHide() {
|
|
62
|
+
return setTooltipMessage(_messages.messages.copy_summary_action_description);
|
|
63
|
+
}
|
|
61
64
|
}, props));
|
|
62
65
|
}
|
|
@@ -13,6 +13,7 @@ var _tooltip = _interopRequireWildcard(require("@atlaskit/tooltip"));
|
|
|
13
13
|
var _primitives = require("@atlaskit/primitives");
|
|
14
14
|
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); }
|
|
15
15
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(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 && Object.prototype.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; }
|
|
16
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
16
17
|
var AIIndicatorTooltipPrimitive = (0, _styled.default)(_tooltip.TooltipPrimitive)({
|
|
17
18
|
borderRadius: "var(--ds-border-radius, 3px)",
|
|
18
19
|
backgroundColor: "var(--ds-surface-raised, white)",
|
|
@@ -94,10 +94,14 @@ var baseWrapperStyles = function baseWrapperStyles(props) {
|
|
|
94
94
|
MozUserSelect: 'none'
|
|
95
95
|
}, props.isHovered ? hoveredWihBorderStyles(props) : undefined);
|
|
96
96
|
};
|
|
97
|
+
|
|
98
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
97
99
|
var WrapperAnchor = exports.WrapperAnchor = _styled.default.a(function (props) {
|
|
98
100
|
return _objectSpread(_objectSpread({}, baseWrapperStyles(props)), isInteractive(props));
|
|
99
101
|
});
|
|
100
102
|
WrapperAnchor.displayName = 'WrapperAnchor';
|
|
103
|
+
|
|
104
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
101
105
|
var WrapperSpan = exports.WrapperSpan = _styled.default.span(function (props) {
|
|
102
106
|
return _objectSpread({}, baseWrapperStyles(props));
|
|
103
107
|
});
|
|
@@ -13,6 +13,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
13
13
|
// Current rationale: vertically positioned at the top of
|
|
14
14
|
// the smart card container (when set to 0). Offset this
|
|
15
15
|
// to position it with appropriate whitespace from the top.
|
|
16
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
16
17
|
var Icon = exports.Icon = _styled.default.img({
|
|
17
18
|
height: '14px',
|
|
18
19
|
width: '14px',
|
|
@@ -28,6 +29,7 @@ var Icon = exports.Icon = _styled.default.img({
|
|
|
28
29
|
// Used for 'untrue' icons which claim to be 16x16 but
|
|
29
30
|
// are less than that in height/width.
|
|
30
31
|
// TODO: Replace this override with proper AtlasKit solution.
|
|
32
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
31
33
|
var AKIconWrapper = exports.AKIconWrapper = _styled.default.span({
|
|
32
34
|
marginRight: "var(--ds-space-negative-025, -2px)"
|
|
33
35
|
});
|
|
@@ -17,11 +17,13 @@ var IconOverrides = exports.IconOverrides = "\n\n & > * > span {\n height: 1
|
|
|
17
17
|
// - @atlaskit/icon-object: for object icons, e.g. repository, branch, etc.
|
|
18
18
|
// NB: the first set of overrides style icons imported from @atlaskit/icon-object correctly.
|
|
19
19
|
// NB: the second set of overrides style icons imported from @atlaskit/icon correctly.
|
|
20
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
20
21
|
var IconWrapper = exports.IconWrapper = _styled.default.span({
|
|
21
22
|
userSelect: 'none'
|
|
22
23
|
}, IconOverrides, IconObjectOverrides);
|
|
23
24
|
|
|
24
25
|
// Wraps all emoji in Inline Links similar to icon
|
|
26
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
25
27
|
var EmojiWrapper = exports.EmojiWrapper = _styled.default.span({
|
|
26
28
|
display: 'inline-block',
|
|
27
29
|
marginRight: "var(--ds-space-025, 2px)",
|
|
@@ -31,6 +33,7 @@ var EmojiWrapper = exports.EmojiWrapper = _styled.default.span({
|
|
|
31
33
|
// The main 'wrapping' element, title of the content.
|
|
32
34
|
// NB: `white-space` adds little whitespace before wrapping.
|
|
33
35
|
// NB: `word-break` line breaks as soon as an overflow takes place.
|
|
36
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
34
37
|
var IconTitleWrapper = exports.IconTitleWrapper = _styled.default.span({
|
|
35
38
|
whiteSpace: 'pre-wrap',
|
|
36
39
|
wordBreak: 'break-all',
|
|
@@ -39,11 +42,14 @@ var IconTitleWrapper = exports.IconTitleWrapper = _styled.default.span({
|
|
|
39
42
|
});
|
|
40
43
|
|
|
41
44
|
// TODO: Replace overrides with proper AtlasKit solution.
|
|
45
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
42
46
|
var LozengeWrapper = exports.LozengeWrapper = _styled.default.span({
|
|
43
47
|
display: 'inline-block',
|
|
44
48
|
verticalAlign: '1px',
|
|
45
49
|
margin: "0 ".concat("var(--ds-space-050, 4px)", " 0 ", "var(--ds-space-025, 2px)")
|
|
46
50
|
});
|
|
51
|
+
|
|
52
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
47
53
|
var RightIconPositionWrapper = exports.RightIconPositionWrapper = _styled.default.span({
|
|
48
54
|
marginLeft: "var(--ds-space-025, 2px)",
|
|
49
55
|
position: 'relative',
|
|
@@ -53,11 +59,14 @@ var RightIconPositionWrapper = exports.RightIconPositionWrapper = _styled.defaul
|
|
|
53
59
|
// The following components are used to absolutely position icons in the vertical center.
|
|
54
60
|
// - IconPositionWrapper: the `relative` parent which has no height in itself.
|
|
55
61
|
// - IconEmptyWrapper: the child which forces `IconPositionWrapper` to have a height.
|
|
62
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
56
63
|
var IconPositionWrapper = exports.IconPositionWrapper = _styled.default.span({
|
|
57
64
|
marginRight: "var(--ds-space-050, 4px)",
|
|
58
65
|
position: 'relative',
|
|
59
66
|
display: 'inline-block'
|
|
60
67
|
});
|
|
68
|
+
|
|
69
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
61
70
|
var IconEmptyWrapper = exports.IconEmptyWrapper = _styled.default.span({
|
|
62
71
|
width: '14px',
|
|
63
72
|
height: '100%',
|
|
@@ -68,4 +77,6 @@ var IconEmptyWrapper = exports.IconEmptyWrapper = _styled.default.span({
|
|
|
68
77
|
// With emotion it's not possible to use reference to `TitleWrapper` as part of a selector,
|
|
69
78
|
// To achieve same result we use classname instead.
|
|
70
79
|
var TitleWrapperClassName = exports.TitleWrapperClassName = 'smart-link-title-wrapper';
|
|
80
|
+
|
|
81
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
71
82
|
var TitleWrapper = exports.TitleWrapper = _styled.default.span({});
|
|
@@ -51,9 +51,9 @@ var InlineCardResolvingView = exports.InlineCardResolvingView = /*#__PURE__*/fun
|
|
|
51
51
|
return /*#__PURE__*/_react.default.createElement(_Frame.Frame, {
|
|
52
52
|
testId: testId,
|
|
53
53
|
onClick: onClick,
|
|
54
|
-
isSelected: isSelected
|
|
54
|
+
isSelected: isSelected,
|
|
55
|
+
link: url
|
|
55
56
|
}, /*#__PURE__*/_react.default.createElement(_IconAndTitleLayout.IconAndTitleLayout, {
|
|
56
|
-
link: url,
|
|
57
57
|
title: url,
|
|
58
58
|
titleTextColor: titleTextColor
|
|
59
59
|
}, /*#__PURE__*/_react.default.createElement(_styled.SpinnerWrapper, {
|
|
@@ -7,6 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.SpinnerWrapper = void 0;
|
|
8
8
|
var _styled = _interopRequireDefault(require("@emotion/styled"));
|
|
9
9
|
var _styled2 = require("../IconAndTitleLayout/styled");
|
|
10
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
10
11
|
var SpinnerWrapper = exports.SpinnerWrapper = (0, _styled.default)(_styled2.IconTitleWrapper)({
|
|
11
12
|
verticalAlign: 'text-bottom',
|
|
12
13
|
padding: '0px'
|
|
@@ -9,6 +9,7 @@ var _styled = _interopRequireDefault(require("@emotion/styled"));
|
|
|
9
9
|
var _colors = require("@atlaskit/theme/colors");
|
|
10
10
|
// By default buttons will hide overflow and ellipsis content instead of wrapping.
|
|
11
11
|
// This basically turns the button back into inline content
|
|
12
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
12
13
|
var IconStyledButton = exports.IconStyledButton = _styled.default.span({
|
|
13
14
|
'&&&': {
|
|
14
15
|
textAlign: 'initial',
|
|
@@ -33,13 +34,19 @@ var IconStyledButton = exports.IconStyledButton = _styled.default.span({
|
|
|
33
34
|
}
|
|
34
35
|
}
|
|
35
36
|
});
|
|
37
|
+
|
|
38
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
36
39
|
var NoLinkAppearance = exports.NoLinkAppearance = _styled.default.span({
|
|
37
40
|
color: "var(--ds-text-subtlest, ".concat(_colors.N200, ")"),
|
|
38
41
|
marginLeft: "var(--ds-space-050, 4px)"
|
|
39
42
|
});
|
|
43
|
+
|
|
44
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
40
45
|
var LowercaseAppearance = exports.LowercaseAppearance = _styled.default.span({
|
|
41
46
|
textTransform: 'lowercase'
|
|
42
47
|
});
|
|
48
|
+
|
|
49
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
43
50
|
var LinkAppearance = exports.LinkAppearance = _styled.default.a({
|
|
44
51
|
color: "var(--ds-link, ".concat(_colors.B400, ")"),
|
|
45
52
|
'&:hover': {
|
|
@@ -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.
|
|
20
|
+
packageVersion: "26.69.1",
|
|
21
21
|
componentName: 'linkUrl'
|
|
22
22
|
};
|
|
23
23
|
var Link = (0, _click.withLinkClickedEvent)('a');
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = void 0;
|
|
9
|
+
var _react = _interopRequireDefault(require("react"));
|
|
10
|
+
var _reactIntlNext = require("react-intl-next");
|
|
11
|
+
var _new = _interopRequireDefault(require("@atlaskit/button/new"));
|
|
12
|
+
var _modalDialog = _interopRequireWildcard(require("@atlaskit/modal-dialog"));
|
|
13
|
+
var _messages = require("../../../messages");
|
|
14
|
+
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); }
|
|
15
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(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 && Object.prototype.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; }
|
|
16
|
+
var RelatedLinksModal = function RelatedLinksModal(_ref) {
|
|
17
|
+
var onClose = _ref.onClose,
|
|
18
|
+
showModal = _ref.showModal,
|
|
19
|
+
children = _ref.children;
|
|
20
|
+
return /*#__PURE__*/_react.default.createElement(_modalDialog.ModalTransition, null, showModal && /*#__PURE__*/_react.default.createElement(_modalDialog.default, {
|
|
21
|
+
onClose: onClose
|
|
22
|
+
}, /*#__PURE__*/_react.default.createElement(_modalDialog.ModalHeader, null, /*#__PURE__*/_react.default.createElement(_modalDialog.ModalTitle, null, /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, _messages.messages.related_links_modal_title_nonfinal))), /*#__PURE__*/_react.default.createElement(_modalDialog.ModalBody, null, children), /*#__PURE__*/_react.default.createElement(_modalDialog.ModalFooter, null, /*#__PURE__*/_react.default.createElement(_new.default, {
|
|
23
|
+
appearance: "primary",
|
|
24
|
+
onClick: onClose
|
|
25
|
+
}, /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, _messages.messages.close)))));
|
|
26
|
+
};
|
|
27
|
+
var _default = exports.default = RelatedLinksModal;
|