@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
|
@@ -4,120 +4,7 @@ import "./styled.compiled.css";
|
|
|
4
4
|
import { forwardRef } from 'react';
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import { ax, ix } from "@compiled/react/runtime";
|
|
7
|
-
// Wraps all icons represented in Inline Links. Icons have three sources/types:
|
|
8
|
-
// - JSON-LD: from the generator.icon property coming back from ORS.
|
|
9
|
-
// - @atlaskit/icon: for lock icons, unauthorized, etc.
|
|
10
|
-
// - @atlaskit/icon-object: for object icons, e.g. repository, branch, etc.
|
|
11
|
-
// NB: the first set of overrides style icons imported from @atlaskit/icon-object correctly.
|
|
12
|
-
// NB: the second set of overrides style icons imported from @atlaskit/icon correctly.
|
|
13
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
14
|
-
|
|
15
|
-
// TODO: remove this override behaviour for @atlaskit/icon-object
|
|
16
|
-
const IconObjectOverrides = `
|
|
17
|
-
& > span {
|
|
18
|
-
height: 16px;
|
|
19
|
-
width: 16px;
|
|
20
|
-
position: absolute;
|
|
21
|
-
top: 3px;
|
|
22
|
-
left: 0;
|
|
23
|
-
& > svg {
|
|
24
|
-
position: absolute;
|
|
25
|
-
top: 50%;
|
|
26
|
-
left: 50%;
|
|
27
|
-
transform: translate(-50%, -50%);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
`;
|
|
31
|
-
|
|
32
|
-
// TODO: remove this override behaviour for @atlaskit/icon
|
|
33
|
-
const IconOverrides = `
|
|
34
|
-
& > * > span {
|
|
35
|
-
height: 16px;
|
|
36
|
-
width: 16px;
|
|
37
|
-
position: absolute;
|
|
38
|
-
left: 0;
|
|
39
|
-
& > svg {
|
|
40
|
-
position: absolute;
|
|
41
|
-
top: 50%;
|
|
42
|
-
left: 50%;
|
|
43
|
-
transform: translate(-50%, -50%);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
`;
|
|
47
|
-
|
|
48
|
-
// TODO Delete when cleaning platform-linking-visual-refresh-v1
|
|
49
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
50
|
-
export const IconWrapperOldVisualRefresh = forwardRef(({
|
|
51
|
-
as: C = "span",
|
|
52
|
-
style: __cmpls,
|
|
53
|
-
...__cmplp
|
|
54
|
-
}, __cmplr) => {
|
|
55
|
-
return /*#__PURE__*/React.createElement(C, _extends({}, __cmplp, {
|
|
56
|
-
style: __cmpls,
|
|
57
|
-
ref: __cmplr,
|
|
58
|
-
className: ax(["_uiztglyw _17047vkz _iibf7vkz _lacastnw _1yg7idpf _15x0stnw _k9fw1ssb _1tr81ssb _q3v31ooe _1f027vkz _nbgx7vkz _4d7tstnw _o5fv1l7b _3g5ridpf _1fqgstnw _d1gw1ssb _1gx11ssb _18lx1ooe", __cmplp.className])
|
|
59
|
-
}));
|
|
60
|
-
});
|
|
61
|
-
|
|
62
|
-
// Wraps all emoji in Inline Links similar to icon
|
|
63
|
-
// TODO Delete when cleaning platform-linking-visual-refresh-v1
|
|
64
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
65
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
66
|
-
IconWrapperOldVisualRefresh.displayName = 'IconWrapperOldVisualRefresh';
|
|
67
|
-
}
|
|
68
|
-
export const EmojiWrapperOldVisualRefresh = forwardRef(({
|
|
69
|
-
as: C = "span",
|
|
70
|
-
style: __cmpls,
|
|
71
|
-
...__cmplp
|
|
72
|
-
}, __cmplr) => {
|
|
73
|
-
return /*#__PURE__*/React.createElement(C, _extends({}, __cmplp, {
|
|
74
|
-
style: __cmpls,
|
|
75
|
-
ref: __cmplr,
|
|
76
|
-
className: ax(["_1e0c1o8l _2hwxv77o _uiztglyw _17047vkz _iibf7vkz _lacastnw _1yg7idpf _15x0stnw _k9fw1ssb _1tr81ssb _q3v31ooe _1f027vkz _nbgx7vkz _4d7tstnw _o5fv1l7b _3g5ridpf _1fqgstnw _d1gw1ssb _1gx11ssb _18lx1ooe", __cmplp.className])
|
|
77
|
-
}));
|
|
78
|
-
});
|
|
79
|
-
|
|
80
|
-
// The main 'wrapping' element, title of the content.
|
|
81
|
-
// NB: `white-space` adds little whitespace before wrapping.
|
|
82
|
-
// NB: `word-break` line breaks as soon as an overflow takes place.
|
|
83
|
-
// TODO Delete when cleaning platform-linking-visual-refresh-v1
|
|
84
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
85
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
86
|
-
EmojiWrapperOldVisualRefresh.displayName = 'EmojiWrapperOldVisualRefresh';
|
|
87
|
-
}
|
|
88
|
-
export const IconTitleWrapperOldVisualRefresh = forwardRef(({
|
|
89
|
-
as: C = "span",
|
|
90
|
-
style: __cmpls,
|
|
91
|
-
...__cmplp
|
|
92
|
-
}, __cmplr) => {
|
|
93
|
-
return /*#__PURE__*/React.createElement(C, _extends({}, __cmplp, {
|
|
94
|
-
style: __cmpls,
|
|
95
|
-
ref: __cmplr,
|
|
96
|
-
className: ax(["_o5721jtm _1nmz9jpi _16d9qvcn _ca0qv77o _u5f31b66 _n3tdv77o _19bv1b66", __cmplp.className])
|
|
97
|
-
}));
|
|
98
|
-
});
|
|
99
|
-
|
|
100
|
-
// TODO Delete when cleaning platform-linking-visual-refresh-v1
|
|
101
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
102
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
103
|
-
IconTitleWrapperOldVisualRefresh.displayName = 'IconTitleWrapperOldVisualRefresh';
|
|
104
|
-
}
|
|
105
|
-
export const LozengeWrapperOldVisualRefresh = forwardRef(({
|
|
106
|
-
as: C = "span",
|
|
107
|
-
style: __cmpls,
|
|
108
|
-
...__cmplp
|
|
109
|
-
}, __cmplr) => {
|
|
110
|
-
return /*#__PURE__*/React.createElement(C, _extends({}, __cmplp, {
|
|
111
|
-
style: __cmpls,
|
|
112
|
-
ref: __cmplr,
|
|
113
|
-
className: ax(["_1e0c1o8l _s7n4t94y _19pkidpf _2hwx1b66 _otyridpf _18u0v77o", __cmplp.className])
|
|
114
|
-
}));
|
|
115
|
-
});
|
|
116
|
-
|
|
117
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
118
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
119
|
-
LozengeWrapperOldVisualRefresh.displayName = 'LozengeWrapperOldVisualRefresh';
|
|
120
|
-
}
|
|
121
8
|
export const RightIconPositionWrapper = forwardRef(({
|
|
122
9
|
as: C = "span",
|
|
123
10
|
style: __cmpls,
|
|
@@ -129,65 +16,6 @@ export const RightIconPositionWrapper = forwardRef(({
|
|
|
129
16
|
className: ax(["_18u0v77o _kqswh2mm _1e0c1o8l", __cmplp.className])
|
|
130
17
|
}));
|
|
131
18
|
});
|
|
132
|
-
|
|
133
|
-
// The following components are used to absolutely position icons in the vertical center.
|
|
134
|
-
// - IconPositionWrapper: the `relative` parent which has no height in itself.
|
|
135
|
-
// - IconEmptyWrapper: the child which forces `IconPositionWrapper` to have a height.
|
|
136
|
-
// TODO Delete when cleaning platform-linking-visual-refresh-v1
|
|
137
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
138
19
|
if (process.env.NODE_ENV !== 'production') {
|
|
139
20
|
RightIconPositionWrapper.displayName = 'RightIconPositionWrapper';
|
|
140
|
-
}
|
|
141
|
-
export const IconPositionWrapperOldVisualRefresh = forwardRef(({
|
|
142
|
-
as: C = "span",
|
|
143
|
-
style: __cmpls,
|
|
144
|
-
...__cmplp
|
|
145
|
-
}, __cmplr) => {
|
|
146
|
-
return /*#__PURE__*/React.createElement(C, _extends({}, __cmplp, {
|
|
147
|
-
style: __cmpls,
|
|
148
|
-
ref: __cmplr,
|
|
149
|
-
className: ax(["_2hwx1b66 _kqswh2mm _1e0c1o8l", __cmplp.className])
|
|
150
|
-
}));
|
|
151
|
-
});
|
|
152
|
-
|
|
153
|
-
// TODO Delete when cleaning platform-linking-visual-refresh-v1
|
|
154
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
155
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
156
|
-
IconPositionWrapperOldVisualRefresh.displayName = 'IconPositionWrapperOldVisualRefresh';
|
|
157
|
-
}
|
|
158
|
-
export const IconEmptyWrapperOldVisualRefresh = forwardRef(({
|
|
159
|
-
as: C = "span",
|
|
160
|
-
style: __cmpls,
|
|
161
|
-
...__cmplp
|
|
162
|
-
}, __cmplr) => {
|
|
163
|
-
return /*#__PURE__*/React.createElement(C, _extends({}, __cmplp, {
|
|
164
|
-
style: __cmpls,
|
|
165
|
-
ref: __cmplr,
|
|
166
|
-
className: ax(["_1bsb7vkz _4t3i1osq _1e0c1o8l _tzy4idpf", __cmplp.className])
|
|
167
|
-
}));
|
|
168
|
-
});
|
|
169
|
-
|
|
170
|
-
// With emotion it's not possible to use reference to `TitleWrapper` as part of a selector,
|
|
171
|
-
// TODO Delete when cleaning platform-linking-visual-refresh-v1
|
|
172
|
-
// To achieve same result we use classname instead.
|
|
173
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
174
|
-
IconEmptyWrapperOldVisualRefresh.displayName = 'IconEmptyWrapperOldVisualRefresh';
|
|
175
|
-
}
|
|
176
|
-
export const TitleWrapperClassNameOldVisualRefresh = 'smart-link-title-wrapper';
|
|
177
|
-
|
|
178
|
-
// TODO Delete when cleaning platform-linking-visual-refresh-v1
|
|
179
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-empty-styled-expression -- Ignored via go/DSP-18766
|
|
180
|
-
export const TitleWrapperOldVisualRefresh = forwardRef(({
|
|
181
|
-
as: C = "span",
|
|
182
|
-
style: __cmpls,
|
|
183
|
-
...__cmplp
|
|
184
|
-
}, __cmplr) => {
|
|
185
|
-
return /*#__PURE__*/React.createElement(C, _extends({}, __cmplp, {
|
|
186
|
-
style: __cmpls,
|
|
187
|
-
ref: __cmplr,
|
|
188
|
-
className: ax(["", __cmplp.className])
|
|
189
|
-
}));
|
|
190
|
-
});
|
|
191
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
192
|
-
TitleWrapperOldVisualRefresh.displayName = 'TitleWrapperOldVisualRefresh';
|
|
193
21
|
}
|
|
@@ -2,13 +2,11 @@
|
|
|
2
2
|
import "./index.compiled.css";
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React from 'react';
|
|
5
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
5
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
7
6
|
import Spinner from '@atlaskit/spinner';
|
|
8
7
|
import { Frame } from '../Frame';
|
|
9
8
|
import { IconAndTitleLayout, IconTitleWrapper } from '../IconAndTitleLayout';
|
|
10
9
|
import { RightIconPositionWrapper } from '../IconAndTitleLayout/styled';
|
|
11
|
-
import { SpinnerWrapperOldVisualRefresh } from './styled';
|
|
12
10
|
const styles = {
|
|
13
11
|
spinnerWrapper: "_11c81o8v _1e0c116y _4cvr1h6o _1bah1h6o _4t3i7vkz _1bsb7vkz"
|
|
14
12
|
};
|
|
@@ -22,18 +20,11 @@ export const InlineCardResolvingView = ({
|
|
|
22
20
|
resolvingPlaceholder,
|
|
23
21
|
truncateInline
|
|
24
22
|
}) => {
|
|
25
|
-
const renderSpinner = React.useCallback(() =>
|
|
23
|
+
const renderSpinner = React.useCallback(() => /*#__PURE__*/React.createElement(Box, {
|
|
26
24
|
as: "span",
|
|
27
25
|
xcss: styles.spinnerWrapper
|
|
28
26
|
}, /*#__PURE__*/React.createElement(Spinner, {
|
|
29
27
|
size: 14
|
|
30
|
-
})) :
|
|
31
|
-
/*#__PURE__*/
|
|
32
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
|
|
33
|
-
React.createElement(SpinnerWrapperOldVisualRefresh, {
|
|
34
|
-
className: "inline-resolving-spinner"
|
|
35
|
-
}, /*#__PURE__*/React.createElement(Spinner, {
|
|
36
|
-
size: 14
|
|
37
28
|
})), []);
|
|
38
29
|
if (inlinePreloaderStyle === 'on-right-without-skeleton') {
|
|
39
30
|
return /*#__PURE__*/React.createElement(Frame, {
|
|
@@ -51,8 +42,8 @@ export const InlineCardResolvingView = ({
|
|
|
51
42
|
link: url,
|
|
52
43
|
truncateInline: truncateInline
|
|
53
44
|
}, /*#__PURE__*/React.createElement(IconAndTitleLayout, {
|
|
54
|
-
icon:
|
|
45
|
+
icon: renderSpinner(),
|
|
55
46
|
title: resolvingPlaceholder !== null && resolvingPlaceholder !== void 0 ? resolvingPlaceholder : url,
|
|
56
47
|
titleTextColor: titleTextColor
|
|
57
|
-
}
|
|
48
|
+
}));
|
|
58
49
|
};
|
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
/* index.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
|
-
import "./index.compiled.css";
|
|
4
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
4
|
import React from 'react';
|
|
6
5
|
import { FormattedMessage } from 'react-intl-next';
|
|
7
|
-
import ButtonOld from '@atlaskit/button';
|
|
8
6
|
import LockLockedIcon from '@atlaskit/icon/core/lock-locked';
|
|
9
7
|
import LegacyLockIcon from '@atlaskit/icon/glyph/lock-filled';
|
|
10
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
11
|
-
import { Box } from '@atlaskit/primitives/compiled';
|
|
12
8
|
import { N500 } from '@atlaskit/theme/colors';
|
|
13
9
|
import { useAnalyticsEvents } from '../../../common/analytics/generated/use-analytics-events';
|
|
14
10
|
import { messages } from '../../../messages';
|
|
@@ -16,29 +12,13 @@ import { HoverCard } from '../../HoverCard';
|
|
|
16
12
|
import { ActionButton } from '../common/action-button';
|
|
17
13
|
import { Frame } from '../Frame';
|
|
18
14
|
import { IconAndTitleLayout } from '../IconAndTitleLayout';
|
|
19
|
-
import { IconStyledButtonOldVisualRefresh } from '../styled';
|
|
20
|
-
import withFrameStyleControl from '../utils/withFrameStyleControl';
|
|
21
|
-
const styles = {
|
|
22
|
-
iconWrapper: "_2hwx1i6y"
|
|
23
|
-
};
|
|
24
15
|
const fallbackUnauthorizedIcon = () => {
|
|
25
|
-
|
|
26
|
-
return /*#__PURE__*/React.createElement(LockLockedIcon, {
|
|
27
|
-
color: "var(--ds-icon-danger, #C9372C)",
|
|
28
|
-
label: "error",
|
|
29
|
-
LEGACY_fallbackIcon: LegacyLockIcon,
|
|
30
|
-
LEGACY_size: "small"
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
return /*#__PURE__*/React.createElement(Box, {
|
|
34
|
-
as: "span",
|
|
35
|
-
xcss: styles.iconWrapper
|
|
36
|
-
}, /*#__PURE__*/React.createElement(LockLockedIcon, {
|
|
16
|
+
return /*#__PURE__*/React.createElement(LockLockedIcon, {
|
|
37
17
|
color: "var(--ds-icon-danger, #C9372C)",
|
|
38
18
|
label: "error",
|
|
39
19
|
LEGACY_fallbackIcon: LegacyLockIcon,
|
|
40
20
|
LEGACY_size: "small"
|
|
41
|
-
})
|
|
21
|
+
});
|
|
42
22
|
};
|
|
43
23
|
export const InlineCardUnauthorizedView = ({
|
|
44
24
|
url,
|
|
@@ -65,28 +45,15 @@ export const InlineCardUnauthorizedView = ({
|
|
|
65
45
|
}
|
|
66
46
|
}, [fireEvent, onAuthorise]);
|
|
67
47
|
const renderActionButton = React.useCallback(() => {
|
|
68
|
-
|
|
69
|
-
if (fg('platform-linking-visual-refresh-v1')) {
|
|
70
|
-
return /*#__PURE__*/React.createElement(ActionButton, {
|
|
71
|
-
onClick: handleConnectAccount,
|
|
72
|
-
testId: "button-connect-account"
|
|
73
|
-
}, /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, messages.connect_link_account_card_name, {
|
|
74
|
-
values: {
|
|
75
|
-
context
|
|
76
|
-
}
|
|
77
|
-
})));
|
|
78
|
-
}
|
|
79
|
-
return onAuthorise ? /*#__PURE__*/React.createElement(Button, {
|
|
80
|
-
spacing: "none",
|
|
81
|
-
component: IconStyledButtonOldVisualRefresh,
|
|
48
|
+
return /*#__PURE__*/React.createElement(ActionButton, {
|
|
82
49
|
onClick: handleConnectAccount,
|
|
83
50
|
testId: "button-connect-account"
|
|
84
51
|
}, /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, messages.connect_link_account_card_name, {
|
|
85
52
|
values: {
|
|
86
53
|
context
|
|
87
54
|
}
|
|
88
|
-
})))
|
|
89
|
-
}, [handleConnectAccount,
|
|
55
|
+
})));
|
|
56
|
+
}, [handleConnectAccount, context]);
|
|
90
57
|
const inlineCardUnauthenticatedView = /*#__PURE__*/React.createElement(Frame, {
|
|
91
58
|
testId: testId,
|
|
92
59
|
isSelected: isSelected,
|
|
@@ -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: "39.
|
|
13
|
+
packageVersion: "39.2.0",
|
|
14
14
|
componentName: 'linkUrl'
|
|
15
15
|
};
|
|
16
16
|
const Anchor = withLinkClickedEvent('a');
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React, { useCallback } from 'react';
|
|
3
3
|
import { FormattedMessage } from 'react-intl-next';
|
|
4
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
5
4
|
import { Anchor } from '@atlaskit/primitives/compiled';
|
|
6
5
|
import { useAnalyticsEvents } from '../../common/analytics/generated/use-analytics-events';
|
|
7
6
|
import { CONTENT_URL_3P_ACCOUNT_AUTH, CONTENT_URL_SECURITY_AND_PERMISSIONS } from '../../constants';
|
|
@@ -26,24 +25,11 @@ const UnauthorisedViewContent = ({
|
|
|
26
25
|
values: {
|
|
27
26
|
context: providerName
|
|
28
27
|
}
|
|
29
|
-
})) : /*#__PURE__*/React.createElement(FormattedMessage, messages.connect_unauthorised_account_description_no_provider), ' ',
|
|
28
|
+
})) : /*#__PURE__*/React.createElement(FormattedMessage, messages.connect_unauthorised_account_description_no_provider), ' ', /*#__PURE__*/React.createElement(Anchor, {
|
|
30
29
|
href: isProductIntegrationSupported ? CONTENT_URL_3P_ACCOUNT_AUTH : CONTENT_URL_SECURITY_AND_PERMISSIONS,
|
|
31
30
|
target: "_blank",
|
|
32
31
|
testId: `${testId}-learn-more`,
|
|
33
32
|
onClick: handleLearnMoreClick
|
|
34
|
-
}, /*#__PURE__*/React.createElement(FormattedMessage, learnMoreMessage)) :
|
|
35
|
-
/*#__PURE__*/
|
|
36
|
-
// eslint-disable-next-line @atlaskit/design-system/no-html-anchor
|
|
37
|
-
React.createElement("a", {
|
|
38
|
-
href: isProductIntegrationSupported ? CONTENT_URL_3P_ACCOUNT_AUTH : CONTENT_URL_SECURITY_AND_PERMISSIONS,
|
|
39
|
-
target: "_blank",
|
|
40
|
-
"data-testid": `${testId}-learn-more`,
|
|
41
|
-
onClick: handleLearnMoreClick
|
|
42
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
|
|
43
|
-
,
|
|
44
|
-
style: {
|
|
45
|
-
textDecoration: 'underline'
|
|
46
|
-
}
|
|
47
33
|
}, /*#__PURE__*/React.createElement(FormattedMessage, learnMoreMessage)));
|
|
48
34
|
};
|
|
49
35
|
export default UnauthorisedViewContent;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
._11c81o8v{font:var(--ds-font-body-small,normal 400 11px/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
|
-
._11c8dcr7{font:var(--ds-font-body-UNSAFE_small,normal 400 9pt/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
3
2
|
._181u1kdv{-webkit-user-select:text}
|
|
4
3
|
._1nmz1hna{word-break:break-word}
|
|
5
4
|
._1rkw1kdv{-moz-user-select:text}
|
|
@@ -3,9 +3,7 @@ import "./index.compiled.css";
|
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import Markdown from 'markdown-to-jsx';
|
|
6
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
6
|
import UList from './ulist';
|
|
8
|
-
const AISummaryCSSStyles = null;
|
|
9
7
|
const baseStyle = null;
|
|
10
8
|
|
|
11
9
|
/**
|
|
@@ -26,7 +24,7 @@ const AISummary = ({
|
|
|
26
24
|
"data-testid": testId
|
|
27
25
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
|
|
28
26
|
,
|
|
29
|
-
className: ax([
|
|
27
|
+
className: ax(["_11c81o8v _syaz1gjq _slp31hna _1nmz1hna _o5724jg8 _181u1kdv _1rkw1kdv _te171kdv _uizt1kdv", className]),
|
|
30
28
|
children: content,
|
|
31
29
|
options: {
|
|
32
30
|
forceWrapper: true,
|
|
@@ -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: "39.
|
|
7
|
+
packageVersion: "39.2.0"
|
|
8
8
|
};
|
|
9
9
|
export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
10
10
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -12,7 +12,6 @@ import { useAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
|
12
12
|
import LockLockedIcon from '@atlaskit/icon/core/lock-locked';
|
|
13
13
|
import LegacyLockIcon from '@atlaskit/icon/glyph/lock';
|
|
14
14
|
import { extractSmartLinkProvider } from '@atlaskit/link-extractors';
|
|
15
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
16
15
|
import { extractRequestAccessContextImproved } from '../../../extractors/common/context/extractAccessContext';
|
|
17
16
|
import extractHostname from '../../../extractors/common/hostname/extractHostname';
|
|
18
17
|
import { messages } from '../../../messages';
|
|
@@ -94,7 +93,7 @@ var ForbiddenView = function ForbiddenView(_ref) {
|
|
|
94
93
|
descriptor: toMessage(messages.invalid_permissions_description, requestAccessContext === null || requestAccessContext === void 0 ? void 0 : requestAccessContext.descriptiveMessageKey),
|
|
95
94
|
values: messageContext
|
|
96
95
|
},
|
|
97
|
-
className: ax([
|
|
96
|
+
className: ax(["_syaz1fxt"])
|
|
98
97
|
}));
|
|
99
98
|
};
|
|
100
99
|
export default withFlexibleUIBlockCardStyle(ForbiddenView);
|
|
@@ -10,7 +10,6 @@ import { useIntl } from 'react-intl-next';
|
|
|
10
10
|
import LockLockedIcon from '@atlaskit/icon/core/lock-locked';
|
|
11
11
|
import LegacyLockIcon from '@atlaskit/icon/glyph/lock';
|
|
12
12
|
import { extractSmartLinkProvider } from '@atlaskit/link-extractors';
|
|
13
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
14
13
|
import { messages } from '../../../messages';
|
|
15
14
|
import Text from '../../FlexibleCard/components/elements/common/base-text-element';
|
|
16
15
|
import UnresolvedView from './unresolved-view';
|
|
@@ -57,7 +56,7 @@ var NotFoundView = function NotFoundView(_ref) {
|
|
|
57
56
|
message: description,
|
|
58
57
|
testId: "".concat(testId, "-message"),
|
|
59
58
|
maxLines: 3,
|
|
60
|
-
className: ax([
|
|
59
|
+
className: ax(["_syaz1fxt"])
|
|
61
60
|
}));
|
|
62
61
|
};
|
|
63
62
|
export default withFlexibleUIBlockCardStyle(NotFoundView);
|
|
@@ -1,14 +1,9 @@
|
|
|
1
1
|
|
|
2
|
-
._zulpcxkx{gap:var(--ds-space-100,.5rem)}
|
|
3
2
|
._zulpu2gc{gap:var(--ds-space-100,8px)}._13mh1pd9 [data-smart-element=Title]{font-weight:var(--ds-font-weight-semibold,600)}
|
|
4
3
|
._1bah1yb4{justify-content:space-between}
|
|
5
4
|
._1e0c1txw{display:flex}
|
|
6
|
-
._1sxbcxkx span[data-smart-element-avatar-group]>ul{margin-right:var(--ds-space-100,.5rem)}
|
|
7
5
|
._1wpz1fhb{align-self:stretch}
|
|
8
6
|
._2yhz14q2 [data-smart-element=Title]{color:var(--ds-link,#0c66e4)}
|
|
9
7
|
._4cvresu3{align-items:flex-end}
|
|
10
8
|
._4t3i1k8s{height:1.5rem}
|
|
11
|
-
._4t3i1osq{height:100%}
|
|
12
|
-
._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}
|
|
13
|
-
._i8d01j6v [data-smart-element-group]{line-height:1rem}
|
|
14
|
-
._wwyvidpf span[data-smart-element-avatar-group]>ul{padding-left:0}
|
|
9
|
+
._4t3i1osq{height:100%}
|
|
@@ -12,12 +12,9 @@ import FlexibleCard from '../../FlexibleCard';
|
|
|
12
12
|
import { FooterBlock, MetadataBlock, PreviewBlock, SnippetBlock, TitleBlock } from '../../FlexibleCard/components/blocks';
|
|
13
13
|
import { FlexibleCardUiOptions, FlexibleCardUiOptionsOld, getSimulatedBetterMetadata, PreviewBlockOptions, titleBlockOptions } from './utils';
|
|
14
14
|
import { withFlexibleUIBlockCardStyle } from './utils/withFlexibleUIBlockCardStyle';
|
|
15
|
-
var titleBlockCssOld = null;
|
|
16
15
|
var titleBlockCss = null;
|
|
17
|
-
var footerBlockCssOld = null;
|
|
18
16
|
var footerBlockCss = null;
|
|
19
17
|
var footerBlockSafariStyles = null;
|
|
20
|
-
var metadataBlockCssOld = null;
|
|
21
18
|
|
|
22
19
|
/**
|
|
23
20
|
* This view represents a Block card that has an 'Resolved' status.
|
|
@@ -93,21 +90,17 @@ var ResolvedView = function ResolvedView(_ref) {
|
|
|
93
90
|
CompetitorPrompt: CompetitorPrompt,
|
|
94
91
|
url: url,
|
|
95
92
|
hideIconLoadingSkeleton: hideIconLoadingSkeleton,
|
|
96
|
-
className: ax([
|
|
93
|
+
className: ax(["_zulpu2gc _13mh1pd9 _2yhz14q2"])
|
|
97
94
|
})), /*#__PURE__*/React.createElement(MetadataBlock, _extends({
|
|
98
95
|
primary: topMetadata,
|
|
99
96
|
maxLines: 1
|
|
100
97
|
}, fg('platform-linking-flexible-card-context') ? undefined : {
|
|
101
98
|
status: SmartLinkStatus.Resolved
|
|
102
|
-
}, {
|
|
103
|
-
className: ax([!fg('platform-linking-visual-refresh-v1') && "_wwyvidpf _1sxbcxkx _i8d01j6v"])
|
|
104
99
|
})), /*#__PURE__*/React.createElement(SnippetBlock, null), /*#__PURE__*/React.createElement(MetadataBlock, _extends({
|
|
105
100
|
primary: bottomMetadata,
|
|
106
101
|
maxLines: 1
|
|
107
102
|
}, fg('platform-linking-flexible-card-context') ? undefined : {
|
|
108
103
|
status: SmartLinkStatus.Resolved
|
|
109
|
-
}, {
|
|
110
|
-
className: ax([!fg('platform-linking-visual-refresh-v1') && "_wwyvidpf _1sxbcxkx _i8d01j6v"])
|
|
111
104
|
})), !isPreviewBlockErrored ? /*#__PURE__*/React.createElement(PreviewBlock, _extends({}, PreviewBlockOptions, {
|
|
112
105
|
onError: function onError() {
|
|
113
106
|
setIsPreviewBlockErrored(true);
|
|
@@ -119,7 +112,7 @@ var ResolvedView = function ResolvedView(_ref) {
|
|
|
119
112
|
}, fg('platform-linking-flexible-card-context') ? undefined : {
|
|
120
113
|
status: SmartLinkStatus.Resolved
|
|
121
114
|
}, {
|
|
122
|
-
className: ax([
|
|
115
|
+
className: ax(["_4t3i1k8s _1e0c1txw _1bah1yb4 _4cvresu3 _1wpz1fhb", safari && fg('platform-linking-visual-refresh-v2') && "_4t3i1osq"])
|
|
123
116
|
})));
|
|
124
117
|
};
|
|
125
118
|
export default withFlexibleUIBlockCardStyle(ResolvedView);
|
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
._11c8dcr7{font:var(--ds-font-body-UNSAFE_small,normal 400 9pt/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
|
-
._19pkcxkx{margin-top:var(--ds-space-100,.5rem)}
|
|
3
2
|
._19pku2gc{margin-top:var(--ds-space-100,8px)}
|
|
4
|
-
._syaz131l{color:var(--ds-text-subtlest,#626f86)}
|
|
5
3
|
._syaz1fxt{color:var(--ds-text,#172b4d)}
|
|
@@ -8,7 +8,6 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
8
8
|
import { useCallback, useMemo } from 'react';
|
|
9
9
|
import { FormattedMessage } from 'react-intl-next';
|
|
10
10
|
import { extractSmartLinkProvider } from '@atlaskit/link-extractors';
|
|
11
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
12
11
|
import { useAnalyticsEvents } from '../../../common/analytics/generated/use-analytics-events';
|
|
13
12
|
import { messages } from '../../../messages';
|
|
14
13
|
import { hasAuthScopeOverrides } from '../../../state/helpers';
|
|
@@ -16,7 +15,6 @@ import UnauthorisedViewContent from '../../common/UnauthorisedViewContent';
|
|
|
16
15
|
import { AuthorizeAction } from '../actions/AuthorizeAction';
|
|
17
16
|
import UnresolvedView from './unresolved-view';
|
|
18
17
|
import { withFlexibleUIBlockCardStyle } from './utils/withFlexibleUIBlockCardStyle';
|
|
19
|
-
var contentStylesOld = null;
|
|
20
18
|
var contentStyles = null;
|
|
21
19
|
|
|
22
20
|
/**
|
|
@@ -62,7 +60,7 @@ var UnauthorisedView = function UnauthorisedView(_ref) {
|
|
|
62
60
|
testId: testId
|
|
63
61
|
}), /*#__PURE__*/React.createElement("div", {
|
|
64
62
|
"data-testid": "".concat(testId, "-content"),
|
|
65
|
-
className: ax([
|
|
63
|
+
className: ax(["_11c8dcr7 _syaz1fxt _19pku2gc"])
|
|
66
64
|
}, content));
|
|
67
65
|
};
|
|
68
66
|
export default withFlexibleUIBlockCardStyle(UnauthorisedView);
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
|
|
2
2
|
._zulp1b66{gap:var(--ds-space-050,4px)}
|
|
3
|
-
._zulp1f3t{gap:var(--ds-space-100,.5em)}
|
|
4
3
|
._zulpu2gc{gap:var(--ds-space-100,8px)}._13mh1pd9 [data-smart-element=Title]{font-weight:var(--ds-font-weight-semibold,600)}
|
|
5
4
|
._1bah1yb4{justify-content:space-between}
|
|
6
5
|
._1e0c1txw{display:flex}
|
|
@@ -11,5 +10,4 @@
|
|
|
11
10
|
._4t3i1k8s{height:1.5rem}
|
|
12
11
|
._4t3i1osq{height:100%}
|
|
13
12
|
._7yjtidpf >div{margin-top:0}
|
|
14
|
-
._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}
|
|
15
13
|
._ngc01fxt >div{color:var(--ds-text,#172b4d)}
|
|
@@ -9,11 +9,8 @@ import { fg } from '@atlaskit/platform-feature-flags';
|
|
|
9
9
|
import FlexibleCard from '../../../FlexibleCard';
|
|
10
10
|
import { CustomBlock, InternalFooterBlock, PreviewBlock, TitleBlock } from '../../../FlexibleCard/components/blocks';
|
|
11
11
|
import { FlexibleCardUiOptions, FlexibleCardUiOptionsOld, PreviewBlockOptions, titleBlockOptions } from '../utils';
|
|
12
|
-
var customBlockStylesOld = null;
|
|
13
12
|
var customBlockStyles = null;
|
|
14
|
-
var titleBlockCssOld = null;
|
|
15
13
|
var titleBlockCss = null;
|
|
16
|
-
var footerBlockCssOld = null;
|
|
17
14
|
var footerBlockCss = null;
|
|
18
15
|
var footerBlockSafariStyles = null;
|
|
19
16
|
var UnresolvedView = function UnresolvedView(_ref) {
|
|
@@ -51,11 +48,11 @@ var UnresolvedView = function UnresolvedView(_ref) {
|
|
|
51
48
|
}, fg('platform-linking-flexible-card-context') ? undefined : {
|
|
52
49
|
status: cardState.status
|
|
53
50
|
}, {
|
|
54
|
-
className: ax([
|
|
51
|
+
className: ax(["_zulpu2gc _13mh1pd9 _2yhz14q2"])
|
|
55
52
|
})), /*#__PURE__*/React.createElement(CustomBlock, _extends({}, fg('platform-linking-flexible-card-context') ? undefined : {
|
|
56
53
|
status: cardState.status
|
|
57
54
|
}, {
|
|
58
|
-
className: ax([
|
|
55
|
+
className: ax(["_zulp1b66 _1e0c1txw _4cvr1y6m _1wpz1fhb _7yjtidpf _ngc01fxt"])
|
|
59
56
|
}), children), showPreview && /*#__PURE__*/React.createElement(PreviewBlock, _extends({}, PreviewBlockOptions, fg('platform-linking-flexible-card-context') ? undefined : {
|
|
60
57
|
status: cardState.status
|
|
61
58
|
})), /*#__PURE__*/React.createElement(InternalFooterBlock, _extends({
|
|
@@ -64,7 +61,7 @@ var UnresolvedView = function UnresolvedView(_ref) {
|
|
|
64
61
|
}, fg('platform-linking-flexible-card-context') ? undefined : {
|
|
65
62
|
status: cardState.status
|
|
66
63
|
}, {
|
|
67
|
-
className: ax([
|
|
64
|
+
className: ax(["_4t3i1k8s _1e0c1txw _1bah1yb4 _4cvresu3 _1wpz1fhb", safari && fg('platform-linking-visual-refresh-v2') && "_4t3i1osq"])
|
|
68
65
|
})));
|
|
69
66
|
};
|
|
70
67
|
export default UnresolvedView;
|