@atlaskit/smart-card 22.2.1 → 22.3.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/version.json +1 -1
- package/dist/cjs/view/BlockCard/components/Action.js +6 -6
- package/dist/cjs/view/BlockCard/components/ActionList.js +10 -10
- package/dist/cjs/view/BlockCard/components/CollaboratorList.js +3 -3
- package/dist/cjs/view/BlockCard/components/Content.js +2 -2
- package/dist/cjs/view/BlockCard/components/ContentFooter.js +2 -2
- package/dist/cjs/view/BlockCard/components/ContentHeader.js +2 -2
- package/dist/cjs/view/BlockCard/components/Emoji.js +3 -3
- package/dist/cjs/view/BlockCard/components/Frame.js +5 -5
- package/dist/cjs/view/BlockCard/components/Link.js +2 -2
- package/dist/cjs/view/BlockCard/components/Name.js +2 -2
- package/dist/cjs/view/BlockCard/components/Provider.js +4 -4
- package/dist/cjs/view/BlockCard/components/Thumbnail.js +5 -5
- package/dist/cjs/view/BlockCard/components/UnresolvedText.js +2 -2
- package/dist/cjs/view/BlockCard/views/ErroredView.js +11 -11
- package/dist/cjs/view/BlockCard/views/ForbiddenView.js +10 -10
- package/dist/cjs/view/BlockCard/views/NotFoundView.js +10 -10
- package/dist/cjs/view/BlockCard/views/ResolvedView.js +14 -14
- package/dist/cjs/view/BlockCard/views/ResolvingView.js +5 -5
- package/dist/cjs/view/BlockCard/views/UnauthorizedView.js +9 -9
- package/dist/cjs/view/EmbedCard/components/Frame.js +5 -5
- package/dist/cjs/view/EmbedCard/views/ErroredView.js +6 -6
- package/dist/cjs/view/EmbedCard/views/ResolvedView.js +10 -10
- package/dist/cjs/view/EmbedCard/views/UnresolvedView.js +9 -9
- package/dist/cjs/view/EmbedModal/components/embed-content/index.js +3 -3
- package/dist/cjs/view/EmbedModal/components/link-info/index.js +25 -25
- package/dist/cjs/view/EmbedModal/components/link-info/styled.js +5 -5
- package/dist/cjs/view/FlexibleCard/components/actions/action/action-button/index.js +6 -6
- package/dist/cjs/view/FlexibleCard/components/actions/action/action-icon/index.js +3 -3
- package/dist/cjs/view/FlexibleCard/components/actions/action/index.js +4 -4
- package/dist/cjs/view/FlexibleCard/components/blocks/action-group/index.js +8 -8
- package/dist/cjs/view/FlexibleCard/components/blocks/block/index.js +3 -3
- package/dist/cjs/view/FlexibleCard/components/blocks/element-group/index.js +8 -8
- package/dist/cjs/view/FlexibleCard/components/blocks/footer-block/index.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/blocks/metadata-block/index.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/blocks/title-block/errored/index.js +8 -8
- package/dist/cjs/view/FlexibleCard/components/blocks/title-block/index.js +3 -3
- package/dist/cjs/view/FlexibleCard/components/blocks/title-block/resolving/index.js +4 -4
- package/dist/cjs/view/FlexibleCard/components/blocks/utils.js +5 -5
- package/dist/cjs/view/FlexibleCard/components/common/image-icon/index.js +4 -4
- package/dist/cjs/view/FlexibleCard/components/common/loading-skeleton/index.js +4 -4
- package/dist/cjs/view/FlexibleCard/components/container/index.js +6 -6
- package/dist/cjs/view/FlexibleCard/components/container/layered-link/index.js +3 -3
- package/dist/cjs/view/FlexibleCard/components/elements/avatar-group/index.js +5 -5
- package/dist/cjs/view/FlexibleCard/components/elements/badge/index.js +9 -9
- package/dist/cjs/view/FlexibleCard/components/elements/date-time/index.js +4 -4
- package/dist/cjs/view/FlexibleCard/components/elements/icon/index.js +9 -9
- package/dist/cjs/view/FlexibleCard/components/elements/link/index.js +8 -8
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/index.js +4 -4
- package/dist/cjs/view/FlexibleCard/components/elements/media/index.js +4 -4
- package/dist/cjs/view/FlexibleCard/components/elements/text/index.js +3 -3
- package/dist/cjs/view/FlexibleCard/components/elements/utils.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/utils.js +7 -7
- package/dist/cjs/view/HoverCard/components/HoverCardComponent.js +20 -20
- package/dist/cjs/view/HoverCard/components/HoverCardLoadingView.js +7 -7
- package/dist/cjs/view/HoverCard/components/SnippetOrPreview.js +2 -2
- package/dist/cjs/view/HoverCard/index.js +6 -6
- package/dist/cjs/view/HoverCard/styled.js +10 -10
- package/dist/cjs/view/InlineCard/Icon.js +3 -3
- package/dist/cjs/view/common/Byline.js +2 -2
- package/dist/cjs/view/common/Icon.js +6 -6
- package/dist/cjs/view/common/Metadata.js +5 -5
- package/dist/cjs/view/common/MetadataList.js +3 -3
- package/dist/cjs/view/common/ModalHeader.js +14 -14
- package/dist/es2019/version.json +1 -1
- package/dist/es2019/view/BlockCard/components/Action.js +1 -1
- package/dist/es2019/view/BlockCard/components/ActionList.js +1 -1
- package/dist/es2019/view/BlockCard/components/CollaboratorList.js +1 -1
- package/dist/es2019/view/BlockCard/components/Content.js +1 -1
- package/dist/es2019/view/BlockCard/components/ContentFooter.js +1 -1
- package/dist/es2019/view/BlockCard/components/ContentHeader.js +1 -1
- package/dist/es2019/view/BlockCard/components/Emoji.js +1 -1
- package/dist/es2019/view/BlockCard/components/Frame.js +1 -1
- package/dist/es2019/view/BlockCard/components/Link.js +1 -1
- package/dist/es2019/view/BlockCard/components/Name.js +1 -1
- package/dist/es2019/view/BlockCard/components/Provider.js +1 -1
- package/dist/es2019/view/BlockCard/components/Thumbnail.js +1 -1
- package/dist/es2019/view/BlockCard/components/UnresolvedText.js +1 -1
- package/dist/es2019/view/BlockCard/views/ErroredView.js +1 -1
- package/dist/es2019/view/BlockCard/views/ForbiddenView.js +1 -1
- package/dist/es2019/view/BlockCard/views/NotFoundView.js +1 -1
- package/dist/es2019/view/BlockCard/views/ResolvedView.js +1 -1
- package/dist/es2019/view/BlockCard/views/ResolvingView.js +1 -1
- package/dist/es2019/view/BlockCard/views/UnauthorizedView.js +1 -1
- package/dist/es2019/view/EmbedCard/components/Frame.js +1 -1
- package/dist/es2019/view/EmbedCard/views/ErroredView.js +1 -1
- package/dist/es2019/view/EmbedCard/views/ResolvedView.js +1 -1
- package/dist/es2019/view/EmbedCard/views/UnresolvedView.js +1 -1
- package/dist/es2019/view/EmbedModal/components/embed-content/index.js +1 -1
- package/dist/es2019/view/EmbedModal/components/link-info/index.js +1 -1
- package/dist/es2019/view/EmbedModal/components/link-info/styled.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/actions/action/action-button/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/actions/action/action-icon/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/actions/action/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/action-group/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/block/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/element-group/index.js +5 -4
- package/dist/es2019/view/FlexibleCard/components/blocks/footer-block/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/metadata-block/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/title-block/errored/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/title-block/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/title-block/resolving/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/utils.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/common/image-icon/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/common/loading-skeleton/index.js +3 -4
- package/dist/es2019/view/FlexibleCard/components/container/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/container/layered-link/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/elements/avatar-group/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/elements/badge/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/elements/date-time/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/elements/icon/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/elements/link/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/elements/lozenge/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/elements/media/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/elements/text/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/elements/utils.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/utils.js +1 -1
- package/dist/es2019/view/HoverCard/components/HoverCardComponent.js +1 -1
- package/dist/es2019/view/HoverCard/components/HoverCardLoadingView.js +1 -1
- package/dist/es2019/view/HoverCard/components/SnippetOrPreview.js +1 -1
- package/dist/es2019/view/HoverCard/index.js +1 -1
- package/dist/es2019/view/HoverCard/styled.js +1 -1
- package/dist/es2019/view/InlineCard/Icon.js +3 -4
- package/dist/es2019/view/common/Byline.js +1 -1
- package/dist/es2019/view/common/Icon.js +1 -1
- package/dist/es2019/view/common/Metadata.js +1 -1
- package/dist/es2019/view/common/MetadataList.js +1 -1
- package/dist/es2019/view/common/ModalHeader.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/esm/view/BlockCard/components/Action.js +1 -1
- package/dist/esm/view/BlockCard/components/ActionList.js +1 -1
- package/dist/esm/view/BlockCard/components/CollaboratorList.js +1 -1
- package/dist/esm/view/BlockCard/components/Content.js +1 -1
- package/dist/esm/view/BlockCard/components/ContentFooter.js +1 -1
- package/dist/esm/view/BlockCard/components/ContentHeader.js +1 -1
- package/dist/esm/view/BlockCard/components/Emoji.js +1 -1
- package/dist/esm/view/BlockCard/components/Frame.js +1 -1
- package/dist/esm/view/BlockCard/components/Link.js +1 -1
- package/dist/esm/view/BlockCard/components/Name.js +1 -1
- package/dist/esm/view/BlockCard/components/Provider.js +1 -1
- package/dist/esm/view/BlockCard/components/Thumbnail.js +1 -1
- package/dist/esm/view/BlockCard/components/UnresolvedText.js +1 -1
- package/dist/esm/view/BlockCard/views/ErroredView.js +1 -1
- package/dist/esm/view/BlockCard/views/ForbiddenView.js +1 -1
- package/dist/esm/view/BlockCard/views/NotFoundView.js +1 -1
- package/dist/esm/view/BlockCard/views/ResolvedView.js +1 -1
- package/dist/esm/view/BlockCard/views/ResolvingView.js +1 -1
- package/dist/esm/view/BlockCard/views/UnauthorizedView.js +1 -1
- package/dist/esm/view/EmbedCard/components/Frame.js +1 -1
- package/dist/esm/view/EmbedCard/views/ErroredView.js +1 -1
- package/dist/esm/view/EmbedCard/views/ResolvedView.js +1 -1
- package/dist/esm/view/EmbedCard/views/UnresolvedView.js +1 -1
- package/dist/esm/view/EmbedModal/components/embed-content/index.js +1 -1
- package/dist/esm/view/EmbedModal/components/link-info/index.js +1 -1
- package/dist/esm/view/EmbedModal/components/link-info/styled.js +1 -1
- package/dist/esm/view/FlexibleCard/components/actions/action/action-button/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/actions/action/action-icon/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/actions/action/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/blocks/action-group/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/blocks/block/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/blocks/element-group/index.js +2 -2
- package/dist/esm/view/FlexibleCard/components/blocks/footer-block/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/blocks/metadata-block/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/blocks/title-block/errored/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/blocks/title-block/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/blocks/title-block/resolving/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/blocks/utils.js +1 -1
- package/dist/esm/view/FlexibleCard/components/common/image-icon/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/common/loading-skeleton/index.js +2 -2
- package/dist/esm/view/FlexibleCard/components/container/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/container/layered-link/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/elements/avatar-group/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/elements/badge/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/elements/date-time/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/elements/icon/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/elements/link/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/elements/lozenge/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/elements/media/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/elements/text/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/elements/utils.js +1 -1
- package/dist/esm/view/FlexibleCard/components/utils.js +1 -1
- package/dist/esm/view/HoverCard/components/HoverCardComponent.js +1 -1
- package/dist/esm/view/HoverCard/components/HoverCardLoadingView.js +1 -1
- package/dist/esm/view/HoverCard/components/SnippetOrPreview.js +1 -1
- package/dist/esm/view/HoverCard/index.js +1 -1
- package/dist/esm/view/HoverCard/styled.js +1 -1
- package/dist/esm/view/InlineCard/Icon.js +2 -2
- package/dist/esm/view/common/Byline.js +1 -1
- package/dist/esm/view/common/Icon.js +1 -1
- package/dist/esm/view/common/Metadata.js +1 -1
- package/dist/esm/view/common/MetadataList.js +1 -1
- package/dist/esm/view/common/ModalHeader.js +1 -1
- package/dist/types/view/BlockCard/components/Action.d.ts +3 -1
- package/dist/types/view/BlockCard/components/ActionList.d.ts +3 -2
- package/dist/types/view/BlockCard/components/CollaboratorList.d.ts +3 -1
- package/dist/types/view/BlockCard/components/Content.d.ts +3 -1
- package/dist/types/view/BlockCard/components/ContentFooter.d.ts +3 -1
- package/dist/types/view/BlockCard/components/ContentHeader.d.ts +3 -1
- package/dist/types/view/BlockCard/components/Emoji.d.ts +3 -1
- package/dist/types/view/BlockCard/components/Frame.d.ts +5 -3
- package/dist/types/view/BlockCard/components/Link.d.ts +3 -2
- package/dist/types/view/BlockCard/components/Name.d.ts +3 -1
- package/dist/types/view/BlockCard/components/Provider.d.ts +3 -1
- package/dist/types/view/BlockCard/components/Thumbnail.d.ts +5 -4
- package/dist/types/view/BlockCard/components/UnresolvedText.d.ts +3 -1
- package/dist/types/view/BlockCard/views/ErroredView.d.ts +3 -1
- package/dist/types/view/BlockCard/views/ForbiddenView.d.ts +3 -1
- package/dist/types/view/BlockCard/views/NotFoundView.d.ts +3 -1
- package/dist/types/view/BlockCard/views/ResolvedView.d.ts +3 -1
- package/dist/types/view/BlockCard/views/ResolvingView.d.ts +3 -2
- package/dist/types/view/BlockCard/views/UnauthorizedView.d.ts +3 -1
- package/dist/types/view/Card/index.d.ts +1 -1
- package/dist/types/view/EmbedCard/views/ErroredView.d.ts +3 -2
- package/dist/types/view/EmbedModal/components/link-info/styled.d.ts +4 -4
- package/dist/types/view/FlexibleCard/components/actions/action/types.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/blocks/element-group/index.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/blocks/element-group/types.d.ts +2 -2
- package/dist/types/view/FlexibleCard/components/blocks/types.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/blocks/utils.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/container/index.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/elements/types.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/utils.d.ts +1 -1
- package/dist/types/view/HoverCard/index.d.ts +1 -1
- package/dist/types/view/HoverCard/styled.d.ts +8 -8
- package/dist/types/view/InlineCard/ResolvingView/styled.d.ts +3 -3
- package/dist/types/view/common/Byline.d.ts +3 -1
- package/dist/types/view/common/Icon.d.ts +3 -1
- package/dist/types/view/common/Metadata.d.ts +3 -1
- package/dist/types/view/common/MetadataList.d.ts +3 -2
- package/dist/types/view/common/ModalHeader.d.ts +3 -1
- package/dist/types-ts4.0/view/BlockCard/components/Action.d.ts +3 -1
- package/dist/types-ts4.0/view/BlockCard/components/ActionList.d.ts +3 -2
- package/dist/types-ts4.0/view/BlockCard/components/CollaboratorList.d.ts +3 -1
- package/dist/types-ts4.0/view/BlockCard/components/Content.d.ts +3 -1
- package/dist/types-ts4.0/view/BlockCard/components/ContentFooter.d.ts +3 -1
- package/dist/types-ts4.0/view/BlockCard/components/ContentHeader.d.ts +3 -1
- package/dist/types-ts4.0/view/BlockCard/components/Emoji.d.ts +3 -1
- package/dist/types-ts4.0/view/BlockCard/components/Frame.d.ts +5 -3
- package/dist/types-ts4.0/view/BlockCard/components/Link.d.ts +3 -2
- package/dist/types-ts4.0/view/BlockCard/components/Name.d.ts +3 -1
- package/dist/types-ts4.0/view/BlockCard/components/Provider.d.ts +3 -1
- package/dist/types-ts4.0/view/BlockCard/components/Thumbnail.d.ts +5 -4
- package/dist/types-ts4.0/view/BlockCard/components/UnresolvedText.d.ts +3 -1
- package/dist/types-ts4.0/view/BlockCard/views/ErroredView.d.ts +3 -1
- package/dist/types-ts4.0/view/BlockCard/views/ForbiddenView.d.ts +3 -1
- package/dist/types-ts4.0/view/BlockCard/views/NotFoundView.d.ts +3 -1
- package/dist/types-ts4.0/view/BlockCard/views/ResolvedView.d.ts +3 -1
- package/dist/types-ts4.0/view/BlockCard/views/ResolvingView.d.ts +3 -2
- package/dist/types-ts4.0/view/BlockCard/views/UnauthorizedView.d.ts +3 -1
- package/dist/types-ts4.0/view/Card/index.d.ts +1 -1
- package/dist/types-ts4.0/view/EmbedCard/views/ErroredView.d.ts +3 -2
- package/dist/types-ts4.0/view/EmbedModal/components/link-info/styled.d.ts +4 -4
- package/dist/types-ts4.0/view/FlexibleCard/components/actions/action/types.d.ts +1 -1
- package/dist/types-ts4.0/view/FlexibleCard/components/blocks/element-group/index.d.ts +1 -1
- package/dist/types-ts4.0/view/FlexibleCard/components/blocks/element-group/types.d.ts +2 -2
- package/dist/types-ts4.0/view/FlexibleCard/components/blocks/types.d.ts +1 -1
- package/dist/types-ts4.0/view/FlexibleCard/components/blocks/utils.d.ts +1 -1
- package/dist/types-ts4.0/view/FlexibleCard/components/container/index.d.ts +1 -1
- package/dist/types-ts4.0/view/FlexibleCard/components/elements/types.d.ts +1 -1
- package/dist/types-ts4.0/view/FlexibleCard/components/utils.d.ts +1 -1
- package/dist/types-ts4.0/view/HoverCard/index.d.ts +1 -1
- package/dist/types-ts4.0/view/HoverCard/styled.d.ts +8 -8
- package/dist/types-ts4.0/view/InlineCard/ResolvingView/styled.d.ts +3 -3
- package/dist/types-ts4.0/view/common/Byline.d.ts +3 -1
- package/dist/types-ts4.0/view/common/Icon.d.ts +3 -1
- package/dist/types-ts4.0/view/common/Metadata.d.ts +3 -1
- package/dist/types-ts4.0/view/common/MetadataList.d.ts +3 -2
- package/dist/types-ts4.0/view/common/ModalHeader.d.ts +3 -1
- package/package.json +17 -17
- package/report.api.md +57 -50
- package/tmp/api-report-tmp.d.ts +794 -0
|
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
|
|
3
3
|
/** @jsx jsx */
|
|
4
4
|
import Popup from '@atlaskit/popup';
|
|
5
|
-
import { jsx } from '@emotion/
|
|
5
|
+
import { jsx } from '@emotion/react';
|
|
6
6
|
import React, { useCallback, useRef } from 'react';
|
|
7
7
|
import { useSmartLinkActions } from '../../../state/hooks-external/useSmartLinkActions';
|
|
8
8
|
import { useSmartLinkRenderers } from '../../../state/renderers';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useCallback, useState, useRef } from 'react';
|
|
2
|
-
import { css } from '@emotion/
|
|
2
|
+
import { css } from '@emotion/react';
|
|
3
3
|
import extractPreview from '../../../extractors/flexible/extract-preview';
|
|
4
4
|
import { PreviewBlock, SnippetBlock } from '../../FlexibleCard/components/blocks';
|
|
5
5
|
import { getTransitionStyles } from '../styled';
|
|
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
|
|
3
3
|
/** @jsx jsx */
|
|
4
4
|
import { withAnalyticsContext, withAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
5
|
-
import { jsx } from '@emotion/
|
|
5
|
+
import { jsx } from '@emotion/react';
|
|
6
6
|
import { useCallback } from 'react';
|
|
7
7
|
import { ErrorBoundary } from 'react-error-boundary';
|
|
8
8
|
import { useSmartLinkAnalytics } from '../../state/analytics';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import styled from '@emotion/styled';
|
|
2
|
-
import { keyframes } from '@emotion/
|
|
2
|
+
import { keyframes } from '@emotion/react';
|
|
3
3
|
import { token } from '@atlaskit/tokens';
|
|
4
4
|
const placeholderShimmer = keyframes`
|
|
5
5
|
0% {
|
|
@@ -43,13 +43,12 @@ export const Shimmer = styled.span`
|
|
|
43
43
|
left: 50%;
|
|
44
44
|
transform: translate(-50%, -50%);
|
|
45
45
|
background: ${token('color.skeleton.subtle', '#f6f7f8')};
|
|
46
|
-
// TODO: https://product-fabric.atlassian.net/browse/DSP-4236
|
|
47
46
|
background-image: linear-gradient(
|
|
48
47
|
to right,
|
|
49
|
-
${token('
|
|
48
|
+
${token('utility.UNSAFE_util.transparent', '#f6f7f8')} 0%,
|
|
50
49
|
${token('color.skeleton', '#edeef1')} 20%,
|
|
51
50
|
${token('color.skeleton.subtle', '#f6f7f8')} 40%,
|
|
52
|
-
${token('color.skeleton.subtle', '#f6f7f8')}100%
|
|
51
|
+
${token('color.skeleton.subtle', '#f6f7f8')} 100%
|
|
53
52
|
);
|
|
54
53
|
background-repeat: no-repeat;
|
|
55
54
|
background-size: 40px 14px;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
|
|
3
3
|
/** @jsx jsx */
|
|
4
|
-
import { jsx } from '@emotion/
|
|
4
|
+
import { jsx } from '@emotion/react';
|
|
5
5
|
import { Metadata } from './Metadata';
|
|
6
6
|
import { gs } from './utils';
|
|
7
7
|
export const metadataListClassName = 'smart-link-metadata-list';
|
package/dist/esm/version.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
2
|
|
|
3
3
|
/** @jsx jsx */
|
|
4
|
-
import { jsx } from '@emotion/
|
|
4
|
+
import { jsx } from '@emotion/react';
|
|
5
5
|
import { useState } from 'react';
|
|
6
6
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
7
7
|
import { ActionIcon } from './ActionIcon';
|
|
@@ -3,7 +3,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
3
3
|
var _excluded = ["triggerRef"];
|
|
4
4
|
|
|
5
5
|
/** @jsx jsx */
|
|
6
|
-
import { jsx } from '@emotion/
|
|
6
|
+
import { jsx } from '@emotion/react';
|
|
7
7
|
import ButtonGroup from '@atlaskit/button/button-group';
|
|
8
8
|
import Button from '@atlaskit/button/standard-button';
|
|
9
9
|
import DropdownMenu, { DropdownItem, DropdownItemGroup } from '@atlaskit/dropdown-menu';
|
|
@@ -5,7 +5,7 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
5
5
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
6
6
|
|
|
7
7
|
/** @jsx jsx */
|
|
8
|
-
import { jsx } from '@emotion/
|
|
8
|
+
import { jsx } from '@emotion/react';
|
|
9
9
|
import React from 'react';
|
|
10
10
|
import { N20A, N30A, B200, N40A, N50A } from '@atlaskit/theme/colors';
|
|
11
11
|
import { token } from '@atlaskit/tokens';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
-
import { jsx } from '@emotion/
|
|
2
|
+
import { jsx } from '@emotion/react';
|
|
3
3
|
import { fontSize } from '@atlaskit/theme/constants';
|
|
4
4
|
import { gs } from '../../common/utils';
|
|
5
5
|
export var blockCardContentHeaderNameClassName = 'block-card-content-header-name';
|
|
@@ -5,7 +5,7 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
5
5
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
6
6
|
|
|
7
7
|
/** @jsx jsx */
|
|
8
|
-
import { jsx } from '@emotion/
|
|
8
|
+
import { jsx } from '@emotion/react';
|
|
9
9
|
import { gs, mq } from '../../common/utils';
|
|
10
10
|
export var Thumbnail = function Thumbnail(props) {
|
|
11
11
|
return props.color ? jsx(ThumbnailWithBackground, props) : jsx(ThumbnailDefault, props);
|
|
@@ -5,7 +5,7 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
5
5
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
6
6
|
|
|
7
7
|
/** @jsx jsx */
|
|
8
|
-
import { jsx } from '@emotion/
|
|
8
|
+
import { jsx } from '@emotion/react';
|
|
9
9
|
import { FormattedMessage } from 'react-intl-next';
|
|
10
10
|
import { useMemo } from 'react';
|
|
11
11
|
import { R300 } from '@atlaskit/theme/colors';
|
|
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
3
3
|
|
|
4
4
|
/** @jsx jsx */
|
|
5
|
-
import { jsx } from '@emotion/
|
|
5
|
+
import { jsx } from '@emotion/react';
|
|
6
6
|
import { FormattedMessage } from 'react-intl-next';
|
|
7
7
|
import { R300 } from '@atlaskit/theme/colors';
|
|
8
8
|
import { token } from '@atlaskit/tokens';
|
|
@@ -5,7 +5,7 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
5
5
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
6
6
|
|
|
7
7
|
/** @jsx jsx */
|
|
8
|
-
import { jsx } from '@emotion/
|
|
8
|
+
import { jsx } from '@emotion/react';
|
|
9
9
|
import React from 'react';
|
|
10
10
|
import { FormattedMessage } from 'react-intl-next';
|
|
11
11
|
import { R300 } from '@atlaskit/theme/colors';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
-
import { jsx } from '@emotion/
|
|
2
|
+
import { jsx } from '@emotion/react';
|
|
3
3
|
import DocumentFilledIcon from '@atlaskit/icon/glyph/document-filled';
|
|
4
4
|
import { N50, N90 } from '@atlaskit/theme/colors';
|
|
5
5
|
import { fontSize } from '@atlaskit/theme/constants';
|
|
@@ -6,7 +6,7 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
6
6
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
7
7
|
|
|
8
8
|
/** @jsx jsx */
|
|
9
|
-
import { jsx } from '@emotion/
|
|
9
|
+
import { jsx } from '@emotion/react';
|
|
10
10
|
import { FormattedMessage } from 'react-intl-next';
|
|
11
11
|
import { Frame } from '../components/Frame';
|
|
12
12
|
import { Provider } from '../components/Provider';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
2
|
|
|
3
3
|
/** @jsx jsx */
|
|
4
|
-
import { jsx } from '@emotion/
|
|
4
|
+
import { jsx } from '@emotion/react';
|
|
5
5
|
import React, { useState } from 'react';
|
|
6
6
|
import { getIframeSandboxAttribute } from '../../../utils';
|
|
7
7
|
export var Frame = /*#__PURE__*/React.forwardRef(function (_ref, iframeRef) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
|
|
3
3
|
/** @jsx jsx */
|
|
4
|
-
import { jsx } from '@emotion/
|
|
4
|
+
import { jsx } from '@emotion/react';
|
|
5
5
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
6
6
|
import { fontSize } from '@atlaskit/theme/constants';
|
|
7
7
|
import { FormattedMessage } from 'react-intl-next';
|
|
@@ -3,7 +3,7 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
|
|
|
3
3
|
var _templateObject;
|
|
4
4
|
|
|
5
5
|
/** @jsx jsx */
|
|
6
|
-
import { css, jsx } from '@emotion/
|
|
6
|
+
import { css, jsx } from '@emotion/react';
|
|
7
7
|
import { getIframeSandboxAttribute } from '../../../../utils';
|
|
8
8
|
var iframeCss = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n width: 100%;\n height: calc(100vh - 208px);\n"])));
|
|
9
9
|
|
|
@@ -2,7 +2,7 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
|
|
|
2
2
|
|
|
3
3
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
4
4
|
|
|
5
|
-
import { css } from '@emotion/
|
|
5
|
+
import { css } from '@emotion/react';
|
|
6
6
|
export var containerStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n align-items: center;\n display: flex;\n gap: 8px;\n justify-content: space-between;\n // AK ModalBody has 2px padding top and bottom.\n // Using 14px here to create 16px gap between\n // link info and iframe\n padding: 24px 24px 14px 24px;\n"])));
|
|
7
7
|
var iconSize = '24px';
|
|
8
8
|
export var iconCss = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n img,\n span,\n svg {\n height: ", ";\n min-height: ", ";\n max-height: ", ";\n width: ", ";\n min-width: ", ";\n max-width: ", ";\n }\n"])), iconSize, iconSize, iconSize, iconSize, iconSize, iconSize);
|
|
@@ -4,7 +4,7 @@ var _templateObject, _templateObject2;
|
|
|
4
4
|
|
|
5
5
|
/** @jsx jsx */
|
|
6
6
|
import React, { useCallback } from 'react';
|
|
7
|
-
import { css, jsx } from '@emotion/
|
|
7
|
+
import { css, jsx } from '@emotion/react';
|
|
8
8
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
9
9
|
import Tooltip from '@atlaskit/tooltip';
|
|
10
10
|
import { SmartLinkSize } from '../../../../../../constants';
|
|
@@ -4,7 +4,7 @@ var _templateObject;
|
|
|
4
4
|
|
|
5
5
|
/** @jsx jsx */
|
|
6
6
|
import React from 'react';
|
|
7
|
-
import { css, jsx } from '@emotion/
|
|
7
|
+
import { css, jsx } from '@emotion/react';
|
|
8
8
|
import { SmartLinkSize } from '../../../../../../constants';
|
|
9
9
|
import { tokens } from '../../../../../../utils/token';
|
|
10
10
|
import { getIconSizeStyles } from '../../../utils';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { jsx } from '@emotion/
|
|
3
|
+
import { jsx } from '@emotion/react';
|
|
4
4
|
import { SmartLinkSize } from '../../../../../constants';
|
|
5
5
|
import ActionButton from './action-button';
|
|
6
6
|
import ActionDropdownItem from './action-dropdown-item';
|
|
@@ -9,7 +9,7 @@ var _templateObject;
|
|
|
9
9
|
/** @jsx jsx */
|
|
10
10
|
import { useCallback, useMemo, useState } from 'react';
|
|
11
11
|
import { FormattedMessage } from 'react-intl-next';
|
|
12
|
-
import { css, jsx } from '@emotion/
|
|
12
|
+
import { css, jsx } from '@emotion/react';
|
|
13
13
|
import ButtonGroup from '@atlaskit/button/button-group';
|
|
14
14
|
import Tooltip from '@atlaskit/tooltip';
|
|
15
15
|
import { renderActionItems } from '../utils';
|
|
@@ -4,7 +4,7 @@ var _templateObject;
|
|
|
4
4
|
|
|
5
5
|
/** @jsx jsx */
|
|
6
6
|
import React, { useEffect } from 'react';
|
|
7
|
-
import { css, jsx } from '@emotion/
|
|
7
|
+
import { css, jsx } from '@emotion/react';
|
|
8
8
|
import { ElementName, SmartLinkDirection, SmartLinkSize } from '../../../../../constants';
|
|
9
9
|
import { getBaseStyles, getGapSize, highlightRemoveStyles, renderChildren } from '../utils';
|
|
10
10
|
|
|
@@ -4,7 +4,7 @@ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _temp
|
|
|
4
4
|
|
|
5
5
|
/** @jsx jsx */
|
|
6
6
|
import React from 'react';
|
|
7
|
-
import { css, jsx } from '@emotion/
|
|
7
|
+
import { css, jsx } from '@emotion/react';
|
|
8
8
|
import { SmartLinkAlignment, SmartLinkDirection, SmartLinkSize, SmartLinkWidth } from '../../../../../constants';
|
|
9
9
|
import { getBaseStyles, getGapSize, renderChildren } from '../utils';
|
|
10
10
|
import { getMaxLineHeight, getTruncateStyles } from '../../utils';
|
|
@@ -24,7 +24,7 @@ var getGapStyles = function getGapStyles(size, align) {
|
|
|
24
24
|
var gap = getGapSize(size);
|
|
25
25
|
|
|
26
26
|
if (align === SmartLinkAlignment.Right) {
|
|
27
|
-
return css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n > span {\n margin-left: ", "rem;\n
|
|
27
|
+
return css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n > span {\n margin-left: ", "rem;\n }\n\n > span:first-child {\n margin-left: initial;\n }\n "])), gap);
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
return css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n > span {\n margin-right: ", "rem;\n &:last-child {\n margin-right: initial;\n }\n }\n "])), gap);
|
|
@@ -4,7 +4,7 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
|
|
|
4
4
|
var _templateObject;
|
|
5
5
|
|
|
6
6
|
import React from 'react';
|
|
7
|
-
import { css } from '@emotion/
|
|
7
|
+
import { css } from '@emotion/react';
|
|
8
8
|
import { SmartLinkAlignment, SmartLinkDirection, SmartLinkSize, SmartLinkStatus, SmartLinkWidth } from '../../../../../constants';
|
|
9
9
|
import Block from '../block';
|
|
10
10
|
import ElementGroup from '../element-group';
|
|
@@ -6,7 +6,7 @@ var _excluded = ["maxLines", "status", "testId", "primary", "secondary"];
|
|
|
6
6
|
var _templateObject;
|
|
7
7
|
|
|
8
8
|
import React from 'react';
|
|
9
|
-
import { css } from '@emotion/
|
|
9
|
+
import { css } from '@emotion/react';
|
|
10
10
|
import { SmartLinkAlignment, SmartLinkDirection, SmartLinkSize, SmartLinkStatus, SmartLinkWidth } from '../../../../../constants';
|
|
11
11
|
import { renderElementItems } from '../utils';
|
|
12
12
|
import Block from '../block';
|
|
@@ -8,7 +8,7 @@ var _templateObject, _templateObject2;
|
|
|
8
8
|
/** @jsx jsx */
|
|
9
9
|
import React from 'react';
|
|
10
10
|
import { FormattedMessage } from 'react-intl-next';
|
|
11
|
-
import { css, jsx } from '@emotion/
|
|
11
|
+
import { css, jsx } from '@emotion/react';
|
|
12
12
|
import { LinkIcon } from '../../../elements';
|
|
13
13
|
import Block from '../../block';
|
|
14
14
|
import { SmartLinkAlignment, SmartLinkDirection, SmartLinkSize } from '../../../../../../constants';
|
|
@@ -7,7 +7,7 @@ var _excluded = ["actions", "anchorTarget", "hideTitleTooltip", "maxLines", "onA
|
|
|
7
7
|
var _templateObject, _templateObject2;
|
|
8
8
|
|
|
9
9
|
import React, { useCallback, useState } from 'react';
|
|
10
|
-
import { css } from '@emotion/
|
|
10
|
+
import { css } from '@emotion/react';
|
|
11
11
|
import { SmartLinkStatus } from '../../../../../constants';
|
|
12
12
|
import TitleBlockResolvedView from './resolved';
|
|
13
13
|
import TitleBlockErroredView from './errored';
|
|
@@ -4,7 +4,7 @@ var _excluded = ["actionGroup", "testId", "title"];
|
|
|
4
4
|
|
|
5
5
|
/** @jsx jsx */
|
|
6
6
|
import React from 'react';
|
|
7
|
-
import { jsx } from '@emotion/
|
|
7
|
+
import { jsx } from '@emotion/react';
|
|
8
8
|
import Block from '../../block';
|
|
9
9
|
import { SmartLinkSize } from '../../../../../../constants';
|
|
10
10
|
import LoadingSkeleton from '../../../common/loading-skeleton';
|
|
@@ -13,7 +13,7 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
13
13
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
14
14
|
|
|
15
15
|
import React from 'react';
|
|
16
|
-
import { css } from '@emotion/
|
|
16
|
+
import { css } from '@emotion/react';
|
|
17
17
|
import { ElementName, SmartLinkDirection, SmartLinkSize } from '../../../../constants';
|
|
18
18
|
import * as Elements from '../elements';
|
|
19
19
|
import * as Actions from '../actions';
|
|
@@ -4,7 +4,7 @@ var _templateObject, _templateObject2;
|
|
|
4
4
|
|
|
5
5
|
/** @jsx jsx */
|
|
6
6
|
import React from 'react';
|
|
7
|
-
import { css, jsx, keyframes } from '@emotion/
|
|
7
|
+
import { css, jsx, keyframes } from '@emotion/react';
|
|
8
8
|
import { token } from '@atlaskit/tokens';
|
|
9
9
|
|
|
10
10
|
var LoadingSkeleton = function LoadingSkeleton(_ref) {
|
|
@@ -12,7 +12,7 @@ var LoadingSkeleton = function LoadingSkeleton(_ref) {
|
|
|
12
12
|
width = _ref.width,
|
|
13
13
|
height = _ref.height;
|
|
14
14
|
var animationNameStyles = keyframes(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n 0% { background-position: 50% 0; }\n 100% { background-position: -50% 0; }\n "])));
|
|
15
|
-
var styles = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n width: ", "rem;\n height: ", "rem;\n border-radius: 2px;\n user-select: none;\n background: ", ";\n
|
|
15
|
+
var styles = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n width: ", "rem;\n height: ", "rem;\n border-radius: 2px;\n user-select: none;\n background: ", ";\n background-image: linear-gradient(\n to right,\n ", " 0%,\n ", " 20%,\n ", " 40%,\n ", " 100%\n );\n background-repeat: no-repeat;\n background-size: 280% 100%;\n display: inline-block;\n\n animation-duration: 1s;\n animation-fill-mode: forwards;\n animation-iteration-count: infinite;\n animation-name: ", ";\n animation-timing-function: linear;\n "])), width, height, token('color.skeleton.subtle', '#f6f7f8'), token('utility.UNSAFE_util.transparent', '#f6f7f8'), token('color.skeleton', '#edeef1'), token('color.skeleton.subtle', '#f6f7f8'), token('color.skeleton.subtle', '#f6f7f8'), animationNameStyles);
|
|
16
16
|
return jsx("span", {
|
|
17
17
|
css: styles,
|
|
18
18
|
"data-testid": testId
|
|
@@ -4,7 +4,7 @@ var _templateObject, _templateObject2, _templateObject3;
|
|
|
4
4
|
|
|
5
5
|
/** @jsx jsx */
|
|
6
6
|
import React, { useContext } from 'react';
|
|
7
|
-
import { css, jsx } from '@emotion/
|
|
7
|
+
import { css, jsx } from '@emotion/react';
|
|
8
8
|
import { SmartLinkSize, SmartLinkTheme } from '../../../../constants';
|
|
9
9
|
import { isFlexibleUiBlock, isFlexibleUiTitleBlock } from '../../../../utils/flexible';
|
|
10
10
|
import { tokens } from '../../../../utils/token';
|
|
@@ -4,7 +4,7 @@ var _templateObject;
|
|
|
4
4
|
|
|
5
5
|
/** @jsx jsx */
|
|
6
6
|
import React from 'react';
|
|
7
|
-
import { jsx, css } from '@emotion/
|
|
7
|
+
import { jsx, css } from '@emotion/react';
|
|
8
8
|
var styles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n // Stretch the invisible link over the whole of the post.\n // Hide the link\u2019s text.\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n overflow-x: hidden;\n text-indent: 100%;\n white-space: nowrap;\n\n // Needs a heightened specificity to trump other anchor.\n // Stack it under all other links in the post text.\n a&.layered-link {\n position: absolute;\n z-index: 0;\n }\n\n // When hovering over the layered link, any hidden action buttons inside\n // the Container should become visible.\n // As actions resides inside blocks and layered link is expected to be\n // on the same level of blocks. That makes the blocks, e.g. TitleBlock,\n // its sibling. Using general sibling combinator here to apply styling to\n // all the siblings of layered link.\n // The general sibling combinator (~) separates two selectors and matches all\n // iterations of the second element, that are following the first element\n // (though not necessarily immediately), and are children of the same parent\n // element.\n &:hover ~ * {\n .actions-button-group {\n opacity: 1;\n }\n }\n"])));
|
|
9
9
|
/**
|
|
10
10
|
* An anchor component to cover the entire container creating a clickable area.
|
|
@@ -4,7 +4,7 @@ var _templateObject, _templateObject2;
|
|
|
4
4
|
|
|
5
5
|
/** @jsx jsx */
|
|
6
6
|
import React from 'react';
|
|
7
|
-
import { css, jsx } from '@emotion/
|
|
7
|
+
import { css, jsx } from '@emotion/react';
|
|
8
8
|
import AtlaskitAvatarGroup from '@atlaskit/avatar-group';
|
|
9
9
|
import { SmartLinkSize } from '../../../../../constants';
|
|
10
10
|
var MAX_COUNT = 4;
|
|
@@ -5,7 +5,7 @@ var _templateObject, _templateObject2, _templateObject3, _messageMapper;
|
|
|
5
5
|
|
|
6
6
|
/** @jsx jsx */
|
|
7
7
|
import React from 'react';
|
|
8
|
-
import { css, jsx } from '@emotion/
|
|
8
|
+
import { css, jsx } from '@emotion/react';
|
|
9
9
|
import { tokens } from '../../../../../utils/token';
|
|
10
10
|
import { getFormattedMessage, getIconSizeStyles } from '../../utils';
|
|
11
11
|
import { IconType } from '../../../../../constants';
|
|
@@ -6,7 +6,7 @@ var _templateObject;
|
|
|
6
6
|
/** @jsx jsx */
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import { useIntl, FormattedMessage } from 'react-intl-next';
|
|
9
|
-
import { css, jsx } from '@emotion/
|
|
9
|
+
import { css, jsx } from '@emotion/react';
|
|
10
10
|
import { getTruncateStyles } from '../../utils';
|
|
11
11
|
import { tokens } from '../../../../../utils/token';
|
|
12
12
|
import { selectUnit } from '@formatjs/intl-utils';
|
|
@@ -5,7 +5,7 @@ var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
|
5
5
|
/** @jsx jsx */
|
|
6
6
|
import React, { useMemo } from 'react';
|
|
7
7
|
import LinkIcon from '@atlaskit/icon/glyph/link';
|
|
8
|
-
import { css, jsx } from '@emotion/
|
|
8
|
+
import { css, jsx } from '@emotion/react';
|
|
9
9
|
import { SmartLinkPosition, SmartLinkSize } from '../../../../../constants';
|
|
10
10
|
import AtlaskitIcon from '../../common/atlaskit-icon';
|
|
11
11
|
import ImageIcon from '../../common/image-icon';
|
|
@@ -4,7 +4,7 @@ var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
|
4
4
|
|
|
5
5
|
/** @jsx jsx */
|
|
6
6
|
import React, { useMemo } from 'react';
|
|
7
|
-
import { css, jsx } from '@emotion/
|
|
7
|
+
import { css, jsx } from '@emotion/react';
|
|
8
8
|
import Tooltip from '@atlaskit/tooltip';
|
|
9
9
|
import { SmartLinkSize, SmartLinkTheme } from '../../../../../constants';
|
|
10
10
|
import { getLinkLineHeight, getLinkSizeStyles, getTruncateStyles, hasWhiteSpace } from '../../utils';
|