@atlaskit/smart-card 39.1.0 → 39.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/BlockCard/views/ForbiddenView.js +1 -2
- package/dist/cjs/view/BlockCard/views/NotFoundView.js +1 -2
- package/dist/cjs/view/BlockCard/views/ResolvedView.compiled.css +1 -6
- package/dist/cjs/view/BlockCard/views/ResolvedView.js +2 -9
- package/dist/cjs/view/BlockCard/views/UnauthorisedView.compiled.css +0 -2
- package/dist/cjs/view/BlockCard/views/UnauthorisedView.js +1 -3
- package/dist/cjs/view/BlockCard/views/unresolved-view/index.compiled.css +0 -2
- package/dist/cjs/view/BlockCard/views/unresolved-view/index.js +3 -6
- package/dist/cjs/view/EmbedCard/components/ExpandedFrame.js +35 -109
- package/dist/cjs/view/EmbedCard/components/styled.compiled.css +3 -83
- package/dist/cjs/view/EmbedCard/components/styled.js +12 -176
- package/dist/cjs/view/EmbedModal/components/link-info/index.compiled.css +2 -20
- package/dist/cjs/view/EmbedModal/components/link-info/index.js +4 -6
- package/dist/cjs/view/FlexibleCard/components/actions/action/action-button/index.js +4 -8
- package/dist/cjs/view/FlexibleCard/components/actions/action/action-icon/index.compiled.css +0 -2
- package/dist/cjs/view/FlexibleCard/components/actions/action/action-icon/index.js +2 -9
- package/dist/cjs/view/FlexibleCard/components/actions/action/action-stack-item/action-button.compiled.css +1 -3
- package/dist/cjs/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js +2 -7
- package/dist/cjs/view/FlexibleCard/components/blocks/action-block/action-footer/index.compiled.css +1 -4
- package/dist/cjs/view/FlexibleCard/components/blocks/action-block/action-footer/index.js +7 -27
- package/dist/cjs/view/FlexibleCard/components/blocks/action-block/index.compiled.css +0 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/action-block/index.js +1 -3
- package/dist/cjs/view/FlexibleCard/components/blocks/action-group/index.compiled.css +0 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/action-group/index.js +1 -4
- package/dist/cjs/view/FlexibleCard/components/blocks/ai-footer-block/resolved/index.js +3 -5
- package/dist/cjs/view/FlexibleCard/components/blocks/block/index.compiled.css +1 -14
- package/dist/cjs/view/FlexibleCard/components/blocks/block/index.js +1 -12
- package/dist/cjs/view/FlexibleCard/components/blocks/element-group/index.compiled.css +1 -8
- package/dist/cjs/view/FlexibleCard/components/blocks/element-group/index.js +1 -19
- package/dist/cjs/view/FlexibleCard/components/blocks/footer-block/resolved/index.compiled.css +0 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/footer-block/resolved/index.js +4 -6
- package/dist/cjs/view/FlexibleCard/components/blocks/metadata-block/index.compiled.css +1 -3
- package/dist/cjs/view/FlexibleCard/components/blocks/metadata-block/index.js +3 -9
- package/dist/cjs/view/FlexibleCard/components/blocks/preview-block/resolved/index.js +1 -2
- package/dist/cjs/view/FlexibleCard/components/container/index.compiled.css +0 -22
- package/dist/cjs/view/FlexibleCard/components/container/index.js +10 -77
- package/dist/cjs/view/FlexibleCard/components/elements/common/base-atlaskit-badge-element/index.js +3 -7
- package/dist/cjs/view/FlexibleCard/components/elements/common/base-avatar-group-element/index.js +3 -5
- package/dist/cjs/view/FlexibleCard/components/elements/common/base-badge-element/index.compiled.css +1 -27
- package/dist/cjs/view/FlexibleCard/components/elements/common/base-badge-element/index.js +1 -57
- package/dist/cjs/view/FlexibleCard/components/elements/common/base-date-time-element/index.compiled.css +1 -2
- package/dist/cjs/view/FlexibleCard/components/elements/common/base-date-time-element/index.js +1 -3
- package/dist/cjs/view/FlexibleCard/components/elements/common/base-icon-element/index.js +3 -3
- package/dist/cjs/view/FlexibleCard/components/elements/common/base-lozenge-element/index.compiled.css +1 -2
- package/dist/cjs/view/FlexibleCard/components/elements/common/base-lozenge-element/index.js +3 -5
- package/dist/cjs/view/FlexibleCard/components/elements/common/base-text-element/index.compiled.css +0 -1
- package/dist/cjs/view/FlexibleCard/components/elements/common/base-text-element/index.js +1 -3
- package/dist/cjs/view/FlexibleCard/components/elements/snippet-element/index.js +1 -5
- package/dist/cjs/view/HoverCard/components/ImagePreview.js +1 -2
- package/dist/cjs/view/HoverCard/components/views/forbidden/index.compiled.css +0 -1
- package/dist/cjs/view/HoverCard/components/views/forbidden/index.js +4 -8
- package/dist/cjs/view/HoverCard/components/views/resolved/index.compiled.css +1 -11
- package/dist/cjs/view/HoverCard/components/views/resolved/index.js +3 -11
- package/dist/cjs/view/HoverCard/components/views/unauthorised/index.compiled.css +1 -4
- package/dist/cjs/view/HoverCard/components/views/unauthorised/index.js +3 -7
- package/dist/cjs/view/InlineCard/ErroredView/index.js +6 -44
- package/dist/cjs/view/InlineCard/ForbiddenView/index.js +19 -58
- package/dist/cjs/view/InlineCard/Frame/styled.compiled.css +1 -3
- package/dist/cjs/view/InlineCard/Frame/styled.js +4 -8
- package/dist/cjs/view/InlineCard/IconAndTitleLayout/index.compiled.css +0 -1
- package/dist/cjs/view/InlineCard/IconAndTitleLayout/index.js +38 -132
- package/dist/cjs/view/InlineCard/IconAndTitleLayout/styled.compiled.css +1 -34
- package/dist/cjs/view/InlineCard/IconAndTitleLayout/styled.js +3 -155
- package/dist/cjs/view/InlineCard/ResolvingView/index.js +3 -12
- package/dist/cjs/view/InlineCard/UnauthorisedView/index.js +5 -38
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/cjs/view/common/UnauthorisedViewContent.js +1 -15
- package/dist/cjs/view/common/ai-summary/index.compiled.css +0 -1
- package/dist/cjs/view/common/ai-summary/index.js +1 -3
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/BlockCard/views/ForbiddenView.js +1 -2
- package/dist/es2019/view/BlockCard/views/NotFoundView.js +1 -2
- package/dist/es2019/view/BlockCard/views/ResolvedView.compiled.css +1 -6
- package/dist/es2019/view/BlockCard/views/ResolvedView.js +2 -9
- package/dist/es2019/view/BlockCard/views/UnauthorisedView.compiled.css +0 -2
- package/dist/es2019/view/BlockCard/views/UnauthorisedView.js +1 -3
- package/dist/es2019/view/BlockCard/views/unresolved-view/index.compiled.css +0 -2
- package/dist/es2019/view/BlockCard/views/unresolved-view/index.js +3 -6
- package/dist/es2019/view/EmbedCard/components/ExpandedFrame.js +36 -110
- package/dist/es2019/view/EmbedCard/components/styled.compiled.css +3 -83
- package/dist/es2019/view/EmbedCard/components/styled.js +1 -166
- package/dist/es2019/view/EmbedModal/components/link-info/index.compiled.css +2 -20
- package/dist/es2019/view/EmbedModal/components/link-info/index.js +4 -6
- package/dist/es2019/view/FlexibleCard/components/actions/action/action-button/index.js +4 -8
- package/dist/es2019/view/FlexibleCard/components/actions/action/action-icon/index.compiled.css +0 -2
- package/dist/es2019/view/FlexibleCard/components/actions/action/action-icon/index.js +2 -9
- package/dist/es2019/view/FlexibleCard/components/actions/action/action-stack-item/action-button.compiled.css +1 -3
- package/dist/es2019/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js +2 -7
- package/dist/es2019/view/FlexibleCard/components/blocks/action-block/action-footer/index.compiled.css +1 -4
- package/dist/es2019/view/FlexibleCard/components/blocks/action-block/action-footer/index.js +7 -27
- package/dist/es2019/view/FlexibleCard/components/blocks/action-block/index.compiled.css +0 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/action-block/index.js +1 -3
- package/dist/es2019/view/FlexibleCard/components/blocks/action-group/index.compiled.css +0 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/action-group/index.js +1 -4
- package/dist/es2019/view/FlexibleCard/components/blocks/ai-footer-block/resolved/index.js +3 -5
- package/dist/es2019/view/FlexibleCard/components/blocks/block/index.compiled.css +1 -14
- package/dist/es2019/view/FlexibleCard/components/blocks/block/index.js +1 -13
- package/dist/es2019/view/FlexibleCard/components/blocks/element-group/index.compiled.css +1 -8
- package/dist/es2019/view/FlexibleCard/components/blocks/element-group/index.js +1 -19
- package/dist/es2019/view/FlexibleCard/components/blocks/footer-block/resolved/index.compiled.css +0 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/footer-block/resolved/index.js +4 -6
- package/dist/es2019/view/FlexibleCard/components/blocks/metadata-block/index.compiled.css +1 -3
- package/dist/es2019/view/FlexibleCard/components/blocks/metadata-block/index.js +3 -9
- package/dist/es2019/view/FlexibleCard/components/blocks/preview-block/resolved/index.js +1 -2
- package/dist/es2019/view/FlexibleCard/components/container/index.compiled.css +0 -22
- package/dist/es2019/view/FlexibleCard/components/container/index.js +10 -76
- package/dist/es2019/view/FlexibleCard/components/elements/common/base-atlaskit-badge-element/index.js +3 -8
- package/dist/es2019/view/FlexibleCard/components/elements/common/base-avatar-group-element/index.js +3 -7
- package/dist/es2019/view/FlexibleCard/components/elements/common/base-badge-element/index.compiled.css +1 -27
- package/dist/es2019/view/FlexibleCard/components/elements/common/base-badge-element/index.js +2 -58
- package/dist/es2019/view/FlexibleCard/components/elements/common/base-date-time-element/index.compiled.css +1 -2
- package/dist/es2019/view/FlexibleCard/components/elements/common/base-date-time-element/index.js +1 -3
- package/dist/es2019/view/FlexibleCard/components/elements/common/base-icon-element/index.js +2 -4
- package/dist/es2019/view/FlexibleCard/components/elements/common/base-lozenge-element/index.compiled.css +1 -2
- package/dist/es2019/view/FlexibleCard/components/elements/common/base-lozenge-element/index.js +3 -6
- package/dist/es2019/view/FlexibleCard/components/elements/common/base-text-element/index.compiled.css +0 -1
- package/dist/es2019/view/FlexibleCard/components/elements/common/base-text-element/index.js +1 -3
- package/dist/es2019/view/FlexibleCard/components/elements/snippet-element/index.js +1 -5
- package/dist/es2019/view/HoverCard/components/ImagePreview.js +1 -2
- package/dist/es2019/view/HoverCard/components/views/forbidden/index.compiled.css +0 -1
- package/dist/es2019/view/HoverCard/components/views/forbidden/index.js +4 -8
- package/dist/es2019/view/HoverCard/components/views/resolved/index.compiled.css +1 -11
- package/dist/es2019/view/HoverCard/components/views/resolved/index.js +3 -11
- package/dist/es2019/view/HoverCard/components/views/unauthorised/index.compiled.css +1 -4
- package/dist/es2019/view/HoverCard/components/views/unauthorised/index.js +3 -7
- package/dist/es2019/view/InlineCard/ErroredView/index.js +6 -44
- package/dist/es2019/view/InlineCard/ForbiddenView/index.js +20 -59
- package/dist/es2019/view/InlineCard/Frame/styled.compiled.css +1 -3
- package/dist/es2019/view/InlineCard/Frame/styled.js +4 -8
- package/dist/es2019/view/InlineCard/IconAndTitleLayout/index.compiled.css +0 -1
- package/dist/es2019/view/InlineCard/IconAndTitleLayout/index.js +18 -110
- package/dist/es2019/view/InlineCard/IconAndTitleLayout/styled.compiled.css +1 -34
- package/dist/es2019/view/InlineCard/IconAndTitleLayout/styled.js +0 -172
- package/dist/es2019/view/InlineCard/ResolvingView/index.js +3 -12
- package/dist/es2019/view/InlineCard/UnauthorisedView/index.js +5 -38
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/es2019/view/common/UnauthorisedViewContent.js +1 -15
- package/dist/es2019/view/common/ai-summary/index.compiled.css +0 -1
- package/dist/es2019/view/common/ai-summary/index.js +1 -3
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/BlockCard/views/ForbiddenView.js +1 -2
- package/dist/esm/view/BlockCard/views/NotFoundView.js +1 -2
- package/dist/esm/view/BlockCard/views/ResolvedView.compiled.css +1 -6
- package/dist/esm/view/BlockCard/views/ResolvedView.js +2 -9
- package/dist/esm/view/BlockCard/views/UnauthorisedView.compiled.css +0 -2
- package/dist/esm/view/BlockCard/views/UnauthorisedView.js +1 -3
- package/dist/esm/view/BlockCard/views/unresolved-view/index.compiled.css +0 -2
- package/dist/esm/view/BlockCard/views/unresolved-view/index.js +3 -6
- package/dist/esm/view/EmbedCard/components/ExpandedFrame.js +36 -110
- package/dist/esm/view/EmbedCard/components/styled.compiled.css +3 -83
- package/dist/esm/view/EmbedCard/components/styled.js +12 -176
- package/dist/esm/view/EmbedModal/components/link-info/index.compiled.css +2 -20
- package/dist/esm/view/EmbedModal/components/link-info/index.js +4 -6
- package/dist/esm/view/FlexibleCard/components/actions/action/action-button/index.js +4 -8
- package/dist/esm/view/FlexibleCard/components/actions/action/action-icon/index.compiled.css +0 -2
- package/dist/esm/view/FlexibleCard/components/actions/action/action-icon/index.js +2 -9
- package/dist/esm/view/FlexibleCard/components/actions/action/action-stack-item/action-button.compiled.css +1 -3
- package/dist/esm/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js +2 -7
- package/dist/esm/view/FlexibleCard/components/blocks/action-block/action-footer/index.compiled.css +1 -4
- package/dist/esm/view/FlexibleCard/components/blocks/action-block/action-footer/index.js +7 -27
- package/dist/esm/view/FlexibleCard/components/blocks/action-block/index.compiled.css +0 -1
- package/dist/esm/view/FlexibleCard/components/blocks/action-block/index.js +1 -3
- package/dist/esm/view/FlexibleCard/components/blocks/action-group/index.compiled.css +0 -1
- package/dist/esm/view/FlexibleCard/components/blocks/action-group/index.js +1 -4
- package/dist/esm/view/FlexibleCard/components/blocks/ai-footer-block/resolved/index.js +3 -5
- package/dist/esm/view/FlexibleCard/components/blocks/block/index.compiled.css +1 -14
- package/dist/esm/view/FlexibleCard/components/blocks/block/index.js +1 -13
- package/dist/esm/view/FlexibleCard/components/blocks/element-group/index.compiled.css +1 -8
- package/dist/esm/view/FlexibleCard/components/blocks/element-group/index.js +1 -19
- package/dist/esm/view/FlexibleCard/components/blocks/footer-block/resolved/index.compiled.css +0 -1
- package/dist/esm/view/FlexibleCard/components/blocks/footer-block/resolved/index.js +4 -6
- package/dist/esm/view/FlexibleCard/components/blocks/metadata-block/index.compiled.css +1 -3
- package/dist/esm/view/FlexibleCard/components/blocks/metadata-block/index.js +3 -9
- package/dist/esm/view/FlexibleCard/components/blocks/preview-block/resolved/index.js +1 -2
- package/dist/esm/view/FlexibleCard/components/container/index.compiled.css +0 -22
- package/dist/esm/view/FlexibleCard/components/container/index.js +10 -77
- package/dist/esm/view/FlexibleCard/components/elements/common/base-atlaskit-badge-element/index.js +3 -7
- package/dist/esm/view/FlexibleCard/components/elements/common/base-avatar-group-element/index.js +3 -5
- package/dist/esm/view/FlexibleCard/components/elements/common/base-badge-element/index.compiled.css +1 -27
- package/dist/esm/view/FlexibleCard/components/elements/common/base-badge-element/index.js +1 -57
- package/dist/esm/view/FlexibleCard/components/elements/common/base-date-time-element/index.compiled.css +1 -2
- package/dist/esm/view/FlexibleCard/components/elements/common/base-date-time-element/index.js +1 -3
- package/dist/esm/view/FlexibleCard/components/elements/common/base-icon-element/index.js +3 -3
- package/dist/esm/view/FlexibleCard/components/elements/common/base-lozenge-element/index.compiled.css +1 -2
- package/dist/esm/view/FlexibleCard/components/elements/common/base-lozenge-element/index.js +3 -5
- package/dist/esm/view/FlexibleCard/components/elements/common/base-text-element/index.compiled.css +0 -1
- package/dist/esm/view/FlexibleCard/components/elements/common/base-text-element/index.js +1 -3
- package/dist/esm/view/FlexibleCard/components/elements/snippet-element/index.js +1 -5
- package/dist/esm/view/HoverCard/components/ImagePreview.js +1 -2
- package/dist/esm/view/HoverCard/components/views/forbidden/index.compiled.css +0 -1
- package/dist/esm/view/HoverCard/components/views/forbidden/index.js +4 -8
- package/dist/esm/view/HoverCard/components/views/resolved/index.compiled.css +1 -11
- package/dist/esm/view/HoverCard/components/views/resolved/index.js +3 -11
- package/dist/esm/view/HoverCard/components/views/unauthorised/index.compiled.css +1 -4
- package/dist/esm/view/HoverCard/components/views/unauthorised/index.js +3 -7
- package/dist/esm/view/InlineCard/ErroredView/index.js +6 -44
- package/dist/esm/view/InlineCard/ForbiddenView/index.js +20 -59
- package/dist/esm/view/InlineCard/Frame/styled.compiled.css +1 -3
- package/dist/esm/view/InlineCard/Frame/styled.js +4 -8
- package/dist/esm/view/InlineCard/IconAndTitleLayout/index.compiled.css +0 -1
- package/dist/esm/view/InlineCard/IconAndTitleLayout/index.js +40 -134
- package/dist/esm/view/InlineCard/IconAndTitleLayout/styled.compiled.css +1 -34
- package/dist/esm/view/InlineCard/IconAndTitleLayout/styled.js +2 -154
- package/dist/esm/view/InlineCard/ResolvingView/index.js +3 -12
- package/dist/esm/view/InlineCard/UnauthorisedView/index.js +5 -38
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/esm/view/common/UnauthorisedViewContent.js +1 -15
- package/dist/esm/view/common/ai-summary/index.compiled.css +0 -1
- package/dist/esm/view/common/ai-summary/index.js +1 -3
- package/dist/types/view/EmbedCard/components/styled.d.ts +0 -7
- package/dist/types/view/FlexibleCard/components/actions/action/action-icon/index.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/blocks/types.d.ts +2 -3
- package/dist/types/view/InlineCard/IconAndTitleLayout/styled.d.ts +0 -8
- package/dist/types-ts4.5/view/EmbedCard/components/styled.d.ts +0 -7
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/action/action-icon/index.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/types.d.ts +2 -3
- package/dist/types-ts4.5/view/InlineCard/IconAndTitleLayout/styled.d.ts +0 -8
- package/package.json +1 -4
- package/dist/cjs/view/InlineCard/ErroredView/index.compiled.css +0 -1
- package/dist/cjs/view/InlineCard/ResolvingView/styled.compiled.css +0 -5
- package/dist/cjs/view/InlineCard/ResolvingView/styled.js +0 -34
- package/dist/cjs/view/InlineCard/UnauthorisedView/index.compiled.css +0 -1
- package/dist/cjs/view/InlineCard/styled.compiled.css +0 -21
- package/dist/cjs/view/InlineCard/styled.js +0 -35
- package/dist/es2019/view/InlineCard/ErroredView/index.compiled.css +0 -1
- package/dist/es2019/view/InlineCard/ResolvingView/styled.compiled.css +0 -5
- package/dist/es2019/view/InlineCard/ResolvingView/styled.js +0 -24
- package/dist/es2019/view/InlineCard/UnauthorisedView/index.compiled.css +0 -1
- package/dist/es2019/view/InlineCard/styled.compiled.css +0 -21
- package/dist/es2019/view/InlineCard/styled.js +0 -24
- package/dist/esm/view/InlineCard/ErroredView/index.compiled.css +0 -1
- package/dist/esm/view/InlineCard/ResolvingView/styled.compiled.css +0 -5
- package/dist/esm/view/InlineCard/ResolvingView/styled.js +0 -26
- package/dist/esm/view/InlineCard/UnauthorisedView/index.compiled.css +0 -1
- package/dist/esm/view/InlineCard/styled.compiled.css +0 -21
- package/dist/esm/view/InlineCard/styled.js +0 -26
- package/dist/types/view/InlineCard/ResolvingView/styled.d.ts +0 -2
- package/dist/types/view/InlineCard/styled.d.ts +0 -2
- package/dist/types-ts4.5/view/InlineCard/ResolvingView/styled.d.ts +0 -2
- package/dist/types-ts4.5/view/InlineCard/styled.d.ts +0 -2
|
@@ -7,7 +7,7 @@ import { fg } from '@atlaskit/platform-feature-flags';
|
|
|
7
7
|
import Tooltip from '@atlaskit/tooltip';
|
|
8
8
|
import { useMouseDownEvent } from '../../../state/analytics/useLinkClicked';
|
|
9
9
|
import { handleClickCommon } from '../../common/utils';
|
|
10
|
-
import { className
|
|
10
|
+
import { className } from './styled';
|
|
11
11
|
export var ExpandedFrame = function ExpandedFrame(_ref) {
|
|
12
12
|
var _ref$isPlaceholder = _ref.isPlaceholder,
|
|
13
13
|
isPlaceholder = _ref$isPlaceholder === void 0 ? false : _ref$isPlaceholder,
|
|
@@ -43,126 +43,52 @@ export var ExpandedFrame = function ExpandedFrame(_ref) {
|
|
|
43
43
|
linkType: "embed"
|
|
44
44
|
}) : null;
|
|
45
45
|
var renderHeader = function renderHeader() {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
}, text)))), CompetitorPromptComponent);
|
|
64
|
-
}
|
|
65
|
-
return (
|
|
66
|
-
/*#__PURE__*/
|
|
67
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
68
|
-
React.createElement(HeaderOldVisualRefresh, {
|
|
69
|
-
className: "embed-header",
|
|
70
|
-
frameStyle: frameStyle
|
|
71
|
-
}, /*#__PURE__*/React.createElement(IconWrapperOldVisualRefresh, {
|
|
72
|
-
isPlaceholder: isPlaceholder
|
|
73
|
-
}, !isPlaceholder && icon), /*#__PURE__*/React.createElement(TooltipWrapperOldVisualRefresh, null, /*#__PURE__*/React.createElement(Tooltip, {
|
|
74
|
-
content: text,
|
|
75
|
-
hideTooltipOnMouseDown: true
|
|
76
|
-
}, /*#__PURE__*/React.createElement(TextWrapperOldVisualRefresh, {
|
|
77
|
-
isPlaceholder: isPlaceholder
|
|
78
|
-
}, !isPlaceholder &&
|
|
79
|
-
/*#__PURE__*/
|
|
80
|
-
// eslint-disable-next-line @atlaskit/design-system/no-html-anchor
|
|
81
|
-
React.createElement("a", {
|
|
82
|
-
href: href,
|
|
83
|
-
onClick: handleClick,
|
|
84
|
-
onMouseDown: handleMouseDown
|
|
85
|
-
}, text)))))
|
|
86
|
-
);
|
|
46
|
+
return frameStyle !== 'hide' && /*#__PURE__*/React.createElement("div", {
|
|
47
|
+
className: ax([styles.header, "embed-header"])
|
|
48
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
49
|
+
className: ax([styles.leftSection])
|
|
50
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
51
|
+
className: ax([styles.headerIcon])
|
|
52
|
+
}, icon), /*#__PURE__*/React.createElement("div", {
|
|
53
|
+
className: ax([styles.tooltipWrapper])
|
|
54
|
+
}, !isPlaceholder && /*#__PURE__*/React.createElement(Tooltip, {
|
|
55
|
+
content: text,
|
|
56
|
+
hideTooltipOnMouseDown: true
|
|
57
|
+
}, /*#__PURE__*/React.createElement("a", {
|
|
58
|
+
href: href,
|
|
59
|
+
onClick: handleClick,
|
|
60
|
+
onMouseDown: handleMouseDown,
|
|
61
|
+
className: ax([styles.headerAnchor])
|
|
62
|
+
}, text)))), CompetitorPromptComponent);
|
|
87
63
|
};
|
|
88
64
|
var interactive = isInteractive();
|
|
89
65
|
var showBackgroundAlways = frameStyle === 'show' || isSelected && frameStyle !== 'hide';
|
|
90
66
|
var showBackgroundOnHover = interactive && frameStyle !== 'hide';
|
|
91
67
|
var renderContent = function renderContent() {
|
|
92
|
-
|
|
93
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
94
|
-
"data-testid": "embed-content-wrapper",
|
|
95
|
-
// This fixes an issue with input fields in cross domain iframes (ie. databases and jira fields from different domains)
|
|
96
|
-
// See: HOT-107830
|
|
97
|
-
contentEditable: false,
|
|
98
|
-
className: ax([styles.contentStyle, setOverflow && allowScrollBar && styles.contentOverflowAuto, interactive && !showBackgroundAlways && !showBackgroundOnHover && styles.contentInteractiveActiveBorder])
|
|
99
|
-
}, children);
|
|
100
|
-
}
|
|
101
|
-
return /*#__PURE__*/React.createElement(ContentOldVisualRefresh, {
|
|
68
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
102
69
|
"data-testid": "embed-content-wrapper",
|
|
103
|
-
allowScrollBar: allowScrollBar,
|
|
104
|
-
removeOverflow: !setOverflow,
|
|
105
|
-
isInteractive: isInteractive(),
|
|
106
|
-
frameStyle: frameStyle
|
|
107
70
|
// This fixes an issue with input fields in cross domain iframes (ie. databases and jira fields from different domains)
|
|
108
71
|
// See: HOT-107830
|
|
109
|
-
,
|
|
110
|
-
|
|
111
|
-
suppressContentEditableWarning: true
|
|
72
|
+
contentEditable: false,
|
|
73
|
+
className: ax([styles.contentStyle, setOverflow && allowScrollBar && styles.contentOverflowAuto, interactive && !showBackgroundAlways && !showBackgroundOnHover && styles.contentInteractiveActiveBorder])
|
|
112
74
|
}, children);
|
|
113
75
|
};
|
|
114
|
-
|
|
115
|
-
return /*#__PURE__*/React.createElement("div", _extends({
|
|
116
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
117
|
-
className: ax([styles.linkWrapper, inheritDimensions && styles.linkWrapperInheritDimensions, isSelected && frameStyle !== 'hide' && styles.linkWrapperSelected, showBackgroundAlways && styles.linkWrapperBorderAndBackground, showBackgroundOnHover && !showBackgroundAlways && styles.linkWrapperInteractiveNotHidden, className]),
|
|
118
|
-
style: {
|
|
119
|
-
minWidth: minWidth ? "".concat(minWidth, "px") : '',
|
|
120
|
-
maxWidth: maxWidth ? "".concat(maxWidth, "px") : ''
|
|
121
|
-
},
|
|
122
|
-
"data-testid": testId,
|
|
123
|
-
"data-trello-do-not-use-override": testId
|
|
124
|
-
// Due to limitations of testing library, we can't assert ::after
|
|
125
|
-
,
|
|
126
|
-
"data-is-selected": isSelected
|
|
127
|
-
}, (isPlaceholder || !href) && {
|
|
128
|
-
'data-wrapper-type': 'default',
|
|
129
|
-
'data-is-interactive': isInteractive()
|
|
130
|
-
}), renderHeader(), renderContent());
|
|
131
|
-
}
|
|
132
|
-
if (!isPlaceholder && href) {
|
|
133
|
-
return /*#__PURE__*/React.createElement(LinkWrapperOldVisualRefresh
|
|
76
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
134
77
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
135
|
-
,
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
} else {
|
|
150
|
-
return /*#__PURE__*/React.createElement(WrapperOldVisualRefresh
|
|
151
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
152
|
-
, {
|
|
153
|
-
className: className,
|
|
154
|
-
isInteractive: isInteractive(),
|
|
155
|
-
isSelected: isSelected,
|
|
156
|
-
minWidth: minWidth,
|
|
157
|
-
frameStyle: frameStyle,
|
|
158
|
-
maxWidth: maxWidth,
|
|
159
|
-
"data-testid": testId,
|
|
160
|
-
"data-trello-do-not-use-override": testId,
|
|
161
|
-
"data-is-selected": isSelected,
|
|
162
|
-
"data-wrapper-type": "default",
|
|
163
|
-
"data-is-interactive": isInteractive()
|
|
164
|
-
}, renderHeader(), renderContent());
|
|
165
|
-
}
|
|
78
|
+
className: ax([styles.linkWrapper, inheritDimensions && styles.linkWrapperInheritDimensions, isSelected && frameStyle !== 'hide' && styles.linkWrapperSelected, showBackgroundAlways && styles.linkWrapperBorderAndBackground, showBackgroundOnHover && !showBackgroundAlways && styles.linkWrapperInteractiveNotHidden, className]),
|
|
79
|
+
style: {
|
|
80
|
+
minWidth: minWidth ? "".concat(minWidth, "px") : '',
|
|
81
|
+
maxWidth: maxWidth ? "".concat(maxWidth, "px") : ''
|
|
82
|
+
},
|
|
83
|
+
"data-testid": testId,
|
|
84
|
+
"data-trello-do-not-use-override": testId
|
|
85
|
+
// Due to limitations of testing library, we can't assert ::after
|
|
86
|
+
,
|
|
87
|
+
"data-is-selected": isSelected
|
|
88
|
+
}, (isPlaceholder || !href) && {
|
|
89
|
+
'data-wrapper-type': 'default',
|
|
90
|
+
'data-is-interactive': isInteractive()
|
|
91
|
+
}), renderHeader(), renderContent());
|
|
166
92
|
};
|
|
167
93
|
var styles = {
|
|
168
94
|
linkWrapper: "_zulpu2gc _kqswh2mm _1e0c1txw _2lx21bp4 _4t3ik5xz _ca0qu2gc _u5f3u2gc _n3tdu2gc _19bvu2gc _uiztglyw _qc5o94zs _14mj1crf _aetrb3bt _18postnw _15l2idpf _32rxidpf _1x88idpf _19doidpf _1hfk1j28 _1bqqidpf _u94kidpf _1ifiidpf",
|
|
@@ -1,95 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
.
|
|
3
|
-
._18s81xf9{margin:0 var(--ds-space-100,8px) var(--ds-space-100,8px)}
|
|
4
|
-
._19ith6cr{border:1px solid var(--ds-border,#dfe1e6)}
|
|
5
|
-
._1u3rh6cr:hover:after{border:1px solid var(--ds-border,#dfe1e6)}
|
|
6
|
-
._1yt4h8dc{padding:0 var(--ds-space-100,8px)}
|
|
7
|
-
._2rko1sit{border-radius:var(--ds-border-radius,3px)}
|
|
8
|
-
._2rkoiti9{border-radius:var(--ds-border-radius-100,4px)}
|
|
9
|
-
._2rkopd34{border-radius:var(--ds-border-radius-200,8px)}
|
|
10
|
-
._eq431kw7:after{border:inherit}
|
|
11
|
-
._eq43h6cr:after{border:1px solid var(--ds-border,#dfe1e6)}
|
|
12
|
-
._qc5o94zs:after{transition:background .3s,box-shadow .3s}
|
|
13
|
-
._v56414ba{transition:box-shadow .3s}
|
|
14
|
-
._v5641y8x{transition:background .3s}
|
|
15
|
-
._v564ojwh{transition:opacity .3s cubic-bezier(.15,1,.3,1)}
|
|
16
|
-
._154ixy5q{top:var(--ds-space-400,2pc)}
|
|
17
|
-
._18m915vq{overflow-y:hidden}
|
|
18
|
-
._18m91wug{overflow-y:auto}
|
|
19
|
-
._18postnw:after{position:absolute}
|
|
20
|
-
._18u01wug{margin-left:auto}
|
|
1
|
+
|
|
2
|
+
._2rko1sit{border-radius:var(--ds-border-radius,3px)}._18m915vq{overflow-y:hidden}
|
|
21
3
|
._18u0utpp{margin-left:var(--ds-space-150,9pt)}
|
|
22
|
-
._19do1kw7:after{left:inherit}
|
|
23
|
-
._19doidpf:after{left:0}
|
|
24
|
-
._19dox0bf:after{left:var(--ds-space-negative-100,-8px)}
|
|
25
|
-
._19pk19bv{margin-top:10px}
|
|
26
4
|
._19pk1b66{margin-top:var(--ds-space-050,4px)}
|
|
27
|
-
._19pkidpf{margin-top:0}
|
|
28
5
|
._1aaxusic{float:right}
|
|
29
|
-
._1bsb176v{width:125px}
|
|
30
6
|
._1bsb17ym{width:var(--_rcxkve)}
|
|
31
|
-
._1bsb1osq{width:100%}
|
|
32
|
-
._1bsb7vkz{width:1pc}
|
|
33
7
|
._1bsbckbl{width:3pc}
|
|
34
|
-
._1bsbwgg2{width:calc(100% - var(--ds-space-200, 1pc) - 2px)}
|
|
35
|
-
._1bto1l2s{text-overflow:ellipsis}
|
|
36
|
-
._1e0c116y{display:inline-flex}
|
|
37
|
-
._1e0c1txw{display:flex}
|
|
38
|
-
._1g4jidpf >.embed-preview>div{margin-bottom:0}
|
|
39
|
-
._1hfk1kw7:after{background-color:inherit}
|
|
40
|
-
._1hfkhp5a:after{background-color:var(--ds-surface-raised,#fff)}
|
|
41
|
-
._1ifiidpf .embed-header{opacity:0}
|
|
42
|
-
._1ifikb7n .embed-header{opacity:1}
|
|
43
8
|
._1itk2pcs{background-image:var(--_13orr8u)}
|
|
44
9
|
._1lrw1dfr{background-size:cover}
|
|
45
|
-
._1pbykb7n{z-index:1}
|
|
46
|
-
._1qdg1rgy:after{height:calc(100% + var(--ds-space-100, 8px))}
|
|
47
10
|
._1reo15vq{overflow-x:hidden}
|
|
48
|
-
._1reo1wug{overflow-x:auto}
|
|
49
|
-
._1ul91pd6{min-width:var(--_10q0298)}
|
|
50
|
-
._2hwx1b66{margin-right:var(--ds-space-050,4px)}
|
|
51
|
-
._2hwx1wug{margin-right:auto}
|
|
52
11
|
._2hwxidpf{margin-right:0}
|
|
53
|
-
._2lx21bp4{flex-direction:column}
|
|
54
|
-
._4cvr1h6o{align-items:center}
|
|
55
12
|
._4t3i17ym{height:var(--_rcxkve)}
|
|
56
|
-
._4t3i1crf{height:9pt}
|
|
57
|
-
._4t3i1j2a{height:calc(100% - var(--ds-space-400, 2pc))}
|
|
58
|
-
._4t3i1osq{height:100%}
|
|
59
|
-
._4t3i7vkz{height:1pc}
|
|
60
13
|
._4t3ickbl{height:3pc}
|
|
61
|
-
._4t3ik5xz{height:27pc}
|
|
62
|
-
._4t3izwfg{height:2pc}
|
|
63
|
-
._4tpuhp5a:hover:after{background-color:var(--ds-surface-raised,#fff)}
|
|
64
|
-
._631ousvi:after{box-sizing:border-box}
|
|
65
|
-
._6syz1kw7:after{cursor:inherit}
|
|
66
|
-
._6syztlke:after{cursor:pointer}
|
|
67
|
-
._8x3u1kw7:after{box-shadow:inherit}
|
|
68
|
-
._8x3umqxb:after{box-shadow:0 0 0 3px var(--ds-border-selected,#4c9aff)}
|
|
69
|
-
._aetrb3bt:after{content:""}
|
|
70
|
-
._bfhkhp5a{background-color:var(--ds-surface-raised,#fff)}
|
|
71
14
|
._bfhkqrzy{background-color:var(--ds-skeleton,#ebecf0)}
|
|
72
|
-
.
|
|
73
|
-
._hlq8idpf >.embed-preview>div{margin-top:0}
|
|
74
|
-
._jk3p1wug >.embed-preview>div{margin-left:auto}
|
|
75
|
-
._kqswh2mm{position:relative}
|
|
76
|
-
._kqswstnw{position:absolute}
|
|
77
|
-
._o5721q9c{white-space:nowrap}
|
|
78
|
-
._otyridpf{margin-bottom:0}
|
|
79
|
-
._otyrutpp{margin-bottom:var(--ds-space-150,9pt)}
|
|
80
|
-
._p12f1ayu{max-width:var(--_1et2rhb)}
|
|
81
|
-
._rd9b1wug >.embed-preview>div{margin-right:auto}
|
|
82
|
-
._syaz1rc1{color:var(--ds-text-subtlest,#5e6c84)}
|
|
83
|
-
._syazqjbk{color:var(--ds-icon,#5e6c84)}
|
|
84
|
-
._tzy4idpf{opacity:0}
|
|
85
|
-
._uiztglyw{-webkit-user-select:none;-ms-user-select:none;user-select:none}
|
|
86
|
-
._vchhusvi{box-sizing:border-box}
|
|
87
|
-
._vwz44jg8{line-height:normal}
|
|
88
|
-
._x148idpf:hover .embed-header{opacity:0}
|
|
89
|
-
._x148kb7n:hover .embed-header{opacity:1}
|
|
90
|
-
._z0ai1osq:after{width:100%}
|
|
91
|
-
._z0aie9lw:after{width:calc(100% + var(--ds-space-200, 1pc))}
|
|
92
|
-
._1bnxglyw:hover{text-decoration-line:none}
|
|
93
|
-
._9oik1r31:hover{text-decoration-color:currentColor}
|
|
94
|
-
._jf4cnqa1:hover{text-decoration-style:solid}
|
|
95
|
-
._1di629zg:active{background-color:var(--ds-background-selected,#deebff)}
|
|
15
|
+
._otyrutpp{margin-bottom:var(--ds-space-150,9pt)}
|
|
@@ -3,20 +3,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
3
3
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
4
4
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
5
5
|
var _excluded = ["as", "style"],
|
|
6
|
-
_excluded2 = ["
|
|
7
|
-
_excluded3 = ["as", "style"],
|
|
8
|
-
_excluded4 = ["isSelected", "frameStyle", "minWidth", "maxWidth", "isInteractive", "inheritDimensions"],
|
|
9
|
-
_excluded5 = ["as", "style"],
|
|
10
|
-
_excluded6 = ["frameStyle"],
|
|
11
|
-
_excluded7 = ["as", "style"],
|
|
12
|
-
_excluded8 = ["isPlaceholder"],
|
|
13
|
-
_excluded9 = ["as", "style"],
|
|
14
|
-
_excluded0 = ["isPlaceholder"],
|
|
15
|
-
_excluded1 = ["as", "style"],
|
|
16
|
-
_excluded10 = ["as", "style"],
|
|
17
|
-
_excluded11 = ["removeOverflow", "allowScrollBar", "frameStyle"],
|
|
18
|
-
_excluded12 = ["as", "style"],
|
|
19
|
-
_excluded13 = ["as", "style"];
|
|
6
|
+
_excluded2 = ["as", "style"];
|
|
20
7
|
import "./styled.compiled.css";
|
|
21
8
|
import { forwardRef } from 'react';
|
|
22
9
|
import * as React from 'react';
|
|
@@ -25,160 +12,9 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
25
12
|
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; }
|
|
26
13
|
/* eslint-disable @atlaskit/ui-styling-standard/no-dynamic-styles */
|
|
27
14
|
|
|
28
|
-
import {
|
|
15
|
+
import { N30 } from '@atlaskit/theme/colors';
|
|
29
16
|
export var className = 'media-card-frame';
|
|
30
17
|
export var embedHeaderHeight = 32;
|
|
31
|
-
// TODO Delete when cleaning platform-linking-visual-refresh-v1
|
|
32
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled,@atlaskit/ui-styling-standard/no-exported-styles
|
|
33
|
-
export var LinkWrapperOldVisualRefresh = forwardRef(function (_ref, __cmplr) {
|
|
34
|
-
var _ref$as = _ref.as,
|
|
35
|
-
C = _ref$as === void 0 ? "div" : _ref$as,
|
|
36
|
-
__cmpls = _ref.style,
|
|
37
|
-
__cmplp = _objectWithoutProperties(_ref, _excluded);
|
|
38
|
-
var isSelected = __cmplp.isSelected,
|
|
39
|
-
frameStyle = __cmplp.frameStyle,
|
|
40
|
-
minWidth = __cmplp.minWidth,
|
|
41
|
-
maxWidth = __cmplp.maxWidth,
|
|
42
|
-
isInteractive = __cmplp.isInteractive,
|
|
43
|
-
inheritDimensions = __cmplp.inheritDimensions,
|
|
44
|
-
__cmpldp = _objectWithoutProperties(__cmplp, _excluded2);
|
|
45
|
-
return /*#__PURE__*/React.createElement(C, _extends({}, __cmpldp, {
|
|
46
|
-
style: _objectSpread(_objectSpread({}, __cmpls), {}, {
|
|
47
|
-
"--_10q0298": ix(__cmplp.minWidth, "px"),
|
|
48
|
-
"--_1et2rhb": ix(__cmplp.maxWidth, "px")
|
|
49
|
-
}),
|
|
50
|
-
ref: __cmplr,
|
|
51
|
-
className: ax(["_19pkidpf _2hwx1wug _otyridpf _18u01wug _v5641y8x _1e0c116y _2lx21bp4 _vchhusvi _ect41gqc _1bsb1osq _uiztglyw _vwz44jg8 _kqswh2mm _qc5o94zs _14mjpd34 _aetrb3bt _18postnw _1qdg1rgy _9oik1r31 _1bnxglyw _jf4cnqa1", __cmplp.isSelected && __cmplp.frameStyle === 'hide' ? "_2rkoiti9" : "_2rkopd34", __cmplp.minWidth && "_1ul91pd6", __cmplp.maxWidth && "_p12f1ayu", __cmplp.isInteractive && __cmplp.frameStyle !== 'hide' && "_1u3rh6cr", __cmplp.isInteractive && __cmplp.frameStyle !== 'hide' && "_4tpuhp5a", __cmplp.isInteractive && __cmplp.frameStyle !== 'hide' ? "_x148kb7n" : "_x148idpf", __cmplp.isInteractive && "_1di629zg", __cmplp.frameStyle === 'show' || __cmplp.isSelected && __cmplp.frameStyle !== 'hide' ? "_1ifikb7n" : "_1ifiidpf", __cmplp.inheritDimensions ? "_4t3i1osq" : "_4t3ik5xz", __cmplp.frameStyle === 'show' && "_631ousvi", __cmplp.frameStyle === 'show' ? "_z0ai1osq" : "_z0aie9lw", __cmplp.frameStyle !== 'show' ? "_19dox0bf" : __cmplp.isSelected ? "_19doidpf" : "_19do1kw7", __cmplp.frameStyle === 'show' || __cmplp.isSelected && __cmplp.frameStyle !== 'hide' ? "_eq43h6cr" : "_eq431kw7", __cmplp.frameStyle === 'show' || __cmplp.isSelected && __cmplp.frameStyle !== 'hide' ? "_1hfkhp5a" : "_1hfk1kw7", __cmplp.isSelected && __cmplp.frameStyle !== 'hide' ? "_6syztlke" : "_6syz1kw7", __cmplp.isSelected && __cmplp.frameStyle !== 'hide' ? "_8x3umqxb" : "_8x3u1kw7", __cmplp.className])
|
|
52
|
-
}));
|
|
53
|
-
});
|
|
54
|
-
|
|
55
|
-
// TODO Delete when cleaning platform-linking-visual-refresh-v1
|
|
56
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled,@atlaskit/ui-styling-standard/no-exported-styles
|
|
57
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
58
|
-
LinkWrapperOldVisualRefresh.displayName = 'LinkWrapperOldVisualRefresh';
|
|
59
|
-
}
|
|
60
|
-
export var WrapperOldVisualRefresh = forwardRef(function (_ref2, __cmplr) {
|
|
61
|
-
var _ref2$as = _ref2.as,
|
|
62
|
-
C = _ref2$as === void 0 ? "div" : _ref2$as,
|
|
63
|
-
__cmpls = _ref2.style,
|
|
64
|
-
__cmplp = _objectWithoutProperties(_ref2, _excluded3);
|
|
65
|
-
var isSelected = __cmplp.isSelected,
|
|
66
|
-
frameStyle = __cmplp.frameStyle,
|
|
67
|
-
minWidth = __cmplp.minWidth,
|
|
68
|
-
maxWidth = __cmplp.maxWidth,
|
|
69
|
-
isInteractive = __cmplp.isInteractive,
|
|
70
|
-
inheritDimensions = __cmplp.inheritDimensions,
|
|
71
|
-
__cmpldp = _objectWithoutProperties(__cmplp, _excluded4);
|
|
72
|
-
return /*#__PURE__*/React.createElement(C, _extends({}, __cmpldp, {
|
|
73
|
-
style: _objectSpread(_objectSpread({}, __cmpls), {}, {
|
|
74
|
-
"--_10q0298": ix(__cmplp.minWidth, "px"),
|
|
75
|
-
"--_1et2rhb": ix(__cmplp.maxWidth, "px")
|
|
76
|
-
}),
|
|
77
|
-
ref: __cmplr,
|
|
78
|
-
className: ax(["_19pkidpf _2hwx1wug _otyridpf _18u01wug _v5641y8x _1e0c116y _2lx21bp4 _vchhusvi _ect41gqc _1bsb1osq _uiztglyw _vwz44jg8 _kqswh2mm _19pk19bv _qc5o94zs _14mjpd34 _aetrb3bt _18postnw _1qdg1rgy", __cmplp.isSelected && __cmplp.frameStyle === 'hide' ? "_2rkoiti9" : "_2rkopd34", __cmplp.minWidth && "_1ul91pd6", __cmplp.maxWidth && "_p12f1ayu", __cmplp.isInteractive && __cmplp.frameStyle !== 'hide' && "_1u3rh6cr", __cmplp.isInteractive && __cmplp.frameStyle !== 'hide' && "_4tpuhp5a", __cmplp.isInteractive && __cmplp.frameStyle !== 'hide' ? "_x148kb7n" : "_x148idpf", __cmplp.isInteractive && "_1di629zg", __cmplp.frameStyle === 'show' || __cmplp.isSelected && __cmplp.frameStyle !== 'hide' ? "_1ifikb7n" : "_1ifiidpf", __cmplp.inheritDimensions ? "_4t3i1osq" : "_4t3ik5xz", __cmplp.frameStyle === 'show' && "_631ousvi", __cmplp.frameStyle === 'show' ? "_z0ai1osq" : "_z0aie9lw", __cmplp.frameStyle !== 'show' ? "_19dox0bf" : __cmplp.isSelected ? "_19doidpf" : "_19do1kw7", __cmplp.frameStyle === 'show' || __cmplp.isSelected && __cmplp.frameStyle !== 'hide' ? "_eq43h6cr" : "_eq431kw7", __cmplp.frameStyle === 'show' ? "_1hfkhp5a" : "_1hfk1kw7", __cmplp.isSelected && __cmplp.frameStyle !== 'hide' ? "_6syztlke" : "_6syz1kw7", __cmplp.isSelected && __cmplp.frameStyle !== 'hide' ? "_8x3umqxb" : "_8x3u1kw7", __cmplp.className])
|
|
79
|
-
}));
|
|
80
|
-
});
|
|
81
|
-
|
|
82
|
-
// TODO Delete when cleaning platform-linking-visual-refresh-v1
|
|
83
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled,@atlaskit/ui-styling-standard/no-exported-styles
|
|
84
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
85
|
-
WrapperOldVisualRefresh.displayName = 'WrapperOldVisualRefresh';
|
|
86
|
-
}
|
|
87
|
-
export var HeaderOldVisualRefresh = forwardRef(function (_ref3, __cmplr) {
|
|
88
|
-
var _ref3$as = _ref3.as,
|
|
89
|
-
C = _ref3$as === void 0 ? "div" : _ref3$as,
|
|
90
|
-
__cmpls = _ref3.style,
|
|
91
|
-
__cmplp = _objectWithoutProperties(_ref3, _excluded5);
|
|
92
|
-
var frameStyle = __cmplp.frameStyle,
|
|
93
|
-
__cmpldp = _objectWithoutProperties(__cmplp, _excluded6);
|
|
94
|
-
return /*#__PURE__*/React.createElement(C, _extends({}, __cmpldp, {
|
|
95
|
-
style: __cmpls,
|
|
96
|
-
ref: __cmplr,
|
|
97
|
-
className: ax(["_v564ojwh _4t3izwfg _kqswstnw _1pbykb7n _1bsb1osq _1e0c1txw _4cvr1h6o _syazqjbk _tzy4idpf", __cmplp.frameStyle === 'show' && "_vchhusvi", __cmplp.frameStyle === 'show' && "_1yt4h8dc", __cmplp.className])
|
|
98
|
-
}));
|
|
99
|
-
});
|
|
100
|
-
|
|
101
|
-
// TODO Delete when cleaning platform-linking-visual-refresh-v1
|
|
102
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled,@atlaskit/ui-styling-standard/no-exported-styles
|
|
103
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
104
|
-
HeaderOldVisualRefresh.displayName = 'HeaderOldVisualRefresh';
|
|
105
|
-
}
|
|
106
|
-
export var IconWrapperOldVisualRefresh = forwardRef(function (_ref4, __cmplr) {
|
|
107
|
-
var _ref4$as = _ref4.as,
|
|
108
|
-
C = _ref4$as === void 0 ? "div" : _ref4$as,
|
|
109
|
-
__cmpls = _ref4.style,
|
|
110
|
-
__cmplp = _objectWithoutProperties(_ref4, _excluded7);
|
|
111
|
-
var isPlaceholder = __cmplp.isPlaceholder,
|
|
112
|
-
__cmpldp = _objectWithoutProperties(__cmplp, _excluded8);
|
|
113
|
-
return /*#__PURE__*/React.createElement(C, _extends({}, __cmpldp, {
|
|
114
|
-
style: __cmpls,
|
|
115
|
-
ref: __cmplr,
|
|
116
|
-
className: ax(["_2rko1sit _1bsb7vkz _4t3i7vkz _2hwx1b66", __cmplp.isPlaceholder && "_bfhkqrzy", __cmplp.className])
|
|
117
|
-
}));
|
|
118
|
-
});
|
|
119
|
-
|
|
120
|
-
// TODO Delete when cleaning platform-linking-visual-refresh-v1
|
|
121
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled,@atlaskit/ui-styling-standard/no-exported-styles
|
|
122
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
123
|
-
IconWrapperOldVisualRefresh.displayName = 'IconWrapperOldVisualRefresh';
|
|
124
|
-
}
|
|
125
|
-
export var TextWrapperOldVisualRefresh = forwardRef(function (_ref5, __cmplr) {
|
|
126
|
-
var _ref5$as = _ref5.as,
|
|
127
|
-
C = _ref5$as === void 0 ? "div" : _ref5$as,
|
|
128
|
-
__cmpls = _ref5.style,
|
|
129
|
-
__cmplp = _objectWithoutProperties(_ref5, _excluded9);
|
|
130
|
-
var isPlaceholder = __cmplp.isPlaceholder,
|
|
131
|
-
__cmpldp = _objectWithoutProperties(__cmplp, _excluded0);
|
|
132
|
-
return /*#__PURE__*/React.createElement(C, _extends({}, __cmpldp, {
|
|
133
|
-
style: __cmpls,
|
|
134
|
-
ref: __cmplr,
|
|
135
|
-
className: ax(["_11c8dcr7 _1reo15vq _18m915vq _syaz1rc1 _1bto1l2s _o5721q9c", __cmplp.isPlaceholder && "_2rko1sit", __cmplp.isPlaceholder && "_1bsb176v", __cmplp.isPlaceholder && "_4t3i1crf", __cmplp.isPlaceholder && "_bfhkqrzy", __cmplp.className])
|
|
136
|
-
}));
|
|
137
|
-
});
|
|
138
|
-
|
|
139
|
-
// TODO Delete when cleaning platform-linking-visual-refresh-v1
|
|
140
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled,@atlaskit/ui-styling-standard/no-exported-styles
|
|
141
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
142
|
-
TextWrapperOldVisualRefresh.displayName = 'TextWrapperOldVisualRefresh';
|
|
143
|
-
}
|
|
144
|
-
export var TooltipWrapperOldVisualRefresh = forwardRef(function (_ref6, __cmplr) {
|
|
145
|
-
var _ref6$as = _ref6.as,
|
|
146
|
-
C = _ref6$as === void 0 ? "div" : _ref6$as,
|
|
147
|
-
__cmpls = _ref6.style,
|
|
148
|
-
__cmplp = _objectWithoutProperties(_ref6, _excluded1);
|
|
149
|
-
return /*#__PURE__*/React.createElement(C, _extends({}, __cmplp, {
|
|
150
|
-
style: __cmpls,
|
|
151
|
-
ref: __cmplr,
|
|
152
|
-
className: ax(["_1reo15vq _18m915vq", __cmplp.className])
|
|
153
|
-
}));
|
|
154
|
-
});
|
|
155
|
-
|
|
156
|
-
// TODO Delete when cleaning platform-linking-visual-refresh-v1
|
|
157
|
-
// NB: `overflow` is kept as `hidden` since
|
|
158
|
-
// the internal contents of the `iframe` should
|
|
159
|
-
// manage scrolling behaviour.
|
|
160
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled,@atlaskit/ui-styling-standard/no-exported-styles
|
|
161
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
162
|
-
TooltipWrapperOldVisualRefresh.displayName = 'TooltipWrapperOldVisualRefresh';
|
|
163
|
-
}
|
|
164
|
-
export var ContentOldVisualRefresh = forwardRef(function (_ref7, __cmplr) {
|
|
165
|
-
var _ref7$as = _ref7.as,
|
|
166
|
-
C = _ref7$as === void 0 ? "div" : _ref7$as,
|
|
167
|
-
__cmpls = _ref7.style,
|
|
168
|
-
__cmplp = _objectWithoutProperties(_ref7, _excluded10);
|
|
169
|
-
var removeOverflow = __cmplp.removeOverflow,
|
|
170
|
-
allowScrollBar = __cmplp.allowScrollBar,
|
|
171
|
-
frameStyle = __cmplp.frameStyle,
|
|
172
|
-
__cmpldp = _objectWithoutProperties(__cmplp, _excluded11);
|
|
173
|
-
return /*#__PURE__*/React.createElement(C, _extends({}, __cmpldp, {
|
|
174
|
-
style: __cmpls,
|
|
175
|
-
ref: __cmplr,
|
|
176
|
-
className: ax(["_2rkoiti9 _19ith6cr _v56414ba _bfhkhp5a _kqswstnw _1pbykb7n _hlq8idpf _rd9b1wug _1g4jidpf _jk3p1wug", !__cmplp.removeOverflow && (__cmplp.allowScrollBar ? "_1reo1wug _18m91wug" : "_1reo15vq _18m915vq"), __cmplp.frameStyle === 'show' ? "_1bsbwgg2" : "_1bsb1osq", __cmplp.frameStyle === 'show' && "_18s81xf9", __cmplp.frameStyle === 'hide' ? "_4t3i1osq" : "_4t3i1j2a", __cmplp.frameStyle !== 'hide' && "_154ixy5q", __cmplp.className])
|
|
177
|
-
}));
|
|
178
|
-
});
|
|
179
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
180
|
-
ContentOldVisualRefresh.displayName = 'ContentOldVisualRefresh';
|
|
181
|
-
}
|
|
182
18
|
var getSizeWithUnit = function getSizeWithUnit() {
|
|
183
19
|
var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '100%';
|
|
184
20
|
var unit = typeof value === 'number' ? 'px' : '';
|
|
@@ -186,11 +22,11 @@ var getSizeWithUnit = function getSizeWithUnit() {
|
|
|
186
22
|
};
|
|
187
23
|
|
|
188
24
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled,@atlaskit/ui-styling-standard/no-exported-styles
|
|
189
|
-
export var Image = forwardRef(function (
|
|
190
|
-
var
|
|
191
|
-
C =
|
|
192
|
-
__cmpls =
|
|
193
|
-
__cmplp = _objectWithoutProperties(
|
|
25
|
+
export var Image = forwardRef(function (_ref, __cmplr) {
|
|
26
|
+
var _ref$as = _ref.as,
|
|
27
|
+
C = _ref$as === void 0 ? "img" : _ref$as,
|
|
28
|
+
__cmpls = _ref.style,
|
|
29
|
+
__cmplp = _objectWithoutProperties(_ref, _excluded);
|
|
194
30
|
return /*#__PURE__*/React.createElement(C, _extends({}, __cmplp, {
|
|
195
31
|
style: _objectSpread(_objectSpread({}, __cmpls), {}, {
|
|
196
32
|
"--_rcxkve": ix(getSizeWithUnit(__cmplp.size))
|
|
@@ -204,11 +40,11 @@ export var Image = forwardRef(function (_ref8, __cmplr) {
|
|
|
204
40
|
if (process.env.NODE_ENV !== 'production') {
|
|
205
41
|
Image.displayName = 'Image';
|
|
206
42
|
}
|
|
207
|
-
export var Thumbnail = forwardRef(function (
|
|
208
|
-
var
|
|
209
|
-
C =
|
|
210
|
-
__cmpls =
|
|
211
|
-
__cmplp = _objectWithoutProperties(
|
|
43
|
+
export var Thumbnail = forwardRef(function (_ref2, __cmplr) {
|
|
44
|
+
var _ref2$as = _ref2.as,
|
|
45
|
+
C = _ref2$as === void 0 ? "div" : _ref2$as,
|
|
46
|
+
__cmpls = _ref2.style,
|
|
47
|
+
__cmplp = _objectWithoutProperties(_ref2, _excluded2);
|
|
212
48
|
return /*#__PURE__*/React.createElement(C, _extends({}, __cmplp, {
|
|
213
49
|
style: _objectSpread(_objectSpread({}, __cmpls), {}, {
|
|
214
50
|
"--_13orr8u": ix("url(".concat(__cmplp.src, ")"))
|
|
@@ -1,41 +1,23 @@
|
|
|
1
1
|
|
|
2
|
-
._1umonbxd h3{font:var(--ds-font-heading-small,normal 600 1pc/20px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
3
2
|
._zulp1b66{gap:var(--ds-space-050,4px)}
|
|
4
|
-
._zulpu2gc{gap:var(--ds-space-100,8px)}.
|
|
5
|
-
._12bo15vq h3{overflow-y:hidden}
|
|
6
|
-
._16jlidpf{flex-grow:0}
|
|
3
|
+
._zulpu2gc{gap:var(--ds-space-100,8px)}._16jlidpf{flex-grow:0}
|
|
7
4
|
._16jlkb7n{flex-grow:1}
|
|
8
5
|
._19bv1ejb{padding-left:var(--ds-space-300,24px)}
|
|
9
6
|
._1bah1h6o{justify-content:center}
|
|
10
|
-
._1bah1yb4{justify-content:space-between}
|
|
11
7
|
._1bsb1tcg, ._1xyl1tcg [data-smart-element-icon] img, ._1h1b1tcg [data-smart-element-icon] span, ._prfw1tcg [data-smart-element-icon] svg, ._mezj1tcg img, ._e2oo1tcg span, ._w8l51tcg svg{width:24px}
|
|
12
8
|
._1e0c1txw{display:flex}
|
|
13
|
-
._1flvcj1k h3{display:-webkit-box}
|
|
14
9
|
._1o9zidpf{flex-shrink:0}
|
|
15
|
-
._1o9zkb7n{flex-shrink:1}
|
|
16
|
-
._1r7d1hna h3{word-break:break-word}
|
|
17
10
|
._1tke1tcg, ._x9xj1tcg [data-smart-element-icon] img, ._v5981tcg [data-smart-element-icon] span, ._z15s1tcg [data-smart-element-icon] svg, ._qci81tcg img, ._15iz1tcg span, ._erub1tcg svg{min-height:24px}
|
|
18
11
|
._1ul91tcg, ._1ekg1tcg [data-smart-element-icon] img, ._jbhf1tcg [data-smart-element-icon] span, ._11hh1tcg [data-smart-element-icon] svg, ._1rg21tcg img, ._q7cv1tcg span, ._xwbj1tcg svg{min-width:24px}
|
|
19
|
-
._1wkfkb7n h3{flex-shrink:1}
|
|
20
12
|
._1wpz1fhb{align-self:stretch}
|
|
21
13
|
._2lx21bp4{flex-direction:column}
|
|
22
|
-
._4cvr1h6o{align-items:center}
|
|
23
14
|
._4t3i1tcg, ._gire1tcg [data-smart-element-icon] img, ._yrry1tcg [data-smart-element-icon] span, ._1bnm1tcg [data-smart-element-icon] svg, ._bna71tcg img, ._1xjx1tcg span, ._17521tcg svg{height:24px}
|
|
24
15
|
._4t3i1tcg{height:24px}
|
|
25
|
-
._4wztidpf h3{margin-bottom:0}
|
|
26
|
-
._923e1wug h3{flex-basis:auto}
|
|
27
16
|
._c71l1tcg, ._1q121tcg [data-smart-element-icon] img, ._2s1x1tcg [data-smart-element-icon] span, ._1rh41tcg [data-smart-element-icon] svg, ._19l31tcg img, ._1pr21tcg span, ._1u5t1tcg svg{max-height:24px}
|
|
28
|
-
._c7bk1l2s h3{text-overflow:ellipsis}
|
|
29
17
|
._ca0q1ejb{padding-top:var(--ds-space-300,24px)}
|
|
30
18
|
._i0dl1wug{flex-basis:auto}
|
|
31
19
|
._i0dlf1ug{flex-basis:0%}
|
|
32
|
-
._n3tddlk8{padding-bottom:14px}
|
|
33
20
|
._n3tdpxbi{padding-bottom:var(--ds-space-200,1pc)}
|
|
34
21
|
._p12f1tcg, ._1mj01tcg [data-smart-element-icon] img, ._1r9c1tcg [data-smart-element-icon] span, ._1xch1tcg [data-smart-element-icon] svg, ._rtys1tcg img, ._b8nk1tcg span, ._4x201tcg svg{max-width:24px}
|
|
35
|
-
._r8nti7a9 h3{font-weight:var(--ds-font-weight-regular,400)}
|
|
36
|
-
._shpw1e54 h3{-webkit-box-orient:vertical}
|
|
37
22
|
._u5f31ejb{padding-right:var(--ds-space-300,24px)}
|
|
38
|
-
.
|
|
39
|
-
._yrj2kb7n h3{flex-grow:1}
|
|
40
|
-
@media only screen and (max-width:980px){._3kllglyw .smart-link-resize-button{display:none}}
|
|
41
|
-
@supports not (-webkit-line-clamp:1){._130wgktf h3{max-height:20px}}
|
|
23
|
+
@media only screen and (max-width:980px){._3kllglyw .smart-link-resize-button{display:none}}
|
|
@@ -18,7 +18,6 @@ import { Icon } from '../../../common/Icon';
|
|
|
18
18
|
import { MAX_MODAL_SIZE } from '../../constants';
|
|
19
19
|
import LinkInfoButton from './link-info-button';
|
|
20
20
|
import LinkInfoButtonOld from './link-info-button/old';
|
|
21
|
-
var containerStylesOld = null;
|
|
22
21
|
var containerStyles = null;
|
|
23
22
|
var iconSize = '24px';
|
|
24
23
|
|
|
@@ -26,7 +25,6 @@ var iconSize = '24px';
|
|
|
26
25
|
// An embed modal icon css for img, span, svg has specificity weight of 0-1-1.
|
|
27
26
|
// Specify flex ui icon selector to increase specificity weight to 0-2-1.
|
|
28
27
|
var iconCss = null;
|
|
29
|
-
var titleCssOld = null;
|
|
30
28
|
var titleCss = null;
|
|
31
29
|
var actionCss = null;
|
|
32
30
|
var LinkInfo = function LinkInfo(_ref) {
|
|
@@ -130,15 +128,15 @@ var LinkInfo = function LinkInfo(_ref) {
|
|
|
130
128
|
);
|
|
131
129
|
}, [onResizeButtonClick, size, testId]);
|
|
132
130
|
return /*#__PURE__*/React.createElement("div", {
|
|
133
|
-
className: ax([
|
|
131
|
+
className: ax(["_zulpu2gc _1e0c1txw _19bv1ejb _u5f31ejb _ca0q1ejb _n3tdpxbi _1wpz1fhb _4t3i1tcg"])
|
|
134
132
|
}, icon && /*#__PURE__*/React.createElement("div", {
|
|
135
133
|
"data-testid": "".concat(testId, "-icon"),
|
|
136
134
|
className: ax(["_4t3i1tcg _gire1tcg _yrry1tcg _1bnm1tcg _bna71tcg _1xjx1tcg _17521tcg _1tke1tcg _x9xj1tcg _v5981tcg _z15s1tcg _qci81tcg _15iz1tcg _erub1tcg _c71l1tcg _1q121tcg _2s1x1tcg _1rh41tcg _19l31tcg _1pr21tcg _1u5t1tcg _1bsb1tcg _1xyl1tcg _1h1b1tcg _prfw1tcg _mezj1tcg _e2oo1tcg _w8l51tcg _1ul91tcg _1ekg1tcg _jbhf1tcg _11hh1tcg _1rg21tcg _q7cv1tcg _xwbj1tcg _p12f1tcg _1mj01tcg _1r9c1tcg _1xch1tcg _rtys1tcg _b8nk1tcg _4x201tcg"])
|
|
137
135
|
}, /*#__PURE__*/React.createElement(Icon, icon)), /*#__PURE__*/React.createElement("div", {
|
|
138
|
-
className: ax([
|
|
136
|
+
className: ax(["_16jlkb7n _1o9zidpf _i0dlf1ug _1e0c1txw _2lx21bp4 _1bah1h6o _1wpz1fhb"])
|
|
139
137
|
}, /*#__PURE__*/React.createElement(Heading, {
|
|
140
|
-
size:
|
|
141
|
-
color:
|
|
138
|
+
size: "small",
|
|
139
|
+
color: "color.text",
|
|
142
140
|
testId: "".concat(testId, "-title")
|
|
143
141
|
}, title), /*#__PURE__*/React.createElement("span", {
|
|
144
142
|
tabIndex: 0
|
|
@@ -4,7 +4,6 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
4
4
|
import React, { forwardRef, useCallback, useMemo } from 'react';
|
|
5
5
|
import { LoadingButton } from '@atlaskit/button';
|
|
6
6
|
import Button, { IconButton, LinkButton, LinkIconButton } from '@atlaskit/button/new';
|
|
7
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
7
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
9
8
|
import Tooltip from '@atlaskit/tooltip';
|
|
10
9
|
import { SmartLinkSize } from '../../../../../../constants';
|
|
@@ -43,7 +42,7 @@ var ButtonAppearanceMap = {
|
|
|
43
42
|
var tooltipOptions = {
|
|
44
43
|
hideTooltipOnClick: true
|
|
45
44
|
};
|
|
46
|
-
var
|
|
45
|
+
var ActionButtonRefresh = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
47
46
|
var _ref$appearance = _ref.appearance,
|
|
48
47
|
appearance = _ref$appearance === void 0 ? 'default' : _ref$appearance,
|
|
49
48
|
content = _ref.content,
|
|
@@ -146,7 +145,7 @@ var ActionButtonRefreshNew = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
146
145
|
|
|
147
146
|
// On cleanup of platform-linking-visual-refresh-v1, this should become
|
|
148
147
|
// export default withOverrideCss(ActionButton);
|
|
149
|
-
var
|
|
148
|
+
var ActionButtonRefreshWithOverrideCss = withOverrideCss(ActionButtonRefresh);
|
|
150
149
|
|
|
151
150
|
// TODO: Remove on fg cleanup: platform-linking-visual-refresh-v1
|
|
152
151
|
var ActionButtonNew = function ActionButtonNew(_ref2) {
|
|
@@ -192,14 +191,11 @@ var ActionButtonNew = function ActionButtonNew(_ref2) {
|
|
|
192
191
|
"aria-label": ariaLabel
|
|
193
192
|
}, content)));
|
|
194
193
|
};
|
|
195
|
-
var
|
|
194
|
+
var ActionButton = function ActionButton(props) {
|
|
196
195
|
var ui = useFlexibleUiOptionContext();
|
|
197
196
|
if (ui !== null && ui !== void 0 && ui.hideLegacyButton || ui !== null && ui !== void 0 && ui.removeBlockRestriction) {
|
|
198
|
-
return /*#__PURE__*/React.createElement(
|
|
197
|
+
return /*#__PURE__*/React.createElement(ActionButtonRefreshWithOverrideCss, props);
|
|
199
198
|
}
|
|
200
199
|
return /*#__PURE__*/React.createElement(ActionButtonNew, props);
|
|
201
200
|
};
|
|
202
|
-
var ActionButton = function ActionButton(props) {
|
|
203
|
-
return fg('platform-linking-visual-refresh-v1') ? /*#__PURE__*/React.createElement(ActionButtonHideLegacyButton, props) : /*#__PURE__*/React.createElement(ActionButtonNew, props);
|
|
204
|
-
};
|
|
205
201
|
export default ActionButton;
|
|
@@ -44,7 +44,5 @@
|
|
|
44
44
|
._rtys1j6v img, ._b8nk1j6v span, ._4x201j6v svg{max-width:1rem}
|
|
45
45
|
._rtys1k8s img, ._b8nk1k8s span, ._4x201k8s svg{max-width:1.5rem}
|
|
46
46
|
._rtysgktf img, ._b8nkgktf span, ._4x20gktf svg{max-width:20px}
|
|
47
|
-
._syaz2oi6{color:var(--ds-text-disabled,#6b778c)}
|
|
48
|
-
._syazwdcn{color:var(--ds-icon,#44546f)}
|
|
49
47
|
._u5f3v77o{padding-right:var(--ds-space-025,2px)}
|
|
50
48
|
._uhasidpf svg{padding-right:0}
|