@atlaskit/smart-card 32.7.1 → 32.7.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/analytics.spec.yaml +112 -53
- package/dist/cjs/classNames.js +14 -82
- package/dist/cjs/extractors/common/actions/extractActions.js +1 -67
- package/dist/cjs/i18n/cs.js +2 -4
- package/dist/cjs/i18n/da.js +2 -4
- package/dist/cjs/i18n/de.js +2 -4
- package/dist/cjs/i18n/en.js +2 -4
- package/dist/cjs/i18n/en_GB.js +2 -4
- package/dist/cjs/i18n/en_ZZ.js +2 -4
- package/dist/cjs/i18n/es.js +8 -10
- package/dist/cjs/i18n/fi.js +5 -7
- package/dist/cjs/i18n/fr.js +2 -4
- package/dist/cjs/i18n/hu.js +2 -4
- package/dist/cjs/i18n/it.js +2 -4
- package/dist/cjs/i18n/ja.js +8 -10
- package/dist/cjs/i18n/ko.js +2 -4
- package/dist/cjs/i18n/nb.js +2 -4
- package/dist/cjs/i18n/nl.js +2 -4
- package/dist/cjs/i18n/pl.js +2 -4
- package/dist/cjs/i18n/pt_BR.js +2 -4
- package/dist/cjs/i18n/ru.js +2 -4
- package/dist/cjs/i18n/sv.js +2 -4
- package/dist/cjs/i18n/th.js +2 -4
- package/dist/cjs/i18n/tr.js +8 -10
- package/dist/cjs/i18n/uk.js +2 -4
- package/dist/cjs/i18n/vi.js +2 -4
- package/dist/cjs/i18n/zh.js +2 -4
- package/dist/cjs/i18n/zh_TW.js +2 -4
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/BlockCard/components/Action.js +1 -58
- package/dist/cjs/view/BlockCard/index.js +29 -218
- package/dist/cjs/view/CardWithUrl/component.js +27 -14
- package/dist/cjs/view/CardWithUrl/loader.js +21 -7
- package/dist/cjs/view/HoverCard/components/views/resolved/index.js +35 -8
- package/dist/cjs/view/HoverCard/index.js +25 -8
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/classNames.js +12 -10
- package/dist/es2019/extractors/common/actions/extractActions.js +1 -55
- package/dist/es2019/i18n/cs.js +2 -4
- package/dist/es2019/i18n/da.js +2 -4
- package/dist/es2019/i18n/de.js +2 -4
- package/dist/es2019/i18n/en.js +2 -4
- package/dist/es2019/i18n/en_GB.js +2 -4
- package/dist/es2019/i18n/en_ZZ.js +2 -4
- package/dist/es2019/i18n/es.js +8 -10
- package/dist/es2019/i18n/fi.js +5 -7
- package/dist/es2019/i18n/fr.js +2 -4
- package/dist/es2019/i18n/hu.js +2 -4
- package/dist/es2019/i18n/it.js +2 -4
- package/dist/es2019/i18n/ja.js +8 -10
- package/dist/es2019/i18n/ko.js +2 -4
- package/dist/es2019/i18n/nb.js +2 -4
- package/dist/es2019/i18n/nl.js +2 -4
- package/dist/es2019/i18n/pl.js +2 -4
- package/dist/es2019/i18n/pt_BR.js +2 -4
- package/dist/es2019/i18n/ru.js +2 -4
- package/dist/es2019/i18n/sv.js +2 -4
- package/dist/es2019/i18n/th.js +2 -4
- package/dist/es2019/i18n/tr.js +8 -10
- package/dist/es2019/i18n/uk.js +2 -4
- package/dist/es2019/i18n/vi.js +2 -4
- package/dist/es2019/i18n/zh.js +2 -4
- package/dist/es2019/i18n/zh_TW.js +2 -4
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/BlockCard/components/Action.js +1 -48
- package/dist/es2019/view/BlockCard/index.js +27 -163
- package/dist/es2019/view/CardWithUrl/component.js +27 -14
- package/dist/es2019/view/CardWithUrl/loader.js +21 -7
- package/dist/es2019/view/HoverCard/components/views/resolved/index.js +33 -9
- package/dist/es2019/view/HoverCard/index.js +26 -8
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/classNames.js +12 -10
- package/dist/esm/extractors/common/actions/extractActions.js +1 -65
- package/dist/esm/i18n/cs.js +2 -4
- package/dist/esm/i18n/da.js +2 -4
- package/dist/esm/i18n/de.js +2 -4
- package/dist/esm/i18n/en.js +2 -4
- package/dist/esm/i18n/en_GB.js +2 -4
- package/dist/esm/i18n/en_ZZ.js +2 -4
- package/dist/esm/i18n/es.js +8 -10
- package/dist/esm/i18n/fi.js +5 -7
- package/dist/esm/i18n/fr.js +2 -4
- package/dist/esm/i18n/hu.js +2 -4
- package/dist/esm/i18n/it.js +2 -4
- package/dist/esm/i18n/ja.js +8 -10
- package/dist/esm/i18n/ko.js +2 -4
- package/dist/esm/i18n/nb.js +2 -4
- package/dist/esm/i18n/nl.js +2 -4
- package/dist/esm/i18n/pl.js +2 -4
- package/dist/esm/i18n/pt_BR.js +2 -4
- package/dist/esm/i18n/ru.js +2 -4
- package/dist/esm/i18n/sv.js +2 -4
- package/dist/esm/i18n/th.js +2 -4
- package/dist/esm/i18n/tr.js +8 -10
- package/dist/esm/i18n/uk.js +2 -4
- package/dist/esm/i18n/vi.js +2 -4
- package/dist/esm/i18n/zh.js +2 -4
- package/dist/esm/i18n/zh_TW.js +2 -4
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/BlockCard/components/Action.js +1 -54
- package/dist/esm/view/BlockCard/index.js +29 -164
- package/dist/esm/view/CardWithUrl/component.js +27 -14
- package/dist/esm/view/CardWithUrl/loader.js +21 -7
- package/dist/esm/view/HoverCard/components/views/resolved/index.js +36 -9
- package/dist/esm/view/HoverCard/index.js +25 -8
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/types/classNames.d.ts +12 -10
- package/dist/types/common/analytics/generated/analytics.types.d.ts +35 -1
- package/dist/types/extractors/common/actions/extractActions.d.ts +0 -8
- package/dist/types/extractors/common/actions/types.d.ts +0 -9
- package/dist/types/i18n/cs.d.ts +1 -3
- package/dist/types/i18n/da.d.ts +1 -3
- package/dist/types/i18n/de.d.ts +1 -3
- package/dist/types/i18n/en.d.ts +1 -3
- package/dist/types/i18n/en_GB.d.ts +1 -3
- package/dist/types/i18n/en_ZZ.d.ts +1 -3
- package/dist/types/i18n/es.d.ts +1 -3
- package/dist/types/i18n/fi.d.ts +1 -3
- package/dist/types/i18n/fr.d.ts +1 -3
- package/dist/types/i18n/hu.d.ts +1 -3
- package/dist/types/i18n/it.d.ts +1 -3
- package/dist/types/i18n/ja.d.ts +1 -3
- package/dist/types/i18n/ko.d.ts +1 -3
- package/dist/types/i18n/nb.d.ts +1 -3
- package/dist/types/i18n/nl.d.ts +1 -3
- package/dist/types/i18n/pl.d.ts +1 -3
- package/dist/types/i18n/pt_BR.d.ts +1 -3
- package/dist/types/i18n/ru.d.ts +1 -3
- package/dist/types/i18n/sv.d.ts +1 -3
- package/dist/types/i18n/th.d.ts +1 -3
- package/dist/types/i18n/tr.d.ts +1 -3
- package/dist/types/i18n/uk.d.ts +1 -3
- package/dist/types/i18n/vi.d.ts +1 -3
- package/dist/types/i18n/zh.d.ts +1 -3
- package/dist/types/i18n/zh_TW.d.ts +1 -3
- package/dist/types/types.d.ts +1 -0
- package/dist/types/utils/analytics/click.d.ts +1 -1
- package/dist/types/view/BlockCard/components/Action.d.ts +0 -4
- package/dist/types/view/BlockCard/index.d.ts +2 -17
- package/dist/types/view/BlockCard/types.d.ts +1 -6
- package/dist/types/view/Card/index.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/actions/action/action-stack-item/action-button.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/utils.d.ts +1 -1
- package/dist/types/view/HoverCard/components/CustomPopupContainer.d.ts +1 -1
- package/dist/types/view/HoverCard/components/views/resolved/index.d.ts +1 -1
- package/dist/types-ts4.5/classNames.d.ts +12 -10
- package/dist/types-ts4.5/common/analytics/generated/analytics.types.d.ts +35 -1
- package/dist/types-ts4.5/extractors/common/actions/extractActions.d.ts +0 -8
- package/dist/types-ts4.5/extractors/common/actions/types.d.ts +0 -9
- package/dist/types-ts4.5/i18n/cs.d.ts +1 -3
- package/dist/types-ts4.5/i18n/da.d.ts +1 -3
- package/dist/types-ts4.5/i18n/de.d.ts +1 -3
- package/dist/types-ts4.5/i18n/en.d.ts +1 -3
- package/dist/types-ts4.5/i18n/en_GB.d.ts +1 -3
- package/dist/types-ts4.5/i18n/en_ZZ.d.ts +1 -3
- package/dist/types-ts4.5/i18n/es.d.ts +1 -3
- package/dist/types-ts4.5/i18n/fi.d.ts +1 -3
- package/dist/types-ts4.5/i18n/fr.d.ts +1 -3
- package/dist/types-ts4.5/i18n/hu.d.ts +1 -3
- package/dist/types-ts4.5/i18n/it.d.ts +1 -3
- package/dist/types-ts4.5/i18n/ja.d.ts +1 -3
- package/dist/types-ts4.5/i18n/ko.d.ts +1 -3
- package/dist/types-ts4.5/i18n/nb.d.ts +1 -3
- package/dist/types-ts4.5/i18n/nl.d.ts +1 -3
- package/dist/types-ts4.5/i18n/pl.d.ts +1 -3
- package/dist/types-ts4.5/i18n/pt_BR.d.ts +1 -3
- package/dist/types-ts4.5/i18n/ru.d.ts +1 -3
- package/dist/types-ts4.5/i18n/sv.d.ts +1 -3
- package/dist/types-ts4.5/i18n/th.d.ts +1 -3
- package/dist/types-ts4.5/i18n/tr.d.ts +1 -3
- package/dist/types-ts4.5/i18n/uk.d.ts +1 -3
- package/dist/types-ts4.5/i18n/vi.d.ts +1 -3
- package/dist/types-ts4.5/i18n/zh.d.ts +1 -3
- package/dist/types-ts4.5/i18n/zh_TW.d.ts +1 -3
- package/dist/types-ts4.5/types.d.ts +1 -0
- package/dist/types-ts4.5/utils/analytics/click.d.ts +1 -1
- package/dist/types-ts4.5/view/BlockCard/components/Action.d.ts +0 -4
- package/dist/types-ts4.5/view/BlockCard/index.d.ts +2 -17
- package/dist/types-ts4.5/view/BlockCard/types.d.ts +1 -6
- package/dist/types-ts4.5/view/Card/index.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/action/action-stack-item/action-button.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/utils.d.ts +1 -1
- package/dist/types-ts4.5/view/HoverCard/components/CustomPopupContainer.d.ts +1 -1
- package/dist/types-ts4.5/view/HoverCard/components/views/resolved/index.d.ts +1 -1
- package/package.json +1 -1
- package/dist/cjs/extractors/block/index.js +0 -96
- package/dist/cjs/extractors/block/types.js +0 -5
- package/dist/cjs/extractors/common/actions/extractPreviewAction.js +0 -106
- package/dist/cjs/state/reducers/types.js +0 -5
- package/dist/cjs/view/BlockCard/actions/AuthorizeAction.js +0 -22
- package/dist/cjs/view/BlockCard/actions/DownloadAction.js +0 -21
- package/dist/cjs/view/BlockCard/actions/PreviewAction.js +0 -35
- package/dist/cjs/view/BlockCard/actions/RetryAction.js +0 -35
- package/dist/cjs/view/BlockCard/actions/ViewAction.js +0 -21
- package/dist/cjs/view/BlockCard/components/ActionIcon.js +0 -57
- package/dist/cjs/view/BlockCard/components/ActionList.js +0 -78
- package/dist/cjs/view/BlockCard/components/CollaboratorList.js +0 -52
- package/dist/cjs/view/BlockCard/components/Content.js +0 -45
- package/dist/cjs/view/BlockCard/components/ContentFooter.js +0 -41
- package/dist/cjs/view/BlockCard/components/ContentHeader.js +0 -45
- package/dist/cjs/view/BlockCard/components/Emoji.js +0 -33
- package/dist/cjs/view/BlockCard/components/Link.js +0 -31
- package/dist/cjs/view/BlockCard/components/Name.js +0 -61
- package/dist/cjs/view/BlockCard/components/Provider.js +0 -57
- package/dist/cjs/view/BlockCard/components/Thumbnail.js +0 -62
- package/dist/cjs/view/BlockCard/components/UnresolvedText.js +0 -24
- package/dist/cjs/view/BlockCard/views/ErroredView.js +0 -91
- package/dist/cjs/view/BlockCard/views/ForbiddenView.js +0 -121
- package/dist/cjs/view/BlockCard/views/NotFoundView.js +0 -82
- package/dist/cjs/view/BlockCard/views/ResolvedView.js +0 -143
- package/dist/cjs/view/BlockCard/views/ResolvingView.js +0 -57
- package/dist/cjs/view/BlockCard/views/UnauthorizedView.js +0 -72
- package/dist/cjs/view/BlockCard/views/styled.js +0 -18
- package/dist/cjs/view/CardWithData/component.js +0 -66
- package/dist/cjs/view/CardWithData/types.js +0 -5
- package/dist/cjs/view/common/Byline.js +0 -52
- package/dist/cjs/view/common/Metadata.js +0 -56
- package/dist/cjs/view/common/MetadataList.js +0 -43
- package/dist/es2019/extractors/block/index.js +0 -86
- package/dist/es2019/extractors/block/types.js +0 -1
- package/dist/es2019/extractors/common/actions/extractPreviewAction.js +0 -91
- package/dist/es2019/state/reducers/types.js +0 -1
- package/dist/es2019/view/BlockCard/actions/AuthorizeAction.js +0 -9
- package/dist/es2019/view/BlockCard/actions/DownloadAction.js +0 -11
- package/dist/es2019/view/BlockCard/actions/PreviewAction.js +0 -23
- package/dist/es2019/view/BlockCard/actions/RetryAction.js +0 -8
- package/dist/es2019/view/BlockCard/actions/ViewAction.js +0 -11
- package/dist/es2019/view/BlockCard/components/ActionIcon.js +0 -51
- package/dist/es2019/view/BlockCard/components/ActionList.js +0 -63
- package/dist/es2019/view/BlockCard/components/CollaboratorList.js +0 -42
- package/dist/es2019/view/BlockCard/components/Content.js +0 -36
- package/dist/es2019/view/BlockCard/components/ContentFooter.js +0 -32
- package/dist/es2019/view/BlockCard/components/ContentHeader.js +0 -39
- package/dist/es2019/view/BlockCard/components/Emoji.js +0 -26
- package/dist/es2019/view/BlockCard/components/Link.js +0 -24
- package/dist/es2019/view/BlockCard/components/Name.js +0 -54
- package/dist/es2019/view/BlockCard/components/Provider.js +0 -51
- package/dist/es2019/view/BlockCard/components/Thumbnail.js +0 -58
- package/dist/es2019/view/BlockCard/components/UnresolvedText.js +0 -18
- package/dist/es2019/view/BlockCard/views/ErroredView.js +0 -78
- package/dist/es2019/view/BlockCard/views/ForbiddenView.js +0 -104
- package/dist/es2019/view/BlockCard/views/NotFoundView.js +0 -71
- package/dist/es2019/view/BlockCard/views/ResolvedView.js +0 -121
- package/dist/es2019/view/BlockCard/views/ResolvingView.js +0 -46
- package/dist/es2019/view/BlockCard/views/UnauthorizedView.js +0 -60
- package/dist/es2019/view/BlockCard/views/styled.js +0 -10
- package/dist/es2019/view/CardWithData/component.js +0 -43
- package/dist/es2019/view/CardWithData/types.js +0 -1
- package/dist/es2019/view/common/Byline.js +0 -44
- package/dist/es2019/view/common/Metadata.js +0 -49
- package/dist/es2019/view/common/MetadataList.js +0 -34
- package/dist/esm/extractors/block/index.js +0 -89
- package/dist/esm/extractors/block/types.js +0 -1
- package/dist/esm/extractors/common/actions/extractPreviewAction.js +0 -99
- package/dist/esm/state/reducers/types.js +0 -1
- package/dist/esm/view/BlockCard/actions/AuthorizeAction.js +0 -15
- package/dist/esm/view/BlockCard/actions/DownloadAction.js +0 -14
- package/dist/esm/view/BlockCard/actions/PreviewAction.js +0 -30
- package/dist/esm/view/BlockCard/actions/RetryAction.js +0 -28
- package/dist/esm/view/BlockCard/actions/ViewAction.js +0 -14
- package/dist/esm/view/BlockCard/components/ActionIcon.js +0 -50
- package/dist/esm/view/BlockCard/components/ActionList.js +0 -69
- package/dist/esm/view/BlockCard/components/CollaboratorList.js +0 -44
- package/dist/esm/view/BlockCard/components/Content.js +0 -38
- package/dist/esm/view/BlockCard/components/ContentFooter.js +0 -34
- package/dist/esm/view/BlockCard/components/ContentHeader.js +0 -38
- package/dist/esm/view/BlockCard/components/Emoji.js +0 -25
- package/dist/esm/view/BlockCard/components/Link.js +0 -24
- package/dist/esm/view/BlockCard/components/Name.js +0 -54
- package/dist/esm/view/BlockCard/components/Provider.js +0 -50
- package/dist/esm/view/BlockCard/components/Thumbnail.js +0 -57
- package/dist/esm/view/BlockCard/components/UnresolvedText.js +0 -17
- package/dist/esm/view/BlockCard/views/ErroredView.js +0 -87
- package/dist/esm/view/BlockCard/views/ForbiddenView.js +0 -113
- package/dist/esm/view/BlockCard/views/NotFoundView.js +0 -78
- package/dist/esm/view/BlockCard/views/ResolvedView.js +0 -135
- package/dist/esm/view/BlockCard/views/ResolvingView.js +0 -49
- package/dist/esm/view/BlockCard/views/UnauthorizedView.js +0 -68
- package/dist/esm/view/BlockCard/views/styled.js +0 -10
- package/dist/esm/view/CardWithData/component.js +0 -59
- package/dist/esm/view/CardWithData/types.js +0 -1
- package/dist/esm/view/common/Byline.js +0 -45
- package/dist/esm/view/common/Metadata.js +0 -48
- package/dist/esm/view/common/MetadataList.js +0 -35
- package/dist/types/extractors/block/index.d.ts +0 -10
- package/dist/types/extractors/block/types.d.ts +0 -13
- package/dist/types/extractors/common/actions/extractPreviewAction.d.ts +0 -14
- package/dist/types/state/reducers/types.d.ts +0 -4
- package/dist/types/view/BlockCard/actions/AuthorizeAction.d.ts +0 -2
- package/dist/types/view/BlockCard/actions/DownloadAction.d.ts +0 -4
- package/dist/types/view/BlockCard/actions/PreviewAction.d.ts +0 -27
- package/dist/types/view/BlockCard/actions/RetryAction.d.ts +0 -2
- package/dist/types/view/BlockCard/actions/ViewAction.d.ts +0 -4
- package/dist/types/view/BlockCard/components/ActionIcon.d.ts +0 -12
- package/dist/types/view/BlockCard/components/ActionList.d.ts +0 -10
- package/dist/types/view/BlockCard/components/CollaboratorList.d.ts +0 -18
- package/dist/types/view/BlockCard/components/Content.d.ts +0 -18
- package/dist/types/view/BlockCard/components/ContentFooter.d.ts +0 -12
- package/dist/types/view/BlockCard/components/ContentHeader.d.ts +0 -19
- package/dist/types/view/BlockCard/components/Emoji.d.ts +0 -10
- package/dist/types/view/BlockCard/components/Link.d.ts +0 -11
- package/dist/types/view/BlockCard/components/Name.d.ts +0 -21
- package/dist/types/view/BlockCard/components/Provider.d.ts +0 -11
- package/dist/types/view/BlockCard/components/Thumbnail.d.ts +0 -13
- package/dist/types/view/BlockCard/components/UnresolvedText.d.ts +0 -11
- package/dist/types/view/BlockCard/views/ErroredView.d.ts +0 -19
- package/dist/types/view/BlockCard/views/ForbiddenView.d.ts +0 -35
- package/dist/types/view/BlockCard/views/NotFoundView.d.ts +0 -26
- package/dist/types/view/BlockCard/views/ResolvedView.d.ts +0 -46
- package/dist/types/view/BlockCard/views/ResolvingView.d.ts +0 -18
- package/dist/types/view/BlockCard/views/UnauthorizedView.d.ts +0 -19
- package/dist/types/view/BlockCard/views/styled.d.ts +0 -5
- package/dist/types/view/CardWithData/component.d.ts +0 -5
- package/dist/types/view/CardWithData/types.d.ts +0 -15
- package/dist/types/view/common/Byline.d.ts +0 -13
- package/dist/types/view/common/Metadata.d.ts +0 -13
- package/dist/types/view/common/MetadataList.d.ts +0 -12
- package/dist/types-ts4.5/extractors/block/index.d.ts +0 -10
- package/dist/types-ts4.5/extractors/block/types.d.ts +0 -13
- package/dist/types-ts4.5/extractors/common/actions/extractPreviewAction.d.ts +0 -14
- package/dist/types-ts4.5/state/reducers/types.d.ts +0 -4
- package/dist/types-ts4.5/view/BlockCard/actions/AuthorizeAction.d.ts +0 -2
- package/dist/types-ts4.5/view/BlockCard/actions/DownloadAction.d.ts +0 -4
- package/dist/types-ts4.5/view/BlockCard/actions/PreviewAction.d.ts +0 -27
- package/dist/types-ts4.5/view/BlockCard/actions/RetryAction.d.ts +0 -2
- package/dist/types-ts4.5/view/BlockCard/actions/ViewAction.d.ts +0 -4
- package/dist/types-ts4.5/view/BlockCard/components/ActionIcon.d.ts +0 -12
- package/dist/types-ts4.5/view/BlockCard/components/ActionList.d.ts +0 -10
- package/dist/types-ts4.5/view/BlockCard/components/CollaboratorList.d.ts +0 -18
- package/dist/types-ts4.5/view/BlockCard/components/Content.d.ts +0 -18
- package/dist/types-ts4.5/view/BlockCard/components/ContentFooter.d.ts +0 -12
- package/dist/types-ts4.5/view/BlockCard/components/ContentHeader.d.ts +0 -19
- package/dist/types-ts4.5/view/BlockCard/components/Emoji.d.ts +0 -10
- package/dist/types-ts4.5/view/BlockCard/components/Link.d.ts +0 -11
- package/dist/types-ts4.5/view/BlockCard/components/Name.d.ts +0 -21
- package/dist/types-ts4.5/view/BlockCard/components/Provider.d.ts +0 -11
- package/dist/types-ts4.5/view/BlockCard/components/Thumbnail.d.ts +0 -13
- package/dist/types-ts4.5/view/BlockCard/components/UnresolvedText.d.ts +0 -11
- package/dist/types-ts4.5/view/BlockCard/views/ErroredView.d.ts +0 -19
- package/dist/types-ts4.5/view/BlockCard/views/ForbiddenView.d.ts +0 -35
- package/dist/types-ts4.5/view/BlockCard/views/NotFoundView.d.ts +0 -26
- package/dist/types-ts4.5/view/BlockCard/views/ResolvedView.d.ts +0 -46
- package/dist/types-ts4.5/view/BlockCard/views/ResolvingView.d.ts +0 -18
- package/dist/types-ts4.5/view/BlockCard/views/UnauthorizedView.d.ts +0 -19
- package/dist/types-ts4.5/view/BlockCard/views/styled.d.ts +0 -5
- package/dist/types-ts4.5/view/CardWithData/component.d.ts +0 -5
- package/dist/types-ts4.5/view/CardWithData/types.d.ts +0 -15
- package/dist/types-ts4.5/view/common/Byline.d.ts +0 -13
- package/dist/types-ts4.5/view/common/Metadata.d.ts +0 -13
- package/dist/types-ts4.5/view/common/MetadataList.d.ts +0 -12
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
6
|
-
import { css, jsx } from '@emotion/react';
|
|
7
|
-
import { gs, mq } from '../../common/utils';
|
|
8
|
-
export const contentFooterClassName = 'smart-link-content-footer';
|
|
9
|
-
const flexStyles = css({
|
|
10
|
-
display: 'flex'
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
14
|
-
const baseStyles = mq({
|
|
15
|
-
flexDirection: ['column', 'row'],
|
|
16
|
-
flexGrow: [1, 'unset'],
|
|
17
|
-
alignItems: ['unset', 'center'],
|
|
18
|
-
marginTop: [gs(1), gs(1.5)]
|
|
19
|
-
});
|
|
20
|
-
export const ContentFooter = ({
|
|
21
|
-
children,
|
|
22
|
-
hasSpaceBetween = false
|
|
23
|
-
}) => jsx("div", {
|
|
24
|
-
css: [flexStyles, baseStyles,
|
|
25
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
26
|
-
mq({
|
|
27
|
-
justifyContent: [hasSpaceBetween ? 'space-between' : 'flex-end', 'space-between']
|
|
28
|
-
})]
|
|
29
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
30
|
-
,
|
|
31
|
-
className: contentFooterClassName
|
|
32
|
-
}, children);
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
6
|
-
import { css, jsx } from '@emotion/react';
|
|
7
|
-
import { useMouseDownEvent } from '../../../state/analytics/useLinkClicked';
|
|
8
|
-
/**
|
|
9
|
-
* Class name for selecting non-flexible block card header
|
|
10
|
-
*
|
|
11
|
-
* @deprecated {@link https://hello.jira.atlassian.cloud/browse/ENGHEALTH-6878 Internal documentation for deprecation (no external access)}
|
|
12
|
-
* Using this selctor is deprecated as once the flexible block card feature flag is removed, this class will no longer be used.
|
|
13
|
-
*/
|
|
14
|
-
export const blockCardContentHeaderClassName = 'block-card-content-header';
|
|
15
|
-
const styles = css({
|
|
16
|
-
display: 'flex',
|
|
17
|
-
alignItems: 'flex-start',
|
|
18
|
-
// EDM-713: fixes copy-paste from renderer to editor for Firefox
|
|
19
|
-
// due to HTML its unwrapping behaviour on paste.
|
|
20
|
-
MozUserSelect: 'none'
|
|
21
|
-
});
|
|
22
|
-
export const ContentHeader = ({
|
|
23
|
-
onClick,
|
|
24
|
-
link,
|
|
25
|
-
children
|
|
26
|
-
}) => {
|
|
27
|
-
const onMouseDown = useMouseDownEvent();
|
|
28
|
-
return jsx("a", {
|
|
29
|
-
onClick: onClick,
|
|
30
|
-
onMouseDown: onMouseDown,
|
|
31
|
-
href: link,
|
|
32
|
-
target: "_blank",
|
|
33
|
-
css: styles,
|
|
34
|
-
"data-trello-do-not-use-override": "block-card-content-header"
|
|
35
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
36
|
-
,
|
|
37
|
-
className: blockCardContentHeaderClassName
|
|
38
|
-
}, children);
|
|
39
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import React from 'react';
|
|
6
|
-
|
|
7
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
|
-
import { css, jsx } from '@emotion/react';
|
|
9
|
-
import { gs } from '../../common/utils';
|
|
10
|
-
const styles = css({
|
|
11
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
12
|
-
height: gs(2.5),
|
|
13
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
14
|
-
width: gs(2),
|
|
15
|
-
display: 'flex',
|
|
16
|
-
alignItems: 'center',
|
|
17
|
-
justifyContent: 'center',
|
|
18
|
-
marginTop: "var(--ds-space-negative-025, -2px)"
|
|
19
|
-
});
|
|
20
|
-
export const Emoji = ({
|
|
21
|
-
emoji
|
|
22
|
-
}) => {
|
|
23
|
-
return jsx("span", {
|
|
24
|
-
css: styles
|
|
25
|
-
}, emoji);
|
|
26
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
6
|
-
import { css, jsx } from '@emotion/react';
|
|
7
|
-
import { B400 } from '@atlaskit/theme/colors';
|
|
8
|
-
const styles = css({
|
|
9
|
-
color: `var(--ds-link, ${B400})`,
|
|
10
|
-
wordBreak: 'break-all'
|
|
11
|
-
});
|
|
12
|
-
export const Link = ({
|
|
13
|
-
url,
|
|
14
|
-
testId = 'block-card',
|
|
15
|
-
className
|
|
16
|
-
}) => {
|
|
17
|
-
return jsx("span", {
|
|
18
|
-
"data-testid": `${testId}-link`
|
|
19
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
20
|
-
,
|
|
21
|
-
className: className,
|
|
22
|
-
css: styles
|
|
23
|
-
}, url);
|
|
24
|
-
};
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
6
|
-
import { css, jsx } from '@emotion/react';
|
|
7
|
-
import { gs } from '../../common/utils';
|
|
8
|
-
/**
|
|
9
|
-
* Class name for selecting non-flexible block card header name
|
|
10
|
-
*
|
|
11
|
-
* @deprecated {@link https://hello.jira.atlassian.cloud/browse/ENGHEALTH-6878 Internal documentation for deprecation (no external access)}
|
|
12
|
-
* Using this selctor is deprecated as once the flexible block card feature flag is removed, this class will no longer be used.
|
|
13
|
-
*/
|
|
14
|
-
export const blockCardContentHeaderNameClassName = 'block-card-content-header-name';
|
|
15
|
-
const baseStyles = css({
|
|
16
|
-
font: "var(--ds-font-heading-xsmall, normal 600 14px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
17
|
-
/**
|
|
18
|
-
* The xsmall heading token has a line height of 20px in the modernized/refreshed themes,
|
|
19
|
-
* but 16px in legacy theme which causes alignment issues.
|
|
20
|
-
* Remove this lineHeight once all consuming apps are using modernized/refreshed themes.
|
|
21
|
-
*/
|
|
22
|
-
lineHeight: '20px',
|
|
23
|
-
// Spec: show max two lines.
|
|
24
|
-
display: '-webkit-box',
|
|
25
|
-
overflow: 'hidden',
|
|
26
|
-
textOverflow: 'ellipsis',
|
|
27
|
-
wordBreak: 'break-word',
|
|
28
|
-
WebkitLineClamp: 2,
|
|
29
|
-
WebkitBoxOrient: 'vertical',
|
|
30
|
-
// Fallback options.
|
|
31
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
32
|
-
maxHeight: gs(6)
|
|
33
|
-
});
|
|
34
|
-
export const Name = ({
|
|
35
|
-
name,
|
|
36
|
-
isLeftPadded = true,
|
|
37
|
-
testId,
|
|
38
|
-
textColor
|
|
39
|
-
}) => {
|
|
40
|
-
return jsx("span", {
|
|
41
|
-
css: [baseStyles,
|
|
42
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
43
|
-
{
|
|
44
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
45
|
-
marginLeft: isLeftPadded ? gs(1) : '0',
|
|
46
|
-
color: textColor ? textColor : 'inherit'
|
|
47
|
-
}],
|
|
48
|
-
"data-testid": testId,
|
|
49
|
-
"data-trello-do-not-use-override": "block-card-content-header-name"
|
|
50
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
51
|
-
,
|
|
52
|
-
className: blockCardContentHeaderNameClassName
|
|
53
|
-
}, name);
|
|
54
|
-
};
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
6
|
-
import { css, jsx } from '@emotion/react';
|
|
7
|
-
import { N300 } from '@atlaskit/theme/colors';
|
|
8
|
-
import { gs } from '../../common/utils';
|
|
9
|
-
const wrapperStyles = css({
|
|
10
|
-
display: 'flex',
|
|
11
|
-
alignItems: 'center',
|
|
12
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
13
|
-
fontSize: gs(1.5),
|
|
14
|
-
whiteSpace: 'normal'
|
|
15
|
-
});
|
|
16
|
-
const imgStyles = css({
|
|
17
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
18
|
-
height: gs(1.5),
|
|
19
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
20
|
-
width: gs(1.5)
|
|
21
|
-
});
|
|
22
|
-
const textStyles = css({
|
|
23
|
-
color: `var(--ds-text-subtlest, ${N300})`,
|
|
24
|
-
margin: 0,
|
|
25
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
26
|
-
marginLeft: gs(0.5),
|
|
27
|
-
// EDM-713: fixes copy-paste from renderer to editor for Firefox
|
|
28
|
-
// due to HTML its unwrapping behaviour on paste.
|
|
29
|
-
MozUserSelect: 'none'
|
|
30
|
-
});
|
|
31
|
-
export const Provider = ({
|
|
32
|
-
name,
|
|
33
|
-
icon
|
|
34
|
-
}) => {
|
|
35
|
-
let iconToRender = icon || null;
|
|
36
|
-
if (typeof icon === 'string') {
|
|
37
|
-
iconToRender =
|
|
38
|
-
// eslint-disable-next-line jsx-a11y/alt-text
|
|
39
|
-
jsx("img", {
|
|
40
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
41
|
-
className: "smart-link-icon",
|
|
42
|
-
css: imgStyles,
|
|
43
|
-
src: icon
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
return jsx("div", {
|
|
47
|
-
css: wrapperStyles
|
|
48
|
-
}, iconToRender, jsx("span", {
|
|
49
|
-
css: textStyles
|
|
50
|
-
}, name));
|
|
51
|
-
};
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
6
|
-
import { css, jsx } from '@emotion/react';
|
|
7
|
-
import { gs, mq } from '../../common/utils';
|
|
8
|
-
export const Thumbnail = props => {
|
|
9
|
-
return props.color ? jsx(ThumbnailWithBackground, props) : jsx(ThumbnailDefault, props);
|
|
10
|
-
};
|
|
11
|
-
const sharedStyles = {
|
|
12
|
-
// The dimensions of the image are set in this manner
|
|
13
|
-
// in order for `flex` to respect this value.
|
|
14
|
-
minWidth: [gs(13), gs(20)],
|
|
15
|
-
maxWidth: [gs(13), gs(20)]
|
|
16
|
-
};
|
|
17
|
-
export const ThumbnailDefault = ({
|
|
18
|
-
src,
|
|
19
|
-
testId
|
|
20
|
-
}) => {
|
|
21
|
-
return jsx("div", {
|
|
22
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
23
|
-
css: mq({
|
|
24
|
-
...sharedStyles,
|
|
25
|
-
backgroundSize: 'cover',
|
|
26
|
-
backgroundRepeat: 'no-repeat',
|
|
27
|
-
backgroundPosition: '50% 50%',
|
|
28
|
-
backgroundImage: `url(${src})`
|
|
29
|
-
}),
|
|
30
|
-
"data-testid": testId,
|
|
31
|
-
"data-trello-do-not-use-override": testId
|
|
32
|
-
});
|
|
33
|
-
};
|
|
34
|
-
const thumbnailImgStyles = css({
|
|
35
|
-
height: '90px',
|
|
36
|
-
width: '90px'
|
|
37
|
-
});
|
|
38
|
-
export const ThumbnailWithBackground = ({
|
|
39
|
-
src,
|
|
40
|
-
color,
|
|
41
|
-
testId
|
|
42
|
-
}) => {
|
|
43
|
-
return jsx("div", {
|
|
44
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
45
|
-
css: mq({
|
|
46
|
-
...sharedStyles,
|
|
47
|
-
backgroundColor: color,
|
|
48
|
-
display: 'flex',
|
|
49
|
-
alignItems: 'center',
|
|
50
|
-
justifyContent: 'center'
|
|
51
|
-
}),
|
|
52
|
-
"data-testid": testId,
|
|
53
|
-
"data-trello-do-not-use-override": testId
|
|
54
|
-
}, jsx("img", {
|
|
55
|
-
src: src,
|
|
56
|
-
css: thumbnailImgStyles
|
|
57
|
-
}));
|
|
58
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
6
|
-
import { css, jsx } from '@emotion/react';
|
|
7
|
-
const styles = css({
|
|
8
|
-
display: 'flex',
|
|
9
|
-
alignItems: 'center'
|
|
10
|
-
});
|
|
11
|
-
export const UnresolvedText = ({
|
|
12
|
-
icon,
|
|
13
|
-
text
|
|
14
|
-
}) => {
|
|
15
|
-
return jsx("span", {
|
|
16
|
-
css: styles
|
|
17
|
-
}, icon, text);
|
|
18
|
-
};
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import { useMemo } from 'react';
|
|
6
|
-
|
|
7
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
|
-
import { jsx } from '@emotion/react';
|
|
9
|
-
import { FormattedMessage } from 'react-intl-next';
|
|
10
|
-
import WarningIcon from '@atlaskit/icon/utility/migration/warning';
|
|
11
|
-
import { Flex, xcss } from '@atlaskit/primitives';
|
|
12
|
-
import { R300 } from '@atlaskit/theme/colors';
|
|
13
|
-
import { messages } from '../../../messages';
|
|
14
|
-
import { Byline } from '../../common/Byline';
|
|
15
|
-
import { RetryAction } from '../actions/RetryAction';
|
|
16
|
-
import { ActionList } from '../components/ActionList';
|
|
17
|
-
import { Content } from '../components/Content';
|
|
18
|
-
import { ContentFooter } from '../components/ContentFooter';
|
|
19
|
-
import { ContentHeader } from '../components/ContentHeader';
|
|
20
|
-
import { Frame } from '../components/Frame';
|
|
21
|
-
import { Link } from '../components/Link';
|
|
22
|
-
import { UnresolvedText } from '../components/UnresolvedText';
|
|
23
|
-
import { handleClickCommon } from '../utils/handlers';
|
|
24
|
-
const textDescriptionProps = {
|
|
25
|
-
...messages.could_not_load_link
|
|
26
|
-
};
|
|
27
|
-
const iconWrapperStyles = xcss({
|
|
28
|
-
marginInline: 'space.025'
|
|
29
|
-
});
|
|
30
|
-
/**
|
|
31
|
-
* Class name for selecting non-flexible errored block card
|
|
32
|
-
*
|
|
33
|
-
* @deprecated {@link https://hello.jira.atlassian.cloud/browse/ENGHEALTH-6878 Internal documentation for deprecation (no external access)}
|
|
34
|
-
* Using this selctor is deprecated as once the flexible block card feature flag is removed, this class will no longer be used.
|
|
35
|
-
*/
|
|
36
|
-
export const blockCardErroredViewClassName = 'block-card-errored-view';
|
|
37
|
-
export const ErroredView = ({
|
|
38
|
-
isSelected = false,
|
|
39
|
-
testId = 'block-card-errored-view',
|
|
40
|
-
link = '',
|
|
41
|
-
onClick = () => {},
|
|
42
|
-
onRetry,
|
|
43
|
-
inheritDimensions = false
|
|
44
|
-
}) => {
|
|
45
|
-
const handleClick = event => handleClickCommon(event, onClick);
|
|
46
|
-
const actions = useMemo(() => onRetry ? [RetryAction(onRetry)] : [], [onRetry]);
|
|
47
|
-
return jsx(Frame, {
|
|
48
|
-
isSelected: isSelected,
|
|
49
|
-
testId: testId
|
|
50
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
51
|
-
,
|
|
52
|
-
className: blockCardErroredViewClassName,
|
|
53
|
-
isFluidHeight: true,
|
|
54
|
-
inheritDimensions: inheritDimensions
|
|
55
|
-
}, jsx(Content, {
|
|
56
|
-
isCompact: true
|
|
57
|
-
}, jsx("div", null, jsx(ContentHeader, {
|
|
58
|
-
onClick: handleClick,
|
|
59
|
-
link: link
|
|
60
|
-
}, jsx(Link, {
|
|
61
|
-
url: link,
|
|
62
|
-
testId: testId
|
|
63
|
-
})), jsx(Byline, null, jsx(UnresolvedText, {
|
|
64
|
-
icon: jsx(Flex, {
|
|
65
|
-
alignItems: "center",
|
|
66
|
-
xcss: iconWrapperStyles
|
|
67
|
-
}, jsx(WarningIcon, {
|
|
68
|
-
label: "errored-warning-icon",
|
|
69
|
-
LEGACY_size: "small",
|
|
70
|
-
color: `var(--ds-icon-warning, ${R300})`,
|
|
71
|
-
testId: `${testId}-warning-icon`,
|
|
72
|
-
LEGACY_margin: `0 ${"var(--ds-space-negative-025, -2px)"} 0 ${"var(--ds-space-negative-025, -2px)"}`
|
|
73
|
-
})),
|
|
74
|
-
text: jsx(FormattedMessage, textDescriptionProps)
|
|
75
|
-
}))), jsx(ContentFooter, null, jsx(ActionList, {
|
|
76
|
-
items: actions
|
|
77
|
-
}))));
|
|
78
|
-
};
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
/**
|
|
3
|
-
* @jsxRuntime classic
|
|
4
|
-
* @jsx jsx
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
|
-
import { jsx } from '@emotion/react';
|
|
9
|
-
import { FormattedMessage } from 'react-intl-next';
|
|
10
|
-
import LockIcon from '@atlaskit/icon/utility/migration/lock-locked--lock-filled';
|
|
11
|
-
import { Flex, xcss } from '@atlaskit/primitives';
|
|
12
|
-
import { R300 } from '@atlaskit/theme/colors';
|
|
13
|
-
import { messages } from '../../../messages';
|
|
14
|
-
import { Byline } from '../../common/Byline';
|
|
15
|
-
import { ActionList } from '../components/ActionList';
|
|
16
|
-
import { Content } from '../components/Content';
|
|
17
|
-
import { ContentFooter } from '../components/ContentFooter';
|
|
18
|
-
import { ContentHeader } from '../components/ContentHeader';
|
|
19
|
-
import { Frame } from '../components/Frame';
|
|
20
|
-
import { Link } from '../components/Link';
|
|
21
|
-
import { Provider } from '../components/Provider';
|
|
22
|
-
import { UnresolvedText } from '../components/UnresolvedText';
|
|
23
|
-
import { handleClickCommon } from '../utils/handlers';
|
|
24
|
-
const iconWrapperStyles = xcss({
|
|
25
|
-
marginRight: 'space.050'
|
|
26
|
-
});
|
|
27
|
-
/**
|
|
28
|
-
* Class name for selecting non-flexible forbidden block card
|
|
29
|
-
*
|
|
30
|
-
* @deprecated {@link https://hello.jira.atlassian.cloud/browse/ENGHEALTH-6878 Internal documentation for deprecation (no external access)}
|
|
31
|
-
* Using this selctor is deprecated as once the flexible block card feature flag is removed, this class will no longer be used.
|
|
32
|
-
*/
|
|
33
|
-
export const blockCardForbiddenViewClassName = 'block-card-forbidden-view';
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* Class name for selecting link inside non-flexible forbidden block card
|
|
37
|
-
*
|
|
38
|
-
* @deprecated {@link https://hello.jira.atlassian.cloud/browse/ENGHEALTH-6878 Internal documentation for deprecation (no external access)}
|
|
39
|
-
* Using this selctor is deprecated as once the flexible block card feature flag is removed, this class will no longer be used.
|
|
40
|
-
*/
|
|
41
|
-
export const blockCardForbiddenViewLinkClassName = 'block-card-forbidden-view-link';
|
|
42
|
-
export const ForbiddenView = ({
|
|
43
|
-
context = {
|
|
44
|
-
text: ''
|
|
45
|
-
},
|
|
46
|
-
isSelected = false,
|
|
47
|
-
actions = [],
|
|
48
|
-
testId = 'block-card-forbidden-view',
|
|
49
|
-
link = '',
|
|
50
|
-
onClick = () => {},
|
|
51
|
-
requestAccessContext = {},
|
|
52
|
-
actionOptions
|
|
53
|
-
}) => {
|
|
54
|
-
const handleClick = event => handleClickCommon(event, onClick);
|
|
55
|
-
const {
|
|
56
|
-
action,
|
|
57
|
-
descriptiveMessageKey = 'invalid_permissions_description',
|
|
58
|
-
hostname = '',
|
|
59
|
-
buttonDisabled
|
|
60
|
-
} = requestAccessContext;
|
|
61
|
-
const items = action !== undefined && !(buttonDisabled !== null && buttonDisabled !== void 0 ? buttonDisabled : false) ? [...actions, action] : actions;
|
|
62
|
-
return jsx(Frame, {
|
|
63
|
-
isSelected: isSelected,
|
|
64
|
-
testId: testId
|
|
65
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
66
|
-
,
|
|
67
|
-
className: blockCardForbiddenViewClassName,
|
|
68
|
-
isFluidHeight: true
|
|
69
|
-
}, jsx(Content, {
|
|
70
|
-
isCompact: true
|
|
71
|
-
}, jsx("div", null, jsx(ContentHeader, {
|
|
72
|
-
onClick: handleClick,
|
|
73
|
-
link: link
|
|
74
|
-
}, jsx(Link, {
|
|
75
|
-
url: link,
|
|
76
|
-
testId: testId
|
|
77
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
78
|
-
,
|
|
79
|
-
className: blockCardForbiddenViewLinkClassName
|
|
80
|
-
})), jsx(Byline, null, jsx(UnresolvedText, {
|
|
81
|
-
icon: jsx(Flex, {
|
|
82
|
-
alignItems: "center",
|
|
83
|
-
xcss: iconWrapperStyles
|
|
84
|
-
}, jsx(LockIcon, {
|
|
85
|
-
label: "forbidden-lock-icon",
|
|
86
|
-
LEGACY_size: "small",
|
|
87
|
-
color: `var(--ds-icon-danger, ${R300})`,
|
|
88
|
-
testId: `${testId}-lock-icon`,
|
|
89
|
-
LEGACY_margin: `0 ${"var(--ds-space-negative-050, -4px)"} 0 0`
|
|
90
|
-
})),
|
|
91
|
-
text: jsx(FormattedMessage, _extends({}, messages[descriptiveMessageKey], {
|
|
92
|
-
values: {
|
|
93
|
-
product: context.text,
|
|
94
|
-
context: context.text,
|
|
95
|
-
hostname
|
|
96
|
-
}
|
|
97
|
-
}))
|
|
98
|
-
}))), jsx(ContentFooter, null, jsx(Provider, {
|
|
99
|
-
name: context.text,
|
|
100
|
-
icon: context.icon
|
|
101
|
-
}), !(actionOptions !== null && actionOptions !== void 0 && actionOptions.hide) && jsx(ActionList, {
|
|
102
|
-
items: items
|
|
103
|
-
}))));
|
|
104
|
-
};
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import React from 'react';
|
|
6
|
-
|
|
7
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
|
-
import { jsx } from '@emotion/react';
|
|
9
|
-
import { FormattedMessage } from 'react-intl-next';
|
|
10
|
-
import WarningIcon from '@atlaskit/icon/glyph/warning';
|
|
11
|
-
import { R300 } from '@atlaskit/theme/colors';
|
|
12
|
-
import { messages } from '../../../messages';
|
|
13
|
-
import { Byline } from '../../common/Byline';
|
|
14
|
-
import { Content } from '../components/Content';
|
|
15
|
-
import { ContentFooter } from '../components/ContentFooter';
|
|
16
|
-
import { ContentHeader } from '../components/ContentHeader';
|
|
17
|
-
import { Frame } from '../components/Frame';
|
|
18
|
-
import { Link } from '../components/Link';
|
|
19
|
-
import { Provider } from '../components/Provider';
|
|
20
|
-
import { UnresolvedText } from '../components/UnresolvedText';
|
|
21
|
-
import { handleClickCommon } from '../utils/handlers';
|
|
22
|
-
const textDescriptionProps = {
|
|
23
|
-
...messages.not_found_description
|
|
24
|
-
};
|
|
25
|
-
/**
|
|
26
|
-
* Class name for selecting non-flexible not-found block card
|
|
27
|
-
*
|
|
28
|
-
* @deprecated {@link https://hello.jira.atlassian.cloud/browse/ENGHEALTH-6878 Internal documentation for deprecation (no external access)}
|
|
29
|
-
* Using this selctor is deprecated as once the flexible block card feature flag is removed, this class will no longer be used.
|
|
30
|
-
*/
|
|
31
|
-
export const blockCardNotFoundViewClassName = 'block-card-not-found-view';
|
|
32
|
-
export const NotFoundView = ({
|
|
33
|
-
context = {
|
|
34
|
-
text: ''
|
|
35
|
-
},
|
|
36
|
-
isSelected = false,
|
|
37
|
-
testId = 'block-card-not-found-view',
|
|
38
|
-
link = '',
|
|
39
|
-
onClick = () => {}
|
|
40
|
-
}) => {
|
|
41
|
-
const handleClick = event => handleClickCommon(event, onClick);
|
|
42
|
-
return jsx(Frame, {
|
|
43
|
-
isSelected: isSelected,
|
|
44
|
-
testId: testId
|
|
45
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
46
|
-
,
|
|
47
|
-
className: blockCardNotFoundViewClassName,
|
|
48
|
-
isFluidHeight: true
|
|
49
|
-
}, jsx(Content, {
|
|
50
|
-
isCompact: true
|
|
51
|
-
}, jsx("div", null, jsx(ContentHeader, {
|
|
52
|
-
onClick: handleClick,
|
|
53
|
-
link: link
|
|
54
|
-
}, jsx(Link, {
|
|
55
|
-
url: link,
|
|
56
|
-
testId: testId
|
|
57
|
-
})), jsx(Byline, null, jsx(UnresolvedText, {
|
|
58
|
-
icon:
|
|
59
|
-
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19513
|
|
60
|
-
jsx(WarningIcon, {
|
|
61
|
-
label: "not-found-warning-icon",
|
|
62
|
-
size: "small",
|
|
63
|
-
primaryColor: `var(--ds-icon-warning, ${R300})`,
|
|
64
|
-
testId: `${testId}-warning-icon`
|
|
65
|
-
}),
|
|
66
|
-
text: jsx(FormattedMessage, textDescriptionProps)
|
|
67
|
-
}))), jsx(ContentFooter, null, jsx(Provider, {
|
|
68
|
-
name: context.text,
|
|
69
|
-
icon: context.icon
|
|
70
|
-
}))));
|
|
71
|
-
};
|