@atlaskit/smart-card 27.5.2 → 27.5.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 +6 -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/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/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/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-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/package.json +5 -5
- package/report.api.md +775 -806
package/CHANGELOG.md
CHANGED
package/CONTRIBUTING.md
CHANGED
|
@@ -43,7 +43,7 @@ var extractIcon = exports.extractIcon = function extractIcon(jsonLd) {
|
|
|
43
43
|
|
|
44
44
|
/**
|
|
45
45
|
* Extracts an icon based on the given type.
|
|
46
|
-
*
|
|
46
|
+
*
|
|
47
47
|
* Some types return hardcoded icons, while others follow a priority list on how to pick the icon.
|
|
48
48
|
* If type is not recognized, it will return the icon from the provider, or `undefined` if no icon is found.
|
|
49
49
|
*
|
|
@@ -17,7 +17,7 @@ var extractAutomationAction = exports.extractAutomationAction = function extract
|
|
|
17
17
|
var data = response.data;
|
|
18
18
|
var meta = response.meta;
|
|
19
19
|
var name = data.name,
|
|
20
|
-
objectAri = data[
|
|
20
|
+
objectAri = data['atlassian:ari'];
|
|
21
21
|
var product = meta.product,
|
|
22
22
|
tenantId = meta.tenantId,
|
|
23
23
|
resourceType = meta.resourceType;
|
package/dist/cjs/messages.js
CHANGED
|
@@ -723,7 +723,7 @@ var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
|
|
|
723
723
|
},
|
|
724
724
|
related_links_not_found: {
|
|
725
725
|
id: 'fabric.linking.related_links_not_found',
|
|
726
|
-
defaultMessage:
|
|
726
|
+
defaultMessage: "We didn't find any links to show here.",
|
|
727
727
|
description: 'Informs the user that there are no related resources for the given url'
|
|
728
728
|
},
|
|
729
729
|
related_links_includes_links_to: {
|
|
@@ -748,7 +748,7 @@ var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
|
|
|
748
748
|
},
|
|
749
749
|
related_links_modal_unavailable_message: {
|
|
750
750
|
id: 'fabric.linking.related_links_modal_unavailable_message',
|
|
751
|
-
defaultMessage:
|
|
751
|
+
defaultMessage: "We didn't find any links to show here. We continuously review and add recent links for updated pages or other content types.",
|
|
752
752
|
description: 'Informs the user that related links were not found but may be available in the future'
|
|
753
753
|
}
|
|
754
754
|
});
|
|
@@ -22,7 +22,7 @@ var ANALYTICS_CHANNEL = exports.ANALYTICS_CHANNEL = 'media';
|
|
|
22
22
|
var context = exports.context = {
|
|
23
23
|
componentName: 'smart-cards',
|
|
24
24
|
packageName: "@atlaskit/smart-card",
|
|
25
|
-
packageVersion: "27.5.
|
|
25
|
+
packageVersion: "27.5.3"
|
|
26
26
|
};
|
|
27
27
|
var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
28
28
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -77,7 +77,7 @@ function visible(_ref7) {
|
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
// eslint-disable-next-line @atlaskit/design-system/no-styled-tagged-template-expression, @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
80
|
-
var LinkWrapper = exports.LinkWrapper = _styled.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n
|
|
80
|
+
var LinkWrapper = exports.LinkWrapper = _styled.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t", " &:hover {\n\t\ttext-decoration: none;\n\t}\n"])), function (props) {
|
|
81
81
|
return wrapperStyles(props);
|
|
82
82
|
});
|
|
83
83
|
|
|
@@ -140,7 +140,7 @@ var TooltipWrapper = exports.TooltipWrapper = _styled.default.div({
|
|
|
140
140
|
// the internal contents of the `iframe` should
|
|
141
141
|
// manage scrolling behaviour.
|
|
142
142
|
// eslint-disable-next-line @atlaskit/design-system/no-styled-tagged-template-expression, @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
143
|
-
var Content = exports.Content = _styled.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n
|
|
143
|
+
var Content = exports.Content = _styled.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\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(_colors.N40, ")"), "var(--ds-surface-raised, white)", function (_ref11) {
|
|
144
144
|
var allowScrollBar = _ref11.allowScrollBar,
|
|
145
145
|
removeOverflow = _ref11.removeOverflow;
|
|
146
146
|
if (removeOverflow) {
|
|
@@ -19,7 +19,7 @@ var extractCloudIdAndProductFromSite = exports.extractCloudIdAndProductFromSite
|
|
|
19
19
|
var cloudId;
|
|
20
20
|
var resourceOwner;
|
|
21
21
|
var resourceType;
|
|
22
|
-
var ariRegex = new RegExp(
|
|
22
|
+
var ariRegex = new RegExp('^ari:cloud:([a-zA-Z.\\-]+)::([a-zA-Z.\\-]+)/([a-zA-Z0-9\\-]+)');
|
|
23
23
|
var parsedAri = site.match(ariRegex);
|
|
24
24
|
if (parsedAri) {
|
|
25
25
|
resourceOwner = parsedAri[1];
|
|
@@ -35,15 +35,15 @@ var i18n = (0, _reactIntlNext.defineMessages)({
|
|
|
35
35
|
}
|
|
36
36
|
});
|
|
37
37
|
var emptyStateStyles = (0, _primitives.xcss)({
|
|
38
|
-
paddingLeft:
|
|
39
|
-
paddingRight:
|
|
40
|
-
marginTop:
|
|
38
|
+
paddingLeft: 'space.300',
|
|
39
|
+
paddingRight: 'space.300',
|
|
40
|
+
marginTop: 'space.500'
|
|
41
41
|
});
|
|
42
42
|
var imageStyles = (0, _primitives.xcss)({
|
|
43
43
|
marginTop: 'space.050',
|
|
44
44
|
marginBottom: 'space.300',
|
|
45
|
-
width:
|
|
46
|
-
height:
|
|
45
|
+
width: '160px',
|
|
46
|
+
height: '156px'
|
|
47
47
|
});
|
|
48
48
|
var descriptionStyles = (0, _primitives.xcss)({
|
|
49
49
|
width: '360px',
|
|
@@ -8,8 +8,8 @@ var _messages = require("../../../../../../messages");
|
|
|
8
8
|
var getModalContent = exports.getModalContent = function getModalContent(product, resourceType) {
|
|
9
9
|
var _modalContentMap$prod;
|
|
10
10
|
var modalContentMap = {
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
confluence: {
|
|
12
|
+
page: {
|
|
13
13
|
modalTitle: _messages.messages.automation_action_confluence_page_modal_title,
|
|
14
14
|
modalDescription: _messages.messages.automation_action_confluence_page_modal_description
|
|
15
15
|
}
|
|
@@ -15,7 +15,7 @@ var _templateObject;
|
|
|
15
15
|
var getBlockStyles = function getBlockStyles(direction, size
|
|
16
16
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- needs manual remediation
|
|
17
17
|
) {
|
|
18
|
-
return (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n
|
|
18
|
+
return (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\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"])), (0, _utils.getBaseStyles)(direction, size), _utils.highlightRemoveStyles, (0, _utils.getGapSize)(size), _constants.ElementName.SourceBranch, _constants.ElementName.TargetBranch, _constants.ElementName.TargetBranch, _constants.ElementName.SourceBranch);
|
|
19
19
|
};
|
|
20
20
|
|
|
21
21
|
/**
|
|
@@ -55,7 +55,7 @@ var getGapStyles = function getGapStyles(size, align) {
|
|
|
55
55
|
var getHorizontalDirectionStyles = function getHorizontalDirectionStyles(size, align) {
|
|
56
56
|
var lineHeight = (0, _utils2.getMaxLineHeight)(size);
|
|
57
57
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- needs manual remediation
|
|
58
|
-
return (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n
|
|
58
|
+
return (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\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"])), (0, _utils2.getTruncateStyles)(1, lineHeight + 'rem'), getGapStyles(size, align));
|
|
59
59
|
};
|
|
60
60
|
var getElementGroupStyles = exports.getElementGroupStyles = function getElementGroupStyles(direction, size, align, width, position) {
|
|
61
61
|
return (0, _react.css)((0, _utils.getBaseStyles)(direction, size), getAlignmentStyles(align), {
|
|
@@ -39,7 +39,7 @@ var getPreviewBlockStyles = function getPreviewBlockStyles(placement, ignoreCont
|
|
|
39
39
|
if (placement === _constants.MediaPlacement.Left || placement === _constants.MediaPlacement.Right) {
|
|
40
40
|
var containerPadding = ignoreContainerPadding ? '0rem' : 'var(--container-padding)';
|
|
41
41
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- needs manual remediation
|
|
42
|
-
return (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n
|
|
42
|
+
return (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\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 === _constants.MediaPlacement.Left ? "left: ".concat(containerPadding, ";") : '', placement === _constants.MediaPlacement.Right ? "right: ".concat(containerPadding, ";") : '');
|
|
43
43
|
}
|
|
44
44
|
if (ignoreContainerPadding) {
|
|
45
45
|
return (0, _react2.css)({
|
|
@@ -81,7 +81,7 @@ var getBaseStyles = exports.getBaseStyles = function getBaseStyles(direction, si
|
|
|
81
81
|
};
|
|
82
82
|
|
|
83
83
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- needs manual remediation
|
|
84
|
-
var highlightRemoveStyles = exports.highlightRemoveStyles = (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n
|
|
84
|
+
var highlightRemoveStyles = exports.highlightRemoveStyles = (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\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"])));
|
|
85
85
|
var isActionGroup = function isActionGroup(node) {
|
|
86
86
|
return /*#__PURE__*/_react.default.isValidElement(node) && node.type === _actionGroup.default;
|
|
87
87
|
};
|
|
@@ -100,7 +100,7 @@ var getContainerStyles = exports.getContainerStyles = function getContainerStyle
|
|
|
100
100
|
var paddingCss = getContainerPaddingStyles(size, hidePadding, childrenOptions);
|
|
101
101
|
|
|
102
102
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- needs manual remediation
|
|
103
|
-
return (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n
|
|
103
|
+
return (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\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 : '');
|
|
104
104
|
};
|
|
105
105
|
var renderChildren = function renderChildren(children, containerSize, containerTheme, status, retry, onClick) {
|
|
106
106
|
return _react.default.Children.map(children, function (child) {
|
|
@@ -39,7 +39,7 @@ var getStyles = function getStyles(size) {
|
|
|
39
39
|
case _constants.SmartLinkSize.Small:
|
|
40
40
|
default:
|
|
41
41
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- needs manual remediation
|
|
42
|
-
return (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n
|
|
42
|
+
return (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\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);
|
|
43
43
|
}
|
|
44
44
|
};
|
|
45
45
|
var getPersonNameWithPrefix = function getPersonNameWithPrefix(elementName, personName, intl) {
|
|
@@ -23,7 +23,7 @@ var badgeStyles = (0, _react2.css)({
|
|
|
23
23
|
});
|
|
24
24
|
|
|
25
25
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- needs manual remediation
|
|
26
|
-
var iconStyles = (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n
|
|
26
|
+
var iconStyles = (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\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)", (0, _utils.getIconSizeStyles)('1rem'));
|
|
27
27
|
var labelStyles = (0, _react2.css)({
|
|
28
28
|
color: "var(--ds-text-subtlest, #626F86)",
|
|
29
29
|
fontSize: '0.75rem',
|
|
@@ -49,7 +49,7 @@ var getIconDimensionStyles = function getIconDimensionStyles(value) {
|
|
|
49
49
|
var getIconSizeStyles = exports.getIconSizeStyles = function getIconSizeStyles(width) {
|
|
50
50
|
var sizeStyles = getIconDimensionStyles(width);
|
|
51
51
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- needs manual remediation
|
|
52
|
-
return (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n
|
|
52
|
+
return (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\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);
|
|
53
53
|
};
|
|
54
54
|
var getIconWidth = exports.getIconWidth = function getIconWidth(size) {
|
|
55
55
|
switch (size) {
|
|
@@ -12,7 +12,7 @@ var _templateObject;
|
|
|
12
12
|
var elementGap = '0.5rem';
|
|
13
13
|
|
|
14
14
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- needs manual remediation
|
|
15
|
-
var metadataBlockCss = exports.metadataBlockCss = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n
|
|
15
|
+
var metadataBlockCss = exports.metadataBlockCss = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\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"])), _styled.separatorCss, elementGap, elementGap);
|
|
16
16
|
var footerBlockCss = exports.footerBlockCss = (0, _react.css)({
|
|
17
17
|
height: '1.5rem'
|
|
18
18
|
});
|
|
@@ -34,10 +34,10 @@ var separatorCss = exports.separatorCss = (0, _react.css)({
|
|
|
34
34
|
});
|
|
35
35
|
|
|
36
36
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- needs manual remediation
|
|
37
|
-
var HoverCardContainer = exports.HoverCardContainer = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n
|
|
37
|
+
var HoverCardContainer = exports.HoverCardContainer = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\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"])), (0, _platformFeatureFlags.getBooleanFF)('platform.linking-platform.smart-card.hover-card-ai-summaries') ? NEW_CARD_WIDTH_REM : CARD_WIDTH_REM, _index.loadingPlaceholderClassName);
|
|
38
38
|
|
|
39
39
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- needs manual remediation
|
|
40
|
-
var titleBlockCss = exports.titleBlockCss = (0, _react.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n
|
|
40
|
+
var titleBlockCss = exports.titleBlockCss = (0, _react.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\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);
|
|
41
41
|
var getTransitionStyles = exports.getTransitionStyles = function getTransitionStyles(snippetHeight) {
|
|
42
42
|
return (0, _react.css)({
|
|
43
43
|
transition: 'height 300ms ease-in-out',
|
|
@@ -17,7 +17,7 @@ var _excluded = ["href", "children", "checkSafety", "onClick", "testId"],
|
|
|
17
17
|
_excluded2 = ["isLinkSafe", "showSafetyWarningModal"];
|
|
18
18
|
var PACKAGE_DATA = {
|
|
19
19
|
packageName: "@atlaskit/smart-card",
|
|
20
|
-
packageVersion: "27.5.
|
|
20
|
+
packageVersion: "27.5.3",
|
|
21
21
|
componentName: 'linkUrl'
|
|
22
22
|
};
|
|
23
23
|
var Link = (0, _click.withLinkClickedEvent)('a');
|
|
@@ -9,10 +9,10 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
var _heading = _interopRequireDefault(require("@atlaskit/heading"));
|
|
10
10
|
var _primitives = require("@atlaskit/primitives");
|
|
11
11
|
var emptyStateStyles = (0, _primitives.xcss)({
|
|
12
|
-
alignItems:
|
|
12
|
+
alignItems: 'center',
|
|
13
13
|
display: 'flex',
|
|
14
14
|
flexDirection: 'column',
|
|
15
|
-
gap:
|
|
15
|
+
gap: 'space.100',
|
|
16
16
|
height: '100%',
|
|
17
17
|
justifyContent: 'center',
|
|
18
18
|
marginLeft: 'space.300',
|
|
@@ -33,7 +33,7 @@ export const extractIcon = (jsonLd, priority = 'type') => {
|
|
|
33
33
|
|
|
34
34
|
/**
|
|
35
35
|
* Extracts an icon based on the given type.
|
|
36
|
-
*
|
|
36
|
+
*
|
|
37
37
|
* Some types return hardcoded icons, while others follow a priority list on how to pick the icon.
|
|
38
38
|
* If type is not recognized, it will return the icon from the provider, or `undefined` if no icon is found.
|
|
39
39
|
*
|
package/dist/es2019/messages.js
CHANGED
|
@@ -717,7 +717,7 @@ export const 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 const 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
|
});
|
|
@@ -4,7 +4,7 @@ export const ANALYTICS_CHANNEL = 'media';
|
|
|
4
4
|
export const context = {
|
|
5
5
|
componentName: 'smart-cards',
|
|
6
6
|
packageName: "@atlaskit/smart-card",
|
|
7
|
-
packageVersion: "27.5.
|
|
7
|
+
packageVersion: "27.5.3"
|
|
8
8
|
};
|
|
9
9
|
export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
10
10
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -138,9 +138,9 @@ function visible({
|
|
|
138
138
|
|
|
139
139
|
// 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
|
|
140
140
|
export const LinkWrapper = styled.div`
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
141
|
+
${props => wrapperStyles(props)} &:hover {
|
|
142
|
+
text-decoration: none;
|
|
143
|
+
}
|
|
144
144
|
`;
|
|
145
145
|
|
|
146
146
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
@@ -212,26 +212,26 @@ export const TooltipWrapper = styled.div({
|
|
|
212
212
|
// manage scrolling behaviour.
|
|
213
213
|
// 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
|
|
214
214
|
export const Content = styled.div`
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
215
|
+
${contentBorderRadius};
|
|
216
|
+
border: 1px solid ${`var(--ds-border, ${N40})`};
|
|
217
|
+
background-color: ${"var(--ds-surface-raised, white)"};
|
|
218
|
+
position: absolute;
|
|
219
|
+
z-index: 1;
|
|
220
|
+
width: 100%;
|
|
221
|
+
transition: box-shadow 0.3s;
|
|
222
222
|
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
223
|
+
> .calc-height > div > div {
|
|
224
|
+
left: unset !important;
|
|
225
|
+
width: unset !important;
|
|
226
|
+
height: unset !important;
|
|
227
|
+
position: initial !important;
|
|
228
|
+
padding-bottom: unset !important;
|
|
229
|
+
}
|
|
230
|
+
> .embed-preview > div {
|
|
231
|
+
margin: 0 auto;
|
|
232
|
+
}
|
|
233
233
|
|
|
234
|
-
|
|
234
|
+
${({
|
|
235
235
|
allowScrollBar,
|
|
236
236
|
removeOverflow
|
|
237
237
|
}) => {
|
|
@@ -241,7 +241,7 @@ export const Content = styled.div`
|
|
|
241
241
|
return allowScrollBar ? 'overflow: auto;' : 'overflow: hidden;';
|
|
242
242
|
}}
|
|
243
243
|
|
|
244
|
-
|
|
244
|
+
${({
|
|
245
245
|
frameStyle
|
|
246
246
|
}) => frameStyle === 'show' ? `
|
|
247
247
|
width: calc(100% - ${"var(--ds-space-200, 16px)"} - 2px);
|
|
@@ -7,7 +7,7 @@ export const extractCloudIdAndProductFromSite = site => {
|
|
|
7
7
|
let cloudId;
|
|
8
8
|
let resourceOwner;
|
|
9
9
|
let resourceType;
|
|
10
|
-
const ariRegex = new RegExp(
|
|
10
|
+
const ariRegex = new RegExp('^ari:cloud:([a-zA-Z.\\-]+)::([a-zA-Z.\\-]+)/([a-zA-Z0-9\\-]+)');
|
|
11
11
|
const parsedAri = site.match(ariRegex);
|
|
12
12
|
if (parsedAri) {
|
|
13
13
|
resourceOwner = parsedAri[1];
|
|
@@ -28,15 +28,15 @@ const i18n = defineMessages({
|
|
|
28
28
|
}
|
|
29
29
|
});
|
|
30
30
|
const emptyStateStyles = xcss({
|
|
31
|
-
paddingLeft:
|
|
32
|
-
paddingRight:
|
|
33
|
-
marginTop:
|
|
31
|
+
paddingLeft: 'space.300',
|
|
32
|
+
paddingRight: 'space.300',
|
|
33
|
+
marginTop: 'space.500'
|
|
34
34
|
});
|
|
35
35
|
const 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
|
const descriptionStyles = xcss({
|
|
42
42
|
width: '360px',
|
|
@@ -2,8 +2,8 @@ import { messages } from '../../../../../../messages';
|
|
|
2
2
|
export const getModalContent = (product, resourceType) => {
|
|
3
3
|
var _modalContentMap$prod;
|
|
4
4
|
const 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
|
}
|
|
@@ -6,23 +6,23 @@ import { getBaseStyles, getGapSize, highlightRemoveStyles, renderChildren } from
|
|
|
6
6
|
const getBlockStyles = (direction, size
|
|
7
7
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- needs manual remediation
|
|
8
8
|
) => css`
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
${getBaseStyles(direction, size)}
|
|
10
|
+
${highlightRemoveStyles}
|
|
11
11
|
justify-content: flex-start;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
12
|
+
[data-separator] + [data-separator]:before {
|
|
13
|
+
content: '•';
|
|
14
|
+
margin-right: ${getGapSize(size)}rem;
|
|
15
|
+
}
|
|
16
|
+
// Pull request elements: source branch → target branch
|
|
17
|
+
[data-smart-element='${ElementName.SourceBranch}']
|
|
18
|
+
+ [data-smart-element='${ElementName.TargetBranch}']:before {
|
|
19
|
+
content: '→';
|
|
20
|
+
}
|
|
21
|
+
// Pull request elements: target branch ← source branch
|
|
22
|
+
[data-smart-element='${ElementName.TargetBranch}']
|
|
23
|
+
+ [data-smart-element='${ElementName.SourceBranch}']:before {
|
|
24
|
+
content: '←';
|
|
25
|
+
}
|
|
26
26
|
`;
|
|
27
27
|
|
|
28
28
|
/**
|
|
@@ -47,22 +47,22 @@ const getHorizontalDirectionStyles = (size, align) => {
|
|
|
47
47
|
const lineHeight = getMaxLineHeight(size);
|
|
48
48
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- needs manual remediation
|
|
49
49
|
return css`
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
50
|
+
display: block;
|
|
51
|
+
vertical-align: middle;
|
|
52
|
+
${getTruncateStyles(1, lineHeight + 'rem')}
|
|
53
53
|
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
> span, > div {
|
|
55
|
+
vertical-align: middle;
|
|
56
56
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
57
|
+
&[data-smart-element-date-time],
|
|
58
|
+
&[data-smart-element-text] {
|
|
59
|
+
// Show all/wrapped/truncated
|
|
60
|
+
display: inline;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
63
|
|
|
64
|
-
|
|
65
|
-
|
|
64
|
+
${getGapStyles(size, align)}
|
|
65
|
+
`;
|
|
66
66
|
};
|
|
67
67
|
export const getElementGroupStyles = (direction, size, align, width, position) => css(getBaseStyles(direction, size), getAlignmentStyles(align), {
|
|
68
68
|
minWidth: '10%'
|
|
@@ -26,22 +26,22 @@ const getPreviewBlockStyles = (placement, ignoreContainerPadding) => {
|
|
|
26
26
|
const containerPadding = ignoreContainerPadding ? '0rem' : 'var(--container-padding)';
|
|
27
27
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- needs manual remediation
|
|
28
28
|
return css`
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
29
|
+
position: absolute;
|
|
30
|
+
top: ${containerPadding};
|
|
31
|
+
bottom: ${containerPadding};
|
|
32
|
+
width: calc(var(--preview-block-width) - ${containerPadding});
|
|
33
33
|
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
${placement === MediaPlacement.Left ? `left: ${containerPadding};` : ''}
|
|
35
|
+
${placement === MediaPlacement.Right ? `right: ${containerPadding};` : ''}
|
|
36
36
|
|
|
37
37
|
[data-smart-element-media='image'] {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
38
|
+
aspect-ratio: unset;
|
|
39
|
+
padding-top: unset;
|
|
40
|
+
width: 100%;
|
|
41
|
+
height: 100%;
|
|
42
|
+
object-fit: cover;
|
|
43
|
+
}
|
|
44
|
+
`;
|
|
45
45
|
}
|
|
46
46
|
if (ignoreContainerPadding) {
|
|
47
47
|
return css({
|
|
@@ -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) => {
|