@atlaskit/smart-card 26.55.2 → 26.56.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 +13 -0
- package/dist/cjs/constants.js +1 -0
- package/dist/cjs/extractors/flexible/actions/extract-copy-link-action.js +21 -0
- package/dist/cjs/extractors/flexible/actions/index.js +2 -1
- package/dist/cjs/messages.js +10 -0
- package/dist/cjs/state/hooks/use-ai-summary/ai-summary-service/types.js +1 -1
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/BlockCard/views/flexible/FlexibleUnauthorisedView.js +5 -3
- package/dist/cjs/view/BlockCard/views/styled.js +5 -3
- package/dist/cjs/view/Card/types.js +1 -0
- package/dist/cjs/view/EmbedCard/views/unresolved-view/styled.js +29 -8
- package/dist/cjs/view/EmbedModal/components/embed-content/index.js +5 -4
- package/dist/cjs/view/FlexibleCard/components/actions/action/action-button/index.js +24 -7
- package/dist/cjs/view/FlexibleCard/components/actions/action/action-stack-item/index.js +3 -1
- package/dist/cjs/view/FlexibleCard/components/actions/action/index.js +12 -4
- package/dist/cjs/view/FlexibleCard/components/actions/copy-link-action/index.js +88 -0
- package/dist/cjs/view/FlexibleCard/components/actions/copy-link-action/types.js +5 -0
- package/dist/cjs/view/FlexibleCard/components/actions/index.js +8 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/ai-summary-block/ai-motion-wrapper/types.js +5 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/ai-summary-block/ai-state-indicator/ai-state-error.js +6 -2
- package/dist/cjs/view/FlexibleCard/components/blocks/ai-summary-block/feature-discovery/index.js +54 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/ai-summary-block/feature-discovery/styled.js +21 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/ai-summary-block/resolved/index.js +15 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/block/index.js +3 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/element-group/index.js +34 -7
- package/dist/cjs/view/FlexibleCard/components/blocks/metadata-block/index.js +3 -3
- package/dist/cjs/view/FlexibleCard/components/blocks/preview-block/resolved/index.js +13 -3
- package/dist/cjs/view/FlexibleCard/components/blocks/related-urls-block/index.js +3 -3
- package/dist/cjs/view/FlexibleCard/components/blocks/related-urls-block/resolved/related-url-list/index.js +3 -3
- package/dist/cjs/view/FlexibleCard/components/blocks/title-block/errored/index.js +16 -4
- package/dist/cjs/view/FlexibleCard/components/blocks/title-block/resolved/index.js +3 -3
- package/dist/cjs/view/FlexibleCard/components/blocks/utils.js +2 -0
- package/dist/cjs/view/FlexibleCard/components/common/loading-skeleton/index.js +27 -4
- package/dist/cjs/view/FlexibleCard/components/container/index.js +2 -0
- package/dist/cjs/view/FlexibleCard/components/container/layered-link/index.js +33 -3
- package/dist/cjs/view/FlexibleCard/components/elements/atlaskit-badge/index.js +5 -3
- package/dist/cjs/view/FlexibleCard/components/elements/avatar-group/index.js +10 -3
- package/dist/cjs/view/FlexibleCard/components/elements/badge/index.js +16 -4
- package/dist/cjs/view/FlexibleCard/components/elements/date-time/index.js +6 -3
- package/dist/cjs/view/FlexibleCard/components/elements/icon/index.js +23 -7
- package/dist/cjs/view/FlexibleCard/components/elements/link/index.js +38 -8
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/index.js +5 -3
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/styled.js +46 -6
- package/dist/cjs/view/FlexibleCard/components/elements/media/index.js +31 -3
- package/dist/cjs/view/FlexibleCard/components/elements/text/index.js +7 -3
- package/dist/cjs/view/FlexibleCard/components/utils.js +1 -0
- package/dist/cjs/view/HoverCard/components/views/forbidden/styled.js +16 -6
- package/dist/cjs/view/HoverCard/components/views/resolved/styled.js +10 -3
- package/dist/cjs/view/HoverCard/components/views/resolving/styled.js +23 -7
- package/dist/cjs/view/HoverCard/components/views/unauthorised/styled.js +14 -6
- package/dist/cjs/view/HoverCard/styled.js +4 -0
- package/dist/cjs/view/InlineCard/IconAndTitleLayout/styled.js +36 -10
- package/dist/cjs/view/InlineCard/ResolvingView/styled.js +4 -3
- package/dist/cjs/view/InlineCard/styled.js +37 -6
- package/dist/cjs/view/LinkUrl/LinkWarningModal/styled.js +4 -4
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/cjs/view/common/Icon.js +12 -4
- package/dist/cjs/view/common/ai-icon-loading/index.js +12 -3
- package/dist/es2019/constants.js +1 -0
- package/dist/es2019/extractors/flexible/actions/extract-copy-link-action.js +15 -0
- package/dist/es2019/extractors/flexible/actions/index.js +2 -0
- package/dist/es2019/messages.js +10 -0
- package/dist/es2019/state/hooks/use-ai-summary/ai-summary-service/types.js +1 -1
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/BlockCard/views/flexible/FlexibleUnauthorisedView.js +5 -5
- package/dist/es2019/view/BlockCard/views/styled.js +4 -4
- package/dist/es2019/view/Card/types.js +1 -0
- package/dist/es2019/view/EmbedCard/views/unresolved-view/styled.js +29 -29
- package/dist/es2019/view/EmbedModal/components/embed-content/index.js +4 -4
- package/dist/es2019/view/FlexibleCard/components/actions/action/action-button/index.js +23 -26
- package/dist/es2019/view/FlexibleCard/components/actions/action/action-stack-item/index.js +3 -1
- package/dist/es2019/view/FlexibleCard/components/actions/action/index.js +12 -4
- package/dist/es2019/view/FlexibleCard/components/actions/copy-link-action/index.js +53 -0
- package/dist/es2019/view/FlexibleCard/components/actions/copy-link-action/types.js +1 -0
- package/dist/es2019/view/FlexibleCard/components/actions/index.js +2 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/ai-summary-block/ai-motion-wrapper/types.js +1 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/ai-summary-block/ai-state-indicator/ai-state-error.js +6 -2
- package/dist/es2019/view/FlexibleCard/components/blocks/ai-summary-block/feature-discovery/index.js +44 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/ai-summary-block/feature-discovery/styled.js +15 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/ai-summary-block/resolved/index.js +15 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/block/index.js +3 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/element-group/index.js +29 -34
- package/dist/es2019/view/FlexibleCard/components/blocks/metadata-block/index.js +3 -4
- package/dist/es2019/view/FlexibleCard/components/blocks/preview-block/resolved/index.js +11 -13
- package/dist/es2019/view/FlexibleCard/components/blocks/related-urls-block/index.js +3 -3
- package/dist/es2019/view/FlexibleCard/components/blocks/related-urls-block/resolved/related-url-list/index.js +3 -3
- package/dist/es2019/view/FlexibleCard/components/blocks/title-block/errored/index.js +14 -16
- package/dist/es2019/view/FlexibleCard/components/blocks/title-block/resolved/index.js +3 -3
- package/dist/es2019/view/FlexibleCard/components/blocks/utils.js +2 -0
- package/dist/es2019/view/FlexibleCard/components/common/loading-skeleton/index.js +25 -26
- package/dist/es2019/view/FlexibleCard/components/container/index.js +2 -0
- package/dist/es2019/view/FlexibleCard/components/container/layered-link/index.js +16 -18
- package/dist/es2019/view/FlexibleCard/components/elements/atlaskit-badge/index.js +4 -4
- package/dist/es2019/view/FlexibleCard/components/elements/avatar-group/index.js +8 -7
- package/dist/es2019/view/FlexibleCard/components/elements/badge/index.js +14 -12
- package/dist/es2019/view/FlexibleCard/components/elements/date-time/index.js +5 -6
- package/dist/es2019/view/FlexibleCard/components/elements/icon/index.js +20 -23
- package/dist/es2019/view/FlexibleCard/components/elements/link/index.js +33 -40
- package/dist/es2019/view/FlexibleCard/components/elements/lozenge/index.js +4 -4
- package/dist/es2019/view/FlexibleCard/components/elements/lozenge/lozenge-action/styled.js +42 -53
- package/dist/es2019/view/FlexibleCard/components/elements/media/index.js +28 -32
- package/dist/es2019/view/FlexibleCard/components/elements/text/index.js +6 -7
- package/dist/es2019/view/FlexibleCard/components/utils.js +1 -0
- package/dist/es2019/view/HoverCard/components/views/forbidden/styled.js +16 -16
- package/dist/es2019/view/HoverCard/components/views/resolved/styled.js +9 -7
- package/dist/es2019/view/HoverCard/components/views/resolving/styled.js +22 -22
- package/dist/es2019/view/HoverCard/components/views/unauthorised/styled.js +13 -13
- package/dist/es2019/view/HoverCard/styled.js +4 -0
- package/dist/es2019/view/InlineCard/IconAndTitleLayout/styled.js +36 -40
- package/dist/es2019/view/InlineCard/ResolvingView/styled.js +4 -4
- package/dist/es2019/view/InlineCard/styled.js +34 -35
- package/dist/es2019/view/LinkUrl/LinkWarningModal/styled.js +4 -4
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/es2019/view/common/Icon.js +11 -11
- package/dist/es2019/view/common/ai-icon-loading/index.js +10 -14
- package/dist/esm/constants.js +1 -0
- package/dist/esm/extractors/flexible/actions/extract-copy-link-action.js +15 -0
- package/dist/esm/extractors/flexible/actions/index.js +2 -1
- package/dist/esm/messages.js +10 -0
- package/dist/esm/state/hooks/use-ai-summary/ai-summary-service/types.js +1 -1
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/BlockCard/views/flexible/FlexibleUnauthorisedView.js +5 -3
- package/dist/esm/view/BlockCard/views/styled.js +5 -3
- package/dist/esm/view/Card/types.js +1 -0
- package/dist/esm/view/EmbedCard/views/unresolved-view/styled.js +29 -7
- package/dist/esm/view/EmbedModal/components/embed-content/index.js +4 -3
- package/dist/esm/view/FlexibleCard/components/actions/action/action-button/index.js +22 -6
- package/dist/esm/view/FlexibleCard/components/actions/action/action-stack-item/index.js +3 -1
- package/dist/esm/view/FlexibleCard/components/actions/action/index.js +12 -4
- package/dist/esm/view/FlexibleCard/components/actions/copy-link-action/index.js +78 -0
- package/dist/esm/view/FlexibleCard/components/actions/copy-link-action/types.js +1 -0
- package/dist/esm/view/FlexibleCard/components/actions/index.js +2 -1
- package/dist/esm/view/FlexibleCard/components/blocks/ai-summary-block/ai-motion-wrapper/types.js +1 -0
- package/dist/esm/view/FlexibleCard/components/blocks/ai-summary-block/ai-state-indicator/ai-state-error.js +6 -2
- package/dist/esm/view/FlexibleCard/components/blocks/ai-summary-block/feature-discovery/index.js +47 -0
- package/dist/esm/view/FlexibleCard/components/blocks/ai-summary-block/feature-discovery/styled.js +15 -0
- package/dist/esm/view/FlexibleCard/components/blocks/ai-summary-block/resolved/index.js +15 -1
- package/dist/esm/view/FlexibleCard/components/blocks/block/index.js +3 -1
- package/dist/esm/view/FlexibleCard/components/blocks/element-group/index.js +34 -7
- package/dist/esm/view/FlexibleCard/components/blocks/metadata-block/index.js +3 -3
- package/dist/esm/view/FlexibleCard/components/blocks/preview-block/resolved/index.js +13 -3
- package/dist/esm/view/FlexibleCard/components/blocks/related-urls-block/index.js +3 -3
- package/dist/esm/view/FlexibleCard/components/blocks/related-urls-block/resolved/related-url-list/index.js +3 -3
- package/dist/esm/view/FlexibleCard/components/blocks/title-block/errored/index.js +16 -4
- package/dist/esm/view/FlexibleCard/components/blocks/title-block/resolved/index.js +3 -3
- package/dist/esm/view/FlexibleCard/components/blocks/utils.js +2 -0
- package/dist/esm/view/FlexibleCard/components/common/loading-skeleton/index.js +26 -4
- package/dist/esm/view/FlexibleCard/components/container/index.js +2 -0
- package/dist/esm/view/FlexibleCard/components/container/layered-link/index.js +32 -3
- package/dist/esm/view/FlexibleCard/components/elements/atlaskit-badge/index.js +4 -3
- package/dist/esm/view/FlexibleCard/components/elements/avatar-group/index.js +11 -3
- package/dist/esm/view/FlexibleCard/components/elements/badge/index.js +16 -4
- package/dist/esm/view/FlexibleCard/components/elements/date-time/index.js +5 -3
- package/dist/esm/view/FlexibleCard/components/elements/icon/index.js +21 -6
- package/dist/esm/view/FlexibleCard/components/elements/link/index.js +36 -7
- package/dist/esm/view/FlexibleCard/components/elements/lozenge/index.js +4 -3
- package/dist/esm/view/FlexibleCard/components/elements/lozenge/lozenge-action/styled.js +46 -5
- package/dist/esm/view/FlexibleCard/components/elements/media/index.js +30 -3
- package/dist/esm/view/FlexibleCard/components/elements/text/index.js +6 -3
- package/dist/esm/view/FlexibleCard/components/utils.js +1 -0
- package/dist/esm/view/HoverCard/components/views/forbidden/styled.js +16 -5
- package/dist/esm/view/HoverCard/components/views/resolved/styled.js +10 -3
- package/dist/esm/view/HoverCard/components/views/resolving/styled.js +23 -6
- package/dist/esm/view/HoverCard/components/views/unauthorised/styled.js +14 -5
- package/dist/esm/view/HoverCard/styled.js +4 -0
- package/dist/esm/view/InlineCard/IconAndTitleLayout/styled.js +36 -10
- package/dist/esm/view/InlineCard/ResolvingView/styled.js +4 -3
- package/dist/esm/view/InlineCard/styled.js +37 -6
- package/dist/esm/view/LinkUrl/LinkWarningModal/styled.js +4 -3
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/esm/view/common/Icon.js +11 -4
- package/dist/esm/view/common/ai-icon-loading/index.js +11 -3
- package/dist/types/constants.d.ts +1 -0
- package/dist/types/extractors/flexible/actions/extract-copy-link-action.d.ts +4 -0
- package/dist/types/messages.d.ts +1 -1
- package/dist/types/state/flexible-ui-context/types.d.ts +4 -0
- package/dist/types/state/hooks/use-ai-summary/ai-summary-service/types.d.ts +1 -1
- package/dist/types/view/Card/types.d.ts +2 -1
- package/dist/types/view/FlexibleCard/components/actions/action/action-button/types.d.ts +2 -0
- package/dist/types/view/FlexibleCard/components/actions/action/action-stack-item/types.d.ts +2 -0
- package/dist/types/view/FlexibleCard/components/actions/action/types.d.ts +19 -0
- package/dist/types/view/FlexibleCard/components/actions/copy-link-action/index.d.ts +4 -0
- package/dist/types/view/FlexibleCard/components/actions/copy-link-action/types.d.ts +2 -0
- package/dist/types/view/FlexibleCard/components/actions/index.d.ts +1 -0
- package/dist/types/view/FlexibleCard/components/blocks/ai-summary-block/ai-motion-wrapper/index.d.ts +2 -2
- package/dist/types/view/FlexibleCard/components/blocks/ai-summary-block/ai-motion-wrapper/types.d.ts +3 -2
- package/dist/types/view/FlexibleCard/components/blocks/ai-summary-block/feature-discovery/index.d.ts +12 -0
- package/dist/types/view/FlexibleCard/components/blocks/ai-summary-block/feature-discovery/styled.d.ts +1 -0
- package/dist/types/view/FlexibleCard/components/blocks/ai-summary-block/resolved/index.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/blocks/types.d.ts +3 -1
- package/dist/types/view/FlexibleCard/components/elements/avatar-group/index.d.ts +0 -1
- package/dist/types-ts4.5/constants.d.ts +1 -0
- package/dist/types-ts4.5/extractors/flexible/actions/extract-copy-link-action.d.ts +4 -0
- package/dist/types-ts4.5/messages.d.ts +1 -1
- package/dist/types-ts4.5/state/flexible-ui-context/types.d.ts +4 -0
- package/dist/types-ts4.5/state/hooks/use-ai-summary/ai-summary-service/types.d.ts +2 -1
- package/dist/types-ts4.5/view/Card/types.d.ts +2 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/action/action-button/types.d.ts +2 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/action/action-stack-item/types.d.ts +2 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/action/types.d.ts +19 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/copy-link-action/index.d.ts +4 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/copy-link-action/types.d.ts +2 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/index.d.ts +1 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/ai-summary-block/ai-motion-wrapper/index.d.ts +2 -2
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/ai-summary-block/ai-motion-wrapper/types.d.ts +3 -2
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/ai-summary-block/feature-discovery/index.d.ts +12 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/ai-summary-block/feature-discovery/styled.d.ts +1 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/ai-summary-block/resolved/index.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/types.d.ts +3 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/avatar-group/index.d.ts +0 -1
- package/package.json +2 -1
|
@@ -12,40 +12,36 @@ import ImageIcon from '../../common/image-icon';
|
|
|
12
12
|
* [object-position] Center alignment of the selected replaced element's
|
|
13
13
|
* contents within the element's box.
|
|
14
14
|
*/
|
|
15
|
-
const styles = css
|
|
16
|
-
|
|
17
|
-
display: flex
|
|
18
|
-
width: 100
|
|
19
|
-
height: fit-content
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
height: 0
|
|
25
|
-
position: relative
|
|
26
|
-
overflow: hidden
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
left: 50%;
|
|
43
|
-
top: 50%;
|
|
44
|
-
width: auto;
|
|
45
|
-
height: auto;
|
|
15
|
+
const styles = css({
|
|
16
|
+
aspectRatio: '16 / 9',
|
|
17
|
+
display: 'flex',
|
|
18
|
+
width: '100%',
|
|
19
|
+
height: 'fit-content',
|
|
20
|
+
'@supports not (aspect-ratio: auto)': {
|
|
21
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space -- needs manual remediation
|
|
22
|
+
paddingTop: '56.25%',
|
|
23
|
+
// 16:9 ratio (9 / 16 = 0.5625)
|
|
24
|
+
height: 0,
|
|
25
|
+
position: 'relative',
|
|
26
|
+
overflow: 'hidden'
|
|
27
|
+
},
|
|
28
|
+
'> img, > span': {
|
|
29
|
+
minHeight: '100%',
|
|
30
|
+
minWidth: '100%',
|
|
31
|
+
maxHeight: '100%',
|
|
32
|
+
maxWidth: '100%',
|
|
33
|
+
objectFit: 'cover',
|
|
34
|
+
objectPosition: 'center center',
|
|
35
|
+
'@supports not (aspect-ratio: auto)': {
|
|
36
|
+
position: 'absolute',
|
|
37
|
+
transform: 'translate(-50%, -50%)',
|
|
38
|
+
left: '50%',
|
|
39
|
+
top: '50%',
|
|
40
|
+
width: 'auto',
|
|
41
|
+
height: 'auto'
|
|
46
42
|
}
|
|
47
43
|
}
|
|
48
|
-
|
|
44
|
+
});
|
|
49
45
|
|
|
50
46
|
/**
|
|
51
47
|
* A base element that displays a Media.
|
|
@@ -2,13 +2,12 @@
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { css, jsx } from '@emotion/react';
|
|
4
4
|
import { getFormattedMessage, getTruncateStyles } from '../../utils';
|
|
5
|
-
const getStyles = maxLines => css
|
|
6
|
-
color:
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
`;
|
|
5
|
+
const getStyles = maxLines => css({
|
|
6
|
+
color: "var(--ds-text-subtlest, #626F86)",
|
|
7
|
+
fontSize: '0.75rem',
|
|
8
|
+
lineHeight: '1rem',
|
|
9
|
+
whiteSpace: 'normal'
|
|
10
|
+
}, getTruncateStyles(maxLines));
|
|
12
11
|
|
|
13
12
|
/**
|
|
14
13
|
* A base element that displays some Text.
|
|
@@ -40,6 +40,7 @@ const getIconDimensionStyles = value => css({
|
|
|
40
40
|
});
|
|
41
41
|
export const getIconSizeStyles = width => {
|
|
42
42
|
const sizeStyles = getIconDimensionStyles(width);
|
|
43
|
+
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- needs manual remediation
|
|
43
44
|
return css`
|
|
44
45
|
flex: 0 0 auto;
|
|
45
46
|
${sizeStyles}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { css } from '@emotion/react';
|
|
2
2
|
const titleFontWeight = '600';
|
|
3
|
-
export const titleBlockStyles = css
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export const mainTextStyles = css
|
|
9
|
-
display: inline
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
export const connectButtonStyles = css
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
3
|
+
export const titleBlockStyles = css({
|
|
4
|
+
justifyContent: 'center',
|
|
5
|
+
fontWeight: titleFontWeight,
|
|
6
|
+
marginTop: "var(--ds-space-100, 8px)"
|
|
7
|
+
});
|
|
8
|
+
export const mainTextStyles = css({
|
|
9
|
+
display: 'inline',
|
|
10
|
+
justifyContent: 'center',
|
|
11
|
+
marginTop: "var(--ds-space-0, 0px)",
|
|
12
|
+
fontSize: '0.75rem',
|
|
13
|
+
textAlign: 'center'
|
|
14
|
+
});
|
|
15
|
+
export const connectButtonStyles = css({
|
|
16
|
+
justifyContent: 'center',
|
|
17
|
+
marginTop: "var(--ds-space-100, 8px)"
|
|
18
|
+
});
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { css } from '@emotion/react';
|
|
2
2
|
import { separatorCss } from '../../../styled';
|
|
3
3
|
const elementGap = '0.5rem';
|
|
4
|
+
|
|
5
|
+
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- needs manual remediation
|
|
4
6
|
export const metadataBlockCss = css`
|
|
5
7
|
gap: 0px;
|
|
6
8
|
/* primary element group */
|
|
@@ -28,10 +30,10 @@ export const metadataBlockCss = css`
|
|
|
28
30
|
line-height: 1rem;
|
|
29
31
|
}
|
|
30
32
|
`;
|
|
31
|
-
export const footerBlockCss = css
|
|
32
|
-
height: 1.5rem
|
|
33
|
-
|
|
34
|
-
export const hiddenSnippetStyles = css
|
|
35
|
-
visibility: hidden
|
|
36
|
-
position: absolute
|
|
37
|
-
|
|
33
|
+
export const footerBlockCss = css({
|
|
34
|
+
height: '1.5rem'
|
|
35
|
+
});
|
|
36
|
+
export const hiddenSnippetStyles = css({
|
|
37
|
+
visibility: 'hidden',
|
|
38
|
+
position: 'absolute'
|
|
39
|
+
});
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { css } from '@emotion/react';
|
|
2
|
-
export const loadingViewContainer = css
|
|
3
|
-
display: flex
|
|
4
|
-
|
|
5
|
-
padding: 1rem
|
|
6
|
-
|
|
7
|
-
export const skeletonContainer = css
|
|
8
|
-
display: flex
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
2
|
+
export const loadingViewContainer = css({
|
|
3
|
+
display: 'flex',
|
|
4
|
+
flexDirection: 'column',
|
|
5
|
+
padding: "var(--ds-space-200, 1rem)"
|
|
6
|
+
});
|
|
7
|
+
export const skeletonContainer = css({
|
|
8
|
+
display: 'flex',
|
|
9
|
+
flexDirection: 'column',
|
|
10
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space -- needs manual remediation
|
|
11
|
+
gap: '0.625rem',
|
|
12
|
+
alignItems: 'center'
|
|
13
|
+
});
|
|
13
14
|
export const getTitleStyles = height => {
|
|
14
|
-
return css
|
|
15
|
-
flex: 1 0 auto
|
|
16
|
-
height:
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
width: 100%;
|
|
15
|
+
return css({
|
|
16
|
+
flex: '1 0 auto',
|
|
17
|
+
height: `${height}rem`,
|
|
18
|
+
span: {
|
|
19
|
+
width: '100%'
|
|
20
20
|
}
|
|
21
|
-
|
|
21
|
+
});
|
|
22
22
|
};
|
|
23
|
-
export const titleBlockStyles = css
|
|
24
|
-
width: 100
|
|
25
|
-
gap: 0.5rem
|
|
26
|
-
|
|
23
|
+
export const titleBlockStyles = css({
|
|
24
|
+
width: '100%',
|
|
25
|
+
gap: "var(--ds-space-100, 0.5rem)"
|
|
26
|
+
});
|
|
@@ -2,17 +2,17 @@ import { css } from '@emotion/react';
|
|
|
2
2
|
const blockGap = '0.5rem';
|
|
3
3
|
const iconGap = '0.5rem';
|
|
4
4
|
const titleFontWeight = '500';
|
|
5
|
-
export const connectButtonStyles = css
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export const titleBlockStyles = css
|
|
10
|
-
gap:
|
|
11
|
-
a {
|
|
12
|
-
|
|
5
|
+
export const connectButtonStyles = css({
|
|
6
|
+
justifyContent: 'flex-end',
|
|
7
|
+
marginTop: blockGap
|
|
8
|
+
});
|
|
9
|
+
export const titleBlockStyles = css({
|
|
10
|
+
gap: `${blockGap} ${iconGap}`,
|
|
11
|
+
a: {
|
|
12
|
+
fontWeight: titleFontWeight
|
|
13
13
|
}
|
|
14
|
-
|
|
15
|
-
export const mainTextStyles = css
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
14
|
+
});
|
|
15
|
+
export const mainTextStyles = css({
|
|
16
|
+
marginTop: blockGap,
|
|
17
|
+
fontSize: '0.75rem'
|
|
18
|
+
});
|
|
@@ -24,6 +24,8 @@ export const separatorCss = css({
|
|
|
24
24
|
marginRight: elementGap
|
|
25
25
|
}
|
|
26
26
|
});
|
|
27
|
+
|
|
28
|
+
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- needs manual remediation
|
|
27
29
|
export const HoverCardContainer = css`
|
|
28
30
|
background: none;
|
|
29
31
|
border-width: 0;
|
|
@@ -34,6 +36,8 @@ export const HoverCardContainer = css`
|
|
|
34
36
|
display: none;
|
|
35
37
|
}
|
|
36
38
|
`;
|
|
39
|
+
|
|
40
|
+
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- needs manual remediation
|
|
37
41
|
export const titleBlockCss = css`
|
|
38
42
|
gap: ${blockGap};
|
|
39
43
|
|
|
@@ -39,59 +39,55 @@ export const IconOverrides = `
|
|
|
39
39
|
// - @atlaskit/icon-object: for object icons, e.g. repository, branch, etc.
|
|
40
40
|
// NB: the first set of overrides style icons imported from @atlaskit/icon-object correctly.
|
|
41
41
|
// NB: the second set of overrides style icons imported from @atlaskit/icon correctly.
|
|
42
|
-
export const IconWrapper = styled.span
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
${IconObjectOverrides}
|
|
46
|
-
`;
|
|
42
|
+
export const IconWrapper = styled.span({
|
|
43
|
+
userSelect: 'none'
|
|
44
|
+
}, IconOverrides, IconObjectOverrides);
|
|
47
45
|
|
|
48
46
|
// Wraps all emoji in Inline Links similar to icon
|
|
49
|
-
export const EmojiWrapper = styled.span
|
|
50
|
-
display: inline-block
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
${IconObjectOverrides}
|
|
55
|
-
`;
|
|
47
|
+
export const EmojiWrapper = styled.span({
|
|
48
|
+
display: 'inline-block',
|
|
49
|
+
marginRight: "var(--ds-space-025, 2px)",
|
|
50
|
+
userSelect: 'none'
|
|
51
|
+
}, IconOverrides, IconObjectOverrides);
|
|
56
52
|
|
|
57
53
|
// The main 'wrapping' element, title of the content.
|
|
58
54
|
// NB: `white-space` adds little whitespace before wrapping.
|
|
59
55
|
// NB: `word-break` line breaks as soon as an overflow takes place.
|
|
60
|
-
export const IconTitleWrapper = styled.span
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
padding:
|
|
65
|
-
|
|
56
|
+
export const IconTitleWrapper = styled.span({
|
|
57
|
+
whiteSpace: 'pre-wrap',
|
|
58
|
+
wordBreak: 'break-all',
|
|
59
|
+
boxDecorationBreak: 'clone',
|
|
60
|
+
padding: `${"var(--ds-space-025, 2px)"} ${"var(--ds-space-050, 4px)"}`
|
|
61
|
+
});
|
|
66
62
|
|
|
67
63
|
// TODO: Replace overrides with proper AtlasKit solution.
|
|
68
|
-
export const LozengeWrapper = styled.span
|
|
69
|
-
display: inline-block
|
|
70
|
-
|
|
71
|
-
margin: 0 ${"var(--ds-space-050, 4px)"} 0 ${"var(--ds-space-025, 2px)"}
|
|
72
|
-
|
|
73
|
-
export const RightIconPositionWrapper = styled.span
|
|
74
|
-
|
|
75
|
-
position: relative
|
|
76
|
-
display: inline-block
|
|
77
|
-
|
|
64
|
+
export const LozengeWrapper = styled.span({
|
|
65
|
+
display: 'inline-block',
|
|
66
|
+
verticalAlign: '1px',
|
|
67
|
+
margin: `0 ${"var(--ds-space-050, 4px)"} 0 ${"var(--ds-space-025, 2px)"}`
|
|
68
|
+
});
|
|
69
|
+
export const RightIconPositionWrapper = styled.span({
|
|
70
|
+
marginLeft: "var(--ds-space-025, 2px)",
|
|
71
|
+
position: 'relative',
|
|
72
|
+
display: 'inline-block'
|
|
73
|
+
});
|
|
78
74
|
|
|
79
75
|
// The following components are used to absolutely position icons in the vertical center.
|
|
80
76
|
// - IconPositionWrapper: the `relative` parent which has no height in itself.
|
|
81
77
|
// - IconEmptyWrapper: the child which forces `IconPositionWrapper` to have a height.
|
|
82
|
-
export const IconPositionWrapper = styled.span
|
|
83
|
-
|
|
84
|
-
position: relative
|
|
85
|
-
display: inline-block
|
|
86
|
-
|
|
87
|
-
export const IconEmptyWrapper = styled.span
|
|
88
|
-
width: 14px
|
|
89
|
-
height: 100
|
|
90
|
-
display: inline-block
|
|
91
|
-
opacity: 0
|
|
92
|
-
|
|
78
|
+
export const IconPositionWrapper = styled.span({
|
|
79
|
+
marginRight: "var(--ds-space-050, 4px)",
|
|
80
|
+
position: 'relative',
|
|
81
|
+
display: 'inline-block'
|
|
82
|
+
});
|
|
83
|
+
export const IconEmptyWrapper = styled.span({
|
|
84
|
+
width: '14px',
|
|
85
|
+
height: '100%',
|
|
86
|
+
display: 'inline-block',
|
|
87
|
+
opacity: 0
|
|
88
|
+
});
|
|
93
89
|
|
|
94
90
|
// With emotion it's not possible to use reference to `TitleWrapper` as part of a selector,
|
|
95
91
|
// To achieve same result we use classname instead.
|
|
96
92
|
export const TitleWrapperClassName = 'smart-link-title-wrapper';
|
|
97
|
-
export const TitleWrapper = styled.span
|
|
93
|
+
export const TitleWrapper = styled.span({});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import styled from '@emotion/styled';
|
|
2
2
|
import { IconTitleWrapper } from '../IconAndTitleLayout/styled';
|
|
3
|
-
export const SpinnerWrapper = styled(IconTitleWrapper)
|
|
4
|
-
|
|
5
|
-
padding: 0px
|
|
6
|
-
|
|
3
|
+
export const SpinnerWrapper = styled(IconTitleWrapper)({
|
|
4
|
+
verticalAlign: 'text-bottom',
|
|
5
|
+
padding: '0px'
|
|
6
|
+
});
|
|
@@ -2,41 +2,40 @@ import styled from '@emotion/styled';
|
|
|
2
2
|
import { B400, N200 } from '@atlaskit/theme/colors';
|
|
3
3
|
// By default buttons will hide overflow and ellipsis content instead of wrapping.
|
|
4
4
|
// This basically turns the button back into inline content
|
|
5
|
-
export const IconStyledButton = styled.span
|
|
6
|
-
&&& {
|
|
7
|
-
|
|
8
|
-
display: inline
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
padding:
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
> span {
|
|
18
|
-
display: inline
|
|
19
|
-
overflow: initial
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
> span {
|
|
23
|
-
overflow: initial
|
|
24
|
-
|
|
25
|
-
|
|
5
|
+
export const IconStyledButton = styled.span({
|
|
6
|
+
'&&&': {
|
|
7
|
+
textAlign: 'initial',
|
|
8
|
+
display: 'inline',
|
|
9
|
+
verticalAlign: 'baseline',
|
|
10
|
+
borderRadius: "var(--ds-border-radius-100, 4px)",
|
|
11
|
+
borderTopLeftRadius: '0px',
|
|
12
|
+
borderBottomLeftRadius: '0px',
|
|
13
|
+
padding: `${"var(--ds-space-025, 2px)"} ${"var(--ds-space-075, 6px)"}`,
|
|
14
|
+
backgroundClip: 'padding-box',
|
|
15
|
+
boxDecorationBreak: 'clone'
|
|
16
|
+
},
|
|
17
|
+
'> span': {
|
|
18
|
+
display: 'inline',
|
|
19
|
+
overflow: 'initial',
|
|
20
|
+
textOverflow: 'initial',
|
|
21
|
+
whiteSpace: 'initial',
|
|
22
|
+
'> span': {
|
|
23
|
+
overflow: 'initial',
|
|
24
|
+
textOverflow: 'initial',
|
|
25
|
+
whiteSpace: 'initial'
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
|
-
|
|
29
|
-
export const NoLinkAppearance = styled.span
|
|
30
|
-
color:
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
export const LowercaseAppearance = styled.span
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
export const LinkAppearance = styled.a
|
|
37
|
-
color:
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
text-decoration: none;
|
|
28
|
+
});
|
|
29
|
+
export const NoLinkAppearance = styled.span({
|
|
30
|
+
color: `var(--ds-text-subtlest, ${N200})`,
|
|
31
|
+
marginLeft: "var(--ds-space-050, 4px)"
|
|
32
|
+
});
|
|
33
|
+
export const LowercaseAppearance = styled.span({
|
|
34
|
+
textTransform: 'lowercase'
|
|
35
|
+
});
|
|
36
|
+
export const LinkAppearance = styled.a({
|
|
37
|
+
color: `var(--ds-link, ${B400})`,
|
|
38
|
+
'&:hover': {
|
|
39
|
+
textDecoration: 'none'
|
|
41
40
|
}
|
|
42
|
-
|
|
41
|
+
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { css } from '@emotion/react';
|
|
2
|
-
export const breakWordsCss = css
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
export const breakWordsCss = css({
|
|
3
|
+
whiteSpace: 'pre-line',
|
|
4
|
+
wordBreak: 'break-all'
|
|
5
|
+
});
|
|
@@ -7,7 +7,7 @@ import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-m
|
|
|
7
7
|
import LinkWarningModal from './LinkWarningModal';
|
|
8
8
|
const PACKAGE_DATA = {
|
|
9
9
|
packageName: "@atlaskit/smart-card",
|
|
10
|
-
packageVersion: "26.
|
|
10
|
+
packageVersion: "26.56.0",
|
|
11
11
|
componentName: 'linkUrl'
|
|
12
12
|
};
|
|
13
13
|
const Link = withLinkClickedEvent('a');
|
|
@@ -15,22 +15,22 @@ const getImageStyles = isFlexibleUi => {
|
|
|
15
15
|
if (isFlexibleUi) {
|
|
16
16
|
return;
|
|
17
17
|
}
|
|
18
|
-
return css
|
|
19
|
-
height:
|
|
20
|
-
width:
|
|
21
|
-
|
|
18
|
+
return css({
|
|
19
|
+
height: gs(2),
|
|
20
|
+
width: gs(2)
|
|
21
|
+
});
|
|
22
22
|
};
|
|
23
23
|
const getSpanStyles = isFlexibleUi => {
|
|
24
24
|
if (isFlexibleUi) {
|
|
25
25
|
return;
|
|
26
26
|
}
|
|
27
|
-
return css
|
|
28
|
-
height:
|
|
29
|
-
width:
|
|
30
|
-
display: flex
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
27
|
+
return css({
|
|
28
|
+
height: gs(2.5),
|
|
29
|
+
width: gs(2),
|
|
30
|
+
display: 'flex',
|
|
31
|
+
alignItems: 'center',
|
|
32
|
+
justifyContent: 'center'
|
|
33
|
+
});
|
|
34
34
|
};
|
|
35
35
|
export const Icon = ({
|
|
36
36
|
url,
|
|
@@ -9,21 +9,17 @@ import { aiThemeTokens } from '../ai-prism/constants';
|
|
|
9
9
|
* with modifications
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
|
-
const bounce = keyframes
|
|
13
|
-
from {
|
|
14
|
-
transform: translateY(0)
|
|
12
|
+
const bounce = keyframes({
|
|
13
|
+
from: {
|
|
14
|
+
transform: 'translateY(0)'
|
|
15
|
+
},
|
|
16
|
+
'16.67%': {
|
|
17
|
+
transform: 'translateY(-2px)'
|
|
18
|
+
},
|
|
19
|
+
'33.33%': {
|
|
20
|
+
transform: 'translateY(0px)'
|
|
15
21
|
}
|
|
16
|
-
|
|
17
|
-
// 200ms of 1200ms = 16.67%
|
|
18
|
-
16.67% {
|
|
19
|
-
transform: translateY(-2px);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
// 400ms of 1200ms = 33.33%
|
|
23
|
-
33.33% {
|
|
24
|
-
transform: translateY(0px);
|
|
25
|
-
}
|
|
26
|
-
`;
|
|
22
|
+
});
|
|
27
23
|
const BASE_DELAY = 400;
|
|
28
24
|
const QUEUE_DELAY = 200;
|
|
29
25
|
const animationStyles = css({
|
package/dist/esm/constants.js
CHANGED
|
@@ -145,6 +145,7 @@ export var ElementName = /*#__PURE__*/function (ElementName) {
|
|
|
145
145
|
* Flexible UI action (button)
|
|
146
146
|
*/
|
|
147
147
|
export var ActionName = /*#__PURE__*/function (ActionName) {
|
|
148
|
+
ActionName["CopyLinkAction"] = "CopyLinkAction";
|
|
148
149
|
ActionName["DeleteAction"] = "DeleteAction";
|
|
149
150
|
ActionName["EditAction"] = "EditAction";
|
|
150
151
|
ActionName["FollowAction"] = "FollowAction";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { extractLink } from '@atlaskit/link-extractors';
|
|
2
|
+
import { CardAction } from '../../../view/Card/types';
|
|
3
|
+
import { canShowAction } from '../../../utils/actions/can-show-action';
|
|
4
|
+
export var extractCopyLinkAction = function extractCopyLinkAction(data, actionOptions) {
|
|
5
|
+
if (!canShowAction(CardAction.CopyLinkAction, actionOptions)) {
|
|
6
|
+
return;
|
|
7
|
+
}
|
|
8
|
+
var url = extractLink(data);
|
|
9
|
+
if (!url) {
|
|
10
|
+
return;
|
|
11
|
+
}
|
|
12
|
+
return {
|
|
13
|
+
url: url
|
|
14
|
+
};
|
|
15
|
+
};
|
|
@@ -3,9 +3,10 @@ import { ActionName } from '../../../constants';
|
|
|
3
3
|
import { extractDownloadAction } from './extract-download-action';
|
|
4
4
|
import { extractPreviewAction } from './extract-preview-action';
|
|
5
5
|
import extractFollowAction from './extract-follow-action';
|
|
6
|
+
import { extractCopyLinkAction } from './extract-copy-link-action';
|
|
6
7
|
var extractActions = function extractActions(response, data, actionOptions, id) {
|
|
7
8
|
var _action;
|
|
8
|
-
var action = (_action = {}, _defineProperty(_action, ActionName.DownloadAction, extractDownloadAction(data, actionOptions)), _defineProperty(_action, ActionName.FollowAction, extractFollowAction(response, actionOptions, id)), _defineProperty(_action, ActionName.PreviewAction, extractPreviewAction(response, actionOptions)), _action);
|
|
9
|
+
var action = (_action = {}, _defineProperty(_action, ActionName.CopyLinkAction, extractCopyLinkAction(data, actionOptions)), _defineProperty(_action, ActionName.DownloadAction, extractDownloadAction(data, actionOptions)), _defineProperty(_action, ActionName.FollowAction, extractFollowAction(response, actionOptions, id)), _defineProperty(_action, ActionName.PreviewAction, extractPreviewAction(response, actionOptions)), _action);
|
|
9
10
|
return Object.values(action).some(function (value) {
|
|
10
11
|
return Boolean(value);
|
|
11
12
|
}) ? action : undefined;
|
package/dist/esm/messages.js
CHANGED
|
@@ -45,6 +45,11 @@ export var messages = defineMessages({
|
|
|
45
45
|
defaultMessage: "We cannot show the results of this summary as it goes against <a>Atlassian's Acceptable Use Policy</a>.",
|
|
46
46
|
description: 'Shown when AI summary is summarising the link resource content and the content violates atlassians acceptable use policy.'
|
|
47
47
|
},
|
|
48
|
+
ai_summary_error_hipaa_content_detected: {
|
|
49
|
+
id: 'fabric.linking.ai_summary_error_hipaa_content_detected',
|
|
50
|
+
defaultMessage: 'Atlassian Intelligence was unable to process your request as your content contains links to HIPAA restricted content.',
|
|
51
|
+
description: 'Shown when the AI summary is summarising the link resource content and the content contains HIPAA restricted content.'
|
|
52
|
+
},
|
|
48
53
|
assigned_to: {
|
|
49
54
|
id: 'fabric.linking.assigned_to',
|
|
50
55
|
defaultMessage: 'Assigned to {context}',
|
|
@@ -145,6 +150,11 @@ export var messages = defineMessages({
|
|
|
145
150
|
defaultMessage: 'Copy link',
|
|
146
151
|
description: ''
|
|
147
152
|
},
|
|
153
|
+
copied_url_to_clipboard: {
|
|
154
|
+
id: 'fabric.linking.copied_url_to_clipboard.nonfinal',
|
|
155
|
+
defaultMessage: 'Copied!',
|
|
156
|
+
description: 'Url has been copied to the clipboard'
|
|
157
|
+
},
|
|
148
158
|
could_not_load_link: {
|
|
149
159
|
id: 'fabric.linking.couldnt_load_link',
|
|
150
160
|
defaultMessage: "We couldn't load this link for an unknown reason.",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export var errorMessages = ['NETWORK_ERROR', 'NO_ANSWER', 'RATE_LIMIT', 'NO_AGENT', 'PLUGIN_ERRORED', 'OPENAI_RATE_LIMIT_USER_ABUSE', 'ACCEPTABLE_USE_VIOLATIONS', 'AI_DISABLED', 'UNEXPECTED'];
|
|
1
|
+
export var errorMessages = ['NETWORK_ERROR', 'NO_ANSWER', 'RATE_LIMIT', 'NO_AGENT', 'PLUGIN_ERRORED', 'OPENAI_RATE_LIMIT_USER_ABUSE', 'ACCEPTABLE_USE_VIOLATIONS', 'AI_DISABLED', 'UNEXPECTED', 'HIPAA_CONTENT_DETECTED'];
|
|
@@ -15,7 +15,7 @@ export var ANALYTICS_CHANNEL = 'media';
|
|
|
15
15
|
export var context = {
|
|
16
16
|
componentName: 'smart-cards',
|
|
17
17
|
packageName: "@atlaskit/smart-card",
|
|
18
|
-
packageVersion: "26.
|
|
18
|
+
packageVersion: "26.56.0"
|
|
19
19
|
};
|
|
20
20
|
export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
21
21
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
-
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
4
3
|
var _excluded = ["testId"];
|
|
5
|
-
var _templateObject;
|
|
6
4
|
/** @jsx jsx */
|
|
7
5
|
import { css, jsx } from '@emotion/react';
|
|
8
6
|
import { useCallback, useMemo } from 'react';
|
|
@@ -14,7 +12,11 @@ import UnauthorisedViewContent from '../../../common/UnauthorisedViewContent';
|
|
|
14
12
|
import { messages } from '../../../../messages';
|
|
15
13
|
import UnresolvedView from './unresolved-view';
|
|
16
14
|
import { withFlexibleUIBlockCardStyle } from './utils/withFlexibleUIBlockCardStyle';
|
|
17
|
-
var contentStyles = css(
|
|
15
|
+
var contentStyles = css({
|
|
16
|
+
color: "var(--ds-text-subtlest, #626F86)",
|
|
17
|
+
marginTop: "var(--ds-space-100, 0.5rem)",
|
|
18
|
+
fontSize: '0.75rem'
|
|
19
|
+
});
|
|
18
20
|
|
|
19
21
|
/**
|
|
20
22
|
* This view represents a Block card that has an 'Unauthorized' status .
|