@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,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.default = void 0;
|
|
8
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
|
-
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
10
|
-
var _react = _interopRequireDefault(require("react"));
|
|
11
|
-
var _reactIntlNext = require("react-intl-next");
|
|
12
|
-
var _messages = require("../../../messages");
|
|
13
|
-
var _utils = require("../../EmbedModal/utils");
|
|
14
|
-
var _excluded = ["details"];
|
|
15
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
16
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
17
|
-
/*
|
|
18
|
-
Most of these are optional as we are being fault-tolerant
|
|
19
|
-
However src, details, icon, title, and providerName are STRONGLY encouraged
|
|
20
|
-
*/
|
|
21
|
-
var _default = exports.default = function _default(_ref) {
|
|
22
|
-
var details = _ref.details,
|
|
23
|
-
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
24
|
-
return {
|
|
25
|
-
id: 'preview-content',
|
|
26
|
-
text: /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, _messages.messages.preview_improved),
|
|
27
|
-
promise: function promise() {
|
|
28
|
-
return (0, _utils.openEmbedModal)(_objectSpread({
|
|
29
|
-
providerName: 'Preview',
|
|
30
|
-
showModal: true,
|
|
31
|
-
onClose: function onClose() {}
|
|
32
|
-
}, rest));
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.RetryAction = void 0;
|
|
8
|
-
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
9
|
-
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
10
|
-
var _react = _interopRequireDefault(require("react"));
|
|
11
|
-
var _reactIntlNext = require("react-intl-next");
|
|
12
|
-
var _messages = require("../../../messages");
|
|
13
|
-
var RetryAction = exports.RetryAction = function RetryAction(handler) {
|
|
14
|
-
return {
|
|
15
|
-
id: 'try-again',
|
|
16
|
-
promise: function () {
|
|
17
|
-
var _promise = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
|
18
|
-
return _regenerator.default.wrap(function _callee$(_context) {
|
|
19
|
-
while (1) switch (_context.prev = _context.next) {
|
|
20
|
-
case 0:
|
|
21
|
-
return _context.abrupt("return", handler());
|
|
22
|
-
case 1:
|
|
23
|
-
case "end":
|
|
24
|
-
return _context.stop();
|
|
25
|
-
}
|
|
26
|
-
}, _callee);
|
|
27
|
-
}));
|
|
28
|
-
function promise() {
|
|
29
|
-
return _promise.apply(this, arguments);
|
|
30
|
-
}
|
|
31
|
-
return promise;
|
|
32
|
-
}(),
|
|
33
|
-
text: /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, _messages.messages.try_again)
|
|
34
|
-
};
|
|
35
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.ViewAction = void 0;
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _reactIntlNext = require("react-intl-next");
|
|
10
|
-
var _messages = require("../../../messages");
|
|
11
|
-
var _utils = require("../../../utils");
|
|
12
|
-
var ViewAction = exports.ViewAction = function ViewAction(_ref) {
|
|
13
|
-
var url = _ref.url;
|
|
14
|
-
return {
|
|
15
|
-
id: 'view-content',
|
|
16
|
-
text: /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, _messages.messages.view),
|
|
17
|
-
promise: function promise() {
|
|
18
|
-
return (0, _utils.openUrl)(url);
|
|
19
|
-
}
|
|
20
|
-
};
|
|
21
|
-
};
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.spinnerStyles = exports.ActionIcon = void 0;
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _checkMarkCheck = _interopRequireDefault(require("@atlaskit/icon/core/migration/check-mark--check"));
|
|
10
|
-
var _closeCross = _interopRequireDefault(require("@atlaskit/icon/core/migration/close--cross"));
|
|
11
|
-
/*
|
|
12
|
-
These styles are taken fro the spinner style for button. There was not an
|
|
13
|
-
easy way to share tehm between the two components.
|
|
14
|
-
*/
|
|
15
|
-
var spinnerStyles = exports.spinnerStyles = {
|
|
16
|
-
display: 'flex',
|
|
17
|
-
position: 'absolute',
|
|
18
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
19
|
-
left: '50%',
|
|
20
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
21
|
-
top: '50%',
|
|
22
|
-
transform: 'translate(-50%, -50%)'
|
|
23
|
-
};
|
|
24
|
-
var ActionIcon = exports.ActionIcon = function ActionIcon(_ref) {
|
|
25
|
-
var state = _ref.state;
|
|
26
|
-
switch (state) {
|
|
27
|
-
case 'init':
|
|
28
|
-
case 'loading':
|
|
29
|
-
return null;
|
|
30
|
-
case 'success':
|
|
31
|
-
return (
|
|
32
|
-
/*#__PURE__*/
|
|
33
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
34
|
-
_react.default.createElement("div", {
|
|
35
|
-
"data-testid": "check-icon",
|
|
36
|
-
style: spinnerStyles
|
|
37
|
-
}, /*#__PURE__*/_react.default.createElement(_checkMarkCheck.default, {
|
|
38
|
-
LEGACY_size: "small",
|
|
39
|
-
label: "check",
|
|
40
|
-
color: "currentColor"
|
|
41
|
-
}))
|
|
42
|
-
);
|
|
43
|
-
case 'failure':
|
|
44
|
-
return (
|
|
45
|
-
/*#__PURE__*/
|
|
46
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
47
|
-
_react.default.createElement("div", {
|
|
48
|
-
"data-testid": "cross-icon",
|
|
49
|
-
style: spinnerStyles
|
|
50
|
-
}, /*#__PURE__*/_react.default.createElement(_closeCross.default, {
|
|
51
|
-
LEGACY_size: "small",
|
|
52
|
-
label: "check",
|
|
53
|
-
color: "currentColor"
|
|
54
|
-
}))
|
|
55
|
-
);
|
|
56
|
-
}
|
|
57
|
-
};
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.ActionList = void 0;
|
|
9
|
-
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
10
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
|
-
var _react = require("@emotion/react");
|
|
12
|
-
var _reactMagneticDi = require("react-magnetic-di");
|
|
13
|
-
var _buttonGroup = _interopRequireDefault(require("@atlaskit/button/button-group"));
|
|
14
|
-
var _standardButton = _interopRequireDefault(require("@atlaskit/button/standard-button"));
|
|
15
|
-
var _dropdownMenu = _interopRequireWildcard(require("@atlaskit/dropdown-menu"));
|
|
16
|
-
var _showMoreHorizontalMore = _interopRequireDefault(require("@atlaskit/icon/core/migration/show-more-horizontal--more"));
|
|
17
|
-
var _utils = require("../../common/utils");
|
|
18
|
-
var _Action = require("./Action");
|
|
19
|
-
var _excluded = ["triggerRef"];
|
|
20
|
-
/**
|
|
21
|
-
* @jsxRuntime classic
|
|
22
|
-
* @jsx jsx
|
|
23
|
-
*/
|
|
24
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
25
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
26
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
27
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
28
|
-
var wrapperStyles = (0, _utils.mq)({
|
|
29
|
-
display: 'flex',
|
|
30
|
-
marginTop: [(0, _utils.gs)(2), 0]
|
|
31
|
-
});
|
|
32
|
-
var buttonStyles = (0, _react.css)({
|
|
33
|
-
height: 'auto'
|
|
34
|
-
});
|
|
35
|
-
|
|
36
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
37
|
-
var actionsWrapperStyles = {
|
|
38
|
-
marginLeft: (0, _utils.gs)(0.5)
|
|
39
|
-
};
|
|
40
|
-
var ActionList = exports.ActionList = function ActionList(_ref) {
|
|
41
|
-
var items = _ref.items;
|
|
42
|
-
var actionsToShow = items.slice(0, 2);
|
|
43
|
-
var actionsToList = items.slice(2, items.length);
|
|
44
|
-
return (0, _react.jsx)("div", {
|
|
45
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
46
|
-
css: wrapperStyles
|
|
47
|
-
}, (0, _react.jsx)(_buttonGroup.default, null, actionsToShow.map(function (action) {
|
|
48
|
-
return (0, _react.jsx)(_Action.Action, (0, _extends2.default)({
|
|
49
|
-
key: action.id
|
|
50
|
-
}, action));
|
|
51
|
-
})), actionsToList.length ?
|
|
52
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
53
|
-
(0, _react.jsx)("div", {
|
|
54
|
-
css: actionsWrapperStyles
|
|
55
|
-
}, (0, _react.jsx)(_dropdownMenu.default, {
|
|
56
|
-
trigger: function trigger(_ref2) {
|
|
57
|
-
var triggerRef = _ref2.triggerRef,
|
|
58
|
-
props = (0, _objectWithoutProperties2.default)(_ref2, _excluded);
|
|
59
|
-
return (0, _react.jsx)(_standardButton.default, (0, _extends2.default)({}, props, {
|
|
60
|
-
iconBefore: (0, _react.jsx)(_showMoreHorizontalMore.default, {
|
|
61
|
-
label: "more",
|
|
62
|
-
color: "currentColor",
|
|
63
|
-
spacing: "spacious"
|
|
64
|
-
}),
|
|
65
|
-
ref: triggerRef,
|
|
66
|
-
css: buttonStyles,
|
|
67
|
-
testId: "dropdown-trigger"
|
|
68
|
-
}));
|
|
69
|
-
},
|
|
70
|
-
placement: "right-start"
|
|
71
|
-
}, (0, _react.jsx)(_dropdownMenu.DropdownItemGroup, {
|
|
72
|
-
testId: "dropdown-menu"
|
|
73
|
-
}, actionsToList.map(function (actionToList) {
|
|
74
|
-
return (0, _react.jsx)(_dropdownMenu.DropdownItem, {
|
|
75
|
-
key: actionToList.id
|
|
76
|
-
}, actionToList.text);
|
|
77
|
-
})))) : null);
|
|
78
|
-
};
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.CollaboratorList = void 0;
|
|
8
|
-
var _react = require("@emotion/react");
|
|
9
|
-
var _avatarGroup = _interopRequireDefault(require("@atlaskit/avatar-group"));
|
|
10
|
-
var _utils = require("../../common/utils");
|
|
11
|
-
/**
|
|
12
|
-
* @jsxRuntime classic
|
|
13
|
-
* @jsx jsx
|
|
14
|
-
*/
|
|
15
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
16
|
-
|
|
17
|
-
var CollaboratorList = exports.CollaboratorList = function CollaboratorList(_ref) {
|
|
18
|
-
var items = _ref.items,
|
|
19
|
-
_ref$handleAvatarClic = _ref.handleAvatarClick,
|
|
20
|
-
handleAvatarClick = _ref$handleAvatarClic === void 0 ? function () {} : _ref$handleAvatarClic,
|
|
21
|
-
_ref$handleMoreAvatar = _ref.handleMoreAvatarsClick,
|
|
22
|
-
handleMoreAvatarsClick = _ref$handleMoreAvatar === void 0 ? function () {} : _ref$handleMoreAvatar,
|
|
23
|
-
_ref$testId = _ref.testId,
|
|
24
|
-
testId = _ref$testId === void 0 ? 'collaborator-list' : _ref$testId;
|
|
25
|
-
if (items.length === 0) {
|
|
26
|
-
return null;
|
|
27
|
-
}
|
|
28
|
-
return (
|
|
29
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
30
|
-
(0, _react.jsx)("span", {
|
|
31
|
-
css: (0, _utils.mq)({
|
|
32
|
-
display: ['none', 'inherit']
|
|
33
|
-
})
|
|
34
|
-
}, (0, _react.jsx)(_avatarGroup.default, {
|
|
35
|
-
maxCount: 4,
|
|
36
|
-
appearance: "stack",
|
|
37
|
-
size: "small",
|
|
38
|
-
data: items,
|
|
39
|
-
onAvatarClick: function onAvatarClick(event) {
|
|
40
|
-
event.stopPropagation();
|
|
41
|
-
event.preventDefault();
|
|
42
|
-
handleAvatarClick(event);
|
|
43
|
-
},
|
|
44
|
-
onMoreClick: function onMoreClick(event) {
|
|
45
|
-
event.stopPropagation();
|
|
46
|
-
event.preventDefault();
|
|
47
|
-
handleMoreAvatarsClick(event);
|
|
48
|
-
},
|
|
49
|
-
testId: testId
|
|
50
|
-
}))
|
|
51
|
-
);
|
|
52
|
-
};
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.blockCardContentClassName = exports.Content = void 0;
|
|
7
|
-
var _react = require("@emotion/react");
|
|
8
|
-
var _utils = require("../../common/utils");
|
|
9
|
-
/**
|
|
10
|
-
* @jsxRuntime classic
|
|
11
|
-
* @jsx jsx
|
|
12
|
-
*/
|
|
13
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* Class name for selecting non-flexible block card content
|
|
17
|
-
*
|
|
18
|
-
* @deprecated {@link https://hello.jira.atlassian.cloud/browse/ENGHEALTH-6878 Internal documentation for deprecation (no external access)}
|
|
19
|
-
* Using this selctor is deprecated as once the flexible block card feature flag is removed, this class will no longer be used.
|
|
20
|
-
*/
|
|
21
|
-
var blockCardContentClassName = exports.blockCardContentClassName = 'block-card-content';
|
|
22
|
-
var baseStyles = (0, _react.css)({
|
|
23
|
-
display: 'flex',
|
|
24
|
-
flexDirection: 'column',
|
|
25
|
-
flexGrow: 1
|
|
26
|
-
});
|
|
27
|
-
var Content = exports.Content = function Content(_ref) {
|
|
28
|
-
var children = _ref.children,
|
|
29
|
-
_ref$isCompact = _ref.isCompact,
|
|
30
|
-
isCompact = _ref$isCompact === void 0 ? false : _ref$isCompact;
|
|
31
|
-
return (0, _react.jsx)("div", {
|
|
32
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
33
|
-
css: [baseStyles,
|
|
34
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
35
|
-
(0, _utils.mq)({
|
|
36
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
37
|
-
padding: isCompact ? (0, _utils.gs)(1) : (0, _utils.gs)(2),
|
|
38
|
-
justifyContent: isCompact ? 'unset' : ['unset', 'space-between']
|
|
39
|
-
})],
|
|
40
|
-
"data-trello-do-not-use-override": "block-card-content"
|
|
41
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
42
|
-
,
|
|
43
|
-
className: blockCardContentClassName
|
|
44
|
-
}, children);
|
|
45
|
-
};
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.contentFooterClassName = exports.ContentFooter = void 0;
|
|
7
|
-
var _react = require("@emotion/react");
|
|
8
|
-
var _utils = require("../../common/utils");
|
|
9
|
-
/**
|
|
10
|
-
* @jsxRuntime classic
|
|
11
|
-
* @jsx jsx
|
|
12
|
-
*/
|
|
13
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
14
|
-
|
|
15
|
-
var contentFooterClassName = exports.contentFooterClassName = 'smart-link-content-footer';
|
|
16
|
-
var flexStyles = (0, _react.css)({
|
|
17
|
-
display: 'flex'
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
21
|
-
var baseStyles = (0, _utils.mq)({
|
|
22
|
-
flexDirection: ['column', 'row'],
|
|
23
|
-
flexGrow: [1, 'unset'],
|
|
24
|
-
alignItems: ['unset', 'center'],
|
|
25
|
-
marginTop: [(0, _utils.gs)(1), (0, _utils.gs)(1.5)]
|
|
26
|
-
});
|
|
27
|
-
var ContentFooter = exports.ContentFooter = function ContentFooter(_ref) {
|
|
28
|
-
var children = _ref.children,
|
|
29
|
-
_ref$hasSpaceBetween = _ref.hasSpaceBetween,
|
|
30
|
-
hasSpaceBetween = _ref$hasSpaceBetween === void 0 ? false : _ref$hasSpaceBetween;
|
|
31
|
-
return (0, _react.jsx)("div", {
|
|
32
|
-
css: [flexStyles, baseStyles,
|
|
33
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
34
|
-
(0, _utils.mq)({
|
|
35
|
-
justifyContent: [hasSpaceBetween ? 'space-between' : 'flex-end', 'space-between']
|
|
36
|
-
})]
|
|
37
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
38
|
-
,
|
|
39
|
-
className: contentFooterClassName
|
|
40
|
-
}, children);
|
|
41
|
-
};
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.blockCardContentHeaderClassName = exports.ContentHeader = void 0;
|
|
7
|
-
var _react = require("@emotion/react");
|
|
8
|
-
var _useLinkClicked = require("../../../state/analytics/useLinkClicked");
|
|
9
|
-
/**
|
|
10
|
-
* @jsxRuntime classic
|
|
11
|
-
* @jsx jsx
|
|
12
|
-
*/
|
|
13
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* Class name for selecting non-flexible block card header
|
|
17
|
-
*
|
|
18
|
-
* @deprecated {@link https://hello.jira.atlassian.cloud/browse/ENGHEALTH-6878 Internal documentation for deprecation (no external access)}
|
|
19
|
-
* Using this selctor is deprecated as once the flexible block card feature flag is removed, this class will no longer be used.
|
|
20
|
-
*/
|
|
21
|
-
var blockCardContentHeaderClassName = exports.blockCardContentHeaderClassName = 'block-card-content-header';
|
|
22
|
-
var styles = (0, _react.css)({
|
|
23
|
-
display: 'flex',
|
|
24
|
-
alignItems: 'flex-start',
|
|
25
|
-
// EDM-713: fixes copy-paste from renderer to editor for Firefox
|
|
26
|
-
// due to HTML its unwrapping behaviour on paste.
|
|
27
|
-
MozUserSelect: 'none'
|
|
28
|
-
});
|
|
29
|
-
var ContentHeader = exports.ContentHeader = function ContentHeader(_ref) {
|
|
30
|
-
var onClick = _ref.onClick,
|
|
31
|
-
link = _ref.link,
|
|
32
|
-
children = _ref.children;
|
|
33
|
-
var onMouseDown = (0, _useLinkClicked.useMouseDownEvent)();
|
|
34
|
-
return (0, _react.jsx)("a", {
|
|
35
|
-
onClick: onClick,
|
|
36
|
-
onMouseDown: onMouseDown,
|
|
37
|
-
href: link,
|
|
38
|
-
target: "_blank",
|
|
39
|
-
css: styles,
|
|
40
|
-
"data-trello-do-not-use-override": "block-card-content-header"
|
|
41
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
42
|
-
,
|
|
43
|
-
className: blockCardContentHeaderClassName
|
|
44
|
-
}, children);
|
|
45
|
-
};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.Emoji = void 0;
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _react2 = require("@emotion/react");
|
|
10
|
-
var _utils = require("../../common/utils");
|
|
11
|
-
/**
|
|
12
|
-
* @jsxRuntime classic
|
|
13
|
-
* @jsx jsx
|
|
14
|
-
*/
|
|
15
|
-
|
|
16
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
17
|
-
|
|
18
|
-
var styles = (0, _react2.css)({
|
|
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
|
-
height: (0, _utils.gs)(2.5),
|
|
21
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
22
|
-
width: (0, _utils.gs)(2),
|
|
23
|
-
display: 'flex',
|
|
24
|
-
alignItems: 'center',
|
|
25
|
-
justifyContent: 'center',
|
|
26
|
-
marginTop: "var(--ds-space-negative-025, -2px)"
|
|
27
|
-
});
|
|
28
|
-
var Emoji = exports.Emoji = function Emoji(_ref) {
|
|
29
|
-
var emoji = _ref.emoji;
|
|
30
|
-
return (0, _react2.jsx)("span", {
|
|
31
|
-
css: styles
|
|
32
|
-
}, emoji);
|
|
33
|
-
};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.Link = void 0;
|
|
7
|
-
var _react = require("@emotion/react");
|
|
8
|
-
var _colors = require("@atlaskit/theme/colors");
|
|
9
|
-
/**
|
|
10
|
-
* @jsxRuntime classic
|
|
11
|
-
* @jsx jsx
|
|
12
|
-
*/
|
|
13
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
14
|
-
|
|
15
|
-
var styles = (0, _react.css)({
|
|
16
|
-
color: "var(--ds-link, ".concat(_colors.B400, ")"),
|
|
17
|
-
wordBreak: 'break-all'
|
|
18
|
-
});
|
|
19
|
-
var Link = exports.Link = function Link(_ref) {
|
|
20
|
-
var url = _ref.url,
|
|
21
|
-
_ref$testId = _ref.testId,
|
|
22
|
-
testId = _ref$testId === void 0 ? 'block-card' : _ref$testId,
|
|
23
|
-
className = _ref.className;
|
|
24
|
-
return (0, _react.jsx)("span", {
|
|
25
|
-
"data-testid": "".concat(testId, "-link")
|
|
26
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
27
|
-
,
|
|
28
|
-
className: className,
|
|
29
|
-
css: styles
|
|
30
|
-
}, url);
|
|
31
|
-
};
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.blockCardContentHeaderNameClassName = exports.Name = void 0;
|
|
7
|
-
var _react = require("@emotion/react");
|
|
8
|
-
var _utils = require("../../common/utils");
|
|
9
|
-
/**
|
|
10
|
-
* @jsxRuntime classic
|
|
11
|
-
* @jsx jsx
|
|
12
|
-
*/
|
|
13
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* Class name for selecting non-flexible block card header name
|
|
17
|
-
*
|
|
18
|
-
* @deprecated {@link https://hello.jira.atlassian.cloud/browse/ENGHEALTH-6878 Internal documentation for deprecation (no external access)}
|
|
19
|
-
* Using this selctor is deprecated as once the flexible block card feature flag is removed, this class will no longer be used.
|
|
20
|
-
*/
|
|
21
|
-
var blockCardContentHeaderNameClassName = exports.blockCardContentHeaderNameClassName = 'block-card-content-header-name';
|
|
22
|
-
var baseStyles = (0, _react.css)({
|
|
23
|
-
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)",
|
|
24
|
-
/**
|
|
25
|
-
* The xsmall heading token has a line height of 20px in the modernized/refreshed themes,
|
|
26
|
-
* but 16px in legacy theme which causes alignment issues.
|
|
27
|
-
* Remove this lineHeight once all consuming apps are using modernized/refreshed themes.
|
|
28
|
-
*/
|
|
29
|
-
lineHeight: '20px',
|
|
30
|
-
// Spec: show max two lines.
|
|
31
|
-
display: '-webkit-box',
|
|
32
|
-
overflow: 'hidden',
|
|
33
|
-
textOverflow: 'ellipsis',
|
|
34
|
-
wordBreak: 'break-word',
|
|
35
|
-
WebkitLineClamp: 2,
|
|
36
|
-
WebkitBoxOrient: 'vertical',
|
|
37
|
-
// Fallback options.
|
|
38
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
39
|
-
maxHeight: (0, _utils.gs)(6)
|
|
40
|
-
});
|
|
41
|
-
var Name = exports.Name = function Name(_ref) {
|
|
42
|
-
var name = _ref.name,
|
|
43
|
-
_ref$isLeftPadded = _ref.isLeftPadded,
|
|
44
|
-
isLeftPadded = _ref$isLeftPadded === void 0 ? true : _ref$isLeftPadded,
|
|
45
|
-
testId = _ref.testId,
|
|
46
|
-
textColor = _ref.textColor;
|
|
47
|
-
return (0, _react.jsx)("span", {
|
|
48
|
-
css: [baseStyles,
|
|
49
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
50
|
-
{
|
|
51
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
52
|
-
marginLeft: isLeftPadded ? (0, _utils.gs)(1) : '0',
|
|
53
|
-
color: textColor ? textColor : 'inherit'
|
|
54
|
-
}],
|
|
55
|
-
"data-testid": testId,
|
|
56
|
-
"data-trello-do-not-use-override": "block-card-content-header-name"
|
|
57
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
58
|
-
,
|
|
59
|
-
className: blockCardContentHeaderNameClassName
|
|
60
|
-
}, name);
|
|
61
|
-
};
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.Provider = void 0;
|
|
7
|
-
var _react = require("@emotion/react");
|
|
8
|
-
var _colors = require("@atlaskit/theme/colors");
|
|
9
|
-
var _utils = require("../../common/utils");
|
|
10
|
-
/**
|
|
11
|
-
* @jsxRuntime classic
|
|
12
|
-
* @jsx jsx
|
|
13
|
-
*/
|
|
14
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
15
|
-
|
|
16
|
-
var wrapperStyles = (0, _react.css)({
|
|
17
|
-
display: 'flex',
|
|
18
|
-
alignItems: 'center',
|
|
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
|
-
fontSize: (0, _utils.gs)(1.5),
|
|
21
|
-
whiteSpace: 'normal'
|
|
22
|
-
});
|
|
23
|
-
var imgStyles = (0, _react.css)({
|
|
24
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
25
|
-
height: (0, _utils.gs)(1.5),
|
|
26
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
27
|
-
width: (0, _utils.gs)(1.5)
|
|
28
|
-
});
|
|
29
|
-
var textStyles = (0, _react.css)({
|
|
30
|
-
color: "var(--ds-text-subtlest, ".concat(_colors.N300, ")"),
|
|
31
|
-
margin: 0,
|
|
32
|
-
// 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
|
|
33
|
-
marginLeft: (0, _utils.gs)(0.5),
|
|
34
|
-
// EDM-713: fixes copy-paste from renderer to editor for Firefox
|
|
35
|
-
// due to HTML its unwrapping behaviour on paste.
|
|
36
|
-
MozUserSelect: 'none'
|
|
37
|
-
});
|
|
38
|
-
var Provider = exports.Provider = function Provider(_ref) {
|
|
39
|
-
var name = _ref.name,
|
|
40
|
-
icon = _ref.icon;
|
|
41
|
-
var iconToRender = icon || null;
|
|
42
|
-
if (typeof icon === 'string') {
|
|
43
|
-
iconToRender =
|
|
44
|
-
// eslint-disable-next-line jsx-a11y/alt-text
|
|
45
|
-
(0, _react.jsx)("img", {
|
|
46
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
47
|
-
className: "smart-link-icon",
|
|
48
|
-
css: imgStyles,
|
|
49
|
-
src: icon
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
return (0, _react.jsx)("div", {
|
|
53
|
-
css: wrapperStyles
|
|
54
|
-
}, iconToRender, (0, _react.jsx)("span", {
|
|
55
|
-
css: textStyles
|
|
56
|
-
}, name));
|
|
57
|
-
};
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.ThumbnailWithBackground = exports.ThumbnailDefault = exports.Thumbnail = void 0;
|
|
8
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
|
-
var _react = require("@emotion/react");
|
|
10
|
-
var _utils = require("../../common/utils");
|
|
11
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
12
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } /**
|
|
13
|
-
* @jsxRuntime classic
|
|
14
|
-
* @jsx jsx
|
|
15
|
-
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
16
|
-
var Thumbnail = exports.Thumbnail = function Thumbnail(props) {
|
|
17
|
-
return props.color ? (0, _react.jsx)(ThumbnailWithBackground, props) : (0, _react.jsx)(ThumbnailDefault, props);
|
|
18
|
-
};
|
|
19
|
-
var sharedStyles = {
|
|
20
|
-
// The dimensions of the image are set in this manner
|
|
21
|
-
// in order for `flex` to respect this value.
|
|
22
|
-
minWidth: [(0, _utils.gs)(13), (0, _utils.gs)(20)],
|
|
23
|
-
maxWidth: [(0, _utils.gs)(13), (0, _utils.gs)(20)]
|
|
24
|
-
};
|
|
25
|
-
var ThumbnailDefault = exports.ThumbnailDefault = function ThumbnailDefault(_ref) {
|
|
26
|
-
var src = _ref.src,
|
|
27
|
-
testId = _ref.testId;
|
|
28
|
-
return (0, _react.jsx)("div", {
|
|
29
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
30
|
-
css: (0, _utils.mq)(_objectSpread(_objectSpread({}, sharedStyles), {}, {
|
|
31
|
-
backgroundSize: 'cover',
|
|
32
|
-
backgroundRepeat: 'no-repeat',
|
|
33
|
-
backgroundPosition: '50% 50%',
|
|
34
|
-
backgroundImage: "url(".concat(src, ")")
|
|
35
|
-
})),
|
|
36
|
-
"data-testid": testId,
|
|
37
|
-
"data-trello-do-not-use-override": testId
|
|
38
|
-
});
|
|
39
|
-
};
|
|
40
|
-
var thumbnailImgStyles = (0, _react.css)({
|
|
41
|
-
height: '90px',
|
|
42
|
-
width: '90px'
|
|
43
|
-
});
|
|
44
|
-
var ThumbnailWithBackground = exports.ThumbnailWithBackground = function ThumbnailWithBackground(_ref2) {
|
|
45
|
-
var src = _ref2.src,
|
|
46
|
-
color = _ref2.color,
|
|
47
|
-
testId = _ref2.testId;
|
|
48
|
-
return (0, _react.jsx)("div", {
|
|
49
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
50
|
-
css: (0, _utils.mq)(_objectSpread(_objectSpread({}, sharedStyles), {}, {
|
|
51
|
-
backgroundColor: color,
|
|
52
|
-
display: 'flex',
|
|
53
|
-
alignItems: 'center',
|
|
54
|
-
justifyContent: 'center'
|
|
55
|
-
})),
|
|
56
|
-
"data-testid": testId,
|
|
57
|
-
"data-trello-do-not-use-override": testId
|
|
58
|
-
}, (0, _react.jsx)("img", {
|
|
59
|
-
src: src,
|
|
60
|
-
css: thumbnailImgStyles
|
|
61
|
-
}));
|
|
62
|
-
};
|