@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
|
@@ -88,7 +88,6 @@ declare const _default: {
|
|
|
88
88
|
'fabric.linking.invalid_permissions': string;
|
|
89
89
|
'fabric.linking.invalid_permissions_description': string;
|
|
90
90
|
'fabric.linking.join_to_view': string;
|
|
91
|
-
'fabric.linking.last_mentioned_in': string;
|
|
92
91
|
'fabric.linking.learn_more_about_connecting_account': string;
|
|
93
92
|
'fabric.linking.learn_more_about_smart_links': string;
|
|
94
93
|
'fabric.linking.link_safety_warning_message': string;
|
|
@@ -129,8 +128,7 @@ declare const _default: {
|
|
|
129
128
|
'fabric.linking.related_links_modal_unavailable_header': string;
|
|
130
129
|
'fabric.linking.related_links_modal_unavailable_message': string;
|
|
131
130
|
'fabric.linking.related_links_not_found': string;
|
|
132
|
-
'fabric.linking.related_links_view_related_urls
|
|
133
|
-
'fabric.linking.related_work_items_not_found': string;
|
|
131
|
+
'fabric.linking.related_links_view_related_urls': string;
|
|
134
132
|
'fabric.linking.request_access': string;
|
|
135
133
|
'fabric.linking.request_access_description': string;
|
|
136
134
|
'fabric.linking.request_access_pending': string;
|
|
@@ -88,7 +88,6 @@ declare const _default: {
|
|
|
88
88
|
'fabric.linking.invalid_permissions': string;
|
|
89
89
|
'fabric.linking.invalid_permissions_description': string;
|
|
90
90
|
'fabric.linking.join_to_view': string;
|
|
91
|
-
'fabric.linking.last_mentioned_in': string;
|
|
92
91
|
'fabric.linking.learn_more_about_connecting_account': string;
|
|
93
92
|
'fabric.linking.learn_more_about_smart_links': string;
|
|
94
93
|
'fabric.linking.link_safety_warning_message': string;
|
|
@@ -129,8 +128,7 @@ declare const _default: {
|
|
|
129
128
|
'fabric.linking.related_links_modal_unavailable_header': string;
|
|
130
129
|
'fabric.linking.related_links_modal_unavailable_message': string;
|
|
131
130
|
'fabric.linking.related_links_not_found': string;
|
|
132
|
-
'fabric.linking.related_links_view_related_urls
|
|
133
|
-
'fabric.linking.related_work_items_not_found': string;
|
|
131
|
+
'fabric.linking.related_links_view_related_urls': string;
|
|
134
132
|
'fabric.linking.request_access': string;
|
|
135
133
|
'fabric.linking.request_access_description': string;
|
|
136
134
|
'fabric.linking.request_access_pending': string;
|
|
@@ -88,7 +88,6 @@ declare const _default: {
|
|
|
88
88
|
'fabric.linking.invalid_permissions': string;
|
|
89
89
|
'fabric.linking.invalid_permissions_description': string;
|
|
90
90
|
'fabric.linking.join_to_view': string;
|
|
91
|
-
'fabric.linking.last_mentioned_in': string;
|
|
92
91
|
'fabric.linking.learn_more_about_connecting_account': string;
|
|
93
92
|
'fabric.linking.learn_more_about_smart_links': string;
|
|
94
93
|
'fabric.linking.link_safety_warning_message': string;
|
|
@@ -129,8 +128,7 @@ declare const _default: {
|
|
|
129
128
|
'fabric.linking.related_links_modal_unavailable_header': string;
|
|
130
129
|
'fabric.linking.related_links_modal_unavailable_message': string;
|
|
131
130
|
'fabric.linking.related_links_not_found': string;
|
|
132
|
-
'fabric.linking.related_links_view_related_urls
|
|
133
|
-
'fabric.linking.related_work_items_not_found': string;
|
|
131
|
+
'fabric.linking.related_links_view_related_urls': string;
|
|
134
132
|
'fabric.linking.request_access': string;
|
|
135
133
|
'fabric.linking.request_access_description': string;
|
|
136
134
|
'fabric.linking.request_access_pending': string;
|
|
@@ -88,7 +88,6 @@ declare const _default: {
|
|
|
88
88
|
'fabric.linking.invalid_permissions': string;
|
|
89
89
|
'fabric.linking.invalid_permissions_description': string;
|
|
90
90
|
'fabric.linking.join_to_view': string;
|
|
91
|
-
'fabric.linking.last_mentioned_in': string;
|
|
92
91
|
'fabric.linking.learn_more_about_connecting_account': string;
|
|
93
92
|
'fabric.linking.learn_more_about_smart_links': string;
|
|
94
93
|
'fabric.linking.link_safety_warning_message': string;
|
|
@@ -129,8 +128,7 @@ declare const _default: {
|
|
|
129
128
|
'fabric.linking.related_links_modal_unavailable_header': string;
|
|
130
129
|
'fabric.linking.related_links_modal_unavailable_message': string;
|
|
131
130
|
'fabric.linking.related_links_not_found': string;
|
|
132
|
-
'fabric.linking.related_links_view_related_urls
|
|
133
|
-
'fabric.linking.related_work_items_not_found': string;
|
|
131
|
+
'fabric.linking.related_links_view_related_urls': string;
|
|
134
132
|
'fabric.linking.request_access': string;
|
|
135
133
|
'fabric.linking.request_access_description': string;
|
|
136
134
|
'fabric.linking.request_access_pending': string;
|
|
@@ -88,7 +88,6 @@ declare const _default: {
|
|
|
88
88
|
'fabric.linking.invalid_permissions': string;
|
|
89
89
|
'fabric.linking.invalid_permissions_description': string;
|
|
90
90
|
'fabric.linking.join_to_view': string;
|
|
91
|
-
'fabric.linking.last_mentioned_in': string;
|
|
92
91
|
'fabric.linking.learn_more_about_connecting_account': string;
|
|
93
92
|
'fabric.linking.learn_more_about_smart_links': string;
|
|
94
93
|
'fabric.linking.link_safety_warning_message': string;
|
|
@@ -129,8 +128,7 @@ declare const _default: {
|
|
|
129
128
|
'fabric.linking.related_links_modal_unavailable_header': string;
|
|
130
129
|
'fabric.linking.related_links_modal_unavailable_message': string;
|
|
131
130
|
'fabric.linking.related_links_not_found': string;
|
|
132
|
-
'fabric.linking.related_links_view_related_urls
|
|
133
|
-
'fabric.linking.related_work_items_not_found': string;
|
|
131
|
+
'fabric.linking.related_links_view_related_urls': string;
|
|
134
132
|
'fabric.linking.request_access': string;
|
|
135
133
|
'fabric.linking.request_access_description': string;
|
|
136
134
|
'fabric.linking.request_access_pending': string;
|
|
@@ -88,7 +88,6 @@ declare const _default: {
|
|
|
88
88
|
'fabric.linking.invalid_permissions': string;
|
|
89
89
|
'fabric.linking.invalid_permissions_description': string;
|
|
90
90
|
'fabric.linking.join_to_view': string;
|
|
91
|
-
'fabric.linking.last_mentioned_in': string;
|
|
92
91
|
'fabric.linking.learn_more_about_connecting_account': string;
|
|
93
92
|
'fabric.linking.learn_more_about_smart_links': string;
|
|
94
93
|
'fabric.linking.link_safety_warning_message': string;
|
|
@@ -129,8 +128,7 @@ declare const _default: {
|
|
|
129
128
|
'fabric.linking.related_links_modal_unavailable_header': string;
|
|
130
129
|
'fabric.linking.related_links_modal_unavailable_message': string;
|
|
131
130
|
'fabric.linking.related_links_not_found': string;
|
|
132
|
-
'fabric.linking.related_links_view_related_urls
|
|
133
|
-
'fabric.linking.related_work_items_not_found': string;
|
|
131
|
+
'fabric.linking.related_links_view_related_urls': string;
|
|
134
132
|
'fabric.linking.request_access': string;
|
|
135
133
|
'fabric.linking.request_access_description': string;
|
|
136
134
|
'fabric.linking.request_access_pending': string;
|
|
@@ -88,7 +88,6 @@ declare const _default: {
|
|
|
88
88
|
'fabric.linking.invalid_permissions': string;
|
|
89
89
|
'fabric.linking.invalid_permissions_description': string;
|
|
90
90
|
'fabric.linking.join_to_view': string;
|
|
91
|
-
'fabric.linking.last_mentioned_in': string;
|
|
92
91
|
'fabric.linking.learn_more_about_connecting_account': string;
|
|
93
92
|
'fabric.linking.learn_more_about_smart_links': string;
|
|
94
93
|
'fabric.linking.link_safety_warning_message': string;
|
|
@@ -129,8 +128,7 @@ declare const _default: {
|
|
|
129
128
|
'fabric.linking.related_links_modal_unavailable_header': string;
|
|
130
129
|
'fabric.linking.related_links_modal_unavailable_message': string;
|
|
131
130
|
'fabric.linking.related_links_not_found': string;
|
|
132
|
-
'fabric.linking.related_links_view_related_urls
|
|
133
|
-
'fabric.linking.related_work_items_not_found': string;
|
|
131
|
+
'fabric.linking.related_links_view_related_urls': string;
|
|
134
132
|
'fabric.linking.request_access': string;
|
|
135
133
|
'fabric.linking.request_access_description': string;
|
|
136
134
|
'fabric.linking.request_access_pending': string;
|
|
@@ -88,7 +88,6 @@ declare const _default: {
|
|
|
88
88
|
'fabric.linking.invalid_permissions': string;
|
|
89
89
|
'fabric.linking.invalid_permissions_description': string;
|
|
90
90
|
'fabric.linking.join_to_view': string;
|
|
91
|
-
'fabric.linking.last_mentioned_in': string;
|
|
92
91
|
'fabric.linking.learn_more_about_connecting_account': string;
|
|
93
92
|
'fabric.linking.learn_more_about_smart_links': string;
|
|
94
93
|
'fabric.linking.link_safety_warning_message': string;
|
|
@@ -129,8 +128,7 @@ declare const _default: {
|
|
|
129
128
|
'fabric.linking.related_links_modal_unavailable_header': string;
|
|
130
129
|
'fabric.linking.related_links_modal_unavailable_message': string;
|
|
131
130
|
'fabric.linking.related_links_not_found': string;
|
|
132
|
-
'fabric.linking.related_links_view_related_urls
|
|
133
|
-
'fabric.linking.related_work_items_not_found': string;
|
|
131
|
+
'fabric.linking.related_links_view_related_urls': string;
|
|
134
132
|
'fabric.linking.request_access': string;
|
|
135
133
|
'fabric.linking.request_access_description': string;
|
|
136
134
|
'fabric.linking.request_access_pending': string;
|
|
@@ -88,7 +88,6 @@ declare const _default: {
|
|
|
88
88
|
'fabric.linking.invalid_permissions': string;
|
|
89
89
|
'fabric.linking.invalid_permissions_description': string;
|
|
90
90
|
'fabric.linking.join_to_view': string;
|
|
91
|
-
'fabric.linking.last_mentioned_in': string;
|
|
92
91
|
'fabric.linking.learn_more_about_connecting_account': string;
|
|
93
92
|
'fabric.linking.learn_more_about_smart_links': string;
|
|
94
93
|
'fabric.linking.link_safety_warning_message': string;
|
|
@@ -129,8 +128,7 @@ declare const _default: {
|
|
|
129
128
|
'fabric.linking.related_links_modal_unavailable_header': string;
|
|
130
129
|
'fabric.linking.related_links_modal_unavailable_message': string;
|
|
131
130
|
'fabric.linking.related_links_not_found': string;
|
|
132
|
-
'fabric.linking.related_links_view_related_urls
|
|
133
|
-
'fabric.linking.related_work_items_not_found': string;
|
|
131
|
+
'fabric.linking.related_links_view_related_urls': string;
|
|
134
132
|
'fabric.linking.request_access': string;
|
|
135
133
|
'fabric.linking.request_access_description': string;
|
|
136
134
|
'fabric.linking.request_access_pending': string;
|
|
@@ -88,7 +88,6 @@ declare const _default: {
|
|
|
88
88
|
'fabric.linking.invalid_permissions': string;
|
|
89
89
|
'fabric.linking.invalid_permissions_description': string;
|
|
90
90
|
'fabric.linking.join_to_view': string;
|
|
91
|
-
'fabric.linking.last_mentioned_in': string;
|
|
92
91
|
'fabric.linking.learn_more_about_connecting_account': string;
|
|
93
92
|
'fabric.linking.learn_more_about_smart_links': string;
|
|
94
93
|
'fabric.linking.link_safety_warning_message': string;
|
|
@@ -129,8 +128,7 @@ declare const _default: {
|
|
|
129
128
|
'fabric.linking.related_links_modal_unavailable_header': string;
|
|
130
129
|
'fabric.linking.related_links_modal_unavailable_message': string;
|
|
131
130
|
'fabric.linking.related_links_not_found': string;
|
|
132
|
-
'fabric.linking.related_links_view_related_urls
|
|
133
|
-
'fabric.linking.related_work_items_not_found': string;
|
|
131
|
+
'fabric.linking.related_links_view_related_urls': string;
|
|
134
132
|
'fabric.linking.request_access': string;
|
|
135
133
|
'fabric.linking.request_access_description': string;
|
|
136
134
|
'fabric.linking.request_access_pending': string;
|
|
@@ -88,7 +88,6 @@ declare const _default: {
|
|
|
88
88
|
'fabric.linking.invalid_permissions': string;
|
|
89
89
|
'fabric.linking.invalid_permissions_description': string;
|
|
90
90
|
'fabric.linking.join_to_view': string;
|
|
91
|
-
'fabric.linking.last_mentioned_in': string;
|
|
92
91
|
'fabric.linking.learn_more_about_connecting_account': string;
|
|
93
92
|
'fabric.linking.learn_more_about_smart_links': string;
|
|
94
93
|
'fabric.linking.link_safety_warning_message': string;
|
|
@@ -129,8 +128,7 @@ declare const _default: {
|
|
|
129
128
|
'fabric.linking.related_links_modal_unavailable_header': string;
|
|
130
129
|
'fabric.linking.related_links_modal_unavailable_message': string;
|
|
131
130
|
'fabric.linking.related_links_not_found': string;
|
|
132
|
-
'fabric.linking.related_links_view_related_urls
|
|
133
|
-
'fabric.linking.related_work_items_not_found': string;
|
|
131
|
+
'fabric.linking.related_links_view_related_urls': string;
|
|
134
132
|
'fabric.linking.request_access': string;
|
|
135
133
|
'fabric.linking.request_access_description': string;
|
|
136
134
|
'fabric.linking.request_access_pending': string;
|
|
@@ -4,6 +4,7 @@ import { type LozengeProps as AtlaskitLozengeProps } from '@atlaskit/lozenge';
|
|
|
4
4
|
import { type RequestAccessMessageKey } from './messages';
|
|
5
5
|
import { type ActionProps } from './view/BlockCard/components/Action';
|
|
6
6
|
import { type AccessContext } from './view/types';
|
|
7
|
+
/** @deprecated {@link https://hello.atlassian.net/browse/ENGHEALTH-15961 Internal documentation for deprecation (no external access)} */
|
|
7
8
|
export type ResolveResponse = JsonLd.Response;
|
|
8
9
|
export type { ProviderProps, CardType } from './state';
|
|
9
10
|
export type { CardProps, CardAppearance, CardPlatform } from './view/Card/types';
|
|
@@ -5,7 +5,7 @@ import { type LinkProps } from '@atlaskit/link';
|
|
|
5
5
|
import { type AnalyticsPayload } from '../types';
|
|
6
6
|
import { type ClickOutcome, type ClickType, type UiLinkClickedEventProps } from './types';
|
|
7
7
|
export declare const buttonMap: Map<number | undefined, "left" | "right" | "none" | "middle">;
|
|
8
|
-
export declare const getKeys: (e: React.MouseEvent) => ("
|
|
8
|
+
export declare const getKeys: (e: React.MouseEvent) => ("shift" | "meta" | "alt" | "ctrl")[];
|
|
9
9
|
export declare function getLinkClickOutcome(e: React.MouseEvent, clickType: ClickType): ClickOutcome;
|
|
10
10
|
export declare const createLinkClickedPayload: (event: React.MouseEvent) => AnalyticsPayload | undefined;
|
|
11
11
|
type DeepPartial<T> = T extends object ? {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { jsx } from '@emotion/react';
|
|
3
2
|
import { type Appearance } from '@atlaskit/button/types';
|
|
4
3
|
export interface ActionProps {
|
|
5
4
|
id: string;
|
|
@@ -7,6 +6,3 @@ export interface ActionProps {
|
|
|
7
6
|
promise: () => Promise<any>;
|
|
8
7
|
buttonAppearance?: Appearance;
|
|
9
8
|
}
|
|
10
|
-
export type ActionState = 'init' | 'loading' | 'success' | 'failure';
|
|
11
|
-
export declare const spinnerDelay = 1000;
|
|
12
|
-
export declare const Action: ({ promise, text, buttonAppearance, id }: ActionProps) => jsx.JSX.Element;
|
|
@@ -1,18 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import { jsx } from '@emotion/react';
|
|
6
|
-
import { AuthorizeAction } from './actions/AuthorizeAction';
|
|
7
|
-
import { ForbiddenAction } from './actions/ForbiddenAction';
|
|
1
|
+
/// <reference types="react" />
|
|
8
2
|
import { type BlockCardProps } from './types';
|
|
9
|
-
|
|
10
|
-
import { ForbiddenView as BlockCardForbiddenView } from './views/ForbiddenView';
|
|
11
|
-
import { NotFoundView as BlockCardNotFoundView } from './views/NotFoundView';
|
|
12
|
-
import { ResolvedView as BlockCardResolvedView } from './views/ResolvedView';
|
|
13
|
-
import { ResolvingView as BlockCardResolvingView } from './views/ResolvingView';
|
|
14
|
-
import { UnauthorizedView as BlockCardUnauthorisedView } from './views/UnauthorizedView';
|
|
15
|
-
export { default as PreviewAction } from './actions/PreviewAction';
|
|
16
|
-
export type { ResolvedViewProps as BlockCardResolvedViewProps } from './views/ResolvedView';
|
|
17
|
-
export { ForbiddenAction, AuthorizeAction, BlockCardResolvedView, BlockCardResolvingView, BlockCardUnauthorisedView, BlockCardForbiddenView, BlockCardErroredView, BlockCardNotFoundView, };
|
|
18
|
-
export declare const BlockCard: ({ id, url, cardState, authFlow, handleAuthorize, handleErrorRetry, handleFrameClick, handleInvoke, renderers, isSelected, onResolve, onError, testId, platform, analytics, enableFlexibleBlockCard, actionOptions, }: BlockCardProps) => jsx.JSX.Element;
|
|
3
|
+
export declare const BlockCard: ({ id, url, cardState, authFlow, handleAuthorize, handleFrameClick, renderers, isSelected, onResolve, onError, testId, analytics, actionOptions, }: BlockCardProps) => JSX.Element;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { type CardAuthFlowOpts, type CardProviderRenderers } from '@atlaskit/link-provider';
|
|
3
|
-
import { type InvokeHandler } from '../../model/invoke-handler';
|
|
4
3
|
import { type AnalyticsFacade } from '../../state/analytics';
|
|
5
4
|
import { type CardState } from '../../state/types';
|
|
6
|
-
import type
|
|
5
|
+
import { type CardActionOptions, type OnResolveCallback } from '../Card/types';
|
|
7
6
|
import { type OnErrorCallback } from '../types';
|
|
8
7
|
export type BlockCardProps = {
|
|
9
8
|
id: string;
|
|
@@ -11,8 +10,6 @@ export type BlockCardProps = {
|
|
|
11
10
|
cardState: CardState;
|
|
12
11
|
authFlow?: CardAuthFlowOpts['authFlow'];
|
|
13
12
|
handleAuthorize: (() => void) | undefined;
|
|
14
|
-
handleErrorRetry: () => void;
|
|
15
|
-
handleInvoke: InvokeHandler;
|
|
16
13
|
handleFrameClick: React.EventHandler<React.MouseEvent | React.KeyboardEvent>;
|
|
17
14
|
isSelected?: boolean;
|
|
18
15
|
onResolve?: OnResolveCallback;
|
|
@@ -20,7 +17,5 @@ export type BlockCardProps = {
|
|
|
20
17
|
testId?: string;
|
|
21
18
|
actionOptions?: CardActionOptions;
|
|
22
19
|
renderers?: CardProviderRenderers;
|
|
23
|
-
platform?: CardPlatform;
|
|
24
20
|
analytics: AnalyticsFacade;
|
|
25
|
-
enableFlexibleBlockCard?: boolean;
|
|
26
21
|
};
|
|
@@ -3,5 +3,5 @@ import { type WrappedComponentProps } from 'react-intl-next';
|
|
|
3
3
|
import { type CardAppearance, type CardPlatform, type CardProps } from './types';
|
|
4
4
|
export declare const Card: React.ForwardRefExoticComponent<Pick<Omit<Omit<CardProps & WrappedComponentProps, "intl"> & {
|
|
5
5
|
forwardedRef?: React.Ref<any> | undefined;
|
|
6
|
-
}, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "url" | "
|
|
6
|
+
}, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "url" | "testId" | "appearance" | "container" | "key" | "id" | "placeholder" | "children" | "onError" | "onClick" | "ui" | "actionOptions" | "hoverPreviewOptions" | "onResolve" | "showHoverPreview" | "showAuthTooltip" | "inlinePreloaderStyle" | "isHovered" | "removeTextHighlightingFromTitle" | "resolvingPlaceholder" | "truncateInline" | "fallbackComponent" | "isSelected" | "embedIframeRef" | "embedIframeUrlType" | "frameStyle" | "inheritDimensions" | "platform" | "analyticsContext" | "forwardedRef"> & React.RefAttributes<any>>;
|
|
7
7
|
export type { CardAppearance, CardProps, CardPlatform };
|
|
@@ -3,7 +3,7 @@ import type { TriggerProps } from '@atlaskit/tooltip';
|
|
|
3
3
|
import type { ActionStackItemProps } from './types';
|
|
4
4
|
declare const ActionButton: ({ content, icon: iconOption, isDisabled, isLoading, onClick: onClickCallback, size, space: spaceOption, testId, tooltipProps, xcss, }: import("../types").ActionProps & {
|
|
5
5
|
size: import("../../../../../..").SmartLinkSize;
|
|
6
|
-
space?: "space.
|
|
6
|
+
space?: "space.0" | "space.025" | "space.050" | "space.075" | "space.100" | "space.150" | "space.200" | "space.250" | "space.300" | "space.400" | "space.500" | "space.600" | "space.800" | "space.1000" | undefined;
|
|
7
7
|
tooltipOnHide?: ((analyticsEvent: import("@atlaskit/analytics-next").UIAnalyticsEvent) => any) | undefined;
|
|
8
8
|
hideTooltipOnMouseDown?: boolean | undefined;
|
|
9
9
|
} & {
|
|
@@ -15,7 +15,7 @@ export declare const getIconWidth: (size?: SmartLinkSize) => string;
|
|
|
15
15
|
export declare const importIcon: (importFn: () => Promise<any>) => any;
|
|
16
16
|
export declare const getLinkLineHeight: (size: SmartLinkSize) => string;
|
|
17
17
|
export declare const getLinkSizeStyles: (size: SmartLinkSize) => SerializedStyles;
|
|
18
|
-
export declare const getMaxLineHeight: (size: SmartLinkSize) => 1.
|
|
18
|
+
export declare const getMaxLineHeight: (size: SmartLinkSize) => 1.75 | 1.5;
|
|
19
19
|
export declare const getMaxLines: (value: number, defaultValue: number, max: number, min: number) => number;
|
|
20
20
|
/**
|
|
21
21
|
* A space between element based on smart link size
|
|
@@ -9,5 +9,5 @@ import { type PopupComponentProps } from '@atlaskit/popup';
|
|
|
9
9
|
* HoverCard border implementation is in ContentContainer where it can
|
|
10
10
|
* change between the default border and prism border during runtime.
|
|
11
11
|
*/
|
|
12
|
-
declare const CustomPopupContainer: React.ForwardRefExoticComponent<Pick<PopupComponentProps, "appearance" | "
|
|
12
|
+
declare const CustomPopupContainer: React.ForwardRefExoticComponent<Pick<PopupComponentProps, "appearance" | "style" | "id" | "tabIndex" | "role" | "children" | "data-testid" | "shouldFitContainer" | "xcss" | "shouldRenderToParent" | "data-placement"> & React.RefAttributes<HTMLDivElement>>;
|
|
13
13
|
export default CustomPopupContainer;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { type HoverCardResolvedProps } from './types';
|
|
3
|
-
declare const HoverCardResolvedView: ({ analytics, cardState, extensionKey, flexibleCardProps, isAISummaryEnabled, onActionClick, titleBlockProps, }: HoverCardResolvedProps) => JSX.Element;
|
|
3
|
+
declare const HoverCardResolvedView: ({ analytics, cardState, extensionKey, flexibleCardProps, isAISummaryEnabled, onActionClick, titleBlockProps, id, }: HoverCardResolvedProps) => JSX.Element;
|
|
4
4
|
export default HoverCardResolvedView;
|
package/package.json
CHANGED
|
@@ -1,96 +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.extractBlockUsers = exports.extractBlockProps = exports.extractBlockActions = void 0;
|
|
8
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
|
-
var _linkExtractors = require("@atlaskit/link-extractors");
|
|
10
|
-
var _extractActions = require("../common/actions/extractActions");
|
|
11
|
-
var _extractPreviewAction = require("../common/actions/extractPreviewAction");
|
|
12
|
-
var _extractByline = require("../common/byline/extractByline");
|
|
13
|
-
var _detail = require("../common/detail");
|
|
14
|
-
var _icon = require("../common/icon");
|
|
15
|
-
var _lozenge = require("../common/lozenge");
|
|
16
|
-
var _extractIsTrusted = require("../common/meta/extractIsTrusted");
|
|
17
|
-
var _primitives = require("../common/primitives");
|
|
18
|
-
var _extractTitlePrefix = require("../common/title-prefix/extractTitlePrefix");
|
|
19
|
-
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; }
|
|
20
|
-
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; }
|
|
21
|
-
var extractBlockIcon = function extractBlockIcon(jsonLd) {
|
|
22
|
-
var icon = (0, _icon.extractIcon)(jsonLd);
|
|
23
|
-
if (typeof icon === 'string') {
|
|
24
|
-
return {
|
|
25
|
-
url: icon
|
|
26
|
-
};
|
|
27
|
-
} else {
|
|
28
|
-
return {
|
|
29
|
-
icon: icon
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
var extractBlockDetails = function extractBlockDetails(jsonLd) {
|
|
34
|
-
return [(0, _detail.extractCommentCount)(jsonLd), (0, _detail.extractProgrammingLanguage)(jsonLd), (0, _detail.extractSubscriberCount)(jsonLd), (0, _detail.extractAttachmentCount)(jsonLd)].filter(function (detail) {
|
|
35
|
-
return !!detail;
|
|
36
|
-
});
|
|
37
|
-
};
|
|
38
|
-
var extractBlockActions = exports.extractBlockActions = function extractBlockActions(props, jsonLd, opts, platform, meta) {
|
|
39
|
-
if (opts) {
|
|
40
|
-
var handleInvoke = opts.handleInvoke,
|
|
41
|
-
actionOptions = opts.actionOptions;
|
|
42
|
-
var actions = (0, _extractActions.extractClientActions)(jsonLd, handleInvoke, actionOptions);
|
|
43
|
-
var previewAction = (0, _extractPreviewAction.extractPreviewAction)(_objectSpread(_objectSpread({}, opts), {}, {
|
|
44
|
-
viewProps: props,
|
|
45
|
-
jsonLd: jsonLd,
|
|
46
|
-
platform: platform,
|
|
47
|
-
meta: meta
|
|
48
|
-
}));
|
|
49
|
-
|
|
50
|
-
// The previewAction should always be the last action
|
|
51
|
-
if (previewAction) {
|
|
52
|
-
actions.push(previewAction);
|
|
53
|
-
}
|
|
54
|
-
return actions;
|
|
55
|
-
}
|
|
56
|
-
return [];
|
|
57
|
-
};
|
|
58
|
-
var extractBlockUsers = exports.extractBlockUsers = function extractBlockUsers(jsonLd) {
|
|
59
|
-
if (jsonLd['@type'] === 'atlassian:Project') {
|
|
60
|
-
return (0, _linkExtractors.extractMembers)(jsonLd);
|
|
61
|
-
} else if (jsonLd['@type'] === 'atlassian:Task') {
|
|
62
|
-
var assignedMembers = (0, _linkExtractors.extractPersonAssignedTo)(jsonLd);
|
|
63
|
-
if (assignedMembers) {
|
|
64
|
-
return [assignedMembers];
|
|
65
|
-
}
|
|
66
|
-
} else if (jsonLd['@type'] === 'atlassian:SourceCodePullRequest') {
|
|
67
|
-
return (0, _linkExtractors.extractPersonCreatedBy)(jsonLd);
|
|
68
|
-
} else {
|
|
69
|
-
var updatedBy = (0, _linkExtractors.extractPersonUpdatedBy)(jsonLd);
|
|
70
|
-
var updatedByMembers;
|
|
71
|
-
if (updatedBy) {
|
|
72
|
-
updatedByMembers = [updatedBy];
|
|
73
|
-
}
|
|
74
|
-
var createdByMembers = (0, _linkExtractors.extractPersonCreatedBy)(jsonLd);
|
|
75
|
-
return updatedByMembers || createdByMembers;
|
|
76
|
-
}
|
|
77
|
-
};
|
|
78
|
-
var extractBlockProps = exports.extractBlockProps = function extractBlockProps(jsonLd, meta, opts, renderers, platform) {
|
|
79
|
-
var props = {
|
|
80
|
-
link: (0, _linkExtractors.extractLink)(jsonLd),
|
|
81
|
-
title: (0, _linkExtractors.extractTitle)(jsonLd),
|
|
82
|
-
titleTextColor: (0, _primitives.extractTitleTextColor)(jsonLd),
|
|
83
|
-
lozenge: (0, _lozenge.extractLozenge)(jsonLd),
|
|
84
|
-
icon: extractBlockIcon(jsonLd),
|
|
85
|
-
context: (0, _linkExtractors.extractProvider)(jsonLd),
|
|
86
|
-
details: extractBlockDetails(jsonLd),
|
|
87
|
-
byline: (0, _primitives.extractSummary)(jsonLd) || (0, _extractByline.extractByline)(jsonLd),
|
|
88
|
-
thumbnail: (0, _linkExtractors.extractImage)(jsonLd),
|
|
89
|
-
users: extractBlockUsers(jsonLd),
|
|
90
|
-
titlePrefix: (0, _extractTitlePrefix.extractTitlePrefix)(jsonLd, renderers, 'block'),
|
|
91
|
-
isTrusted: (0, _extractIsTrusted.extractIsTrusted)(meta)
|
|
92
|
-
};
|
|
93
|
-
return _objectSpread(_objectSpread({}, props), {}, {
|
|
94
|
-
actions: extractBlockActions(props, jsonLd, opts, platform, meta)
|
|
95
|
-
});
|
|
96
|
-
};
|
|
@@ -1,106 +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.extractPreviewAction = void 0;
|
|
8
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
|
-
var _linkExtractors = require("@atlaskit/link-extractors");
|
|
10
|
-
var _constants = require("../../../constants");
|
|
11
|
-
var _canShowAction = require("../../../utils/actions/can-show-action");
|
|
12
|
-
var _BlockCard = require("../../../view/BlockCard");
|
|
13
|
-
var _types = require("../../../view/Card/types");
|
|
14
|
-
var _extractIsSupportTheming = require("../../common/meta/extractIsSupportTheming");
|
|
15
|
-
var _detail = require("../detail");
|
|
16
|
-
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; }
|
|
17
|
-
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; }
|
|
18
|
-
var getMetadataFromJsonLd = function getMetadataFromJsonLd(jsonLd, platform) {
|
|
19
|
-
var download = (0, _detail.extractDownloadUrl)(jsonLd);
|
|
20
|
-
var provider = (0, _linkExtractors.extractProvider)(jsonLd);
|
|
21
|
-
var preview = (0, _linkExtractors.extractPreview)(jsonLd, platform);
|
|
22
|
-
return {
|
|
23
|
-
download: download,
|
|
24
|
-
providerName: provider && provider.text,
|
|
25
|
-
src: preview && preview.src
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
var getMetadataFromResolvedProps = function getMetadataFromResolvedProps(props) {
|
|
29
|
-
return {
|
|
30
|
-
/* It's fine for content to be undefined, but src is still needed for the link out, even if it's not the source for the iframing */
|
|
31
|
-
link: props.link,
|
|
32
|
-
title: props.title,
|
|
33
|
-
details: props.details,
|
|
34
|
-
icon: props.icon,
|
|
35
|
-
url: props.link,
|
|
36
|
-
byline: props.byline,
|
|
37
|
-
isTrusted: props.isTrusted
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
var getInvokeOpts = function getInvokeOpts(key, action, source) {
|
|
41
|
-
return {
|
|
42
|
-
type: 'client',
|
|
43
|
-
key: key,
|
|
44
|
-
// NB: the preview action is invoked from a block card -
|
|
45
|
-
// the actions on the preview state are invoked from the
|
|
46
|
-
// preview card. Hence, we have a `source` for distinguishing
|
|
47
|
-
// between the two.
|
|
48
|
-
source: source || _constants.CardDisplay.EmbedPreview,
|
|
49
|
-
action: {
|
|
50
|
-
type: action,
|
|
51
|
-
promise: function promise() {
|
|
52
|
-
return Promise.resolve();
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
};
|
|
56
|
-
};
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* @private
|
|
60
|
-
* @deprecated - use extractPreviewActionProps instead
|
|
61
|
-
*/
|
|
62
|
-
var extractPreviewAction = exports.extractPreviewAction = function extractPreviewAction(_ref) {
|
|
63
|
-
var _ref$extensionKey = _ref.extensionKey,
|
|
64
|
-
extensionKey = _ref$extensionKey === void 0 ? 'empty-object-provider' : _ref$extensionKey,
|
|
65
|
-
viewProps = _ref.viewProps,
|
|
66
|
-
jsonLd = _ref.jsonLd,
|
|
67
|
-
handleInvoke = _ref.handleInvoke,
|
|
68
|
-
testId = _ref.testId,
|
|
69
|
-
platform = _ref.platform,
|
|
70
|
-
origin = _ref.origin,
|
|
71
|
-
_ref$source = _ref.source,
|
|
72
|
-
source = _ref$source === void 0 ? 'block' : _ref$source,
|
|
73
|
-
analytics = _ref.analytics,
|
|
74
|
-
meta = _ref.meta,
|
|
75
|
-
actionOptions = _ref.actionOptions;
|
|
76
|
-
if (!(0, _canShowAction.canShowAction)(_types.CardAction.PreviewAction, actionOptions)) {
|
|
77
|
-
return;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
// Extract metadata from view props & raw JSON-LD.
|
|
81
|
-
var metadataFromJsonLd = getMetadataFromJsonLd(jsonLd, platform);
|
|
82
|
-
var metadataFromViewProps = getMetadataFromResolvedProps(viewProps);
|
|
83
|
-
var metadata = _objectSpread(_objectSpread({}, metadataFromJsonLd), metadataFromViewProps);
|
|
84
|
-
// Extract preview action only if we have an iframe src.
|
|
85
|
-
if (metadataFromJsonLd.src) {
|
|
86
|
-
// Build action using instrumentation hooks.
|
|
87
|
-
var key = extensionKey;
|
|
88
|
-
var previewAction = (0, _BlockCard.PreviewAction)(_objectSpread(_objectSpread({}, metadata), {}, {
|
|
89
|
-
analytics: analytics,
|
|
90
|
-
extensionKey: extensionKey,
|
|
91
|
-
origin: origin,
|
|
92
|
-
testId: testId,
|
|
93
|
-
isSupportTheming: (0, _extractIsSupportTheming.extractIsSupportTheming)(meta)
|
|
94
|
-
}));
|
|
95
|
-
// Setup props to go through proper Redux 'invocation' flow
|
|
96
|
-
// for analytics, further state management if required in future.
|
|
97
|
-
var previewActionProps = getInvokeOpts(key, 'PreviewAction', source);
|
|
98
|
-
// - Promise invoked by the action invocation handler; open preview.
|
|
99
|
-
previewActionProps.action.promise = previewAction.promise;
|
|
100
|
-
// - Promise invoked on click of `Preview` on block card; trigger above promise.
|
|
101
|
-
previewAction.promise = function () {
|
|
102
|
-
return handleInvoke(previewActionProps);
|
|
103
|
-
};
|
|
104
|
-
return previewAction;
|
|
105
|
-
}
|
|
106
|
-
};
|
|
@@ -1,22 +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.AuthorizeAction = void 0;
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _reactIntlNext = require("react-intl-next");
|
|
10
|
-
var _messages = require("../../../messages");
|
|
11
|
-
var AuthorizeAction = exports.AuthorizeAction = function AuthorizeAction(handler) {
|
|
12
|
-
return {
|
|
13
|
-
id: 'connect-account',
|
|
14
|
-
text: /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, _messages.messages.connect_link_account_card),
|
|
15
|
-
promise: function promise() {
|
|
16
|
-
return new Promise(function (resolve) {
|
|
17
|
-
return resolve(handler());
|
|
18
|
-
});
|
|
19
|
-
},
|
|
20
|
-
buttonAppearance: 'default'
|
|
21
|
-
};
|
|
22
|
-
};
|
|
@@ -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.DownloadAction = 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 DownloadAction = exports.DownloadAction = function DownloadAction(_ref) {
|
|
13
|
-
var url = _ref.url;
|
|
14
|
-
return {
|
|
15
|
-
id: 'download-content',
|
|
16
|
-
text: /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, _messages.messages.download),
|
|
17
|
-
promise: function promise() {
|
|
18
|
-
return (0, _utils.downloadUrl)(url);
|
|
19
|
-
}
|
|
20
|
-
};
|
|
21
|
-
};
|