@atlaskit/smart-card 34.6.2 → 34.6.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 +14 -0
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/BlockCard/views/ResolvedView.compiled.css +1 -0
- package/dist/cjs/view/BlockCard/views/ResolvedView.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/blocks/action-block/ActionBlockOld.js +116 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/action-block/index.compiled.css +7 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/action-block/index.js +21 -26
- package/dist/cjs/view/FlexibleCard/components/blocks/action-group/ActionGroupOld.js +147 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/action-group/action-group-item/index.js +2 -8
- package/dist/cjs/view/FlexibleCard/components/blocks/action-group/index.compiled.css +4 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/action-group/index.js +28 -32
- package/dist/cjs/view/FlexibleCard/components/blocks/ai-summary-block/feature-discovery/FeatureDiscoveryOld.js +71 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/ai-summary-block/feature-discovery/index.compiled.css +4 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/ai-summary-block/feature-discovery/index.js +30 -18
- package/dist/cjs/view/FlexibleCard/components/blocks/ai-summary-block/feature-discovery/styled.js +3 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/ai-summary-block/resolved/AISummaryBlockResolvedViewOld.js +65 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/ai-summary-block/resolved/index.compiled.css +2 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/ai-summary-block/resolved/index.js +22 -15
- package/dist/cjs/view/FlexibleCard/components/blocks/element-group/index.compiled.css +4 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/element-group/index.js +7 -6
- package/dist/cjs/view/FlexibleCard/components/blocks/footer-block/resolved/index.js +2 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/metadata-block/index.compiled.css +2 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/metadata-block/index.js +7 -4
- package/dist/cjs/view/FlexibleCard/components/blocks/title-block/index.js +3 -1
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/cjs/view/RelatedLinksModal/components/related-link-item/index.compiled.css +4 -0
- package/dist/cjs/view/RelatedLinksModal/components/related-link-item/index.js +20 -12
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/BlockCard/views/ResolvedView.compiled.css +1 -0
- package/dist/es2019/view/BlockCard/views/ResolvedView.js +2 -2
- package/dist/es2019/view/FlexibleCard/components/blocks/action-block/ActionBlockOld.js +96 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/action-block/index.compiled.css +7 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/action-block/index.js +20 -24
- package/dist/es2019/view/FlexibleCard/components/blocks/action-group/ActionGroupOld.js +121 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/action-group/action-group-item/index.js +2 -9
- package/dist/es2019/view/FlexibleCard/components/blocks/action-group/index.compiled.css +4 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/action-group/index.js +24 -32
- package/dist/es2019/view/FlexibleCard/components/blocks/ai-summary-block/feature-discovery/FeatureDiscoveryOld.js +63 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/ai-summary-block/feature-discovery/index.compiled.css +5 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/ai-summary-block/feature-discovery/index.js +21 -16
- package/dist/es2019/view/FlexibleCard/components/blocks/ai-summary-block/feature-discovery/styled.js +3 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/ai-summary-block/resolved/AISummaryBlockResolvedViewOld.js +58 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/ai-summary-block/resolved/index.compiled.css +2 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/ai-summary-block/resolved/index.js +18 -11
- package/dist/es2019/view/FlexibleCard/components/blocks/element-group/index.compiled.css +4 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/element-group/index.js +7 -6
- package/dist/es2019/view/FlexibleCard/components/blocks/footer-block/resolved/index.js +2 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/metadata-block/index.compiled.css +2 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/metadata-block/index.js +8 -4
- package/dist/es2019/view/FlexibleCard/components/blocks/title-block/index.js +3 -1
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/es2019/view/RelatedLinksModal/components/related-link-item/index.compiled.css +4 -0
- package/dist/es2019/view/RelatedLinksModal/components/related-link-item/index.js +12 -7
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/BlockCard/views/ResolvedView.compiled.css +1 -0
- package/dist/esm/view/BlockCard/views/ResolvedView.js +2 -2
- package/dist/esm/view/FlexibleCard/components/blocks/action-block/ActionBlockOld.js +105 -0
- package/dist/esm/view/FlexibleCard/components/blocks/action-block/index.compiled.css +7 -0
- package/dist/esm/view/FlexibleCard/components/blocks/action-block/index.js +20 -24
- package/dist/esm/view/FlexibleCard/components/blocks/action-group/ActionGroupOld.js +141 -0
- package/dist/esm/view/FlexibleCard/components/blocks/action-group/action-group-item/index.js +2 -9
- package/dist/esm/view/FlexibleCard/components/blocks/action-group/index.compiled.css +4 -0
- package/dist/esm/view/FlexibleCard/components/blocks/action-group/index.js +24 -32
- package/dist/esm/view/FlexibleCard/components/blocks/ai-summary-block/feature-discovery/FeatureDiscoveryOld.js +64 -0
- package/dist/esm/view/FlexibleCard/components/blocks/ai-summary-block/feature-discovery/index.compiled.css +4 -0
- package/dist/esm/view/FlexibleCard/components/blocks/ai-summary-block/feature-discovery/index.js +25 -16
- package/dist/esm/view/FlexibleCard/components/blocks/ai-summary-block/feature-discovery/styled.js +3 -0
- package/dist/esm/view/FlexibleCard/components/blocks/ai-summary-block/resolved/AISummaryBlockResolvedViewOld.js +55 -0
- package/dist/esm/view/FlexibleCard/components/blocks/ai-summary-block/resolved/index.compiled.css +2 -0
- package/dist/esm/view/FlexibleCard/components/blocks/ai-summary-block/resolved/index.js +18 -11
- package/dist/esm/view/FlexibleCard/components/blocks/element-group/index.compiled.css +4 -1
- package/dist/esm/view/FlexibleCard/components/blocks/element-group/index.js +7 -6
- package/dist/esm/view/FlexibleCard/components/blocks/footer-block/resolved/index.js +2 -1
- package/dist/esm/view/FlexibleCard/components/blocks/metadata-block/index.compiled.css +2 -1
- package/dist/esm/view/FlexibleCard/components/blocks/metadata-block/index.js +8 -4
- package/dist/esm/view/FlexibleCard/components/blocks/title-block/index.js +3 -1
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/esm/view/RelatedLinksModal/components/related-link-item/index.compiled.css +4 -0
- package/dist/esm/view/RelatedLinksModal/components/related-link-item/index.js +12 -7
- package/dist/types/view/FlexibleCard/components/blocks/action-block/ActionBlockOld.d.ts +4 -0
- package/dist/types/view/FlexibleCard/components/blocks/action-block/index.d.ts +2 -2
- package/dist/types/view/FlexibleCard/components/blocks/action-group/ActionGroupOld.d.ts +11 -0
- package/dist/types/view/FlexibleCard/components/blocks/action-group/action-group-item/index.d.ts +2 -2
- package/dist/types/view/FlexibleCard/components/blocks/action-group/index.d.ts +2 -9
- package/dist/types/view/FlexibleCard/components/blocks/ai-summary-block/feature-discovery/FeatureDiscoveryOld.d.ts +12 -0
- package/dist/types/view/FlexibleCard/components/blocks/ai-summary-block/feature-discovery/index.d.ts +1 -6
- package/dist/types/view/FlexibleCard/components/blocks/ai-summary-block/feature-discovery/styled.d.ts +3 -0
- package/dist/types/view/FlexibleCard/components/blocks/ai-summary-block/resolved/AISummaryBlockResolvedViewOld.d.ts +10 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/action-block/ActionBlockOld.d.ts +4 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/action-block/index.d.ts +2 -2
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/action-group/ActionGroupOld.d.ts +11 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/action-group/action-group-item/index.d.ts +2 -2
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/action-group/index.d.ts +2 -9
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/ai-summary-block/feature-discovery/FeatureDiscoveryOld.d.ts +12 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/ai-summary-block/feature-discovery/index.d.ts +1 -6
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/ai-summary-block/feature-discovery/styled.d.ts +3 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/ai-summary-block/resolved/AISummaryBlockResolvedViewOld.d.ts +10 -0
- package/package.json +2 -2
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/* index.tsx generated by @compiled/babel-plugin v0.35.0 */
|
|
2
|
+
/* eslint-disable @atlaskit/design-system/use-tokens-typography */
|
|
2
3
|
import "./index.compiled.css";
|
|
3
4
|
import * as React from 'react';
|
|
4
5
|
import { ax, ix } from "@compiled/react/runtime";
|
|
@@ -11,10 +12,10 @@ const alignmentStyleMap = {
|
|
|
11
12
|
left: "_1dthv2br _r291v2br _1bah1y6m _y3gn1e5h"
|
|
12
13
|
};
|
|
13
14
|
const baseStyleBySize = {
|
|
14
|
-
xlarge: "_zulp147b _1reo15vq _18m915vq _4cvr1h6o _1e0c1txw _1ul9idpf",
|
|
15
|
-
large: "_zulp1e9d _1reo15vq _18m915vq _4cvr1h6o _1e0c1txw _1ul9idpf",
|
|
16
|
-
medium: "_zulpcxkx _1reo15vq _18m915vq _4cvr1h6o _1e0c1txw _1ul9idpf",
|
|
17
|
-
small: "_zulppdf9 _1reo15vq _18m915vq _4cvr1h6o _1e0c1txw _1ul9idpf"
|
|
15
|
+
xlarge: "_zulp147b _1reo15vq _18m915vq _4cvr1h6o _1e0c1txw _1ul9idpf _vwz41j6v",
|
|
16
|
+
large: "_zulp1e9d _1reo15vq _18m915vq _4cvr1h6o _1e0c1txw _1ul9idpf _vwz41j6v",
|
|
17
|
+
medium: "_zulpcxkx _1reo15vq _18m915vq _4cvr1h6o _1e0c1txw _1ul9idpf _vwz41j6v",
|
|
18
|
+
small: "_zulppdf9 _1reo15vq _18m915vq _4cvr1h6o _1e0c1txw _1ul9idpf _vwz41j6v"
|
|
18
19
|
};
|
|
19
20
|
const baseStyleByDirection = {
|
|
20
21
|
horizontal: "_2lx2vrvc _4cvr1h6o",
|
|
@@ -48,6 +49,7 @@ const gapStylesRight = {
|
|
|
48
49
|
medium: "_24rccxkx _3dveidpf",
|
|
49
50
|
small: "_24rcpdf9 _3dveidpf"
|
|
50
51
|
};
|
|
52
|
+
const minWidthStyle = null;
|
|
51
53
|
|
|
52
54
|
/**
|
|
53
55
|
* Creates a group of Action components. Accepts an array of Actions, in addition to some styling
|
|
@@ -66,13 +68,12 @@ const ElementGroupNew = ({
|
|
|
66
68
|
position = SmartLinkPosition.Center,
|
|
67
69
|
className
|
|
68
70
|
}) => {
|
|
69
|
-
const totalCss = [baseStyleBySize[size], baseStyleByDirection[direction], baseStyle, alignmentStyleMap[align], null, widthStyle[width], direction === SmartLinkDirection.Horizontal ? horizontalStyleBase : {}, direction === SmartLinkDirection.Horizontal ? horizontalStyleByHeight[size] : {}, direction === SmartLinkDirection.Horizontal ? SmartLinkAlignment.Left ? gapStylesLeft[size] : gapStylesRight[size] : {}, positionStyle[position]];
|
|
70
71
|
return /*#__PURE__*/React.createElement("div", {
|
|
71
72
|
"data-smart-element-group": true,
|
|
72
73
|
"data-testid": testId
|
|
73
74
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
|
|
74
75
|
,
|
|
75
|
-
className: ax([baseStyleBySize[size], baseStyleByDirection[direction], "_fiawglyw _1ouwidpf _f6ju1ns9", alignmentStyleMap[align], "_1ul99by0", widthStyle[width], direction === SmartLinkDirection.Horizontal && "_1reo15vq _18m915vq _1e0c1ule _s7n4nkob _1bto1l2s _1nmz1hna _1yyjkb7n _sudp1e54 _1aaynkob _15tynkob _1iu61nu9 _166k1nu9 _1div1nu9 _bmfb1nu9", direction === SmartLinkDirection.Horizontal &&
|
|
76
|
+
className: ax([baseStyleBySize[size], baseStyleByDirection[direction], "_fiawglyw _1ouwidpf _f6ju1ns9", alignmentStyleMap[align], "_1ul99by0", widthStyle[width], direction === SmartLinkDirection.Horizontal && "_1reo15vq _18m915vq _1e0c1ule _s7n4nkob _1bto1l2s _1nmz1hna _1yyjkb7n _sudp1e54 _1aaynkob _15tynkob _1iu61nu9 _166k1nu9 _1div1nu9 _bmfb1nu9", direction === SmartLinkDirection.Horizontal && horizontalStyleByHeight[size], direction === SmartLinkDirection.Horizontal && align === SmartLinkAlignment.Left && gapStylesLeft[size], direction === SmartLinkDirection.Horizontal && align === SmartLinkAlignment.Right && gapStylesRight[size], positionStyle[position], className])
|
|
76
77
|
}, renderChildren(children, size));
|
|
77
78
|
};
|
|
78
79
|
const ElementGroup = props => {
|
|
@@ -47,7 +47,8 @@ const FooterBlockResolvedView = props => {
|
|
|
47
47
|
}, /*#__PURE__*/React.createElement(ActionGroup, {
|
|
48
48
|
onDropdownOpenChange: onDropdownOpenChange,
|
|
49
49
|
items: actions,
|
|
50
|
-
appearance: "default"
|
|
50
|
+
appearance: "default",
|
|
51
|
+
size: size
|
|
51
52
|
})) : null);
|
|
52
53
|
};
|
|
53
54
|
const FooterBlockResolvedViewExported = props => {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
._11c81oud{font:var(--ds-font-body,normal 400 14px/20px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,system-ui,"Helvetica Neue",sans-serif)}
|
|
2
1
|
._18m915vq{overflow-y:hidden}
|
|
3
2
|
._1bto1l2s{text-overflow:ellipsis}
|
|
4
3
|
._1e0ccj1k{display:-webkit-box}
|
|
@@ -7,4 +6,6 @@
|
|
|
7
6
|
._1yyjcs5v{-webkit-line-clamp:2}
|
|
8
7
|
._1yyjkb7n{-webkit-line-clamp:1}
|
|
9
8
|
._sudp1e54{-webkit-box-orient:vertical}
|
|
9
|
+
._vwz41k8s{line-height:1.5rem}
|
|
10
|
+
._vwz41m1q{line-height:1.75rem}
|
|
10
11
|
@supports not (-webkit-line-clamp:1){._102k1k7u{max-height:3.5rem}._102k1wto{max-height:3rem}}
|
|
@@ -3,6 +3,8 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
3
3
|
import "./index.compiled.css";
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import { ax, ix } from "@compiled/react/runtime";
|
|
6
|
+
/* eslint-disable @atlaskit/design-system/use-tokens-typography */
|
|
7
|
+
|
|
6
8
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
9
|
import { SmartLinkAlignment, SmartLinkDirection, SmartLinkSize, SmartLinkStatus, SmartLinkWidth } from '../../../../../constants';
|
|
8
10
|
import Block from '../block';
|
|
@@ -17,10 +19,10 @@ const truncateStyles = {
|
|
|
17
19
|
'2': "_1reo15vq _18m915vq _1e0ccj1k _1bto1l2s _1nmz1hna _1yyjcs5v _sudp1e54"
|
|
18
20
|
};
|
|
19
21
|
const sizeStyles = {
|
|
20
|
-
xlarge: "
|
|
21
|
-
large: "
|
|
22
|
-
medium: "
|
|
23
|
-
small: "
|
|
22
|
+
xlarge: "_vwz41m1q _102k1k7u",
|
|
23
|
+
large: "_vwz41m1q _102k1k7u",
|
|
24
|
+
medium: "_vwz41k8s _102k1wto",
|
|
25
|
+
small: "_vwz41k8s _102k1wto"
|
|
24
26
|
};
|
|
25
27
|
const getMaxLines = maxLines => {
|
|
26
28
|
if (maxLines > MAXIMUM_MAX_LINES) {
|
|
@@ -62,11 +64,13 @@ const MetadataBlock = ({
|
|
|
62
64
|
align: SmartLinkAlignment.Left,
|
|
63
65
|
direction: SmartLinkDirection.Horizontal,
|
|
64
66
|
width: SmartLinkWidth.Flexible,
|
|
67
|
+
size: size,
|
|
65
68
|
className: ax([truncateStyles[maxLinesTotal], sizeStyles[size]])
|
|
66
69
|
}, primaryElements), secondaryElements && /*#__PURE__*/React.createElement(ElementGroup, {
|
|
67
70
|
align: SmartLinkAlignment.Right,
|
|
68
71
|
direction: SmartLinkDirection.Horizontal,
|
|
69
72
|
width: SmartLinkWidth.Flexible,
|
|
73
|
+
size: size,
|
|
70
74
|
className: ax([truncateStyles[maxLinesTotal], sizeStyles[size]])
|
|
71
75
|
}, secondaryElements));
|
|
72
76
|
};
|
|
@@ -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: "34.6.
|
|
13
|
+
packageVersion: "34.6.4",
|
|
14
14
|
componentName: 'linkUrl'
|
|
15
15
|
};
|
|
16
16
|
const Anchor = withLinkClickedEvent('a');
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
._11c81vlj{font:var(--ds-font-body-small,normal 400 11px/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,system-ui,"Helvetica Neue",sans-serif)}
|
|
2
|
+
._zulputpp{gap:var(--ds-space-150,9pt)}
|
|
3
|
+
._ca0qu2gc{padding-top:var(--ds-space-100,8px)}
|
|
4
|
+
._n3tdu2gc{padding-bottom:var(--ds-space-100,8px)}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
/* index.tsx generated by @compiled/babel-plugin v0.35.0 */
|
|
2
|
+
import "./index.compiled.css";
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
2
5
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
3
6
|
import { Box, xcss } from '@atlaskit/primitives';
|
|
7
|
+
import { SmartLinkStatus } from '../../../../constants';
|
|
4
8
|
import { Card, ElementName, SmartLinkPosition, SmartLinkSize, SmartLinkTheme, TitleBlock } from '../../../../index';
|
|
5
9
|
import RelatedLinkItemOld from './RelatedLinkItemOld';
|
|
6
10
|
const hoverStyles = xcss({
|
|
@@ -9,12 +13,9 @@ const hoverStyles = xcss({
|
|
|
9
13
|
borderRadius: 'border.radius.100',
|
|
10
14
|
marginInline: 'space.negative.100',
|
|
11
15
|
paddingInline: 'space.100'
|
|
12
|
-
}
|
|
13
|
-
paddingTop: 'space.100',
|
|
14
|
-
paddingBottom: 'space.100',
|
|
15
|
-
gap: 'space.150',
|
|
16
|
-
font: 'font.body.small'
|
|
16
|
+
}
|
|
17
17
|
});
|
|
18
|
+
const relatedLinkItemStyles = null;
|
|
18
19
|
const RelatedLinkItem = ({
|
|
19
20
|
url,
|
|
20
21
|
testId
|
|
@@ -43,7 +44,11 @@ const RelatedLinkItem = ({
|
|
|
43
44
|
hideTitleTooltip: true,
|
|
44
45
|
position: SmartLinkPosition.Center,
|
|
45
46
|
subtitle: subtitle,
|
|
46
|
-
anchorTarget: "_blank"
|
|
47
|
+
anchorTarget: "_blank",
|
|
48
|
+
size: ui.size,
|
|
49
|
+
theme: ui.theme,
|
|
50
|
+
status: SmartLinkStatus.Resolved,
|
|
51
|
+
className: ax(["_zulputpp _11c81vlj _ca0qu2gc _n3tdu2gc"])
|
|
47
52
|
})));
|
|
48
53
|
};
|
|
49
54
|
const RelatedLinkItemExported = props => {
|
|
@@ -4,7 +4,7 @@ export var ANALYTICS_CHANNEL = 'media';
|
|
|
4
4
|
export var context = {
|
|
5
5
|
componentName: 'smart-cards',
|
|
6
6
|
packageName: "@atlaskit/smart-card",
|
|
7
|
-
packageVersion: "34.6.
|
|
7
|
+
packageVersion: "34.6.4"
|
|
8
8
|
};
|
|
9
9
|
export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
10
10
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -3,4 +3,5 @@
|
|
|
3
3
|
._1sxbcxkx span[data-smart-element-avatar-group]>ul{margin-right:var(--ds-space-100,.5rem)}
|
|
4
4
|
._4t3i1k8s{height:1.5rem}
|
|
5
5
|
._g0eioxwj .actions-button-group button, ._1qryoxwj .actions-button-group button:active, ._sxbroxwj .actions-button-group button:focus, ._1gyioxwj .actions-button-group button:hover{font-size:.875rem}
|
|
6
|
+
._i8d01j6v [data-smart-element-group]{line-height:1rem}
|
|
6
7
|
._wwyvidpf span[data-smart-element-avatar-group]>ul{padding-left:0}
|
|
@@ -76,12 +76,12 @@ var ResolvedView = function ResolvedView(_ref) {
|
|
|
76
76
|
primary: topMetadata,
|
|
77
77
|
maxLines: 1,
|
|
78
78
|
status: SmartLinkStatus.Resolved,
|
|
79
|
-
className: ax(["_wwyvidpf _1sxbcxkx"])
|
|
79
|
+
className: ax(["_wwyvidpf _1sxbcxkx _i8d01j6v"])
|
|
80
80
|
}), /*#__PURE__*/React.createElement(SnippetBlock, null), /*#__PURE__*/React.createElement(MetadataBlock, {
|
|
81
81
|
primary: bottomMetadata,
|
|
82
82
|
maxLines: 1,
|
|
83
83
|
status: SmartLinkStatus.Resolved,
|
|
84
|
-
className: ax(["_wwyvidpf _1sxbcxkx"])
|
|
84
|
+
className: ax(["_wwyvidpf _1sxbcxkx _i8d01j6v"])
|
|
85
85
|
}), !isPreviewBlockErrored ? /*#__PURE__*/React.createElement(PreviewBlock, _extends({}, PreviewBlockOptions, {
|
|
86
86
|
onError: function onError() {
|
|
87
87
|
setIsPreviewBlockErrored(true);
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
|
+
/**
|
|
3
|
+
* @jsxRuntime classic
|
|
4
|
+
* @jsx jsx
|
|
5
|
+
*/
|
|
6
|
+
import { useCallback, useMemo, useState } from 'react';
|
|
7
|
+
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
|
+
import { css, jsx } from '@emotion/react';
|
|
10
|
+
import { di } from 'react-magnetic-di';
|
|
11
|
+
import { xcss } from '@atlaskit/primitives';
|
|
12
|
+
import { SmartLinkSize } from '../../../../../constants';
|
|
13
|
+
import { useFlexibleUiContext, useFlexibleUiOptionContext } from '../../../../../state/flexible-ui-context';
|
|
14
|
+
import * as Actions from '../../actions';
|
|
15
|
+
import { getPrimitivesPaddingSpaceBySize } from '../../utils';
|
|
16
|
+
import { ActionFooter } from './action-footer';
|
|
17
|
+
var ignoreContainerPaddingStyles = css({
|
|
18
|
+
display: 'flex',
|
|
19
|
+
flexDirection: 'column',
|
|
20
|
+
boxSizing: 'border-box',
|
|
21
|
+
flexGrow: 1,
|
|
22
|
+
width: '100%',
|
|
23
|
+
// We have to find a better way to ignore container padding
|
|
24
|
+
// This has become more and more of a common use case.
|
|
25
|
+
marginLeft: 'calc(var(--container-gap-left) * -1)',
|
|
26
|
+
marginRight: 'calc(var(--container-gap-right) * -1)'
|
|
27
|
+
});
|
|
28
|
+
var DEFAULT_SORT_ORDER = ['PreviewAction', 'CopyLinkAction', 'AISummaryAction'];
|
|
29
|
+
var sort = function sort(a, b) {
|
|
30
|
+
var idxA = DEFAULT_SORT_ORDER.indexOf(a);
|
|
31
|
+
var idxB = DEFAULT_SORT_ORDER.indexOf(b);
|
|
32
|
+
if (idxA === -1) {
|
|
33
|
+
idxA = DEFAULT_SORT_ORDER.length;
|
|
34
|
+
}
|
|
35
|
+
if (idxB === -1) {
|
|
36
|
+
idxB = DEFAULT_SORT_ORDER.length;
|
|
37
|
+
}
|
|
38
|
+
return idxA - idxB;
|
|
39
|
+
};
|
|
40
|
+
var ActionBlockOld = function ActionBlockOld(_ref) {
|
|
41
|
+
var blockRef = _ref.blockRef,
|
|
42
|
+
onClickCallback = _ref.onClick,
|
|
43
|
+
size = _ref.size,
|
|
44
|
+
spaceInline = _ref.spaceInline,
|
|
45
|
+
_ref$testId = _ref.testId,
|
|
46
|
+
testId = _ref$testId === void 0 ? 'smart-block-action' : _ref$testId;
|
|
47
|
+
var context = useFlexibleUiContext();
|
|
48
|
+
var ui = useFlexibleUiOptionContext();
|
|
49
|
+
var _useState = useState(),
|
|
50
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
51
|
+
message = _useState2[0],
|
|
52
|
+
setMessage = _useState2[1];
|
|
53
|
+
var _useState3 = useState(false),
|
|
54
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
55
|
+
isLoading = _useState4[0],
|
|
56
|
+
setIsLoading = _useState4[1];
|
|
57
|
+
var onLoadingChange = useCallback(function (isLoading) {
|
|
58
|
+
setIsLoading(isLoading);
|
|
59
|
+
}, [setIsLoading]);
|
|
60
|
+
var padding = !(ui !== null && ui !== void 0 && ui.hidePadding) ? getPrimitivesPaddingSpaceBySize((ui === null || ui === void 0 ? void 0 : ui.size) || SmartLinkSize.Medium) : undefined;
|
|
61
|
+
var _onClick = useCallback(function (name) {
|
|
62
|
+
setMessage(undefined);
|
|
63
|
+
onClickCallback === null || onClickCallback === void 0 || onClickCallback(name);
|
|
64
|
+
}, [onClickCallback]);
|
|
65
|
+
var onError = useCallback(function (error) {
|
|
66
|
+
setMessage(error);
|
|
67
|
+
}, []);
|
|
68
|
+
var actions = useMemo(function () {
|
|
69
|
+
if (!(context !== null && context !== void 0 && context.actions)) {
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
72
|
+
var arr = Object.keys(context.actions);
|
|
73
|
+
arr.sort(sort);
|
|
74
|
+
return arr.map(function (name) {
|
|
75
|
+
var Action = name in Actions ? Actions[name] : undefined;
|
|
76
|
+
return Action ? jsx(Action, {
|
|
77
|
+
as: "stack-item",
|
|
78
|
+
spaceInline: spaceInline,
|
|
79
|
+
key: name,
|
|
80
|
+
onClick: function onClick() {
|
|
81
|
+
return _onClick(name);
|
|
82
|
+
},
|
|
83
|
+
onError: onError,
|
|
84
|
+
onLoadingChange: onLoadingChange,
|
|
85
|
+
size: size
|
|
86
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
87
|
+
,
|
|
88
|
+
xcss: xcss({
|
|
89
|
+
paddingInline: padding
|
|
90
|
+
}),
|
|
91
|
+
hideTooltip: isLoading
|
|
92
|
+
}) : null;
|
|
93
|
+
});
|
|
94
|
+
}, [context === null || context === void 0 ? void 0 : context.actions, _onClick, onError, padding, size, spaceInline, isLoading, onLoadingChange]);
|
|
95
|
+
return actions ? jsx("div", {
|
|
96
|
+
css: ignoreContainerPaddingStyles,
|
|
97
|
+
ref: blockRef,
|
|
98
|
+
"data-testid": testId
|
|
99
|
+
}, actions, jsx(ActionFooter, {
|
|
100
|
+
message: message,
|
|
101
|
+
paddingInline: padding,
|
|
102
|
+
testId: testId
|
|
103
|
+
})) : null;
|
|
104
|
+
};
|
|
105
|
+
export default ActionBlockOld;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
._16jlkb7n{flex-grow:1}
|
|
2
|
+
._18u01ivi{margin-left:calc(var(--container-gap-left)*-1)}
|
|
3
|
+
._1bsb1osq{width:100%}
|
|
4
|
+
._1e0c1txw{display:flex}
|
|
5
|
+
._2hwxc10g{margin-right:calc(var(--container-gap-right)*-1)}
|
|
6
|
+
._2lx21bp4{flex-direction:column}
|
|
7
|
+
._vchhusvi{box-sizing:border-box}
|
|
@@ -1,30 +1,19 @@
|
|
|
1
|
+
/* index.tsx generated by @compiled/babel-plugin v0.35.0 */
|
|
1
2
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
|
|
5
|
-
*/
|
|
3
|
+
import "./index.compiled.css";
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
6
6
|
import { useCallback, useMemo, useState } from 'react';
|
|
7
|
-
|
|
8
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
|
-
import { css, jsx } from '@emotion/react';
|
|
10
7
|
import { di } from 'react-magnetic-di';
|
|
8
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
11
9
|
import { xcss } from '@atlaskit/primitives';
|
|
12
10
|
import { SmartLinkSize } from '../../../../../constants';
|
|
13
11
|
import { useFlexibleUiContext, useFlexibleUiOptionContext } from '../../../../../state/flexible-ui-context';
|
|
14
12
|
import * as Actions from '../../actions';
|
|
15
13
|
import { getPrimitivesPaddingSpaceBySize } from '../../utils';
|
|
16
14
|
import { ActionFooter } from './action-footer';
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
flexDirection: 'column',
|
|
20
|
-
boxSizing: 'border-box',
|
|
21
|
-
flexGrow: 1,
|
|
22
|
-
width: '100%',
|
|
23
|
-
// We have to find a better way to ignore container padding
|
|
24
|
-
// This has become more and more of a common use case.
|
|
25
|
-
marginLeft: 'calc(var(--container-gap-left) * -1)',
|
|
26
|
-
marginRight: 'calc(var(--container-gap-right) * -1)'
|
|
27
|
-
});
|
|
15
|
+
import ActionBlockOld from './ActionBlockOld';
|
|
16
|
+
var ignoreContainerPaddingStyles = null;
|
|
28
17
|
var DEFAULT_SORT_ORDER = ['PreviewAction', 'CopyLinkAction', 'AISummaryAction'];
|
|
29
18
|
var sort = function sort(a, b) {
|
|
30
19
|
var idxA = DEFAULT_SORT_ORDER.indexOf(a);
|
|
@@ -37,7 +26,7 @@ var sort = function sort(a, b) {
|
|
|
37
26
|
}
|
|
38
27
|
return idxA - idxB;
|
|
39
28
|
};
|
|
40
|
-
var
|
|
29
|
+
var ActionBlockNew = function ActionBlockNew(_ref) {
|
|
41
30
|
var blockRef = _ref.blockRef,
|
|
42
31
|
onClickCallback = _ref.onClick,
|
|
43
32
|
size = _ref.size,
|
|
@@ -73,7 +62,7 @@ var ActionBlock = function ActionBlock(_ref) {
|
|
|
73
62
|
arr.sort(sort);
|
|
74
63
|
return arr.map(function (name) {
|
|
75
64
|
var Action = name in Actions ? Actions[name] : undefined;
|
|
76
|
-
return Action ?
|
|
65
|
+
return Action ? /*#__PURE__*/React.createElement(Action, {
|
|
77
66
|
as: "stack-item",
|
|
78
67
|
spaceInline: spaceInline,
|
|
79
68
|
key: name,
|
|
@@ -92,14 +81,21 @@ var ActionBlock = function ActionBlock(_ref) {
|
|
|
92
81
|
}) : null;
|
|
93
82
|
});
|
|
94
83
|
}, [context === null || context === void 0 ? void 0 : context.actions, _onClick, onError, padding, size, spaceInline, isLoading, onLoadingChange]);
|
|
95
|
-
return actions ?
|
|
96
|
-
css: ignoreContainerPaddingStyles,
|
|
84
|
+
return actions ? /*#__PURE__*/React.createElement("div", {
|
|
97
85
|
ref: blockRef,
|
|
98
|
-
"data-testid": testId
|
|
99
|
-
|
|
86
|
+
"data-testid": testId,
|
|
87
|
+
className: ax(["_1e0c1txw _2lx21bp4 _vchhusvi _16jlkb7n _1bsb1osq _18u01ivi _2hwxc10g"])
|
|
88
|
+
}, actions, /*#__PURE__*/React.createElement(ActionFooter, {
|
|
100
89
|
message: message,
|
|
101
90
|
paddingInline: padding,
|
|
102
91
|
testId: testId
|
|
103
92
|
})) : null;
|
|
104
93
|
};
|
|
94
|
+
var ActionBlock = function ActionBlock(props) {
|
|
95
|
+
if (fg('bandicoots-compiled-migration-smartcard')) {
|
|
96
|
+
return /*#__PURE__*/React.createElement(ActionBlockNew, props);
|
|
97
|
+
} else {
|
|
98
|
+
return /*#__PURE__*/React.createElement(ActionBlockOld, props);
|
|
99
|
+
}
|
|
100
|
+
};
|
|
105
101
|
export default ActionBlock;
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
+
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
4
|
+
var _excluded = ["triggerRef"];
|
|
5
|
+
/**
|
|
6
|
+
* @jsxRuntime classic
|
|
7
|
+
* @jsx jsx
|
|
8
|
+
*/
|
|
9
|
+
import { useCallback, useMemo, useState } from 'react';
|
|
10
|
+
|
|
11
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
12
|
+
import { css, jsx } from '@emotion/react';
|
|
13
|
+
import { FormattedMessage } from 'react-intl-next';
|
|
14
|
+
import { di } from 'react-magnetic-di';
|
|
15
|
+
import ButtonGroup from '@atlaskit/button/button-group';
|
|
16
|
+
import Button from '@atlaskit/button/standard-button';
|
|
17
|
+
import DropdownMenu from '@atlaskit/dropdown-menu';
|
|
18
|
+
import MoreIcon from '@atlaskit/icon/core/migration/show-more-horizontal--more';
|
|
19
|
+
import Tooltip from '@atlaskit/tooltip';
|
|
20
|
+
import { SmartLinkSize } from '../../../../../constants';
|
|
21
|
+
import { messages } from '../../../../../messages';
|
|
22
|
+
import { useFlexibleUiContext, useFlexibleUiOptionContext } from '../../../../../state/flexible-ui-context';
|
|
23
|
+
import { sizeToButtonSpacing } from '../../utils';
|
|
24
|
+
import { filterActionItems } from '../utils';
|
|
25
|
+
import ActionGroupItem from './action-group-item';
|
|
26
|
+
var styles = css({
|
|
27
|
+
display: 'inline-flex',
|
|
28
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
29
|
+
lineHeight: '1rem',
|
|
30
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
31
|
+
'> div': {
|
|
32
|
+
alignItems: 'center',
|
|
33
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
34
|
+
'button:focus-visible': {
|
|
35
|
+
outlineOffset: "var(--ds-space-negative-025, -2px)"
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
var renderActionItems = function renderActionItems() {
|
|
40
|
+
var items = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
41
|
+
var size = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : SmartLinkSize.Medium;
|
|
42
|
+
var appearance = arguments.length > 2 ? arguments[2] : undefined;
|
|
43
|
+
var asDropDownItems = arguments.length > 3 ? arguments[3] : undefined;
|
|
44
|
+
var onActionItemClick = arguments.length > 4 ? arguments[4] : undefined;
|
|
45
|
+
return items.map(function (item, idx) {
|
|
46
|
+
return jsx(ActionGroupItem, {
|
|
47
|
+
item: item,
|
|
48
|
+
key: idx,
|
|
49
|
+
size: size,
|
|
50
|
+
appearance: appearance,
|
|
51
|
+
asDropDownItems: asDropDownItems,
|
|
52
|
+
onActionItemClick: onActionItemClick
|
|
53
|
+
});
|
|
54
|
+
});
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Creates a group of Action components. Accepts an array of Actions, in addition to some styling
|
|
59
|
+
* preferences.
|
|
60
|
+
* @internal
|
|
61
|
+
* @param {ActionGroupProps} ActionGroupProps
|
|
62
|
+
* @see Action
|
|
63
|
+
*/
|
|
64
|
+
var ActionGroupOld = function ActionGroupOld(_ref) {
|
|
65
|
+
var _ref$items = _ref.items,
|
|
66
|
+
items = _ref$items === void 0 ? [] : _ref$items,
|
|
67
|
+
_ref$size = _ref.size,
|
|
68
|
+
size = _ref$size === void 0 ? SmartLinkSize.Medium : _ref$size,
|
|
69
|
+
appearance = _ref.appearance,
|
|
70
|
+
_ref$visibleButtonsNu = _ref.visibleButtonsNum,
|
|
71
|
+
visibleButtonsNum = _ref$visibleButtonsNu === void 0 ? 2 : _ref$visibleButtonsNu,
|
|
72
|
+
onDropdownOpenChange = _ref.onDropdownOpenChange;
|
|
73
|
+
var context = useFlexibleUiContext();
|
|
74
|
+
var ui = useFlexibleUiOptionContext();
|
|
75
|
+
var _useState = useState(false),
|
|
76
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
77
|
+
isOpen = _useState2[0],
|
|
78
|
+
setIsOpen = _useState2[1];
|
|
79
|
+
var renderableActionItems = useMemo(function () {
|
|
80
|
+
return filterActionItems(items, context);
|
|
81
|
+
}, [context, items]);
|
|
82
|
+
var isMoreThenTwoItems = renderableActionItems.length > visibleButtonsNum;
|
|
83
|
+
var onOpenChange = useCallback(function (attrs) {
|
|
84
|
+
setIsOpen(attrs.isOpen);
|
|
85
|
+
if (onDropdownOpenChange) {
|
|
86
|
+
onDropdownOpenChange(attrs.isOpen);
|
|
87
|
+
}
|
|
88
|
+
}, [onDropdownOpenChange]);
|
|
89
|
+
var onActionItemClick = useCallback(function () {
|
|
90
|
+
if (isOpen) {
|
|
91
|
+
onOpenChange({
|
|
92
|
+
isOpen: false
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
}, [isOpen, onOpenChange]);
|
|
96
|
+
var actionButtons = useMemo(function () {
|
|
97
|
+
var actionItems = isMoreThenTwoItems ? renderableActionItems.slice(0, visibleButtonsNum - 1) : renderableActionItems;
|
|
98
|
+
return renderActionItems(actionItems, size, appearance, false, onActionItemClick);
|
|
99
|
+
}, [appearance, isMoreThenTwoItems, onActionItemClick, renderableActionItems, size, visibleButtonsNum]);
|
|
100
|
+
var moreActionDropdown = useMemo(function () {
|
|
101
|
+
var actionItems = isMoreThenTwoItems ? renderableActionItems.slice(visibleButtonsNum - 1) : [];
|
|
102
|
+
if (actionItems.length > 0) {
|
|
103
|
+
var spacing = sizeToButtonSpacing[size];
|
|
104
|
+
var moreIcon = jsx(MoreIcon, {
|
|
105
|
+
label: "more",
|
|
106
|
+
color: "currentColor"
|
|
107
|
+
});
|
|
108
|
+
var formatMessage = jsx(FormattedMessage, messages.more_actions);
|
|
109
|
+
return jsx(DropdownMenu, {
|
|
110
|
+
isOpen: isOpen,
|
|
111
|
+
onOpenChange: onOpenChange,
|
|
112
|
+
trigger: function trigger(_ref2) {
|
|
113
|
+
var triggerRef = _ref2.triggerRef,
|
|
114
|
+
props = _objectWithoutProperties(_ref2, _excluded);
|
|
115
|
+
return jsx(Tooltip, {
|
|
116
|
+
content: formatMessage,
|
|
117
|
+
hideTooltipOnClick: true,
|
|
118
|
+
testId: "action-group-more-button-tooltip",
|
|
119
|
+
tag: "span"
|
|
120
|
+
}, jsx(Button, _extends({}, props, {
|
|
121
|
+
spacing: spacing,
|
|
122
|
+
testId: "action-group-more-button",
|
|
123
|
+
iconBefore: moreIcon,
|
|
124
|
+
ref: triggerRef
|
|
125
|
+
})));
|
|
126
|
+
},
|
|
127
|
+
testId: "action-group-dropdown",
|
|
128
|
+
zIndex: ui === null || ui === void 0 ? void 0 : ui.zIndex
|
|
129
|
+
}, renderActionItems(actionItems, size, appearance, true, onActionItemClick));
|
|
130
|
+
}
|
|
131
|
+
return null;
|
|
132
|
+
}, [appearance, isMoreThenTwoItems, isOpen, onActionItemClick, onOpenChange, renderableActionItems, size, ui === null || ui === void 0 ? void 0 : ui.zIndex, visibleButtonsNum]);
|
|
133
|
+
return renderableActionItems.length > 0 ? jsx("div", {
|
|
134
|
+
css: styles
|
|
135
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
136
|
+
,
|
|
137
|
+
className: "actions-button-group",
|
|
138
|
+
"data-action-open": isOpen
|
|
139
|
+
}, jsx(ButtonGroup, null, actionButtons, moreActionDropdown)) : null;
|
|
140
|
+
};
|
|
141
|
+
export default ActionGroupOld;
|
package/dist/esm/view/FlexibleCard/components/blocks/action-group/action-group-item/index.js
CHANGED
|
@@ -4,14 +4,7 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
|
|
|
4
4
|
var _excluded = ["name", "hideContent", "hideIcon", "onClick", "isDisabled"];
|
|
5
5
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
6
6
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
7
|
-
|
|
8
|
-
* @jsxRuntime classic
|
|
9
|
-
* @jsx jsx
|
|
10
|
-
*/
|
|
11
|
-
import { useCallback } from 'react';
|
|
12
|
-
|
|
13
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
14
|
-
import { jsx } from '@emotion/react';
|
|
7
|
+
import React, { useCallback } from 'react';
|
|
15
8
|
import * as Actions from '../../../actions';
|
|
16
9
|
var ActionGroupItem = function ActionGroupItem(_ref) {
|
|
17
10
|
var item = _ref.item,
|
|
@@ -47,7 +40,7 @@ var ActionGroupItem = function ActionGroupItem(_ref) {
|
|
|
47
40
|
if (item !== null && item !== void 0 && item.entryPointWrapper) {
|
|
48
41
|
actionProps.wrapper = item.entryPointWrapper;
|
|
49
42
|
}
|
|
50
|
-
return
|
|
43
|
+
return /*#__PURE__*/React.createElement(Action, _extends({
|
|
51
44
|
asDropDownItem: asDropDownItems,
|
|
52
45
|
size: size,
|
|
53
46
|
appearance: appearance,
|