@atlaskit/smart-card 27.5.2 → 27.5.4
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 +15 -0
- package/CONTRIBUTING.md +1 -1
- package/dist/cjs/extractors/common/icon/extractIcon.js +1 -1
- package/dist/cjs/extractors/flexible/actions/extract-automation-action.js +1 -1
- package/dist/cjs/messages.js +2 -2
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/EmbedCard/components/styled.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/utils/api.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/empty-state/main.js +5 -5
- package/dist/cjs/view/FlexibleCard/components/actions/automation-action/utils/index.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/blocks/block/index.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/element-group/index.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/preview-block/resolved/index.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/utils.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/container/index.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/elements/avatar-group/index.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/elements/badge/index.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/utils.js +1 -1
- package/dist/cjs/view/HoverCard/components/views/resolved/styled.js +1 -1
- package/dist/cjs/view/HoverCard/styled.js +2 -2
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/cjs/view/RelatedLinksModal/components/EmptyState.js +2 -2
- package/dist/cjs/view/RelatedLinksModal/views/resolving/index.js +27 -0
- package/dist/es2019/extractors/common/icon/extractIcon.js +1 -1
- package/dist/es2019/extractors/flexible/actions/extract-automation-action.js +1 -1
- package/dist/es2019/messages.js +2 -2
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/EmbedCard/components/styled.js +22 -22
- package/dist/es2019/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/utils/api.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/empty-state/main.js +5 -5
- package/dist/es2019/view/FlexibleCard/components/actions/automation-action/utils/index.js +2 -2
- package/dist/es2019/view/FlexibleCard/components/blocks/block/index.js +16 -16
- package/dist/es2019/view/FlexibleCard/components/blocks/element-group/index.js +13 -13
- package/dist/es2019/view/FlexibleCard/components/blocks/preview-block/resolved/index.js +13 -13
- package/dist/es2019/view/FlexibleCard/components/blocks/utils.js +9 -9
- package/dist/es2019/view/FlexibleCard/components/container/index.js +15 -15
- package/dist/es2019/view/FlexibleCard/components/elements/avatar-group/index.js +9 -9
- package/dist/es2019/view/FlexibleCard/components/elements/badge/index.js +8 -8
- package/dist/es2019/view/FlexibleCard/components/utils.js +9 -9
- package/dist/es2019/view/HoverCard/components/views/resolved/styled.js +21 -21
- package/dist/es2019/view/HoverCard/styled.js +23 -23
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/es2019/view/RelatedLinksModal/components/EmptyState.js +2 -2
- package/dist/es2019/view/RelatedLinksModal/views/errored/index.js +2 -2
- package/dist/es2019/view/RelatedLinksModal/views/resolving/index.js +18 -0
- package/dist/es2019/view/RelatedLinksModal/views/unavailable/index.js +1 -1
- package/dist/esm/extractors/common/icon/extractIcon.js +1 -1
- package/dist/esm/extractors/flexible/actions/extract-automation-action.js +1 -1
- package/dist/esm/messages.js +2 -2
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/EmbedCard/components/styled.js +2 -2
- package/dist/esm/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/utils/api.js +1 -1
- package/dist/esm/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/empty-state/main.js +5 -5
- package/dist/esm/view/FlexibleCard/components/actions/automation-action/utils/index.js +2 -2
- package/dist/esm/view/FlexibleCard/components/blocks/block/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/blocks/element-group/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/blocks/preview-block/resolved/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/blocks/utils.js +1 -1
- package/dist/esm/view/FlexibleCard/components/container/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/elements/avatar-group/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/elements/badge/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/utils.js +1 -1
- package/dist/esm/view/HoverCard/components/views/resolved/styled.js +1 -1
- package/dist/esm/view/HoverCard/styled.js +2 -2
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/esm/view/RelatedLinksModal/components/EmptyState.js +2 -2
- package/dist/esm/view/RelatedLinksModal/views/errored/index.js +2 -2
- package/dist/esm/view/RelatedLinksModal/views/resolving/index.js +20 -0
- package/dist/esm/view/RelatedLinksModal/views/unavailable/index.js +1 -1
- package/dist/types/extractors/flexible/actions/extract-automation-action.d.ts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/types/state/analytics/useSmartLinkAnalytics.d.ts +1 -1
- package/dist/types/state/hooks/use-invoke-client-action/index.d.ts +1 -1
- package/dist/types/state/hooks/useSmartLink.d.ts +1 -1
- package/dist/types/state/hooks-external/useSmartLinkReload.d.ts +1 -1
- package/dist/types/state/index.d.ts +1 -1
- package/dist/types/state/modal/index.d.ts +1 -1
- package/dist/types/types.d.ts +1 -1
- package/dist/types/utils/mocks.d.ts +1 -1
- package/dist/types/view/BlockCard/components/Action.d.ts +1 -1
- package/dist/types/view/BlockCard/components/ContentFooter.d.ts +1 -1
- package/dist/types/view/BlockCard/components/ContentHeader.d.ts +1 -1
- package/dist/types/view/BlockCard/components/Name.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/index.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/manual-triggers-form/paragraph-prompt/main.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/menu-context/index.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/footer/main.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/actions/automation-action/utils/index.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/blocks/ai-summary-block/feature-discovery/index.d.ts +1 -1
- package/dist/types/view/RelatedLinksModal/components/EmptyState.d.ts +1 -1
- package/dist/types/view/RelatedLinksModal/views/resolving/index.d.ts +3 -0
- package/dist/types-ts4.5/extractors/flexible/actions/extract-automation-action.d.ts +2 -2
- package/dist/types-ts4.5/index.d.ts +2 -2
- package/dist/types-ts4.5/state/analytics/useSmartLinkAnalytics.d.ts +1 -1
- package/dist/types-ts4.5/state/hooks/use-invoke-client-action/index.d.ts +1 -1
- package/dist/types-ts4.5/state/hooks/useSmartLink.d.ts +1 -1
- package/dist/types-ts4.5/state/hooks-external/useSmartLinkReload.d.ts +1 -1
- package/dist/types-ts4.5/state/index.d.ts +1 -1
- package/dist/types-ts4.5/state/modal/index.d.ts +1 -1
- package/dist/types-ts4.5/types.d.ts +1 -1
- package/dist/types-ts4.5/utils/mocks.d.ts +1 -1
- package/dist/types-ts4.5/view/BlockCard/components/Action.d.ts +1 -1
- package/dist/types-ts4.5/view/BlockCard/components/ContentFooter.d.ts +1 -1
- package/dist/types-ts4.5/view/BlockCard/components/ContentHeader.d.ts +1 -1
- package/dist/types-ts4.5/view/BlockCard/components/Name.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/index.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/manual-triggers-form/paragraph-prompt/main.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/menu-context/index.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/footer/main.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/utils/index.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/ai-summary-block/feature-discovery/index.d.ts +1 -1
- package/dist/types-ts4.5/view/RelatedLinksModal/components/EmptyState.d.ts +1 -1
- package/dist/types-ts4.5/view/RelatedLinksModal/views/resolving/index.d.ts +3 -0
- package/package.json +6 -6
- package/report.api.md +775 -806
|
@@ -100,15 +100,15 @@ export const getBaseStyles = (direction, size) => css({
|
|
|
100
100
|
|
|
101
101
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- needs manual remediation
|
|
102
102
|
export const highlightRemoveStyles = css`
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
103
|
+
outline: none !important;
|
|
104
|
+
outline-color: inherit;
|
|
105
|
+
color: inherit;
|
|
106
|
+
-webkit-tap-highlight-color: transparent;
|
|
107
|
+
-webkit-touch-callout: none;
|
|
108
|
+
-webkit-user-select: none;
|
|
109
|
+
-moz-user-select: none;
|
|
110
|
+
-ms-user-select: none;
|
|
111
|
+
user-select: none;
|
|
112
112
|
`;
|
|
113
113
|
const isActionGroup = node => /*#__PURE__*/React.isValidElement(node) && node.type === ActionGroup;
|
|
114
114
|
const isElementDisplayValid = (name, display) => {
|
|
@@ -93,24 +93,24 @@ export const getContainerStyles = (size, hideBackground, hideElevation, hidePadd
|
|
|
93
93
|
|
|
94
94
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- needs manual remediation
|
|
95
95
|
return css`
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
96
|
+
display: flex;
|
|
97
|
+
gap: ${getGap(size)} 0;
|
|
98
|
+
flex-direction: column;
|
|
99
|
+
min-width: 0;
|
|
100
|
+
overflow-x: hidden;
|
|
101
|
+
position: relative;
|
|
102
|
+
${hideBackground ? '' : `background-color: ${"var(--ds-surface-raised, #FFFFFF)"};`}
|
|
103
|
+
${paddingCss}
|
|
104
104
|
${hideElevation ? '' : elevationStyles}
|
|
105
105
|
${clickableContainer ? clickableContainerStyles : ''}
|
|
106
106
|
&:hover ~ .actions-button-group {
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
107
|
+
opacity: 1;
|
|
108
|
+
}
|
|
109
|
+
a:focus,
|
|
110
|
+
.has-action:focus {
|
|
111
|
+
outline-offset: -2px;
|
|
112
|
+
}
|
|
113
|
+
`;
|
|
114
114
|
};
|
|
115
115
|
const renderChildren = (children, containerSize, containerTheme, status, retry, onClick) => React.Children.map(children, child => {
|
|
116
116
|
// TODO: EDM-6468: Use useFlexibleUiOptionContext for rendering options inside block/element instead
|
|
@@ -27,15 +27,15 @@ const getStyles = size => {
|
|
|
27
27
|
default:
|
|
28
28
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- needs manual remediation
|
|
29
29
|
return css`
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
30
|
+
${styles}
|
|
31
|
+
li {
|
|
32
|
+
span,
|
|
33
|
+
svg {
|
|
34
|
+
max-height: 1.25rem;
|
|
35
|
+
max-width: 1.25rem;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
`;
|
|
39
39
|
}
|
|
40
40
|
};
|
|
41
41
|
const getPersonNameWithPrefix = (elementName, personName, intl) => {
|
|
@@ -14,16 +14,16 @@ const badgeStyles = css({
|
|
|
14
14
|
|
|
15
15
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- needs manual remediation
|
|
16
16
|
const iconStyles = css`
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
17
|
+
color: ${"var(--ds-icon-subtle, #626F86)"};
|
|
18
|
+
line-height: 0;
|
|
19
|
+
vertical-align: middle;
|
|
20
|
+
${getIconSizeStyles('1rem')}
|
|
21
|
+
img,
|
|
22
22
|
span,
|
|
23
23
|
svg {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
line-height: 0;
|
|
25
|
+
vertical-align: middle;
|
|
26
|
+
}
|
|
27
27
|
`;
|
|
28
28
|
const labelStyles = css({
|
|
29
29
|
color: "var(--ds-text-subtlest, #626F86)",
|
|
@@ -43,17 +43,17 @@ export const getIconSizeStyles = width => {
|
|
|
43
43
|
const sizeStyles = getIconDimensionStyles(width);
|
|
44
44
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- needs manual remediation
|
|
45
45
|
return css`
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
46
|
+
flex: 0 0 auto;
|
|
47
|
+
${sizeStyles}
|
|
48
|
+
span,
|
|
49
49
|
svg,
|
|
50
50
|
img {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
51
|
+
${sizeStyles}
|
|
52
|
+
}
|
|
53
|
+
svg {
|
|
54
|
+
padding: 0;
|
|
55
|
+
}
|
|
56
|
+
`;
|
|
57
57
|
};
|
|
58
58
|
export const getIconWidth = size => {
|
|
59
59
|
switch (size) {
|
|
@@ -4,31 +4,31 @@ const elementGap = '0.5rem';
|
|
|
4
4
|
|
|
5
5
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- needs manual remediation
|
|
6
6
|
export const metadataBlockCss = css`
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
gap: 0px;
|
|
8
|
+
/* primary element group */
|
|
9
|
+
[data-smart-element-group]:nth-of-type(1) {
|
|
10
|
+
flex-grow: 7;
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
// a separator between text-based element
|
|
13
|
+
${separatorCss}
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
/* horizontal spacing between elements in group */
|
|
16
16
|
> span {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
17
|
+
margin-right: ${elementGap};
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
/* secondary element group */
|
|
21
|
+
[data-smart-element-group]:nth-of-type(2) {
|
|
22
|
+
flex-grow: 3;
|
|
23
|
+
/* horizontal spacing between elements in group */
|
|
24
|
+
> span {
|
|
25
|
+
margin-left: ${elementGap};
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
28
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
[data-smart-element-group] {
|
|
30
|
+
line-height: 1rem;
|
|
31
|
+
}
|
|
32
32
|
`;
|
|
33
33
|
export const footerBlockCss = css({
|
|
34
34
|
height: '1.5rem'
|
|
@@ -27,38 +27,38 @@ export const separatorCss = css({
|
|
|
27
27
|
|
|
28
28
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- needs manual remediation
|
|
29
29
|
export const HoverCardContainer = css`
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
30
|
+
background: none;
|
|
31
|
+
border-width: 0;
|
|
32
|
+
box-sizing: border-box;
|
|
33
|
+
width: ${getBooleanFF('platform.linking-platform.smart-card.hover-card-ai-summaries') ? NEW_CARD_WIDTH_REM : CARD_WIDTH_REM}rem;
|
|
34
34
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
35
|
+
.${loadingPlaceholderClassName} {
|
|
36
|
+
display: none;
|
|
37
|
+
}
|
|
38
38
|
`;
|
|
39
39
|
|
|
40
40
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- needs manual remediation
|
|
41
41
|
export const titleBlockCss = css`
|
|
42
|
-
|
|
42
|
+
gap: ${blockGap};
|
|
43
43
|
|
|
44
|
-
|
|
44
|
+
${separatorCss}
|
|
45
45
|
|
|
46
|
-
|
|
46
|
+
// title and subtitle element group
|
|
47
47
|
[data-smart-element-group] {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
48
|
+
// gap between title and subtitle
|
|
49
|
+
gap: 0.06rem;
|
|
50
|
+
display: flex;
|
|
51
|
+
/* subtitle element group */
|
|
52
|
+
> [data-smart-element-group] {
|
|
53
|
+
> span {
|
|
54
|
+
margin-right: ${elementGap};
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
58
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
59
|
+
[data-smart-element='Title'] {
|
|
60
|
+
font-weight: 600;
|
|
61
|
+
}
|
|
62
62
|
`;
|
|
63
63
|
export const getTransitionStyles = snippetHeight => css({
|
|
64
64
|
transition: 'height 300ms ease-in-out',
|
|
@@ -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: "27.5.
|
|
10
|
+
packageVersion: "27.5.4",
|
|
11
11
|
componentName: 'linkUrl'
|
|
12
12
|
};
|
|
13
13
|
const Link = withLinkClickedEvent('a');
|
|
@@ -2,10 +2,10 @@ import React from 'react';
|
|
|
2
2
|
import Heading from '@atlaskit/heading';
|
|
3
3
|
import { Box, xcss } from '@atlaskit/primitives';
|
|
4
4
|
const emptyStateStyles = xcss({
|
|
5
|
-
alignItems:
|
|
5
|
+
alignItems: 'center',
|
|
6
6
|
display: 'flex',
|
|
7
7
|
flexDirection: 'column',
|
|
8
|
-
gap:
|
|
8
|
+
gap: 'space.100',
|
|
9
9
|
height: '100%',
|
|
10
10
|
justifyContent: 'center',
|
|
11
11
|
marginLeft: 'space.300',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { FormattedMessage, useIntl } from
|
|
2
|
+
import { FormattedMessage, useIntl } from 'react-intl-next';
|
|
3
3
|
import { messages } from '../../../../messages';
|
|
4
|
-
import { ErrorSVG } from
|
|
4
|
+
import { ErrorSVG } from './error-svg';
|
|
5
5
|
import { EmptyState } from '../../components/EmptyState';
|
|
6
6
|
export const RelatedLinksErroredView = () => {
|
|
7
7
|
const intl = useIntl();
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Box, xcss } from '@atlaskit/primitives';
|
|
3
|
+
import Spinner from '@atlaskit/spinner';
|
|
4
|
+
const style = xcss({
|
|
5
|
+
alignItems: 'center',
|
|
6
|
+
display: 'flex',
|
|
7
|
+
flexDirection: 'column',
|
|
8
|
+
height: '100%',
|
|
9
|
+
justifyContent: 'center'
|
|
10
|
+
});
|
|
11
|
+
const RelatedLinksResolvingView = () => /*#__PURE__*/React.createElement(Box, {
|
|
12
|
+
xcss: style,
|
|
13
|
+
testId: "related-links-resolving-view"
|
|
14
|
+
}, /*#__PURE__*/React.createElement(Spinner, {
|
|
15
|
+
size: 'large',
|
|
16
|
+
testId: "related-links-resolving-view-spinner"
|
|
17
|
+
}));
|
|
18
|
+
export default RelatedLinksResolvingView;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { FormattedMessage, useIntl } from
|
|
2
|
+
import { FormattedMessage, useIntl } from 'react-intl-next';
|
|
3
3
|
import { messages } from '../../../../messages';
|
|
4
4
|
import { EmptyState } from '../../components/EmptyState';
|
|
5
5
|
import { UnavailableSVG } from './unavailable-svg';
|
|
@@ -36,7 +36,7 @@ export var extractIcon = function extractIcon(jsonLd) {
|
|
|
36
36
|
|
|
37
37
|
/**
|
|
38
38
|
* Extracts an icon based on the given type.
|
|
39
|
-
*
|
|
39
|
+
*
|
|
40
40
|
* Some types return hardcoded icons, while others follow a priority list on how to pick the icon.
|
|
41
41
|
* If type is not recognized, it will return the icon from the provider, or `undefined` if no icon is found.
|
|
42
42
|
*
|
|
@@ -11,7 +11,7 @@ export var extractAutomationAction = function extractAutomationAction(response)
|
|
|
11
11
|
var data = response.data;
|
|
12
12
|
var meta = response.meta;
|
|
13
13
|
var name = data.name,
|
|
14
|
-
objectAri = data[
|
|
14
|
+
objectAri = data['atlassian:ari'];
|
|
15
15
|
var product = meta.product,
|
|
16
16
|
tenantId = meta.tenantId,
|
|
17
17
|
resourceType = meta.resourceType;
|
package/dist/esm/messages.js
CHANGED
|
@@ -717,7 +717,7 @@ export var messages = defineMessages({
|
|
|
717
717
|
},
|
|
718
718
|
related_links_not_found: {
|
|
719
719
|
id: 'fabric.linking.related_links_not_found',
|
|
720
|
-
defaultMessage:
|
|
720
|
+
defaultMessage: "We didn't find any links to show here.",
|
|
721
721
|
description: 'Informs the user that there are no related resources for the given url'
|
|
722
722
|
},
|
|
723
723
|
related_links_includes_links_to: {
|
|
@@ -742,7 +742,7 @@ export var messages = defineMessages({
|
|
|
742
742
|
},
|
|
743
743
|
related_links_modal_unavailable_message: {
|
|
744
744
|
id: 'fabric.linking.related_links_modal_unavailable_message',
|
|
745
|
-
defaultMessage:
|
|
745
|
+
defaultMessage: "We didn't find any links to show here. We continuously review and add recent links for updated pages or other content types.",
|
|
746
746
|
description: 'Informs the user that related links were not found but may be available in the future'
|
|
747
747
|
}
|
|
748
748
|
});
|
|
@@ -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: "27.5.
|
|
18
|
+
packageVersion: "27.5.4"
|
|
19
19
|
};
|
|
20
20
|
export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
21
21
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -67,7 +67,7 @@ function visible(_ref7) {
|
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
// 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
|
|
70
|
-
export var LinkWrapper = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n
|
|
70
|
+
export var LinkWrapper = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t", " &:hover {\n\t\ttext-decoration: none;\n\t}\n"])), function (props) {
|
|
71
71
|
return wrapperStyles(props);
|
|
72
72
|
});
|
|
73
73
|
|
|
@@ -130,7 +130,7 @@ export var TooltipWrapper = styled.div({
|
|
|
130
130
|
// the internal contents of the `iframe` should
|
|
131
131
|
// manage scrolling behaviour.
|
|
132
132
|
// 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
|
|
133
|
-
export var Content = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n
|
|
133
|
+
export var Content = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n\t", ";\n\tborder: 1px solid ", ";\n\tbackground-color: ", ";\n\tposition: absolute;\n\tz-index: 1;\n\twidth: 100%;\n\ttransition: box-shadow 0.3s;\n\n\t> .calc-height > div > div {\n\t\tleft: unset !important;\n\t\twidth: unset !important;\n\t\theight: unset !important;\n\t\tposition: initial !important;\n\t\tpadding-bottom: unset !important;\n\t}\n\t> .embed-preview > div {\n\t\tmargin: 0 auto;\n\t}\n\n\t", "\n\n\t", "\n\n ", "\n"])), contentBorderRadius, "var(--ds-border, ".concat(N40, ")"), "var(--ds-surface-raised, white)", function (_ref11) {
|
|
134
134
|
var allowScrollBar = _ref11.allowScrollBar,
|
|
135
135
|
removeOverflow = _ref11.removeOverflow;
|
|
136
136
|
if (removeOverflow) {
|
|
@@ -12,7 +12,7 @@ export var extractCloudIdAndProductFromSite = function extractCloudIdAndProductF
|
|
|
12
12
|
var cloudId;
|
|
13
13
|
var resourceOwner;
|
|
14
14
|
var resourceType;
|
|
15
|
-
var ariRegex = new RegExp(
|
|
15
|
+
var ariRegex = new RegExp('^ari:cloud:([a-zA-Z.\\-]+)::([a-zA-Z.\\-]+)/([a-zA-Z0-9\\-]+)');
|
|
16
16
|
var parsedAri = site.match(ariRegex);
|
|
17
17
|
if (parsedAri) {
|
|
18
18
|
resourceOwner = parsedAri[1];
|
|
@@ -28,15 +28,15 @@ var i18n = defineMessages({
|
|
|
28
28
|
}
|
|
29
29
|
});
|
|
30
30
|
var emptyStateStyles = xcss({
|
|
31
|
-
paddingLeft:
|
|
32
|
-
paddingRight:
|
|
33
|
-
marginTop:
|
|
31
|
+
paddingLeft: 'space.300',
|
|
32
|
+
paddingRight: 'space.300',
|
|
33
|
+
marginTop: 'space.500'
|
|
34
34
|
});
|
|
35
35
|
var imageStyles = xcss({
|
|
36
36
|
marginTop: 'space.050',
|
|
37
37
|
marginBottom: 'space.300',
|
|
38
|
-
width:
|
|
39
|
-
height:
|
|
38
|
+
width: '160px',
|
|
39
|
+
height: '156px'
|
|
40
40
|
});
|
|
41
41
|
var descriptionStyles = xcss({
|
|
42
42
|
width: '360px',
|
|
@@ -2,8 +2,8 @@ import { messages } from '../../../../../../messages';
|
|
|
2
2
|
export var getModalContent = function getModalContent(product, resourceType) {
|
|
3
3
|
var _modalContentMap$prod;
|
|
4
4
|
var modalContentMap = {
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
confluence: {
|
|
6
|
+
page: {
|
|
7
7
|
modalTitle: messages.automation_action_confluence_page_modal_title,
|
|
8
8
|
modalDescription: messages.automation_action_confluence_page_modal_description
|
|
9
9
|
}
|
|
@@ -8,7 +8,7 @@ import { getBaseStyles, getGapSize, highlightRemoveStyles, renderChildren } from
|
|
|
8
8
|
var getBlockStyles = function getBlockStyles(direction, size
|
|
9
9
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- needs manual remediation
|
|
10
10
|
) {
|
|
11
|
-
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n
|
|
11
|
+
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t", "\n\t", "\n justify-content: flex-start;\n\t[data-separator] + [data-separator]:before {\n\t\tcontent: '\u2022';\n\t\tmargin-right: ", "rem;\n\t}\n\t// Pull request elements: source branch \u2192 target branch\n\t[data-smart-element='", "']\n\t\t+ [data-smart-element='", "']:before {\n\t\tcontent: '\u2192';\n\t}\n\t// Pull request elements: target branch \u2190 source branch\n\t[data-smart-element='", "']\n\t\t+ [data-smart-element='", "']:before {\n\t\tcontent: '\u2190';\n\t}\n"])), getBaseStyles(direction, size), highlightRemoveStyles, getGapSize(size), ElementName.SourceBranch, ElementName.TargetBranch, ElementName.TargetBranch, ElementName.SourceBranch);
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
/**
|
|
@@ -48,7 +48,7 @@ var getGapStyles = function getGapStyles(size, align) {
|
|
|
48
48
|
var getHorizontalDirectionStyles = function getHorizontalDirectionStyles(size, align) {
|
|
49
49
|
var lineHeight = getMaxLineHeight(size);
|
|
50
50
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- needs manual remediation
|
|
51
|
-
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n
|
|
51
|
+
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t\tdisplay: block;\n\t\tvertical-align: middle;\n\t\t", "\n\n\t\t> span, > div {\n\t\t\tvertical-align: middle;\n\n\t\t\t&[data-smart-element-date-time],\n\t\t\t&[data-smart-element-text] {\n\t\t\t\t// Show all/wrapped/truncated\n\t\t\t\tdisplay: inline;\n\t\t\t}\n\t\t}\n\n\t\t", "\n\t"])), getTruncateStyles(1, lineHeight + 'rem'), getGapStyles(size, align));
|
|
52
52
|
};
|
|
53
53
|
export var getElementGroupStyles = function getElementGroupStyles(direction, size, align, width, position) {
|
|
54
54
|
return css(getBaseStyles(direction, size), getAlignmentStyles(align), {
|
|
@@ -30,7 +30,7 @@ var getPreviewBlockStyles = function getPreviewBlockStyles(placement, ignoreCont
|
|
|
30
30
|
if (placement === MediaPlacement.Left || placement === MediaPlacement.Right) {
|
|
31
31
|
var containerPadding = ignoreContainerPadding ? '0rem' : 'var(--container-padding)';
|
|
32
32
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- needs manual remediation
|
|
33
|
-
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n
|
|
33
|
+
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t\t\tposition: absolute;\n\t\t\ttop: ", ";\n\t\t\tbottom: ", ";\n\t\t\twidth: calc(var(--preview-block-width) - ", ");\n\n\t\t\t", "\n\t\t\t", "\n\n [data-smart-element-media='image'] {\n\t\t\t\taspect-ratio: unset;\n\t\t\t\tpadding-top: unset;\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 100%;\n\t\t\t\tobject-fit: cover;\n\t\t\t}\n\t\t"])), containerPadding, containerPadding, containerPadding, placement === MediaPlacement.Left ? "left: ".concat(containerPadding, ";") : '', placement === MediaPlacement.Right ? "right: ".concat(containerPadding, ";") : '');
|
|
34
34
|
}
|
|
35
35
|
if (ignoreContainerPadding) {
|
|
36
36
|
return css({
|
|
@@ -72,7 +72,7 @@ export var getBaseStyles = function getBaseStyles(direction, size) {
|
|
|
72
72
|
};
|
|
73
73
|
|
|
74
74
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- needs manual remediation
|
|
75
|
-
export var highlightRemoveStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n
|
|
75
|
+
export var highlightRemoveStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\toutline: none !important;\n\toutline-color: inherit;\n\tcolor: inherit;\n\t-webkit-tap-highlight-color: transparent;\n\t-webkit-touch-callout: none;\n\t-webkit-user-select: none;\n\t-moz-user-select: none;\n\t-ms-user-select: none;\n\tuser-select: none;\n"])));
|
|
76
76
|
var isActionGroup = function isActionGroup(node) {
|
|
77
77
|
return /*#__PURE__*/React.isValidElement(node) && node.type === ActionGroup;
|
|
78
78
|
};
|
|
@@ -90,7 +90,7 @@ export var getContainerStyles = function getContainerStyles(size, hideBackground
|
|
|
90
90
|
var paddingCss = getContainerPaddingStyles(size, hidePadding, childrenOptions);
|
|
91
91
|
|
|
92
92
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- needs manual remediation
|
|
93
|
-
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n
|
|
93
|
+
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t\tdisplay: flex;\n\t\tgap: ", " 0;\n\t\tflex-direction: column;\n\t\tmin-width: 0;\n\t\toverflow-x: hidden;\n\t\tposition: relative;\n\t\t", "\n\t\t", "\n ", "\n ", "\n &:hover ~ .actions-button-group {\n\t\t\topacity: 1;\n\t\t}\n\t\ta:focus,\n\t\t.has-action:focus {\n\t\t\toutline-offset: -2px;\n\t\t}\n\t"])), getGap(size), hideBackground ? '' : "background-color: ".concat("var(--ds-surface-raised, #FFFFFF)", ";"), paddingCss, hideElevation ? '' : elevationStyles, clickableContainer ? clickableContainerStyles : '');
|
|
94
94
|
};
|
|
95
95
|
var renderChildren = function renderChildren(children, containerSize, containerTheme, status, retry, onClick) {
|
|
96
96
|
return React.Children.map(children, function (child) {
|
|
@@ -31,7 +31,7 @@ var getStyles = function getStyles(size) {
|
|
|
31
31
|
case SmartLinkSize.Small:
|
|
32
32
|
default:
|
|
33
33
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- needs manual remediation
|
|
34
|
-
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n
|
|
34
|
+
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t\t\t\t", "\n\t\t\t\tli {\n\t\t\t\t\tspan,\n\t\t\t\t\tsvg {\n\t\t\t\t\t\tmax-height: 1.25rem;\n\t\t\t\t\t\tmax-width: 1.25rem;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t"])), styles);
|
|
35
35
|
}
|
|
36
36
|
};
|
|
37
37
|
var getPersonNameWithPrefix = function getPersonNameWithPrefix(elementName, personName, intl) {
|
|
@@ -16,7 +16,7 @@ var badgeStyles = css({
|
|
|
16
16
|
});
|
|
17
17
|
|
|
18
18
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- needs manual remediation
|
|
19
|
-
var iconStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n
|
|
19
|
+
var iconStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\tcolor: ", ";\n\tline-height: 0;\n\tvertical-align: middle;\n\t", "\n\timg,\n span,\n svg {\n\t\tline-height: 0;\n\t\tvertical-align: middle;\n\t}\n"])), "var(--ds-icon-subtle, #626F86)", getIconSizeStyles('1rem'));
|
|
20
20
|
var labelStyles = css({
|
|
21
21
|
color: "var(--ds-text-subtlest, #626F86)",
|
|
22
22
|
fontSize: '0.75rem',
|
|
@@ -42,7 +42,7 @@ var getIconDimensionStyles = function getIconDimensionStyles(value) {
|
|
|
42
42
|
export var getIconSizeStyles = function getIconSizeStyles(width) {
|
|
43
43
|
var sizeStyles = getIconDimensionStyles(width);
|
|
44
44
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- needs manual remediation
|
|
45
|
-
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n
|
|
45
|
+
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t\tflex: 0 0 auto;\n\t\t", "\n\t\tspan,\n svg,\n img {\n\t\t\t", "\n\t\t}\n\t\tsvg {\n\t\t\tpadding: 0;\n\t\t}\n\t"])), sizeStyles, sizeStyles);
|
|
46
46
|
};
|
|
47
47
|
export var getIconWidth = function getIconWidth(size) {
|
|
48
48
|
switch (size) {
|
|
@@ -5,7 +5,7 @@ import { separatorCss } from '../../../styled';
|
|
|
5
5
|
var elementGap = '0.5rem';
|
|
6
6
|
|
|
7
7
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- needs manual remediation
|
|
8
|
-
export var metadataBlockCss = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n
|
|
8
|
+
export var metadataBlockCss = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\tgap: 0px;\n\t/* primary element group */\n\t[data-smart-element-group]:nth-of-type(1) {\n\t\tflex-grow: 7;\n\n\t\t// a separator between text-based element\n\t\t", "\n\n\t\t/* horizontal spacing between elements in group */\n > span {\n\t\t\tmargin-right: ", ";\n\t\t}\n\t}\n\t/* secondary element group */\n\t[data-smart-element-group]:nth-of-type(2) {\n\t\tflex-grow: 3;\n\t\t/* horizontal spacing between elements in group */\n\t\t> span {\n\t\t\tmargin-left: ", ";\n\t\t}\n\t}\n\n\t[data-smart-element-group] {\n\t\tline-height: 1rem;\n\t}\n"])), separatorCss, elementGap, elementGap);
|
|
9
9
|
export var footerBlockCss = css({
|
|
10
10
|
height: '1.5rem'
|
|
11
11
|
});
|
|
@@ -28,10 +28,10 @@ export var separatorCss = css({
|
|
|
28
28
|
});
|
|
29
29
|
|
|
30
30
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- needs manual remediation
|
|
31
|
-
export var HoverCardContainer = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n
|
|
31
|
+
export var HoverCardContainer = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\tbackground: none;\n\tborder-width: 0;\n\tbox-sizing: border-box;\n\twidth: ", "rem;\n\n\t.", " {\n\t\tdisplay: none;\n\t}\n"])), getBooleanFF('platform.linking-platform.smart-card.hover-card-ai-summaries') ? NEW_CARD_WIDTH_REM : CARD_WIDTH_REM, loadingPlaceholderClassName);
|
|
32
32
|
|
|
33
33
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- needs manual remediation
|
|
34
|
-
export var titleBlockCss = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n
|
|
34
|
+
export var titleBlockCss = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n\tgap: ", ";\n\n\t", "\n\n\t// title and subtitle element group\n [data-smart-element-group] {\n\t\t// gap between title and subtitle\n\t\tgap: 0.06rem;\n\t\tdisplay: flex;\n\t\t/* subtitle element group */\n\t\t> [data-smart-element-group] {\n\t\t\t> span {\n\t\t\t\tmargin-right: ", ";\n\t\t\t}\n\t\t}\n\t}\n\n\t[data-smart-element='Title'] {\n\t\tfont-weight: 600;\n\t}\n"])), blockGap, separatorCss, elementGap);
|
|
35
35
|
export var getTransitionStyles = function getTransitionStyles(snippetHeight) {
|
|
36
36
|
return css({
|
|
37
37
|
transition: 'height 300ms ease-in-out',
|
|
@@ -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: "27.5.
|
|
13
|
+
packageVersion: "27.5.4",
|
|
14
14
|
componentName: 'linkUrl'
|
|
15
15
|
};
|
|
16
16
|
var Link = withLinkClickedEvent('a');
|
|
@@ -2,10 +2,10 @@ import React from 'react';
|
|
|
2
2
|
import Heading from '@atlaskit/heading';
|
|
3
3
|
import { Box, xcss } from '@atlaskit/primitives';
|
|
4
4
|
var emptyStateStyles = xcss({
|
|
5
|
-
alignItems:
|
|
5
|
+
alignItems: 'center',
|
|
6
6
|
display: 'flex',
|
|
7
7
|
flexDirection: 'column',
|
|
8
|
-
gap:
|
|
8
|
+
gap: 'space.100',
|
|
9
9
|
height: '100%',
|
|
10
10
|
justifyContent: 'center',
|
|
11
11
|
marginLeft: 'space.300',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { FormattedMessage, useIntl } from
|
|
2
|
+
import { FormattedMessage, useIntl } from 'react-intl-next';
|
|
3
3
|
import { messages } from '../../../../messages';
|
|
4
|
-
import { ErrorSVG } from
|
|
4
|
+
import { ErrorSVG } from './error-svg';
|
|
5
5
|
import { EmptyState } from '../../components/EmptyState';
|
|
6
6
|
export var RelatedLinksErroredView = function RelatedLinksErroredView() {
|
|
7
7
|
var intl = useIntl();
|