@atlaskit/smart-card 32.8.1 → 32.8.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/dist/cjs/extractors/action/extract-invoke-download-action.js +2 -2
- package/dist/cjs/extractors/common/icon/extractIcon.js +0 -5
- package/dist/cjs/extractors/common/icon/extractIconFromDocument.js +0 -1
- package/dist/cjs/extractors/common/icon/extractIconFromTask.js +0 -11
- package/dist/cjs/extractors/common/icon/prioritiseIcon.js +0 -4
- package/dist/cjs/extractors/flexible/actions/extract-download-action.js +2 -2
- package/dist/cjs/extractors/flexible/actions/extract-preview-action.js +2 -2
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/utils/test-utils.js +1 -11
- package/dist/cjs/view/BlockCard/views/UnauthorisedView.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/actions/action/action-button/index.js +2 -3
- package/dist/cjs/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/mocks.js +1 -4
- package/dist/cjs/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/test-utils.js +1 -7
- package/dist/cjs/view/FlexibleCard/components/common/atlaskit-icon/index.js +0 -1
- package/dist/cjs/view/FlexibleCard/components/elements/badge/index.js +1 -2
- package/dist/cjs/view/FlexibleCard/components/elements/date-time/index.js +1 -2
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/styled.js +2 -3
- package/dist/cjs/view/FlexibleCard/components/elements/text/index.js +1 -2
- package/dist/cjs/view/FlexibleCard/components/utils.js +3 -6
- package/dist/cjs/view/HoverCard/components/views/forbidden/styled.js +2 -4
- package/dist/cjs/view/HoverCard/components/views/unauthorised/styled.js +2 -3
- package/dist/cjs/view/InlineCard/styled.js +1 -6
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/cjs/view/common/ai-summary/index.js +1 -2
- package/dist/es2019/extractors/action/extract-invoke-download-action.js +1 -1
- package/dist/es2019/extractors/common/icon/extractIcon.js +0 -5
- package/dist/es2019/extractors/common/icon/extractIconFromDocument.js +0 -1
- package/dist/es2019/extractors/common/icon/extractIconFromTask.js +0 -11
- package/dist/es2019/extractors/common/icon/prioritiseIcon.js +0 -4
- package/dist/es2019/extractors/flexible/actions/extract-download-action.js +1 -1
- package/dist/es2019/extractors/flexible/actions/extract-preview-action.js +1 -1
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/utils/test-utils.js +0 -10
- package/dist/es2019/view/BlockCard/views/UnauthorisedView.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/actions/action/action-button/index.js +2 -3
- package/dist/es2019/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/mocks.js +0 -3
- package/dist/es2019/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/test-utils.js +0 -6
- package/dist/es2019/view/FlexibleCard/components/common/atlaskit-icon/index.js +0 -1
- package/dist/es2019/view/FlexibleCard/components/elements/badge/index.js +1 -2
- package/dist/es2019/view/FlexibleCard/components/elements/date-time/index.js +1 -2
- package/dist/es2019/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/styled.js +2 -3
- package/dist/es2019/view/FlexibleCard/components/elements/text/index.js +1 -2
- package/dist/es2019/view/FlexibleCard/components/utils.js +3 -6
- package/dist/es2019/view/HoverCard/components/views/forbidden/styled.js +2 -4
- package/dist/es2019/view/HoverCard/components/views/unauthorised/styled.js +2 -3
- package/dist/es2019/view/InlineCard/styled.js +0 -5
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/es2019/view/common/ai-summary/index.js +1 -2
- package/dist/esm/extractors/action/extract-invoke-download-action.js +1 -1
- package/dist/esm/extractors/common/icon/extractIcon.js +0 -5
- package/dist/esm/extractors/common/icon/extractIconFromDocument.js +0 -1
- package/dist/esm/extractors/common/icon/extractIconFromTask.js +0 -11
- package/dist/esm/extractors/common/icon/prioritiseIcon.js +0 -4
- package/dist/esm/extractors/flexible/actions/extract-download-action.js +1 -1
- package/dist/esm/extractors/flexible/actions/extract-preview-action.js +1 -1
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/utils/test-utils.js +0 -10
- package/dist/esm/view/BlockCard/views/UnauthorisedView.js +1 -1
- package/dist/esm/view/FlexibleCard/components/actions/action/action-button/index.js +2 -3
- package/dist/esm/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/mocks.js +0 -3
- package/dist/esm/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/test-utils.js +0 -6
- package/dist/esm/view/FlexibleCard/components/common/atlaskit-icon/index.js +0 -1
- package/dist/esm/view/FlexibleCard/components/elements/badge/index.js +1 -2
- package/dist/esm/view/FlexibleCard/components/elements/date-time/index.js +1 -2
- package/dist/esm/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/styled.js +2 -3
- package/dist/esm/view/FlexibleCard/components/elements/text/index.js +1 -2
- package/dist/esm/view/FlexibleCard/components/utils.js +3 -6
- package/dist/esm/view/HoverCard/components/views/forbidden/styled.js +2 -4
- package/dist/esm/view/HoverCard/components/views/unauthorised/styled.js +2 -3
- package/dist/esm/view/InlineCard/styled.js +0 -5
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/esm/view/common/ai-summary/index.js +1 -2
- package/dist/types/extractors/common/__mocks__/jsonld.d.ts +0 -8
- package/dist/types/extractors/common/icon/prioritiseIcon.d.ts +0 -9
- package/dist/types/extractors/flexible/utils.d.ts +4 -0
- package/dist/types/state/hooks/use-ai-summary/ai-summary-service/types.d.ts +0 -6
- package/dist/types/utils/analytics/types.d.ts +1 -9
- package/dist/types/utils/test-utils.d.ts +0 -2
- package/dist/types/view/EmbedCard/types.d.ts +1 -7
- package/dist/types/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/mocks.d.ts +1 -2
- package/dist/types/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/test-utils.d.ts +0 -5
- package/dist/types/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/types.d.ts +0 -16
- package/dist/types/view/FlexibleCard/components/blocks/preview-block/types.d.ts +0 -3
- package/dist/types/view/HoverCard/types.d.ts +0 -2
- package/dist/types/view/InlineCard/styled.d.ts +0 -4
- package/dist/types-ts4.5/extractors/common/__mocks__/jsonld.d.ts +0 -8
- package/dist/types-ts4.5/extractors/common/icon/prioritiseIcon.d.ts +0 -9
- package/dist/types-ts4.5/extractors/flexible/utils.d.ts +4 -0
- package/dist/types-ts4.5/state/hooks/use-ai-summary/ai-summary-service/types.d.ts +0 -6
- package/dist/types-ts4.5/utils/analytics/types.d.ts +1 -9
- package/dist/types-ts4.5/utils/test-utils.d.ts +0 -2
- package/dist/types-ts4.5/view/EmbedCard/types.d.ts +1 -7
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/mocks.d.ts +1 -2
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/test-utils.d.ts +0 -5
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/types.d.ts +0 -16
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/preview-block/types.d.ts +0 -3
- package/dist/types-ts4.5/view/HoverCard/types.d.ts +0 -2
- package/dist/types-ts4.5/view/InlineCard/styled.d.ts +0 -4
- package/package.json +1 -1
- package/dist/cjs/extractors/common/byline/extractByline.js +0 -40
- package/dist/cjs/extractors/common/detail/extractAttachmentCount.js +0 -23
- package/dist/cjs/extractors/common/detail/extractCommentCount.js +0 -24
- package/dist/cjs/extractors/common/detail/extractProgrammingLanguage.js +0 -23
- package/dist/cjs/extractors/common/detail/extractSubscriberCount.js +0 -23
- package/dist/cjs/extractors/common/detail/index.js +0 -40
- package/dist/cjs/extractors/common/detail/types.js +0 -1
- package/dist/cjs/state/analytics/types.js +0 -5
- package/dist/es2019/extractors/common/byline/extractByline.js +0 -35
- package/dist/es2019/extractors/common/detail/extractAttachmentCount.js +0 -16
- package/dist/es2019/extractors/common/detail/extractCommentCount.js +0 -17
- package/dist/es2019/extractors/common/detail/extractProgrammingLanguage.js +0 -16
- package/dist/es2019/extractors/common/detail/extractSubscriberCount.js +0 -16
- package/dist/es2019/extractors/common/detail/index.js +0 -5
- package/dist/es2019/extractors/common/detail/types.js +0 -0
- package/dist/es2019/state/analytics/types.js +0 -1
- package/dist/esm/extractors/common/byline/extractByline.js +0 -33
- package/dist/esm/extractors/common/detail/extractAttachmentCount.js +0 -16
- package/dist/esm/extractors/common/detail/extractCommentCount.js +0 -17
- package/dist/esm/extractors/common/detail/extractProgrammingLanguage.js +0 -16
- package/dist/esm/extractors/common/detail/extractSubscriberCount.js +0 -16
- package/dist/esm/extractors/common/detail/index.js +0 -5
- package/dist/esm/extractors/common/detail/types.js +0 -0
- package/dist/esm/state/analytics/types.js +0 -1
- package/dist/types/extractors/common/byline/extractByline.d.ts +0 -3
- package/dist/types/extractors/common/detail/extractAttachmentCount.d.ts +0 -4
- package/dist/types/extractors/common/detail/extractCommentCount.d.ts +0 -4
- package/dist/types/extractors/common/detail/extractProgrammingLanguage.d.ts +0 -4
- package/dist/types/extractors/common/detail/extractSubscriberCount.d.ts +0 -4
- package/dist/types/extractors/common/detail/index.d.ts +0 -9
- package/dist/types/extractors/common/detail/types.d.ts +0 -5
- package/dist/types/state/analytics/types.d.ts +0 -9
- package/dist/types-ts4.5/extractors/common/byline/extractByline.d.ts +0 -3
- package/dist/types-ts4.5/extractors/common/detail/extractAttachmentCount.d.ts +0 -4
- package/dist/types-ts4.5/extractors/common/detail/extractCommentCount.d.ts +0 -4
- package/dist/types-ts4.5/extractors/common/detail/extractProgrammingLanguage.d.ts +0 -4
- package/dist/types-ts4.5/extractors/common/detail/extractSubscriberCount.d.ts +0 -4
- package/dist/types-ts4.5/extractors/common/detail/index.d.ts +0 -9
- package/dist/types-ts4.5/extractors/common/detail/types.d.ts +0 -5
- package/dist/types-ts4.5/state/analytics/types.d.ts +0 -9
- /package/dist/cjs/extractors/common/{detail → download}/extractDownloadUrl.js +0 -0
- /package/dist/es2019/extractors/common/{detail → download}/extractDownloadUrl.js +0 -0
- /package/dist/esm/extractors/common/{detail → download}/extractDownloadUrl.js +0 -0
- /package/dist/types/extractors/common/{detail → download}/extractDownloadUrl.d.ts +0 -0
- /package/dist/types-ts4.5/extractors/common/{detail → download}/extractDownloadUrl.d.ts +0 -0
|
@@ -2,7 +2,7 @@ import { canShowAction } from '../../../utils/actions/can-show-action';
|
|
|
2
2
|
import { CardAction } from '../../../view/Card/types';
|
|
3
3
|
import { extractInvokeDownloadAction } from '../../action/extract-invoke-download-action';
|
|
4
4
|
import { getActionsFromJsonLd } from '../../common/actions/extractActions';
|
|
5
|
-
import { extractDownloadUrl } from '../../common/
|
|
5
|
+
import { extractDownloadUrl } from '../../common/download/extractDownloadUrl';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* TODO: Remove on cleanup of platform-smart-card-migrate-embed-modal-analytics
|
|
@@ -2,7 +2,7 @@ import { extractLink, extractPreview as extractPreviewData, extractProvider, ext
|
|
|
2
2
|
import { canShowAction } from '../../../utils/actions/can-show-action';
|
|
3
3
|
import { CardAction } from '../../../view/Card/types';
|
|
4
4
|
import { extractInvokePreviewAction } from '../../action/extract-invoke-preview-action';
|
|
5
|
-
import { extractDownloadUrl } from '../../common/
|
|
5
|
+
import { extractDownloadUrl } from '../../common/download/extractDownloadUrl';
|
|
6
6
|
import { extractIsSupportTheming } from '../../common/meta/extractIsSupportTheming';
|
|
7
7
|
import { extractIsTrusted } from '../../common/meta/extractIsTrusted';
|
|
8
8
|
import { extractLinkIcon } from '../icon';
|
|
@@ -3,7 +3,7 @@ export const ANALYTICS_CHANNEL = 'media';
|
|
|
3
3
|
export const context = {
|
|
4
4
|
componentName: 'smart-cards',
|
|
5
5
|
packageName: "@atlaskit/smart-card",
|
|
6
|
-
packageVersion: "32.8.
|
|
6
|
+
packageVersion: "32.8.3"
|
|
7
7
|
};
|
|
8
8
|
export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
9
9
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
1
|
import React from 'react';
|
|
3
|
-
import { CardClient } from '@atlaskit/link-provider';
|
|
4
|
-
import { SmartCardProvider } from '../state';
|
|
5
2
|
const Hook = props => {
|
|
6
3
|
props.callback();
|
|
7
4
|
return null;
|
|
@@ -10,11 +7,4 @@ export const renderHook = callback => {
|
|
|
10
7
|
return /*#__PURE__*/React.createElement(Hook, {
|
|
11
8
|
callback: callback
|
|
12
9
|
});
|
|
13
|
-
};
|
|
14
|
-
export const renderSmartLinkHook = (callback, providerProps) => {
|
|
15
|
-
return /*#__PURE__*/React.createElement(SmartCardProvider, _extends({
|
|
16
|
-
client: new CardClient()
|
|
17
|
-
}, providerProps), /*#__PURE__*/React.createElement(Hook, {
|
|
18
|
-
callback: callback
|
|
19
|
-
}), ";");
|
|
20
10
|
};
|
|
@@ -19,7 +19,7 @@ import { withFlexibleUIBlockCardStyle } from './utils/withFlexibleUIBlockCardSty
|
|
|
19
19
|
const contentStyles = css({
|
|
20
20
|
color: "var(--ds-text-subtlest, #626F86)",
|
|
21
21
|
marginTop: "var(--ds-space-100, 0.5rem)",
|
|
22
|
-
|
|
22
|
+
font: "var(--ds-font-body-UNSAFE_small, normal 400 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)"
|
|
23
23
|
});
|
|
24
24
|
|
|
25
25
|
/**
|
|
@@ -25,12 +25,11 @@ const getButtonStyle = (size, iconOnly) => {
|
|
|
25
25
|
}) : '';
|
|
26
26
|
case SmartLinkSize.Small:
|
|
27
27
|
return css({
|
|
28
|
-
|
|
28
|
+
font: "var(--ds-font-body-UNSAFE_small, normal 400 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
29
29
|
fontWeight: "var(--ds-font-weight-medium, 500)",
|
|
30
|
-
lineHeight: '1rem',
|
|
31
30
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
32
31
|
'button, button:hover, button:focus, button:active': [{
|
|
33
|
-
lineHeight: '
|
|
32
|
+
lineHeight: 'inherit'
|
|
34
33
|
}, iconOnly ? `
|
|
35
34
|
padding: 0.125rem;
|
|
36
35
|
` : `
|
|
@@ -66,8 +66,5 @@ export const mockTransformedRules = [{
|
|
|
66
66
|
...mockRules.data[2],
|
|
67
67
|
userInputPrompts: mockRules.data[2].userInputs
|
|
68
68
|
}];
|
|
69
|
-
export const mockInvocationResponse = {
|
|
70
|
-
'TEST-1': 'SUCCESS'
|
|
71
|
-
};
|
|
72
69
|
export const mockGetUrl = 'https://test-api/get/rules';
|
|
73
70
|
export const mockInvokeUrl = 'https://test-api/invoke';
|
|
@@ -17,12 +17,6 @@ export const createStubInvokeManuallyTriggeredRule = (stubbedInvocationResultFor
|
|
|
17
17
|
}), {});
|
|
18
18
|
return responseDelay ? new Promise(resolve => setTimeout(resolve, responseDelay)) : Promise.resolve(response);
|
|
19
19
|
};
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* Default stubbed invokeManuallyTriggeredRule call. Returns 'SUCCESS' for
|
|
23
|
-
* all objects the rule was called for.
|
|
24
|
-
*/
|
|
25
|
-
export const successStubInvokeManuallyTriggeredRule = createStubInvokeManuallyTriggeredRule('SUCCESS', 2000);
|
|
26
20
|
const Provider = ({
|
|
27
21
|
children,
|
|
28
22
|
use,
|
|
@@ -102,7 +102,6 @@ const AtlaskitIcon = ({
|
|
|
102
102
|
testId: testId
|
|
103
103
|
});
|
|
104
104
|
case IconType.Blog:
|
|
105
|
-
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19493
|
|
106
105
|
return /*#__PURE__*/React.createElement(BlogIcon, {
|
|
107
106
|
label: label || 'blog',
|
|
108
107
|
testId: testId
|
|
@@ -32,8 +32,7 @@ const iconStyles = css`
|
|
|
32
32
|
`;
|
|
33
33
|
const labelStyles = css({
|
|
34
34
|
color: "var(--ds-text-subtlest, #626F86)",
|
|
35
|
-
|
|
36
|
-
lineHeight: '1rem',
|
|
35
|
+
font: "var(--ds-font-body-UNSAFE_small, normal 400 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
37
36
|
paddingLeft: "var(--ds-space-025, 0.125rem)",
|
|
38
37
|
verticalAlign: 'middle'
|
|
39
38
|
});
|
|
@@ -11,8 +11,7 @@ import { messages } from '../../../../../messages';
|
|
|
11
11
|
import { getTruncateStyles } from '../../utils';
|
|
12
12
|
const styles = css({
|
|
13
13
|
color: "var(--ds-text-subtlest, #626F86)",
|
|
14
|
-
|
|
15
|
-
lineHeight: '1rem'
|
|
14
|
+
font: "var(--ds-font-body-UNSAFE_small, normal 400 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)"
|
|
16
15
|
},
|
|
17
16
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
18
17
|
getTruncateStyles(1));
|
|
@@ -30,8 +30,7 @@ export const contentStyles = css(sharedBlockStyles, {
|
|
|
30
30
|
alignItems: 'flex-start',
|
|
31
31
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
32
32
|
'> span, > div': {
|
|
33
|
-
|
|
34
|
-
lineHeight: '1.25rem',
|
|
33
|
+
font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
35
34
|
color: `var(--ds-text, ${N800})`
|
|
36
35
|
}
|
|
37
36
|
});
|
|
@@ -39,7 +38,7 @@ export const contentStyles = css(sharedBlockStyles, {
|
|
|
39
38
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
40
39
|
export const linkStyles = css(sharedBlockStyles, {
|
|
41
40
|
cursor: 'pointer',
|
|
42
|
-
|
|
41
|
+
font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
43
42
|
marginTop: "var(--ds-space-100, 8px)",
|
|
44
43
|
marginLeft: "var(--ds-space-400, 32px)",
|
|
45
44
|
marginBottom: "var(--ds-space-025, 2px)"
|
|
@@ -7,8 +7,7 @@ import { css, jsx } from '@emotion/react';
|
|
|
7
7
|
import { getFormattedMessage, getTruncateStyles } from '../../utils';
|
|
8
8
|
const getStyles = maxLines => css({
|
|
9
9
|
color: "var(--ds-text-subtlest, #626F86)",
|
|
10
|
-
|
|
11
|
-
lineHeight: '1rem',
|
|
10
|
+
font: "var(--ds-font-body-UNSAFE_small, normal 400 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
12
11
|
whiteSpace: 'normal'
|
|
13
12
|
},
|
|
14
13
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
@@ -97,27 +97,24 @@ export const getLinkSizeStyles = size => {
|
|
|
97
97
|
switch (size) {
|
|
98
98
|
case SmartLinkSize.XLarge:
|
|
99
99
|
return css({
|
|
100
|
-
|
|
100
|
+
font: "var(--ds-font-heading-medium, normal 500 20px/24px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
101
101
|
fontWeight: "var(--ds-font-weight-regular, 400)",
|
|
102
|
-
letterSpacing: '-0.008em',
|
|
103
102
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
104
103
|
lineHeight: getLinkLineHeight(size)
|
|
105
104
|
});
|
|
106
105
|
case SmartLinkSize.Large:
|
|
107
106
|
case SmartLinkSize.Medium:
|
|
108
107
|
return css({
|
|
109
|
-
|
|
108
|
+
font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
110
109
|
fontWeight: "var(--ds-font-weight-regular, 400)",
|
|
111
|
-
letterSpacing: '-0.003em',
|
|
112
110
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
113
111
|
lineHeight: getLinkLineHeight(size)
|
|
114
112
|
});
|
|
115
113
|
case SmartLinkSize.Small:
|
|
116
114
|
default:
|
|
117
115
|
return css({
|
|
118
|
-
|
|
116
|
+
font: "var(--ds-font-body-UNSAFE_small, normal 400 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
119
117
|
fontWeight: "var(--ds-font-weight-regular, 400)",
|
|
120
|
-
letterSpacing: '0em',
|
|
121
118
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
122
119
|
lineHeight: getLinkLineHeight(size)
|
|
123
120
|
});
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
2
|
import { css } from '@emotion/react';
|
|
3
|
-
const titleFontWeight = '600';
|
|
4
|
-
|
|
5
3
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
6
4
|
export const titleBlockStyles = css({
|
|
7
5
|
justifyContent: 'center',
|
|
8
|
-
fontWeight:
|
|
6
|
+
fontWeight: "var(--ds-font-weight-semibold, 600)",
|
|
9
7
|
marginTop: "var(--ds-space-100, 8px)"
|
|
10
8
|
});
|
|
11
9
|
|
|
@@ -14,7 +12,7 @@ export const mainTextStyles = css({
|
|
|
14
12
|
display: 'inline',
|
|
15
13
|
justifyContent: 'center',
|
|
16
14
|
marginTop: "var(--ds-space-0, 0px)",
|
|
17
|
-
|
|
15
|
+
font: "var(--ds-font-body-UNSAFE_small, normal 400 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
18
16
|
textAlign: 'center'
|
|
19
17
|
});
|
|
20
18
|
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
import { css } from '@emotion/react';
|
|
3
3
|
const blockGap = '0.5rem';
|
|
4
4
|
const iconGap = '0.5rem';
|
|
5
|
-
const titleFontWeight = '500';
|
|
6
5
|
|
|
7
6
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
8
7
|
export const connectButtonStyles = css({
|
|
@@ -15,12 +14,12 @@ export const titleBlockStyles = css({
|
|
|
15
14
|
gap: `${blockGap} ${iconGap}`,
|
|
16
15
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
17
16
|
a: {
|
|
18
|
-
fontWeight:
|
|
17
|
+
fontWeight: "var(--ds-font-weight-medium, 500)"
|
|
19
18
|
}
|
|
20
19
|
});
|
|
21
20
|
|
|
22
21
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
23
22
|
export const mainTextStyles = css({
|
|
24
23
|
marginTop: blockGap,
|
|
25
|
-
|
|
24
|
+
font: "var(--ds-font-body-UNSAFE_small, normal 400 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)"
|
|
26
25
|
});
|
|
@@ -38,11 +38,6 @@ export const NoLinkAppearance = styled.span({
|
|
|
38
38
|
marginLeft: "var(--ds-space-050, 4px)"
|
|
39
39
|
});
|
|
40
40
|
|
|
41
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
42
|
-
export const LowercaseAppearance = styled.span({
|
|
43
|
-
textTransform: 'lowercase'
|
|
44
|
-
});
|
|
45
|
-
|
|
46
41
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
47
42
|
export const LinkAppearance = styled.a({
|
|
48
43
|
color: `var(--ds-link, ${B400})`,
|
|
@@ -10,7 +10,7 @@ import LinkWarningModal from './LinkWarningModal';
|
|
|
10
10
|
import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
|
|
11
11
|
const PACKAGE_DATA = {
|
|
12
12
|
packageName: "@atlaskit/smart-card",
|
|
13
|
-
packageVersion: "32.8.
|
|
13
|
+
packageVersion: "32.8.3",
|
|
14
14
|
componentName: 'linkUrl'
|
|
15
15
|
};
|
|
16
16
|
const Anchor = withLinkClickedEvent('a');
|
|
@@ -7,8 +7,7 @@ import { css, jsx } from '@emotion/react';
|
|
|
7
7
|
import Markdown from 'markdown-to-jsx';
|
|
8
8
|
import UList from './ulist';
|
|
9
9
|
const AISummaryCSSStyles = css({
|
|
10
|
-
|
|
11
|
-
lineHeight: '1rem',
|
|
10
|
+
font: "var(--ds-font-body-UNSAFE_small, normal 400 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
12
11
|
wordWrap: 'break-word',
|
|
13
12
|
wordBreak: 'break-word',
|
|
14
13
|
whiteSpace: 'normal',
|
|
@@ -5,7 +5,7 @@ import { getDefinitionId, getExtensionKey, getResourceType } from '../../state/h
|
|
|
5
5
|
import { downloadUrl as download } from '../../utils';
|
|
6
6
|
import { canShowAction } from '../../utils/actions/can-show-action';
|
|
7
7
|
import { getActionsFromJsonLd } from '../common/actions/extractActions';
|
|
8
|
-
import { extractDownloadUrl } from '../common/
|
|
8
|
+
import { extractDownloadUrl } from '../common/download/extractDownloadUrl';
|
|
9
9
|
export var extractInvokeDownloadAction = function extractInvokeDownloadAction(_ref) {
|
|
10
10
|
var actionOptions = _ref.actionOptions,
|
|
11
11
|
appearance = _ref.appearance,
|
|
@@ -36,7 +36,6 @@ export var extractIcon = function extractIcon(jsonLd) {
|
|
|
36
36
|
function typeToIcon(type, opts) {
|
|
37
37
|
switch (type) {
|
|
38
38
|
case 'atlassian:SourceCodeCommit':
|
|
39
|
-
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19493
|
|
40
39
|
return /*#__PURE__*/React.createElement(CommitIcon, {
|
|
41
40
|
label: opts.title || 'commit',
|
|
42
41
|
testId: "commit-icon"
|
|
@@ -49,25 +48,21 @@ function typeToIcon(type, opts) {
|
|
|
49
48
|
color: "currentColor"
|
|
50
49
|
});
|
|
51
50
|
case 'atlassian:SourceCodePullRequest':
|
|
52
|
-
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19493
|
|
53
51
|
return /*#__PURE__*/React.createElement(PullRequestIcon, {
|
|
54
52
|
label: opts.title || 'pullRequest',
|
|
55
53
|
testId: "pull-request-icon"
|
|
56
54
|
});
|
|
57
55
|
case 'atlassian:SourceCodeReference':
|
|
58
|
-
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19493
|
|
59
56
|
return /*#__PURE__*/React.createElement(BranchIcon, {
|
|
60
57
|
label: opts.title || 'reference',
|
|
61
58
|
testId: "branch-icon"
|
|
62
59
|
});
|
|
63
60
|
case 'atlassian:SourceCodeRepository':
|
|
64
|
-
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19493
|
|
65
61
|
return /*#__PURE__*/React.createElement(RepoIcon, {
|
|
66
62
|
label: opts.title || 'repository',
|
|
67
63
|
testId: "repo-icon"
|
|
68
64
|
});
|
|
69
65
|
case 'atlassian:Goal':
|
|
70
|
-
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19493
|
|
71
66
|
return /*#__PURE__*/React.createElement(TaskIcon, {
|
|
72
67
|
label: opts.title || 'goal',
|
|
73
68
|
testId: "task-icon"
|
|
@@ -33,7 +33,6 @@ var documentFileFormatToIcon = function documentFileFormatToIcon(opts) {
|
|
|
33
33
|
var documentTypeToIcon = function documentTypeToIcon(type, opts) {
|
|
34
34
|
switch (type) {
|
|
35
35
|
case 'schema:BlogPosting':
|
|
36
|
-
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19493
|
|
37
36
|
return /*#__PURE__*/React.createElement(BlogIcon, {
|
|
38
37
|
label: opts.title || 'blog',
|
|
39
38
|
testId: "blog-icon"
|
|
@@ -9,7 +9,6 @@ import JiraStoryIcon from '@atlaskit/icon-object/glyph/story/16';
|
|
|
9
9
|
import JiraSubTaskIcon from '@atlaskit/icon-object/glyph/subtask/16';
|
|
10
10
|
import JiraTaskIcon from '@atlaskit/icon-object/glyph/task/16';
|
|
11
11
|
import { JIRA_BUG, JIRA_CHANGE, JIRA_CUSTOM_TASK_TYPE, JIRA_EPIC, JIRA_GENERATOR_ID, JIRA_INCIDENT, JIRA_PROBLEM, JIRA_SERVICE_REQUEST, JIRA_STORY, JIRA_SUB_TASK, JIRA_TASK } from '../../constants';
|
|
12
|
-
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19493
|
|
13
12
|
var TaskIcon = JiraTaskIcon;
|
|
14
13
|
|
|
15
14
|
/**
|
|
@@ -25,7 +24,6 @@ export var extractIconFromTask = function extractIconFromTask(opts) {
|
|
|
25
24
|
var taskType = opts.taskType,
|
|
26
25
|
provider = opts.provider;
|
|
27
26
|
var taskLabel = opts.title || 'task';
|
|
28
|
-
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19493
|
|
29
27
|
var defaultIcon = /*#__PURE__*/React.createElement(TaskIcon, {
|
|
30
28
|
label: taskLabel,
|
|
31
29
|
testId: "default-task-icon"
|
|
@@ -35,55 +33,46 @@ export var extractIconFromTask = function extractIconFromTask(opts) {
|
|
|
35
33
|
var taskTypeName = taskTypeId.split('#').pop();
|
|
36
34
|
switch (taskTypeName) {
|
|
37
35
|
case JIRA_TASK:
|
|
38
|
-
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19493
|
|
39
36
|
return /*#__PURE__*/React.createElement(JiraTaskIcon, {
|
|
40
37
|
label: taskLabel,
|
|
41
38
|
testId: "jira-task-icon"
|
|
42
39
|
});
|
|
43
40
|
case JIRA_SUB_TASK:
|
|
44
|
-
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19493
|
|
45
41
|
return /*#__PURE__*/React.createElement(JiraSubTaskIcon, {
|
|
46
42
|
label: taskLabel,
|
|
47
43
|
testId: "jira-subtask-icon"
|
|
48
44
|
});
|
|
49
45
|
case JIRA_STORY:
|
|
50
|
-
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19493
|
|
51
46
|
return /*#__PURE__*/React.createElement(JiraStoryIcon, {
|
|
52
47
|
label: taskLabel,
|
|
53
48
|
testId: "jira-story-icon"
|
|
54
49
|
});
|
|
55
50
|
case JIRA_BUG:
|
|
56
|
-
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19493
|
|
57
51
|
return /*#__PURE__*/React.createElement(JiraBugIcon, {
|
|
58
52
|
label: taskLabel,
|
|
59
53
|
testId: "jira-bug-icon"
|
|
60
54
|
});
|
|
61
55
|
case JIRA_EPIC:
|
|
62
|
-
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19493
|
|
63
56
|
return /*#__PURE__*/React.createElement(JiraEpicIcon, {
|
|
64
57
|
label: taskLabel,
|
|
65
58
|
testId: "jira-epic-icon"
|
|
66
59
|
});
|
|
67
60
|
case JIRA_INCIDENT:
|
|
68
|
-
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19493
|
|
69
61
|
return /*#__PURE__*/React.createElement(JiraIncidentIcon, {
|
|
70
62
|
label: taskLabel,
|
|
71
63
|
testId: "jira-incident-icon"
|
|
72
64
|
});
|
|
73
65
|
case JIRA_SERVICE_REQUEST:
|
|
74
|
-
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19493
|
|
75
66
|
return /*#__PURE__*/React.createElement(JiraServiceRequestIcon, {
|
|
76
67
|
label: taskLabel,
|
|
77
68
|
testId: "jira-service-request-icon"
|
|
78
69
|
});
|
|
79
70
|
case JIRA_CHANGE:
|
|
80
|
-
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19493
|
|
81
71
|
return /*#__PURE__*/React.createElement(JiraChangeIcon, {
|
|
82
72
|
label: taskLabel,
|
|
83
73
|
testId: "jira-change-icon"
|
|
84
74
|
});
|
|
85
75
|
case JIRA_PROBLEM:
|
|
86
|
-
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19493
|
|
87
76
|
return /*#__PURE__*/React.createElement(JiraProblemIcon, {
|
|
88
77
|
label: taskLabel,
|
|
89
78
|
testId: "jira-problem-icon"
|
|
@@ -2,7 +2,7 @@ import { canShowAction } from '../../../utils/actions/can-show-action';
|
|
|
2
2
|
import { CardAction } from '../../../view/Card/types';
|
|
3
3
|
import { extractInvokeDownloadAction } from '../../action/extract-invoke-download-action';
|
|
4
4
|
import { getActionsFromJsonLd } from '../../common/actions/extractActions';
|
|
5
|
-
import { extractDownloadUrl } from '../../common/
|
|
5
|
+
import { extractDownloadUrl } from '../../common/download/extractDownloadUrl';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* TODO: Remove on cleanup of platform-smart-card-migrate-embed-modal-analytics
|
|
@@ -2,7 +2,7 @@ import { extractLink, extractPreview as extractPreviewData, extractProvider, ext
|
|
|
2
2
|
import { canShowAction } from '../../../utils/actions/can-show-action';
|
|
3
3
|
import { CardAction } from '../../../view/Card/types';
|
|
4
4
|
import { extractInvokePreviewAction } from '../../action/extract-invoke-preview-action';
|
|
5
|
-
import { extractDownloadUrl } from '../../common/
|
|
5
|
+
import { extractDownloadUrl } from '../../common/download/extractDownloadUrl';
|
|
6
6
|
import { extractIsSupportTheming } from '../../common/meta/extractIsSupportTheming';
|
|
7
7
|
import { extractIsTrusted } from '../../common/meta/extractIsTrusted';
|
|
8
8
|
import { extractLinkIcon } from '../icon';
|
|
@@ -8,7 +8,7 @@ export var ANALYTICS_CHANNEL = 'media';
|
|
|
8
8
|
export var context = {
|
|
9
9
|
componentName: 'smart-cards',
|
|
10
10
|
packageName: "@atlaskit/smart-card",
|
|
11
|
-
packageVersion: "32.8.
|
|
11
|
+
packageVersion: "32.8.3"
|
|
12
12
|
};
|
|
13
13
|
export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
14
14
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
1
|
import React from 'react';
|
|
3
|
-
import { CardClient } from '@atlaskit/link-provider';
|
|
4
|
-
import { SmartCardProvider } from '../state';
|
|
5
2
|
var Hook = function Hook(props) {
|
|
6
3
|
props.callback();
|
|
7
4
|
return null;
|
|
@@ -10,11 +7,4 @@ export var renderHook = function renderHook(callback) {
|
|
|
10
7
|
return /*#__PURE__*/React.createElement(Hook, {
|
|
11
8
|
callback: callback
|
|
12
9
|
});
|
|
13
|
-
};
|
|
14
|
-
export var renderSmartLinkHook = function renderSmartLinkHook(callback, providerProps) {
|
|
15
|
-
return /*#__PURE__*/React.createElement(SmartCardProvider, _extends({
|
|
16
|
-
client: new CardClient()
|
|
17
|
-
}, providerProps), /*#__PURE__*/React.createElement(Hook, {
|
|
18
|
-
callback: callback
|
|
19
|
-
}), ";");
|
|
20
10
|
};
|
|
@@ -21,7 +21,7 @@ import { withFlexibleUIBlockCardStyle } from './utils/withFlexibleUIBlockCardSty
|
|
|
21
21
|
var contentStyles = css({
|
|
22
22
|
color: "var(--ds-text-subtlest, #626F86)",
|
|
23
23
|
marginTop: "var(--ds-space-100, 0.5rem)",
|
|
24
|
-
|
|
24
|
+
font: "var(--ds-font-body-UNSAFE_small, normal 400 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)"
|
|
25
25
|
});
|
|
26
26
|
|
|
27
27
|
/**
|
|
@@ -25,12 +25,11 @@ var getButtonStyle = function getButtonStyle(size, iconOnly) {
|
|
|
25
25
|
}) : '';
|
|
26
26
|
case SmartLinkSize.Small:
|
|
27
27
|
return css({
|
|
28
|
-
|
|
28
|
+
font: "var(--ds-font-body-UNSAFE_small, normal 400 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
29
29
|
fontWeight: "var(--ds-font-weight-medium, 500)",
|
|
30
|
-
lineHeight: '1rem',
|
|
31
30
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
32
31
|
'button, button:hover, button:focus, button:active': [{
|
|
33
|
-
lineHeight: '
|
|
32
|
+
lineHeight: 'inherit'
|
|
34
33
|
}, iconOnly ? "\n padding: 0.125rem;\n " : "\n padding-left: 0.25rem;\n padding-right: 0.25rem;\n "]
|
|
35
34
|
});
|
|
36
35
|
case SmartLinkSize.XLarge:
|
|
@@ -66,8 +66,5 @@ export var mockTransformedRules = [_objectSpread(_objectSpread({}, mockRules.dat
|
|
|
66
66
|
}), _objectSpread(_objectSpread({}, mockRules.data[2]), {}, {
|
|
67
67
|
userInputPrompts: mockRules.data[2].userInputs
|
|
68
68
|
})];
|
|
69
|
-
export var mockInvocationResponse = {
|
|
70
|
-
'TEST-1': 'SUCCESS'
|
|
71
|
-
};
|
|
72
69
|
export var mockGetUrl = 'https://test-api/get/rules';
|
|
73
70
|
export var mockInvokeUrl = 'https://test-api/invoke';
|
|
@@ -46,12 +46,6 @@ export var createStubInvokeManuallyTriggeredRule = function createStubInvokeManu
|
|
|
46
46
|
};
|
|
47
47
|
}();
|
|
48
48
|
};
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* Default stubbed invokeManuallyTriggeredRule call. Returns 'SUCCESS' for
|
|
52
|
-
* all objects the rule was called for.
|
|
53
|
-
*/
|
|
54
|
-
export var successStubInvokeManuallyTriggeredRule = createStubInvokeManuallyTriggeredRule('SUCCESS', 2000);
|
|
55
49
|
var Provider = function Provider(_ref2) {
|
|
56
50
|
var children = _ref2.children,
|
|
57
51
|
use = _ref2.use,
|
|
@@ -168,7 +168,6 @@ var AtlaskitIcon = function AtlaskitIcon(_ref3) {
|
|
|
168
168
|
testId: testId
|
|
169
169
|
});
|
|
170
170
|
case IconType.Blog:
|
|
171
|
-
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19493
|
|
172
171
|
return /*#__PURE__*/React.createElement(BlogIcon, {
|
|
173
172
|
label: label || 'blog',
|
|
174
173
|
testId: testId
|
|
@@ -24,8 +24,7 @@ var badgeStyles = css({
|
|
|
24
24
|
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'));
|
|
25
25
|
var labelStyles = css({
|
|
26
26
|
color: "var(--ds-text-subtlest, #626F86)",
|
|
27
|
-
|
|
28
|
-
lineHeight: '1rem',
|
|
27
|
+
font: "var(--ds-font-body-UNSAFE_small, normal 400 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
29
28
|
paddingLeft: "var(--ds-space-025, 0.125rem)",
|
|
30
29
|
verticalAlign: 'middle'
|
|
31
30
|
});
|
|
@@ -11,8 +11,7 @@ import { messages } from '../../../../../messages';
|
|
|
11
11
|
import { getTruncateStyles } from '../../utils';
|
|
12
12
|
var styles = css({
|
|
13
13
|
color: "var(--ds-text-subtlest, #626F86)",
|
|
14
|
-
|
|
15
|
-
lineHeight: '1rem'
|
|
14
|
+
font: "var(--ds-font-body-UNSAFE_small, normal 400 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)"
|
|
16
15
|
},
|
|
17
16
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
18
17
|
getTruncateStyles(1));
|
|
@@ -30,8 +30,7 @@ export var contentStyles = css(sharedBlockStyles, {
|
|
|
30
30
|
alignItems: 'flex-start',
|
|
31
31
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
32
32
|
'> span, > div': {
|
|
33
|
-
|
|
34
|
-
lineHeight: '1.25rem',
|
|
33
|
+
font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
35
34
|
color: "var(--ds-text, ".concat(N800, ")")
|
|
36
35
|
}
|
|
37
36
|
});
|
|
@@ -39,7 +38,7 @@ export var contentStyles = css(sharedBlockStyles, {
|
|
|
39
38
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
40
39
|
export var linkStyles = css(sharedBlockStyles, {
|
|
41
40
|
cursor: 'pointer',
|
|
42
|
-
|
|
41
|
+
font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
43
42
|
marginTop: "var(--ds-space-100, 8px)",
|
|
44
43
|
marginLeft: "var(--ds-space-400, 32px)",
|
|
45
44
|
marginBottom: "var(--ds-space-025, 2px)"
|
|
@@ -8,8 +8,7 @@ import { getFormattedMessage, getTruncateStyles } from '../../utils';
|
|
|
8
8
|
var getStyles = function getStyles(maxLines) {
|
|
9
9
|
return css({
|
|
10
10
|
color: "var(--ds-text-subtlest, #626F86)",
|
|
11
|
-
|
|
12
|
-
lineHeight: '1rem',
|
|
11
|
+
font: "var(--ds-font-body-UNSAFE_small, normal 400 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
13
12
|
whiteSpace: 'normal'
|
|
14
13
|
},
|
|
15
14
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
@@ -92,27 +92,24 @@ export var getLinkSizeStyles = function getLinkSizeStyles(size) {
|
|
|
92
92
|
switch (size) {
|
|
93
93
|
case SmartLinkSize.XLarge:
|
|
94
94
|
return css({
|
|
95
|
-
|
|
95
|
+
font: "var(--ds-font-heading-medium, normal 500 20px/24px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
96
96
|
fontWeight: "var(--ds-font-weight-regular, 400)",
|
|
97
|
-
letterSpacing: '-0.008em',
|
|
98
97
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
99
98
|
lineHeight: getLinkLineHeight(size)
|
|
100
99
|
});
|
|
101
100
|
case SmartLinkSize.Large:
|
|
102
101
|
case SmartLinkSize.Medium:
|
|
103
102
|
return css({
|
|
104
|
-
|
|
103
|
+
font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
105
104
|
fontWeight: "var(--ds-font-weight-regular, 400)",
|
|
106
|
-
letterSpacing: '-0.003em',
|
|
107
105
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
108
106
|
lineHeight: getLinkLineHeight(size)
|
|
109
107
|
});
|
|
110
108
|
case SmartLinkSize.Small:
|
|
111
109
|
default:
|
|
112
110
|
return css({
|
|
113
|
-
|
|
111
|
+
font: "var(--ds-font-body-UNSAFE_small, normal 400 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
114
112
|
fontWeight: "var(--ds-font-weight-regular, 400)",
|
|
115
|
-
letterSpacing: '0em',
|
|
116
113
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
117
114
|
lineHeight: getLinkLineHeight(size)
|
|
118
115
|
});
|