@atlaskit/smart-card 26.55.2 → 26.56.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 +20 -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 +6 -4
- 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/HoverCardComponent.js +1 -1
- package/dist/cjs/view/HoverCard/components/views/forbidden/styled.js +16 -6
- package/dist/cjs/view/HoverCard/components/views/resolved/index.js +2 -1
- 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 +6 -4
- 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/HoverCardComponent.js +2 -2
- package/dist/es2019/view/HoverCard/components/views/forbidden/styled.js +16 -16
- package/dist/es2019/view/HoverCard/components/views/resolved/index.js +2 -1
- 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 +6 -4
- 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/HoverCardComponent.js +2 -2
- package/dist/esm/view/HoverCard/components/views/forbidden/styled.js +16 -5
- package/dist/esm/view/HoverCard/components/views/resolved/index.js +2 -1
- 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/action-block/types.d.ts +1 -1
- 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/view/HoverCard/components/views/resolved/types.d.ts +2 -1
- package/dist/types/view/HoverCard/types.d.ts +2 -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/action-block/types.d.ts +1 -1
- 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/dist/types-ts4.5/view/HoverCard/components/views/resolved/types.d.ts +2 -1
- package/dist/types-ts4.5/view/HoverCard/types.d.ts +2 -1
- package/package.json +3 -2
|
@@ -1,8 +1,49 @@
|
|
|
1
|
-
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
-
var _templateObject, _templateObject2, _templateObject3;
|
|
3
1
|
import { css } from '@emotion/react';
|
|
4
|
-
export var triggerButtonStyles = css(
|
|
2
|
+
export var triggerButtonStyles = css({
|
|
3
|
+
all: 'unset',
|
|
4
|
+
backgroundColor: 'transparent',
|
|
5
|
+
color: 'unset',
|
|
6
|
+
cursor: 'pointer',
|
|
7
|
+
fontFamily: 'unset',
|
|
8
|
+
fontSize: 'unset',
|
|
9
|
+
fontStyle: 'unset',
|
|
10
|
+
fontWeight: 'unset',
|
|
11
|
+
fontVariant: 'unset',
|
|
12
|
+
lineHeight: 0,
|
|
13
|
+
padding: 0,
|
|
14
|
+
textTransform: 'unset',
|
|
15
|
+
border: '2px solid transparent',
|
|
16
|
+
margin: "var(--ds-space-025, 2px)",
|
|
17
|
+
"&:focus-visible, &:focus-within, &[aria-expanded='true']": {
|
|
18
|
+
outline: 'none',
|
|
19
|
+
boxShadow: "0 0 0 2px ".concat("var(--ds-border-focused, #388BFF)"),
|
|
20
|
+
borderRadius: '5px'
|
|
21
|
+
}
|
|
22
|
+
});
|
|
5
23
|
|
|
6
24
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
7
|
-
export var triggerLozengeStyles = css(
|
|
8
|
-
|
|
25
|
+
export var triggerLozengeStyles = css({
|
|
26
|
+
alignItems: 'center',
|
|
27
|
+
display: 'flex',
|
|
28
|
+
"span[role='img']": {
|
|
29
|
+
margin: "var(--ds-space-negative-050, -4px)".concat(" ", "var(--ds-space-negative-100, -8px)", " ", "var(--ds-space-negative-050, -4px)", " -1px")
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
export var dropdownItemGroupStyles = css({
|
|
33
|
+
maxHeight: '300px',
|
|
34
|
+
overflowY: 'auto',
|
|
35
|
+
button: {
|
|
36
|
+
padding: "var(--ds-space-075, 6px)".concat(" ", "var(--ds-space-150, 12px)"),
|
|
37
|
+
minHeight: '28px',
|
|
38
|
+
width: '220px',
|
|
39
|
+
'&:hover': {
|
|
40
|
+
backgroundColor: 'inherit'
|
|
41
|
+
},
|
|
42
|
+
'&:focus, &:focus-visible': {
|
|
43
|
+
backgroundColor: "var(--ds-background-neutral-subtle-hovered, #091E420F)",
|
|
44
|
+
boxSizing: 'border-box',
|
|
45
|
+
boxShadow: "inset 2px 0 0 ".concat("var(--ds-border-selected, #0C66E4)"),
|
|
46
|
+
outline: 'none'
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
});
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
-
var _templateObject;
|
|
3
1
|
/** @jsx jsx */
|
|
4
2
|
import React from 'react';
|
|
5
3
|
import { css, jsx } from '@emotion/react';
|
|
@@ -14,7 +12,36 @@ import ImageIcon from '../../common/image-icon';
|
|
|
14
12
|
* [object-position] Center alignment of the selected replaced element's
|
|
15
13
|
* contents within the element's box.
|
|
16
14
|
*/
|
|
17
|
-
var styles = css(
|
|
15
|
+
var 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'
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
});
|
|
18
45
|
|
|
19
46
|
/**
|
|
20
47
|
* A base element that displays a Media.
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
-
var _templateObject;
|
|
3
1
|
/** @jsx jsx */
|
|
4
2
|
import React from 'react';
|
|
5
3
|
import { css, jsx } from '@emotion/react';
|
|
6
4
|
import { getFormattedMessage, getTruncateStyles } from '../../utils';
|
|
7
5
|
var getStyles = function getStyles(maxLines) {
|
|
8
|
-
return css(
|
|
6
|
+
return css({
|
|
7
|
+
color: "var(--ds-text-subtlest, #626F86)",
|
|
8
|
+
fontSize: '0.75rem',
|
|
9
|
+
lineHeight: '1rem',
|
|
10
|
+
whiteSpace: 'normal'
|
|
11
|
+
}, getTruncateStyles(maxLines));
|
|
9
12
|
};
|
|
10
13
|
|
|
11
14
|
/**
|
|
@@ -40,6 +40,7 @@ var getIconDimensionStyles = function getIconDimensionStyles(value) {
|
|
|
40
40
|
};
|
|
41
41
|
export var getIconSizeStyles = function getIconSizeStyles(width) {
|
|
42
42
|
var sizeStyles = getIconDimensionStyles(width);
|
|
43
|
+
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- needs manual remediation
|
|
43
44
|
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n flex: 0 0 auto;\n ", "\n span,\n svg,\n img {\n ", "\n }\n svg {\n padding: 0;\n }\n "])), sizeStyles, sizeStyles);
|
|
44
45
|
};
|
|
45
46
|
export var getIconWidth = function getIconWidth(size) {
|
|
@@ -10,7 +10,7 @@ import { useSmartCardState as useLinkState } from '../../../state/store';
|
|
|
10
10
|
import HoverCardContent from '../components/HoverCardContent';
|
|
11
11
|
import CustomPopupContainer from '../components/CustomPopupContainer';
|
|
12
12
|
import { CARD_GAP_PX, HOVER_CARD_Z_INDEX } from '../styled';
|
|
13
|
-
import { CardDisplay } from '../../../constants';
|
|
13
|
+
import { ActionName, CardDisplay } from '../../../constants';
|
|
14
14
|
import { SmartLinkAnalyticsContext } from '../../../utils/analytics/SmartLinkAnalyticsContext';
|
|
15
15
|
import { combineActionOptions } from '../../../utils/actions/combine-action-options';
|
|
16
16
|
import { useSmartCardActions } from '../../../state/actions';
|
|
@@ -165,7 +165,7 @@ export var HoverCardComponent = function HoverCardComponent(_ref) {
|
|
|
165
165
|
}) : linkActions;
|
|
166
166
|
}, [hidePreviewButton, linkActions]);
|
|
167
167
|
var onActionClick = useCallback(function (actionId) {
|
|
168
|
-
if (actionId === 'preview-content') {
|
|
168
|
+
if (actionId === 'preview-content' || actionId === ActionName.PreviewAction) {
|
|
169
169
|
hideCard();
|
|
170
170
|
}
|
|
171
171
|
}, [hideCard]);
|
|
@@ -1,7 +1,18 @@
|
|
|
1
|
-
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
-
var _templateObject, _templateObject2, _templateObject3;
|
|
3
1
|
import { css } from '@emotion/react';
|
|
4
2
|
var titleFontWeight = '600';
|
|
5
|
-
export var titleBlockStyles = css(
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
export var titleBlockStyles = css({
|
|
4
|
+
justifyContent: 'center',
|
|
5
|
+
fontWeight: titleFontWeight,
|
|
6
|
+
marginTop: "var(--ds-space-100, 8px)"
|
|
7
|
+
});
|
|
8
|
+
export var 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 var connectButtonStyles = css({
|
|
16
|
+
justifyContent: 'center',
|
|
17
|
+
marginTop: "var(--ds-space-100, 8px)"
|
|
18
|
+
});
|
|
@@ -186,7 +186,8 @@ var HoverCardResolvedView = function HoverCardResolvedView(_ref2) {
|
|
|
186
186
|
size: SmartLinkSize.Large,
|
|
187
187
|
overrideCss: footerBlockCss
|
|
188
188
|
}), getBooleanFF('platform.linking-platform.smart-card.hover-card-action-redesign') && /*#__PURE__*/React.createElement(ActionBlock, {
|
|
189
|
-
spaceInline: "space.150"
|
|
189
|
+
spaceInline: "space.150",
|
|
190
|
+
onClick: onActionClick
|
|
190
191
|
}));
|
|
191
192
|
};
|
|
192
193
|
export default HoverCardResolvedView;
|
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
-
var _templateObject
|
|
2
|
+
var _templateObject;
|
|
3
3
|
import { css } from '@emotion/react';
|
|
4
4
|
import { separatorCss } from '../../../styled';
|
|
5
5
|
var elementGap = '0.5rem';
|
|
6
|
+
|
|
7
|
+
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- needs manual remediation
|
|
6
8
|
export var metadataBlockCss = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n gap: 0px;\n /* primary element group */\n [data-smart-element-group]:nth-of-type(1) {\n flex-grow: 7;\n\n // a separator between text-based element\n ", "\n\n /* horizontal spacing between elements in group */\n > span {\n margin-right: ", ";\n }\n }\n /* secondary element group */\n [data-smart-element-group]:nth-of-type(2) {\n flex-grow: 3;\n /* horizontal spacing between elements in group */\n > span {\n margin-left: ", ";\n }\n }\n\n [data-smart-element-group] {\n line-height: 1rem;\n }\n"])), separatorCss, elementGap, elementGap);
|
|
7
|
-
export var footerBlockCss = css(
|
|
8
|
-
|
|
9
|
+
export var footerBlockCss = css({
|
|
10
|
+
height: '1.5rem'
|
|
11
|
+
});
|
|
12
|
+
export var hiddenSnippetStyles = css({
|
|
13
|
+
visibility: 'hidden',
|
|
14
|
+
position: 'absolute'
|
|
15
|
+
});
|
|
@@ -1,9 +1,26 @@
|
|
|
1
|
-
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
3
1
|
import { css } from '@emotion/react';
|
|
4
|
-
export var loadingViewContainer = css(
|
|
5
|
-
|
|
2
|
+
export var loadingViewContainer = css({
|
|
3
|
+
display: 'flex',
|
|
4
|
+
flexDirection: 'column',
|
|
5
|
+
padding: "var(--ds-space-200, 1rem)"
|
|
6
|
+
});
|
|
7
|
+
export var 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
|
+
});
|
|
6
14
|
export var getTitleStyles = function getTitleStyles(height) {
|
|
7
|
-
return css(
|
|
15
|
+
return css({
|
|
16
|
+
flex: '1 0 auto',
|
|
17
|
+
height: "".concat(height, "rem"),
|
|
18
|
+
span: {
|
|
19
|
+
width: '100%'
|
|
20
|
+
}
|
|
21
|
+
});
|
|
8
22
|
};
|
|
9
|
-
export var titleBlockStyles = css(
|
|
23
|
+
export var titleBlockStyles = css({
|
|
24
|
+
width: '100%',
|
|
25
|
+
gap: "var(--ds-space-100, 0.5rem)"
|
|
26
|
+
});
|
|
@@ -1,9 +1,18 @@
|
|
|
1
|
-
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
-
var _templateObject, _templateObject2, _templateObject3;
|
|
3
1
|
import { css } from '@emotion/react';
|
|
4
2
|
var blockGap = '0.5rem';
|
|
5
3
|
var iconGap = '0.5rem';
|
|
6
4
|
var titleFontWeight = '500';
|
|
7
|
-
export var connectButtonStyles = css(
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
export var connectButtonStyles = css({
|
|
6
|
+
justifyContent: 'flex-end',
|
|
7
|
+
marginTop: blockGap
|
|
8
|
+
});
|
|
9
|
+
export var titleBlockStyles = css({
|
|
10
|
+
gap: "".concat(blockGap, " ").concat(iconGap),
|
|
11
|
+
a: {
|
|
12
|
+
fontWeight: titleFontWeight
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
export var mainTextStyles = css({
|
|
16
|
+
marginTop: blockGap,
|
|
17
|
+
fontSize: '0.75rem'
|
|
18
|
+
});
|
|
@@ -26,7 +26,11 @@ export var separatorCss = css({
|
|
|
26
26
|
marginRight: elementGap
|
|
27
27
|
}
|
|
28
28
|
});
|
|
29
|
+
|
|
30
|
+
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- needs manual remediation
|
|
29
31
|
export var HoverCardContainer = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n background: none;\n border-width: 0;\n box-sizing: border-box;\n width: ", "rem;\n\n .", " {\n display: none;\n }\n"])), getBooleanFF('platform.linking-platform.smart-card.hover-card-ai-summaries') ? NEW_CARD_WIDTH_REM : CARD_WIDTH_REM, loadingPlaceholderClassName);
|
|
32
|
+
|
|
33
|
+
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- needs manual remediation
|
|
30
34
|
export var titleBlockCss = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n gap: ", ";\n\n ", "\n\n // title and subtitle element group\n [data-smart-element-group] {\n // gap between title and subtitle\n gap: 0.06rem;\n display: flex;\n /* subtitle element group */\n > [data-smart-element-group] {\n > span {\n margin-right: ", ";\n }\n }\n }\n\n [data-smart-element='Title'] {\n font-weight: 600;\n }\n"])), blockGap, separatorCss, elementGap);
|
|
31
35
|
export var getTransitionStyles = function getTransitionStyles(snippetHeight) {
|
|
32
36
|
return css({
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8;
|
|
3
1
|
import styled from '@emotion/styled';
|
|
4
2
|
// TODO: remove this override behaviour for @atlaskit/icon-object
|
|
5
3
|
export var IconObjectOverrides = "\n & > span {\n height: 16px;\n width: 14px;\n position: absolute;\n top: 3px;\n left: 0;\n line-height: 14px;\n & > svg {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n }\n }\n";
|
|
@@ -12,27 +10,55 @@ export var IconOverrides = "\n\n & > * > span {\n height: 16px;\n width:
|
|
|
12
10
|
// - @atlaskit/icon-object: for object icons, e.g. repository, branch, etc.
|
|
13
11
|
// NB: the first set of overrides style icons imported from @atlaskit/icon-object correctly.
|
|
14
12
|
// NB: the second set of overrides style icons imported from @atlaskit/icon correctly.
|
|
15
|
-
export var IconWrapper = styled.span(
|
|
13
|
+
export var IconWrapper = styled.span({
|
|
14
|
+
userSelect: 'none'
|
|
15
|
+
}, IconOverrides, IconObjectOverrides);
|
|
16
16
|
|
|
17
17
|
// Wraps all emoji in Inline Links similar to icon
|
|
18
|
-
export var EmojiWrapper = styled.span(
|
|
18
|
+
export var EmojiWrapper = styled.span({
|
|
19
|
+
display: 'inline-block',
|
|
20
|
+
marginRight: "var(--ds-space-025, 2px)",
|
|
21
|
+
userSelect: 'none'
|
|
22
|
+
}, IconOverrides, IconObjectOverrides);
|
|
19
23
|
|
|
20
24
|
// The main 'wrapping' element, title of the content.
|
|
21
25
|
// NB: `white-space` adds little whitespace before wrapping.
|
|
22
26
|
// NB: `word-break` line breaks as soon as an overflow takes place.
|
|
23
|
-
export var IconTitleWrapper = styled.span(
|
|
27
|
+
export var IconTitleWrapper = styled.span({
|
|
28
|
+
whiteSpace: 'pre-wrap',
|
|
29
|
+
wordBreak: 'break-all',
|
|
30
|
+
boxDecorationBreak: 'clone',
|
|
31
|
+
padding: "var(--ds-space-025, 2px)".concat(" ", "var(--ds-space-050, 4px)")
|
|
32
|
+
});
|
|
24
33
|
|
|
25
34
|
// TODO: Replace overrides with proper AtlasKit solution.
|
|
26
|
-
export var LozengeWrapper = styled.span(
|
|
27
|
-
|
|
35
|
+
export var LozengeWrapper = styled.span({
|
|
36
|
+
display: 'inline-block',
|
|
37
|
+
verticalAlign: '1px',
|
|
38
|
+
margin: "0 ".concat("var(--ds-space-050, 4px)", " 0 ", "var(--ds-space-025, 2px)")
|
|
39
|
+
});
|
|
40
|
+
export var RightIconPositionWrapper = styled.span({
|
|
41
|
+
marginLeft: "var(--ds-space-025, 2px)",
|
|
42
|
+
position: 'relative',
|
|
43
|
+
display: 'inline-block'
|
|
44
|
+
});
|
|
28
45
|
|
|
29
46
|
// The following components are used to absolutely position icons in the vertical center.
|
|
30
47
|
// - IconPositionWrapper: the `relative` parent which has no height in itself.
|
|
31
48
|
// - IconEmptyWrapper: the child which forces `IconPositionWrapper` to have a height.
|
|
32
|
-
export var IconPositionWrapper = styled.span(
|
|
33
|
-
|
|
49
|
+
export var IconPositionWrapper = styled.span({
|
|
50
|
+
marginRight: "var(--ds-space-050, 4px)",
|
|
51
|
+
position: 'relative',
|
|
52
|
+
display: 'inline-block'
|
|
53
|
+
});
|
|
54
|
+
export var IconEmptyWrapper = styled.span({
|
|
55
|
+
width: '14px',
|
|
56
|
+
height: '100%',
|
|
57
|
+
display: 'inline-block',
|
|
58
|
+
opacity: 0
|
|
59
|
+
});
|
|
34
60
|
|
|
35
61
|
// With emotion it's not possible to use reference to `TitleWrapper` as part of a selector,
|
|
36
62
|
// To achieve same result we use classname instead.
|
|
37
63
|
export var TitleWrapperClassName = 'smart-link-title-wrapper';
|
|
38
|
-
export var TitleWrapper = styled.span(
|
|
64
|
+
export var TitleWrapper = styled.span({});
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
-
var _templateObject;
|
|
3
1
|
import styled from '@emotion/styled';
|
|
4
2
|
import { IconTitleWrapper } from '../IconAndTitleLayout/styled';
|
|
5
|
-
export var SpinnerWrapper = styled(IconTitleWrapper)(
|
|
3
|
+
export var SpinnerWrapper = styled(IconTitleWrapper)({
|
|
4
|
+
verticalAlign: 'text-bottom',
|
|
5
|
+
padding: '0px'
|
|
6
|
+
});
|
|
@@ -1,10 +1,41 @@
|
|
|
1
|
-
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
3
1
|
import styled from '@emotion/styled';
|
|
4
2
|
import { B400, N200 } from '@atlaskit/theme/colors';
|
|
5
3
|
// By default buttons will hide overflow and ellipsis content instead of wrapping.
|
|
6
4
|
// This basically turns the button back into inline content
|
|
7
|
-
export var IconStyledButton = styled.span(
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
export var 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)".concat(" ", "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
|
+
}
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
export var NoLinkAppearance = styled.span({
|
|
30
|
+
color: "var(--ds-text-subtlest, ".concat(N200, ")"),
|
|
31
|
+
marginLeft: "var(--ds-space-050, 4px)"
|
|
32
|
+
});
|
|
33
|
+
export var LowercaseAppearance = styled.span({
|
|
34
|
+
textTransform: 'lowercase'
|
|
35
|
+
});
|
|
36
|
+
export var LinkAppearance = styled.a({
|
|
37
|
+
color: "var(--ds-link, ".concat(B400, ")"),
|
|
38
|
+
'&:hover': {
|
|
39
|
+
textDecoration: 'none'
|
|
40
|
+
}
|
|
41
|
+
});
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
-
var _templateObject;
|
|
3
1
|
import { css } from '@emotion/react';
|
|
4
|
-
export var breakWordsCss = css(
|
|
2
|
+
export var breakWordsCss = css({
|
|
3
|
+
whiteSpace: 'pre-line',
|
|
4
|
+
wordBreak: 'break-all'
|
|
5
|
+
});
|
|
@@ -10,7 +10,7 @@ import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-m
|
|
|
10
10
|
import LinkWarningModal from './LinkWarningModal';
|
|
11
11
|
var PACKAGE_DATA = {
|
|
12
12
|
packageName: "@atlaskit/smart-card",
|
|
13
|
-
packageVersion: "26.
|
|
13
|
+
packageVersion: "26.56.1",
|
|
14
14
|
componentName: 'linkUrl'
|
|
15
15
|
};
|
|
16
16
|
var Link = withLinkClickedEvent('a');
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
-
var _templateObject, _templateObject2;
|
|
3
1
|
/** @jsx jsx */
|
|
4
2
|
import { css, jsx } from '@emotion/react';
|
|
5
3
|
import React from 'react';
|
|
@@ -17,13 +15,22 @@ var getImageStyles = function getImageStyles(isFlexibleUi) {
|
|
|
17
15
|
if (isFlexibleUi) {
|
|
18
16
|
return;
|
|
19
17
|
}
|
|
20
|
-
return css(
|
|
18
|
+
return css({
|
|
19
|
+
height: gs(2),
|
|
20
|
+
width: gs(2)
|
|
21
|
+
});
|
|
21
22
|
};
|
|
22
23
|
var getSpanStyles = function getSpanStyles(isFlexibleUi) {
|
|
23
24
|
if (isFlexibleUi) {
|
|
24
25
|
return;
|
|
25
26
|
}
|
|
26
|
-
return css(
|
|
27
|
+
return css({
|
|
28
|
+
height: gs(2.5),
|
|
29
|
+
width: gs(2),
|
|
30
|
+
display: 'flex',
|
|
31
|
+
alignItems: 'center',
|
|
32
|
+
justifyContent: 'center'
|
|
33
|
+
});
|
|
27
34
|
};
|
|
28
35
|
export var Icon = function Icon(_ref) {
|
|
29
36
|
var url = _ref.url,
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
-
var _templateObject;
|
|
3
1
|
/** @jsx jsx */
|
|
4
2
|
import { css, jsx, keyframes } from '@emotion/react';
|
|
5
3
|
import SVG from '@atlaskit/icon/svg';
|
|
@@ -11,7 +9,17 @@ import { aiThemeTokens } from '../ai-prism/constants';
|
|
|
11
9
|
* with modifications
|
|
12
10
|
*/
|
|
13
11
|
|
|
14
|
-
var bounce = keyframes(
|
|
12
|
+
var bounce = keyframes({
|
|
13
|
+
from: {
|
|
14
|
+
transform: 'translateY(0)'
|
|
15
|
+
},
|
|
16
|
+
'16.67%': {
|
|
17
|
+
transform: 'translateY(-2px)'
|
|
18
|
+
},
|
|
19
|
+
'33.33%': {
|
|
20
|
+
transform: 'translateY(0px)'
|
|
21
|
+
}
|
|
22
|
+
});
|
|
15
23
|
var BASE_DELAY = 400;
|
|
16
24
|
var QUEUE_DELAY = 200;
|
|
17
25
|
var animationStyles = css({
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { JsonLd } from 'json-ld-types';
|
|
2
|
+
import { CopyLinkActionData } from '../../../state/flexible-ui-context/types';
|
|
3
|
+
import { type CardActionOptions } from '../../../view/Card/types';
|
|
4
|
+
export declare const extractCopyLinkAction: (data: JsonLd.Data.BaseData, actionOptions?: CardActionOptions) => CopyLinkActionData | undefined;
|
package/dist/types/messages.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MessageDescriptor } from 'react-intl-next';
|
|
2
2
|
export type RequestAccessMessageKey = 'click_to_join' | 'click_to_join_description' | 'forbidden_description' | 'request_access' | 'request_access_description' | 'request_access_pending' | 'request_access_pending_title' | 'request_access_pending_description' | 'request_denied_description' | 'default_no_access_title' | 'direct_access_title' | 'direct_access_description' | 'direct_access' | 'access_exists_description' | 'not_found_description' | 'not_found_title';
|
|
3
|
-
export type MessageKey = 'assigned_to' | 'ai_summarize' | 'ai_summarized' | 'ai_summarized_abbreviation' | 'ai_summarized_info' | 'ai_summarizing' | 'ai_summary_error_generic' | 'ai_summary_error_acceptable_use_violation' | 'beta' | 'cannot_find_link' | 'connect_link_account_card' | 'connect_link_account_card_name' | 'connect_link_account_card_description' | 'connect_unauthorised_account_action' | 'connect_unauthorised_account_description' | 'connect_unauthorised_account_description_no_provider' | 'continue' | 'copy_url_to_clipboard' | 'could_not_load_link' | 'download' | 'download_description' | 'download_file' | 'follow' | 'go_back' | 'invalid_permissions' | 'invalid_permissions_description' | 'join_to_view' | 'connect_link_account' | 'created_by' | 'created_on_relative' | 'created_on_absolute' | 'check_this_link' | 'delete' | 'edit' | 'learn_more_about_smart_links' | 'learn_more_about_connecting_account' | 'loading' | 'link_safety_warning_message' | 'modified_by' | 'modified_on_relative' | 'modified_on_absolute' | 'more_actions' | 'not_found_title' | 'not_found_description' | 'open_issue_in_jira' | 'open_link_in_a_new_tab' | 'owned_by' | 'preview_description' | 'preview_improved' | 'preview_close' | 'preview_max_size' | 'preview_min_size' | 'priority_blocker' | 'priority_critical' | 'priority_high' | 'priority_highest' | 'priority_low' | 'priority_lowest' | 'priority_major' | 'priority_medium' | 'priority_minor' | 'priority_trivial' | 'priority_undefined' | 'forbidden_access' | 'pending_request' | 'read_time' | 'restricted_link' | 'request_access_to_view' | 'request_denied' | 'sent_on_relative' | 'sent_on_absolute' | 'status_change_load_error' | 'status_change_permission_error' | 'status_change_update_error' | 'try_again' | 'try_another_account' | 'unauthorised_account_description' | 'unauthorised_account_description_no_provider' | 'unauthorised_account_name' | 'unauthorised_account_name_no_provider' | 'unassigned' | 'unfollow' | 'view' | 'viewIn' | 'viewOriginal' | 'actions' | 'add_account' | 'cancel' | 'close' | 'connect_to' | 'connect_account_description' | 'retry' | 'save' | 'unlink_account' | RequestAccessMessageKey | 'related_work_items_not_found' | 'last_mentioned_in' | 'related' | 'generic_error_message';
|
|
3
|
+
export type MessageKey = 'assigned_to' | 'ai_summarize' | 'ai_summarized' | 'ai_summarized_abbreviation' | 'ai_summarized_info' | 'ai_summarizing' | 'ai_summary_error_generic' | 'ai_summary_error_acceptable_use_violation' | 'ai_summary_error_hipaa_content_detected' | 'beta' | 'cannot_find_link' | 'connect_link_account_card' | 'connect_link_account_card_name' | 'connect_link_account_card_description' | 'connect_unauthorised_account_action' | 'connect_unauthorised_account_description' | 'connect_unauthorised_account_description_no_provider' | 'continue' | 'copy_url_to_clipboard' | 'copied_url_to_clipboard' | 'could_not_load_link' | 'download' | 'download_description' | 'download_file' | 'follow' | 'go_back' | 'invalid_permissions' | 'invalid_permissions_description' | 'join_to_view' | 'connect_link_account' | 'created_by' | 'created_on_relative' | 'created_on_absolute' | 'check_this_link' | 'delete' | 'edit' | 'learn_more_about_smart_links' | 'learn_more_about_connecting_account' | 'loading' | 'link_safety_warning_message' | 'modified_by' | 'modified_on_relative' | 'modified_on_absolute' | 'more_actions' | 'not_found_title' | 'not_found_description' | 'open_issue_in_jira' | 'open_link_in_a_new_tab' | 'owned_by' | 'preview_description' | 'preview_improved' | 'preview_close' | 'preview_max_size' | 'preview_min_size' | 'priority_blocker' | 'priority_critical' | 'priority_high' | 'priority_highest' | 'priority_low' | 'priority_lowest' | 'priority_major' | 'priority_medium' | 'priority_minor' | 'priority_trivial' | 'priority_undefined' | 'forbidden_access' | 'pending_request' | 'read_time' | 'restricted_link' | 'request_access_to_view' | 'request_denied' | 'sent_on_relative' | 'sent_on_absolute' | 'status_change_load_error' | 'status_change_permission_error' | 'status_change_update_error' | 'try_again' | 'try_another_account' | 'unauthorised_account_description' | 'unauthorised_account_description_no_provider' | 'unauthorised_account_name' | 'unauthorised_account_name_no_provider' | 'unassigned' | 'unfollow' | 'view' | 'viewIn' | 'viewOriginal' | 'actions' | 'add_account' | 'cancel' | 'close' | 'connect_to' | 'connect_account_description' | 'retry' | 'save' | 'unlink_account' | RequestAccessMessageKey | 'related_work_items_not_found' | 'last_mentioned_in' | 'related' | 'generic_error_message';
|
|
4
4
|
type Messages = {
|
|
5
5
|
[K in MessageKey]: MessageDescriptor;
|
|
6
6
|
};
|
|
@@ -244,6 +244,7 @@ export type FlexibleUiActions = {
|
|
|
244
244
|
[ActionName.PreviewAction]?: PreviewActionData;
|
|
245
245
|
[ActionName.DownloadAction]?: DownloadActionData;
|
|
246
246
|
[ActionName.FollowAction]?: ServerActionProp<boolean>;
|
|
247
|
+
[ActionName.CopyLinkAction]?: CopyLinkActionData;
|
|
247
248
|
};
|
|
248
249
|
export type PreviewActionData = {
|
|
249
250
|
downloadUrl?: string;
|
|
@@ -260,6 +261,9 @@ export type ViewActionData = {
|
|
|
260
261
|
export type DownloadActionData = {
|
|
261
262
|
downloadUrl?: string;
|
|
262
263
|
};
|
|
264
|
+
export type CopyLinkActionData = {
|
|
265
|
+
url: string;
|
|
266
|
+
};
|
|
263
267
|
export type FlexibleAnalyticsContextType = AnalyticsFacade & {
|
|
264
268
|
display?: CardInnerAppearance;
|
|
265
269
|
extensionKey?: string;
|
|
@@ -36,7 +36,7 @@ export type AgentInputContext = {
|
|
|
36
36
|
};
|
|
37
37
|
export type PromptId = 'smart_links';
|
|
38
38
|
export type SummaryOutputMimeType = 'text/adf' | 'text/markdown' | 'text/json';
|
|
39
|
-
export declare const errorMessages: readonly ["NETWORK_ERROR", "NO_ANSWER", "RATE_LIMIT", "NO_AGENT", "PLUGIN_ERRORED", "OPENAI_RATE_LIMIT_USER_ABUSE", "ACCEPTABLE_USE_VIOLATIONS", "AI_DISABLED", "UNEXPECTED"];
|
|
39
|
+
export declare const errorMessages: readonly ["NETWORK_ERROR", "NO_ANSWER", "RATE_LIMIT", "NO_AGENT", "PLUGIN_ERRORED", "OPENAI_RATE_LIMIT_USER_ABUSE", "ACCEPTABLE_USE_VIOLATIONS", "AI_DISABLED", "UNEXPECTED", "HIPAA_CONTENT_DETECTED"];
|
|
40
40
|
export type ErrorMessage = (typeof errorMessages)[number];
|
|
41
41
|
export type AISummaryState = {
|
|
42
42
|
content: string;
|
|
@@ -19,7 +19,8 @@ export declare enum CardAction {
|
|
|
19
19
|
PreviewAction = "PreviewAction",
|
|
20
20
|
ViewAction = "ViewAction",
|
|
21
21
|
ChangeStatusAction = "ChangeStatusAction",
|
|
22
|
-
FollowAction = "FollowAction"
|
|
22
|
+
FollowAction = "FollowAction",
|
|
23
|
+
CopyLinkAction = "CopyLinkAction"
|
|
23
24
|
}
|
|
24
25
|
export type CardActionOptions = {
|
|
25
26
|
hide: true;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import type { Space, XCSS } from '@atlaskit/primitives';
|
|
2
2
|
import type { SmartLinkSize } from '../../../../../../constants';
|
|
3
3
|
import type { ActionProps } from '../types';
|
|
4
|
+
import { UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
4
5
|
export type ActionStackItemProps = ActionProps & {
|
|
5
6
|
isLoading?: boolean;
|
|
6
7
|
size: SmartLinkSize;
|
|
7
8
|
isDisabled?: boolean;
|
|
8
9
|
space?: Space;
|
|
9
10
|
xcss?: XCSS;
|
|
11
|
+
tooltipOnHide?: (analyticsEvent: UIAnalyticsEvent) => any;
|
|
10
12
|
};
|
|
@@ -3,6 +3,7 @@ import type { Space, XCSS } from '@atlaskit/primitives';
|
|
|
3
3
|
import type { SerializedStyles } from '@emotion/react';
|
|
4
4
|
import type { ReactChild, ReactNode } from 'react';
|
|
5
5
|
import type { SmartLinkSize } from '../../../../../constants';
|
|
6
|
+
import { UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
6
7
|
export type ActionProps = {
|
|
7
8
|
/**
|
|
8
9
|
* Determines the appearance of the action.
|
|
@@ -41,6 +42,10 @@ export type ActionProps = {
|
|
|
41
42
|
* Determines the tooltip message when hovering over the Action.
|
|
42
43
|
*/
|
|
43
44
|
tooltipMessage?: ReactNode;
|
|
45
|
+
/**
|
|
46
|
+
* Determines the onHide behaviour of the Tooltip
|
|
47
|
+
*/
|
|
48
|
+
tooltipOnHide?: (analyticsEvent: UIAnalyticsEvent) => any;
|
|
44
49
|
/**
|
|
45
50
|
* @deprecated Use 'as' instead
|
|
46
51
|
* Used to determine whether the Action is in a Dropdown.
|
|
@@ -69,4 +74,18 @@ export type ActionProps = {
|
|
|
69
74
|
* Additional styling properties for Primitives based component
|
|
70
75
|
*/
|
|
71
76
|
xcss?: XCSS;
|
|
77
|
+
/**
|
|
78
|
+
* Allows the use of hyperlinks as buttons via the atlaskit component
|
|
79
|
+
*/
|
|
80
|
+
href?: string;
|
|
81
|
+
/**
|
|
82
|
+
* Additional text properties for accessibility of actions
|
|
83
|
+
*/
|
|
84
|
+
ariaLabel?: string;
|
|
85
|
+
/**
|
|
86
|
+
* Optional wrapper component to wrap the action
|
|
87
|
+
* E.g., Feature discovery pulse
|
|
88
|
+
* Cleanup on https://product-fabric.atlassian.net/browse/EDM-9649
|
|
89
|
+
*/
|
|
90
|
+
wrapper?: React.ElementType;
|
|
72
91
|
};
|