@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
package/dist/esm/i18n/th.js
CHANGED
|
@@ -38,7 +38,7 @@ export default {
|
|
|
38
38
|
'fabric.linking.automation-action.confluence.page.modal.description': 'ใช้ระบบอัตโนมัติกับ <b>{name}</b>{br}ตัวเลือกที่มีอยู่จะได้รับการควบคุมโดย Confluence และผู้ดูแลระบบพื้นที่',
|
|
39
39
|
'fabric.linking.automation-action.confluence.page.modal.title': 'ระบบอัตโนมัติของหน้าข้อมูล',
|
|
40
40
|
'fabric.linking.automation-action.icon.label': 'ไอคอนระบบอัตโนมัติ',
|
|
41
|
-
'fabric.linking.automation-action.title': '
|
|
41
|
+
'fabric.linking.automation-action.title': 'ดูกกฎอัตโนมัติ',
|
|
42
42
|
'fabric.linking.automation-action.tooltip': 'เลือกกฎอัตโนมัติที่จะเรียกใช้',
|
|
43
43
|
'fabric.linking.beta': 'เบต้า',
|
|
44
44
|
'fabric.linking.cancel': 'ยกเลิก',
|
|
@@ -90,7 +90,6 @@ export default {
|
|
|
90
90
|
'fabric.linking.invalid_permissions': 'เนื้อหาถูกจำกัด',
|
|
91
91
|
'fabric.linking.invalid_permissions_description': 'คุณอาจจำเป็นต้องร้องขอสิทธิ์การเข้าถึงหรือลองบัญชีอื่นเพื่อดูการแสดงตัวอย่างนี้',
|
|
92
92
|
'fabric.linking.join_to_view': 'เข้าร่วม {context} เพื่อดูปัญหานี้',
|
|
93
|
-
'fabric.linking.last_mentioned_in': 'กล่าวถึงล่าสุดใน',
|
|
94
93
|
'fabric.linking.learn_more_about_connecting_account': 'เรียนรู้เพิ่มเติมเกี่ยวกับการเชื่อมต่อบัญชีของคุณกับผลิตภัณฑ์ของ Atlassian',
|
|
95
94
|
'fabric.linking.learn_more_about_smart_links': 'เรียนรู้เพิ่มเติมเกี่ยวกับสมาร์ทลิงก์ (ลิงก์อัจฉริยะ)',
|
|
96
95
|
'fabric.linking.link_safety_warning_message': 'ลิงก์ {unsafeLinkText} จะนำคุณไปยังเว็บไซต์อื่น <a>ลิงก์จริงอยู่ที่นี่</a>',
|
|
@@ -131,8 +130,7 @@ export default {
|
|
|
131
130
|
'fabric.linking.related_links_modal_unavailable_header': 'ไม่มีลิงก์ล่าสุด',
|
|
132
131
|
'fabric.linking.related_links_modal_unavailable_message': 'เราไม่พบลิงก์ที่จะแสดงที่นี่ เราตรวจสอบอย่างต่อเนื่องและเพิ่มลิงก์ล่าสุดสำหรับหน้าข้อมูลที่อัปเดตหรือประเภทเนื้อหาอื่น ๆ',
|
|
133
132
|
'fabric.linking.related_links_not_found': 'เราไม่พบลิงก์ที่จะแสดงที่นี่',
|
|
134
|
-
'fabric.linking.related_links_view_related_urls
|
|
135
|
-
'fabric.linking.related_work_items_not_found': 'ลิงก์นี้ไม่ได้ถูกกล่าวถึงในที่อื่น',
|
|
133
|
+
'fabric.linking.related_links_view_related_urls': 'ดูลิงก์ล่าสุด',
|
|
136
134
|
'fabric.linking.request_access': 'ส่งคำขอเพื่อเข้าถึง',
|
|
137
135
|
'fabric.linking.request_access_description': 'ทีมของคุณใช้ {product} ในการทำงานร่วมกัน ส่งคำขอการเข้าถึงไปยังผู้ดูแลระบบของคุณ',
|
|
138
136
|
'fabric.linking.request_access_pending': 'รอการอนุมัติ',
|
package/dist/esm/i18n/tr.js
CHANGED
|
@@ -38,7 +38,7 @@ export default {
|
|
|
38
38
|
'fabric.linking.automation-action.confluence.page.modal.description': '<b>{name}</b> sayfasına bir otomasyon uygulayın.{br}Kullanılabilir seçimler Confluence ve alan yöneticileri tarafından kontrol edilir.',
|
|
39
39
|
'fabric.linking.automation-action.confluence.page.modal.title': 'Sayfa otomasyonları',
|
|
40
40
|
'fabric.linking.automation-action.icon.label': 'Otomasyon simgesi',
|
|
41
|
-
'fabric.linking.automation-action.title': 'Otomasyon kurallarını
|
|
41
|
+
'fabric.linking.automation-action.title': 'Otomasyon kurallarını görüntü',
|
|
42
42
|
'fabric.linking.automation-action.tooltip': 'Çalıştırılacak otomasyon kuralını seçin',
|
|
43
43
|
'fabric.linking.beta': 'Beta',
|
|
44
44
|
'fabric.linking.cancel': 'İptal',
|
|
@@ -76,9 +76,9 @@ export default {
|
|
|
76
76
|
'fabric.linking.download_file': 'Dosyayı indir',
|
|
77
77
|
'fabric.linking.edit': 'Düzenle',
|
|
78
78
|
'fabric.linking.follow': 'Takip Et',
|
|
79
|
-
'fabric.linking.follow_goal': '
|
|
80
|
-
'fabric.linking.follow_goal_description': 'Güncellemelerle ilgili bildirimler almak için bu
|
|
81
|
-
'fabric.linking.follow_goal_error': '
|
|
79
|
+
'fabric.linking.follow_goal': 'Amacı takip et',
|
|
80
|
+
'fabric.linking.follow_goal_description': 'Güncellemelerle ilgili bildirimler almak için bu amacı takip edin',
|
|
81
|
+
'fabric.linking.follow_goal_error': 'Amacı takip etmeye çalışırken bir sorunla karşılaşıldı. Bağlantınızı kontrol edin, sayfayı yenileyin ve tekrar deneyin.',
|
|
82
82
|
'fabric.linking.follow_project': 'Projeyi takip et',
|
|
83
83
|
'fabric.linking.follow_project_description': 'Bu projeyle ilgili bildirimler almak için takip edin',
|
|
84
84
|
'fabric.linking.follow_project_error': 'Projeyi takip etmeye çalışırken bir sorunla karşılaşıldı. Bağlantınızı kontrol edin, sayfayı yenileyin ve tekrar deneyin.',
|
|
@@ -90,7 +90,6 @@ export default {
|
|
|
90
90
|
'fabric.linking.invalid_permissions': 'Kısıtlanmış içerik',
|
|
91
91
|
'fabric.linking.invalid_permissions_description': 'Bu önizlemeyi görüntülemek için erişim izni talep etmeniz veya farklı bir hesap kullanmanız gerekir.',
|
|
92
92
|
'fabric.linking.join_to_view': 'Bu konuyu görüntülemek için {context} ürününe katılın',
|
|
93
|
-
'fabric.linking.last_mentioned_in': 'En son şurada bahsedildi:',
|
|
94
93
|
'fabric.linking.learn_more_about_connecting_account': 'Hesabınızı Atlassian ürünlerine bağlamak hakkında daha fazla bilgi edinin.',
|
|
95
94
|
'fabric.linking.learn_more_about_smart_links': 'Akıllı Bağlantılar hakkında daha fazla bilgi edinin.',
|
|
96
95
|
'fabric.linking.link_safety_warning_message': '{unsafeLinkText} bağlantısı sizi farklı bir siteye (<a>actual link here</a>) yönlendiriyor',
|
|
@@ -131,8 +130,7 @@ export default {
|
|
|
131
130
|
'fabric.linking.related_links_modal_unavailable_header': 'En son bağlantı yok',
|
|
132
131
|
'fabric.linking.related_links_modal_unavailable_message': 'Burada gösterecek herhangi bir bağlantı bulunamadı. Güncellenen sayfalar veya diğer içerik türleri için en son bağlantıları sürekli olarak ekliyor ve bunları inceliyoruz.',
|
|
133
132
|
'fabric.linking.related_links_not_found': 'Burada gösterecek herhangi bir bağlantı bulunamadı.',
|
|
134
|
-
'fabric.linking.related_links_view_related_urls
|
|
135
|
-
'fabric.linking.related_work_items_not_found': 'Bu bağlantıdan başka hiçbir yerde bahsedilmedi.',
|
|
133
|
+
'fabric.linking.related_links_view_related_urls': 'En son bağlantıları görüntüle',
|
|
136
134
|
'fabric.linking.request_access': 'Erişim talep edin',
|
|
137
135
|
'fabric.linking.request_access_description': 'Takımınız iş birliği yapmak için {product} kullanıyor. Yöneticinize bir erişim talebi gönderin.',
|
|
138
136
|
'fabric.linking.request_access_pending': 'Onay bekleniyor',
|
|
@@ -159,9 +157,9 @@ export default {
|
|
|
159
157
|
'fabric.linking.unauthorised_account_name': '{context} üzerindeki özel sayfalar görüntülenemiyor',
|
|
160
158
|
'fabric.linking.unauthorised_account_name_no_provider': 'Özel sayfalar görüntülenemiyor',
|
|
161
159
|
'fabric.linking.unfollow': 'Takibi bırak',
|
|
162
|
-
'fabric.linking.unfollow_goal': '
|
|
163
|
-
'fabric.linking.unfollow_goal_description': 'Bu
|
|
164
|
-
'fabric.linking.unfollow_goal_error': '
|
|
160
|
+
'fabric.linking.unfollow_goal': 'Amacı takip etmeyi bırak',
|
|
161
|
+
'fabric.linking.unfollow_goal_description': 'Bu amaçla ilgili bildirim almayı durdurmak için takip etmeyi bırakın',
|
|
162
|
+
'fabric.linking.unfollow_goal_error': 'Amacı takip etmeyi bırakmaya çalışırken bir sorunla karşılaşıldı. Bağlantınızı kontrol edin, sayfayı yenileyin ve tekrar deneyin.',
|
|
165
163
|
'fabric.linking.unfollow_project': 'Projeyi takip etmeyi bırak',
|
|
166
164
|
'fabric.linking.unfollow_project_description': 'Proje bildirimi almayı durdurmak için takip etmeyi bırakın',
|
|
167
165
|
'fabric.linking.unfollow_project_error': 'Projeyi takip etmeyi bırakmaya çalışırken bir sorunla karşılaşıldı. Bağlantınızı kontrol edin, sayfayı yenileyin ve tekrar deneyin.',
|
package/dist/esm/i18n/uk.js
CHANGED
|
@@ -38,7 +38,7 @@ export default {
|
|
|
38
38
|
'fabric.linking.automation-action.confluence.page.modal.description': 'Застосуйте автоматизацію до сторінки <b>{name}</b>.{br}Доступні варіанти контролюються адміністраторами Confluence і адміністраторами розділів.',
|
|
39
39
|
'fabric.linking.automation-action.confluence.page.modal.title': 'Автоматизації сторінок',
|
|
40
40
|
'fabric.linking.automation-action.icon.label': 'Значок автоматизації',
|
|
41
|
-
'fabric.linking.automation-action.title': 'Переглянути правила
|
|
41
|
+
'fabric.linking.automation-action.title': 'Переглянути правила автоматизації',
|
|
42
42
|
'fabric.linking.automation-action.tooltip': 'Виберіть правило автоматизації для запуску',
|
|
43
43
|
'fabric.linking.beta': 'Бета-версія',
|
|
44
44
|
'fabric.linking.cancel': 'Скасувати',
|
|
@@ -90,7 +90,6 @@ export default {
|
|
|
90
90
|
'fabric.linking.invalid_permissions': 'Вміст із обмеженим доступом',
|
|
91
91
|
'fabric.linking.invalid_permissions_description': 'Надішліть запит на доступ або ввійдіть в інший обліковий запис для попереднього перегляду.',
|
|
92
92
|
'fabric.linking.join_to_view': 'Можна приєднатися до {context}, щоб переглянути цю проблему',
|
|
93
|
-
'fabric.linking.last_mentioned_in': 'Остання згадка:',
|
|
94
93
|
'fabric.linking.learn_more_about_connecting_account': 'Докладніше про підключення облікового запису до продуктів Atlassian.',
|
|
95
94
|
'fabric.linking.learn_more_about_smart_links': 'Докладніше про смарт-посилання.',
|
|
96
95
|
'fabric.linking.link_safety_warning_message': 'За посиланням {unsafeLinkText} ви перейдете на інший сайт: <a>actual link here</a>',
|
|
@@ -131,8 +130,7 @@ export default {
|
|
|
131
130
|
'fabric.linking.related_links_modal_unavailable_header': 'Немає нових посилань',
|
|
132
131
|
'fabric.linking.related_links_modal_unavailable_message': 'Немає посилань для відображення. Ми постійно переглядаємо й додаємо останні посилання на оновлені сторінки або інші типи вмісту.',
|
|
133
132
|
'fabric.linking.related_links_not_found': 'Немає посилань для відображення.',
|
|
134
|
-
'fabric.linking.related_links_view_related_urls
|
|
135
|
-
'fabric.linking.related_work_items_not_found': 'Це посилання більше ніде не згадується.',
|
|
133
|
+
'fabric.linking.related_links_view_related_urls': 'Переглянути нещодавні посилання',
|
|
136
134
|
'fabric.linking.request_access': 'Надіслати запит на доступ',
|
|
137
135
|
'fabric.linking.request_access_description': 'Ваша команда використовує {product} для співпраці. Надішліть адміністратору запит на доступ до продукту.',
|
|
138
136
|
'fabric.linking.request_access_pending': 'Очікується підтвердження',
|
package/dist/esm/i18n/vi.js
CHANGED
|
@@ -38,7 +38,7 @@ export default {
|
|
|
38
38
|
'fabric.linking.automation-action.confluence.page.modal.description': 'Áp dụng một phương thức tự động hóa cho <b>{name}</b>.{br}Các lựa chọn có sẵn được kiểm soát bởi Confluence và quản lý không gian.',
|
|
39
39
|
'fabric.linking.automation-action.confluence.page.modal.title': 'Tự động hóa đối với trang',
|
|
40
40
|
'fabric.linking.automation-action.icon.label': 'Biểu tượng tự động hóa',
|
|
41
|
-
'fabric.linking.automation-action.title': 'Xem quy tắc tự động hóa
|
|
41
|
+
'fabric.linking.automation-action.title': 'Xem quy tắc tự động hóa',
|
|
42
42
|
'fabric.linking.automation-action.tooltip': 'Chọn quy tắc tự động hóa để chạy',
|
|
43
43
|
'fabric.linking.beta': 'Beta',
|
|
44
44
|
'fabric.linking.cancel': 'Hủy',
|
|
@@ -90,7 +90,6 @@ export default {
|
|
|
90
90
|
'fabric.linking.invalid_permissions': 'Nội dung bị hạn chế',
|
|
91
91
|
'fabric.linking.invalid_permissions_description': 'Bạn cần có quyền truy cập hoặc thử một tài khoản khác để xem bản xem trước này.',
|
|
92
92
|
'fabric.linking.join_to_view': 'Tham gia {context} để xem vấn đề này',
|
|
93
|
-
'fabric.linking.last_mentioned_in': 'Được nhắc đến lần gần đây nhất trong',
|
|
94
93
|
'fabric.linking.learn_more_about_connecting_account': 'Tìm hiểu thêm về cách kết nối tài khoản với các sản phẩm của Atlassian.',
|
|
95
94
|
'fabric.linking.learn_more_about_smart_links': 'Tìm hiểu thêm về Liên kết Thông minh.',
|
|
96
95
|
'fabric.linking.link_safety_warning_message': 'Liên kết {unsafeLinkText} sẽ đưa bạn đến một trang khác, <a>actual link here</a>',
|
|
@@ -131,8 +130,7 @@ export default {
|
|
|
131
130
|
'fabric.linking.related_links_modal_unavailable_header': 'Không có liên kết gần đây',
|
|
132
131
|
'fabric.linking.related_links_modal_unavailable_message': 'Chúng tôi không tìm được liên kết nào để hiển thị ở đây. Chúng tôi liên tục xem xét và thêm các liên kết gần đây cho các trang cập nhật hoặc các loại nội dung khác.',
|
|
133
132
|
'fabric.linking.related_links_not_found': 'Chúng tôi không tìm được liên kết nào để hiển thị ở đây.',
|
|
134
|
-
'fabric.linking.related_links_view_related_urls
|
|
135
|
-
'fabric.linking.related_work_items_not_found': 'Liên kết này chưa được nhắc đến ở bất cứ đâu.',
|
|
133
|
+
'fabric.linking.related_links_view_related_urls': 'Xem các liên kết gần đây',
|
|
136
134
|
'fabric.linking.request_access': 'Yêu cầu cấp quyền truy cập',
|
|
137
135
|
'fabric.linking.request_access_description': 'Nhóm của bạn sử dụng {product} để cộng tác. Hãy gửi yêu cầu cho quản trị viên của bạn để được cấp quyền truy cập.',
|
|
138
136
|
'fabric.linking.request_access_pending': 'Đang chờ phê duyệt',
|
package/dist/esm/i18n/zh.js
CHANGED
|
@@ -38,7 +38,7 @@ export default {
|
|
|
38
38
|
'fabric.linking.automation-action.confluence.page.modal.description': '对 <b>{name}</b> 应用自动化。{br}可用选项由 Confluence 与空间管理员进行控制。',
|
|
39
39
|
'fabric.linking.automation-action.confluence.page.modal.title': '页面自动化',
|
|
40
40
|
'fabric.linking.automation-action.icon.label': '自动化图标',
|
|
41
|
-
'fabric.linking.automation-action.title': '
|
|
41
|
+
'fabric.linking.automation-action.title': '查看自动化规则',
|
|
42
42
|
'fabric.linking.automation-action.tooltip': '选择要运行的自动化规则',
|
|
43
43
|
'fabric.linking.beta': '测试版',
|
|
44
44
|
'fabric.linking.cancel': '取消',
|
|
@@ -90,7 +90,6 @@ export default {
|
|
|
90
90
|
'fabric.linking.invalid_permissions': '受限内容',
|
|
91
91
|
'fabric.linking.invalid_permissions_description': '您需要请求访问权限或尝试使用其他帐户来查看此预览。',
|
|
92
92
|
'fabric.linking.join_to_view': '加入{context}以查看此事务',
|
|
93
|
-
'fabric.linking.last_mentioned_in': '上次提及位置',
|
|
94
93
|
'fabric.linking.learn_more_about_connecting_account': '了解有关将您的帐户关联到 Atlassian 产品的信息。',
|
|
95
94
|
'fabric.linking.learn_more_about_smart_links': '了解有关智能链接的更多信息。',
|
|
96
95
|
'fabric.linking.link_safety_warning_message': '{unsafeLinkText} 链接会将您带到其他站点,<a>actual link here</a>',
|
|
@@ -131,8 +130,7 @@ export default {
|
|
|
131
130
|
'fabric.linking.related_links_modal_unavailable_header': '没有最近的链接',
|
|
132
131
|
'fabric.linking.related_links_modal_unavailable_message': '未找到可在此处显示的任何链接。我们会不断审查并添加针对已更新页面或其他内容类型的最近链接。',
|
|
133
132
|
'fabric.linking.related_links_not_found': '未找到可在此处显示的任何链接。',
|
|
134
|
-
'fabric.linking.related_links_view_related_urls
|
|
135
|
-
'fabric.linking.related_work_items_not_found': '此链接在其他任何地方均未提及。',
|
|
133
|
+
'fabric.linking.related_links_view_related_urls': '查看最近的链接',
|
|
136
134
|
'fabric.linking.request_access': '请求访问',
|
|
137
135
|
'fabric.linking.request_access_description': '您的团队使用 {product} 进行协作。请向您的管理员发送访问请求。',
|
|
138
136
|
'fabric.linking.request_access_pending': '待批准',
|
package/dist/esm/i18n/zh_TW.js
CHANGED
|
@@ -38,7 +38,7 @@ export default {
|
|
|
38
38
|
'fabric.linking.automation-action.confluence.page.modal.description': '將自動化套用至 <b>{name}</b>。{br}可用的選項是由 Confluence 和空間管理員所控管。',
|
|
39
39
|
'fabric.linking.automation-action.confluence.page.modal.title': '頁面自動化',
|
|
40
40
|
'fabric.linking.automation-action.icon.label': '自動化圖示',
|
|
41
|
-
'fabric.linking.automation-action.title': '
|
|
41
|
+
'fabric.linking.automation-action.title': '檢視自動化規則',
|
|
42
42
|
'fabric.linking.automation-action.tooltip': '選取要執行的自動化規則',
|
|
43
43
|
'fabric.linking.beta': '測試版',
|
|
44
44
|
'fabric.linking.cancel': '取消',
|
|
@@ -90,7 +90,6 @@ export default {
|
|
|
90
90
|
'fabric.linking.invalid_permissions': '受限制的內容',
|
|
91
91
|
'fabric.linking.invalid_permissions_description': '您需要請求存取或嘗試不同的帳戶,來檢視此預覽。',
|
|
92
92
|
'fabric.linking.join_to_view': '加入 {context} 以查看此議題',
|
|
93
|
-
'fabric.linking.last_mentioned_in': '最後提及位置:',
|
|
94
93
|
'fabric.linking.learn_more_about_connecting_account': '進一步了解如何將您的帳戶連接至 Atlassian 產品。',
|
|
95
94
|
'fabric.linking.learn_more_about_smart_links': '深入了解智慧連結。',
|
|
96
95
|
'fabric.linking.link_safety_warning_message': '此連結 {unsafeLinkText} 會帶您前往不同的網站,<a>actual link here</a>',
|
|
@@ -131,8 +130,7 @@ export default {
|
|
|
131
130
|
'fabric.linking.related_links_modal_unavailable_header': '沒有最近的連結',
|
|
132
131
|
'fabric.linking.related_links_modal_unavailable_message': '我們沒有找到任何可在這裡顯示的連結。我們會持續檢閱更新的頁面或其他內容類型,並新增最近的連結。',
|
|
133
132
|
'fabric.linking.related_links_not_found': '我們沒有找到任何可在這裡顯示的連結。',
|
|
134
|
-
'fabric.linking.related_links_view_related_urls
|
|
135
|
-
'fabric.linking.related_work_items_not_found': '這個連結並未在其他任何位置提及。',
|
|
133
|
+
'fabric.linking.related_links_view_related_urls': '查看最近的連結',
|
|
136
134
|
'fabric.linking.request_access': '要求存取權',
|
|
137
135
|
'fabric.linking.request_access_description': '您的團隊使用 {product} 來協作。向您的管理員傳送存取要求。',
|
|
138
136
|
'fabric.linking.request_access_pending': '待核准',
|
|
@@ -10,7 +10,7 @@ export var ANALYTICS_CHANNEL = 'media';
|
|
|
10
10
|
export var context = {
|
|
11
11
|
componentName: 'smart-cards',
|
|
12
12
|
packageName: "@atlaskit/smart-card",
|
|
13
|
-
packageVersion: "32.7.
|
|
13
|
+
packageVersion: "32.7.3"
|
|
14
14
|
};
|
|
15
15
|
export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
16
16
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -1,54 +1 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
* @jsxRuntime classic
|
|
4
|
-
* @jsx jsx
|
|
5
|
-
*/
|
|
6
|
-
import { useState } from 'react';
|
|
7
|
-
|
|
8
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
|
-
import { css, jsx } from '@emotion/react';
|
|
10
|
-
import { LoadingButton as Button } from '@atlaskit/button';
|
|
11
|
-
import { ActionIcon } from './ActionIcon';
|
|
12
|
-
export var spinnerDelay = 1000;
|
|
13
|
-
var baseTextStyles = css({
|
|
14
|
-
transition: 'opacity 0.3s'
|
|
15
|
-
});
|
|
16
|
-
export var Action = function Action(_ref) {
|
|
17
|
-
var promise = _ref.promise,
|
|
18
|
-
text = _ref.text,
|
|
19
|
-
_ref$buttonAppearance = _ref.buttonAppearance,
|
|
20
|
-
buttonAppearance = _ref$buttonAppearance === void 0 ? 'default' : _ref$buttonAppearance,
|
|
21
|
-
id = _ref.id;
|
|
22
|
-
var _useState = useState('init'),
|
|
23
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
24
|
-
state = _useState2[0],
|
|
25
|
-
setState = _useState2[1];
|
|
26
|
-
return jsx(Button, {
|
|
27
|
-
spacing: "compact",
|
|
28
|
-
appearance: buttonAppearance,
|
|
29
|
-
isLoading: state === 'loading',
|
|
30
|
-
testId: "button-".concat(id),
|
|
31
|
-
onClick: function onClick(event) {
|
|
32
|
-
event.stopPropagation();
|
|
33
|
-
event.preventDefault();
|
|
34
|
-
if (state !== 'loading') {
|
|
35
|
-
setState('loading');
|
|
36
|
-
promise().then(function () {
|
|
37
|
-
setState('success');
|
|
38
|
-
}).catch(function () {
|
|
39
|
-
setState('failure');
|
|
40
|
-
}).finally(function () {
|
|
41
|
-
setTimeout(function () {
|
|
42
|
-
return setState('init');
|
|
43
|
-
}, spinnerDelay);
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}, jsx("div", {
|
|
48
|
-
css: [baseTextStyles, {
|
|
49
|
-
opacity: state !== 'init' ? 0 : 1
|
|
50
|
-
}]
|
|
51
|
-
}, text), jsx(ActionIcon, {
|
|
52
|
-
state: state
|
|
53
|
-
}));
|
|
54
|
-
};
|
|
1
|
+
export {};
|
|
@@ -1,191 +1,60 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
|
|
3
|
-
* @jsxRuntime classic
|
|
4
|
-
* @jsx jsx
|
|
5
|
-
*/
|
|
6
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
7
|
-
import { jsx } from '@emotion/react';
|
|
8
|
-
import { useAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
9
|
-
import { extractBlockProps } from '../../extractors/block';
|
|
10
|
-
import { extractRequestAccessContextImproved } from '../../extractors/common/context';
|
|
11
|
-
import { getExtensionKey } from '../../state/helpers';
|
|
12
|
-
import { getEmptyJsonLd, getForbiddenJsonLd } from '../../utils/jsonld';
|
|
2
|
+
import React from 'react';
|
|
13
3
|
import { CardLinkView } from '../LinkView';
|
|
14
|
-
import { AuthorizeAction } from './actions/AuthorizeAction';
|
|
15
|
-
import { ForbiddenAction } from './actions/ForbiddenAction';
|
|
16
4
|
import { handleClickCommon } from './utils/handlers';
|
|
17
|
-
import { ErroredView as BlockCardErroredView } from './views/ErroredView';
|
|
18
5
|
import FlexibleErroredView from './views/flexible/FlexibleErroredView';
|
|
19
6
|
import FlexibleForbiddenView from './views/flexible/FlexibleForbiddenView';
|
|
20
7
|
import FlexibleNotFoundView from './views/flexible/FlexibleNotFoundView';
|
|
21
8
|
import FlexibleResolvedView from './views/flexible/FlexibleResolvedView';
|
|
22
9
|
import FlexibleUnauthorisedView from './views/flexible/FlexibleUnauthorisedView';
|
|
23
|
-
import { ForbiddenView as BlockCardForbiddenView } from './views/ForbiddenView';
|
|
24
|
-
import { NotFoundView as BlockCardNotFoundView } from './views/NotFoundView';
|
|
25
|
-
import { ResolvedView as BlockCardResolvedView } from './views/ResolvedView';
|
|
26
|
-
import { ResolvingView as BlockCardResolvingView } from './views/ResolvingView';
|
|
27
|
-
import { UnauthorizedView as BlockCardUnauthorisedView } from './views/UnauthorizedView';
|
|
28
|
-
export { default as PreviewAction } from './actions/PreviewAction';
|
|
29
|
-
export { ForbiddenAction, AuthorizeAction, BlockCardResolvedView, BlockCardResolvingView, BlockCardUnauthorisedView, BlockCardForbiddenView, BlockCardErroredView, BlockCardNotFoundView };
|
|
30
10
|
export var BlockCard = function BlockCard(_ref) {
|
|
31
|
-
var _details$meta, _forbiddenViewProps$c, _forbiddenViewProps$c2;
|
|
32
11
|
var id = _ref.id,
|
|
33
12
|
url = _ref.url,
|
|
34
13
|
cardState = _ref.cardState,
|
|
35
14
|
authFlow = _ref.authFlow,
|
|
36
15
|
handleAuthorize = _ref.handleAuthorize,
|
|
37
|
-
handleErrorRetry = _ref.handleErrorRetry,
|
|
38
16
|
handleFrameClick = _ref.handleFrameClick,
|
|
39
|
-
handleInvoke = _ref.handleInvoke,
|
|
40
17
|
renderers = _ref.renderers,
|
|
41
18
|
isSelected = _ref.isSelected,
|
|
42
19
|
onResolve = _ref.onResolve,
|
|
43
20
|
onError = _ref.onError,
|
|
44
21
|
testId = _ref.testId,
|
|
45
|
-
platform = _ref.platform,
|
|
46
22
|
analytics = _ref.analytics,
|
|
47
|
-
enableFlexibleBlockCard = _ref.enableFlexibleBlockCard,
|
|
48
23
|
actionOptions = _ref.actionOptions;
|
|
49
|
-
var
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
actionOptions: actionOptions
|
|
24
|
+
var status = cardState.status;
|
|
25
|
+
var flexibleBlockCardProps = {
|
|
26
|
+
id: id,
|
|
27
|
+
cardState: cardState,
|
|
28
|
+
url: url,
|
|
29
|
+
testId: testId,
|
|
30
|
+
onClick: function onClick(event) {
|
|
31
|
+
return handleClickCommon(event, handleFrameClick);
|
|
32
|
+
},
|
|
33
|
+
onError: onError,
|
|
34
|
+
onResolve: onResolve,
|
|
35
|
+
renderers: renderers,
|
|
36
|
+
actionOptions: actionOptions,
|
|
37
|
+
analytics: analytics
|
|
62
38
|
};
|
|
63
|
-
if (enableFlexibleBlockCard) {
|
|
64
|
-
var flexibleBlockCardProps = {
|
|
65
|
-
id: id,
|
|
66
|
-
cardState: cardState,
|
|
67
|
-
url: url,
|
|
68
|
-
testId: testId,
|
|
69
|
-
onClick: function onClick(event) {
|
|
70
|
-
return handleClickCommon(event, handleFrameClick);
|
|
71
|
-
},
|
|
72
|
-
onError: onError,
|
|
73
|
-
onResolve: onResolve,
|
|
74
|
-
renderers: renderers,
|
|
75
|
-
actionOptions: actionOptions,
|
|
76
|
-
analytics: analytics
|
|
77
|
-
};
|
|
78
|
-
switch (status) {
|
|
79
|
-
case 'pending':
|
|
80
|
-
case 'resolving':
|
|
81
|
-
return jsx(FlexibleResolvedView, _extends({}, flexibleBlockCardProps, {
|
|
82
|
-
testId: 'smart-block-resolving-view'
|
|
83
|
-
}));
|
|
84
|
-
case 'resolved':
|
|
85
|
-
return jsx(FlexibleResolvedView, flexibleBlockCardProps);
|
|
86
|
-
case 'unauthorized':
|
|
87
|
-
return jsx(FlexibleUnauthorisedView, _extends({}, flexibleBlockCardProps, {
|
|
88
|
-
onAuthorize: handleAuthorize
|
|
89
|
-
}));
|
|
90
|
-
case 'forbidden':
|
|
91
|
-
return jsx(FlexibleForbiddenView, _extends({}, flexibleBlockCardProps, {
|
|
92
|
-
onAuthorize: handleAuthorize
|
|
93
|
-
}));
|
|
94
|
-
case 'not_found':
|
|
95
|
-
return jsx(FlexibleNotFoundView, _extends({}, flexibleBlockCardProps, {
|
|
96
|
-
onAuthorize: handleAuthorize
|
|
97
|
-
}));
|
|
98
|
-
case 'fallback':
|
|
99
|
-
case 'errored':
|
|
100
|
-
default:
|
|
101
|
-
if (onError) {
|
|
102
|
-
onError({
|
|
103
|
-
url: url,
|
|
104
|
-
status: status
|
|
105
|
-
});
|
|
106
|
-
}
|
|
107
|
-
if (authFlow && authFlow === 'disabled') {
|
|
108
|
-
return jsx(CardLinkView, {
|
|
109
|
-
link: url,
|
|
110
|
-
isSelected: isSelected,
|
|
111
|
-
onClick: handleFrameClick,
|
|
112
|
-
testId: "".concat(testId, "-").concat(status)
|
|
113
|
-
});
|
|
114
|
-
}
|
|
115
|
-
return jsx(FlexibleErroredView, _extends({}, flexibleBlockCardProps, {
|
|
116
|
-
onAuthorize: handleAuthorize
|
|
117
|
-
}));
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
39
|
switch (status) {
|
|
121
40
|
case 'pending':
|
|
122
41
|
case 'resolving':
|
|
123
|
-
return
|
|
124
|
-
testId:
|
|
125
|
-
isSelected: isSelected
|
|
126
|
-
});
|
|
127
|
-
case 'resolved':
|
|
128
|
-
var resolvedViewProps = extractBlockProps(data, meta, extractorOpts, renderers, platform);
|
|
129
|
-
if (onResolve) {
|
|
130
|
-
onResolve({
|
|
131
|
-
title: resolvedViewProps.title,
|
|
132
|
-
url: url
|
|
133
|
-
});
|
|
134
|
-
}
|
|
135
|
-
return jsx(BlockCardResolvedView, _extends({}, resolvedViewProps, {
|
|
136
|
-
isSelected: isSelected,
|
|
137
|
-
testId: testId,
|
|
138
|
-
onClick: handleFrameClick
|
|
42
|
+
return /*#__PURE__*/React.createElement(FlexibleResolvedView, _extends({}, flexibleBlockCardProps, {
|
|
43
|
+
testId: 'smart-block-resolving-view'
|
|
139
44
|
}));
|
|
45
|
+
case 'resolved':
|
|
46
|
+
return /*#__PURE__*/React.createElement(FlexibleResolvedView, flexibleBlockCardProps);
|
|
140
47
|
case 'unauthorized':
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
url: url,
|
|
144
|
-
status: status
|
|
145
|
-
});
|
|
146
|
-
}
|
|
147
|
-
var unauthorizedViewProps = extractBlockProps(data, meta, extractorOpts);
|
|
148
|
-
return jsx(BlockCardUnauthorisedView, _extends({}, unauthorizedViewProps, {
|
|
149
|
-
isSelected: isSelected,
|
|
150
|
-
testId: testId,
|
|
151
|
-
actions: handleAuthorize ? [AuthorizeAction(handleAuthorize)] : [],
|
|
152
|
-
actionOptions: actionOptions,
|
|
153
|
-
onClick: handleFrameClick
|
|
48
|
+
return /*#__PURE__*/React.createElement(FlexibleUnauthorisedView, _extends({}, flexibleBlockCardProps, {
|
|
49
|
+
onAuthorize: handleAuthorize
|
|
154
50
|
}));
|
|
155
51
|
case 'forbidden':
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
url: url,
|
|
159
|
-
status: status
|
|
160
|
-
});
|
|
161
|
-
}
|
|
162
|
-
var forbiddenViewProps = extractBlockProps(data, meta, extractorOpts);
|
|
163
|
-
var cardMetadata = (_details$meta = details === null || details === void 0 ? void 0 : details.meta) !== null && _details$meta !== void 0 ? _details$meta : getForbiddenJsonLd().meta;
|
|
164
|
-
var requestAccessContext = extractRequestAccessContextImproved({
|
|
165
|
-
jsonLd: cardMetadata,
|
|
166
|
-
url: url,
|
|
167
|
-
product: (_forbiddenViewProps$c = (_forbiddenViewProps$c2 = forbiddenViewProps.context) === null || _forbiddenViewProps$c2 === void 0 ? void 0 : _forbiddenViewProps$c2.text) !== null && _forbiddenViewProps$c !== void 0 ? _forbiddenViewProps$c : '',
|
|
168
|
-
createAnalyticsEvent: createAnalyticsEvent
|
|
169
|
-
});
|
|
170
|
-
return jsx(BlockCardForbiddenView, _extends({}, forbiddenViewProps, {
|
|
171
|
-
isSelected: isSelected,
|
|
172
|
-
actions: handleAuthorize ? [ForbiddenAction(handleAuthorize)] : [],
|
|
173
|
-
actionOptions: actionOptions,
|
|
174
|
-
onClick: handleFrameClick,
|
|
175
|
-
requestAccessContext: requestAccessContext
|
|
52
|
+
return /*#__PURE__*/React.createElement(FlexibleForbiddenView, _extends({}, flexibleBlockCardProps, {
|
|
53
|
+
onAuthorize: handleAuthorize
|
|
176
54
|
}));
|
|
177
55
|
case 'not_found':
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
url: url,
|
|
181
|
-
status: status
|
|
182
|
-
});
|
|
183
|
-
}
|
|
184
|
-
var notFoundViewProps = extractBlockProps(data, meta, extractorOpts);
|
|
185
|
-
return jsx(BlockCardNotFoundView, _extends({}, notFoundViewProps, {
|
|
186
|
-
isSelected: isSelected,
|
|
187
|
-
testId: testId,
|
|
188
|
-
onClick: handleFrameClick
|
|
56
|
+
return /*#__PURE__*/React.createElement(FlexibleNotFoundView, _extends({}, flexibleBlockCardProps, {
|
|
57
|
+
onAuthorize: handleAuthorize
|
|
189
58
|
}));
|
|
190
59
|
case 'fallback':
|
|
191
60
|
case 'errored':
|
|
@@ -197,19 +66,15 @@ export var BlockCard = function BlockCard(_ref) {
|
|
|
197
66
|
});
|
|
198
67
|
}
|
|
199
68
|
if (authFlow && authFlow === 'disabled') {
|
|
200
|
-
return
|
|
69
|
+
return /*#__PURE__*/React.createElement(CardLinkView, {
|
|
201
70
|
link: url,
|
|
202
71
|
isSelected: isSelected,
|
|
203
72
|
onClick: handleFrameClick,
|
|
204
73
|
testId: "".concat(testId, "-").concat(status)
|
|
205
74
|
});
|
|
206
75
|
}
|
|
207
|
-
return
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
onRetry: handleErrorRetry,
|
|
211
|
-
onClick: handleFrameClick,
|
|
212
|
-
testId: testId
|
|
213
|
-
});
|
|
76
|
+
return /*#__PURE__*/React.createElement(FlexibleErroredView, _extends({}, flexibleBlockCardProps, {
|
|
77
|
+
onAuthorize: handleAuthorize
|
|
78
|
+
}));
|
|
214
79
|
}
|
|
215
80
|
};
|
|
@@ -4,6 +4,7 @@ import { fg } from '@atlaskit/platform-feature-flags';
|
|
|
4
4
|
import { useAnalyticsEvents } from '../../common/analytics/generated/use-analytics-events';
|
|
5
5
|
import { CardDisplay } from '../../constants';
|
|
6
6
|
import { useSmartLink } from '../../state';
|
|
7
|
+
import { succeedUfoExperience } from '../../state/analytics';
|
|
7
8
|
import { getCanBeDatasource, getClickUrl, getDefinitionId, getExtensionKey, getProduct, getResourceType, getServices, getSubproduct, isFinalState } from '../../state/helpers';
|
|
8
9
|
import { SmartLinkModalProvider } from '../../state/modal';
|
|
9
10
|
import { isSpecialEvent } from '../../utils';
|
|
@@ -156,16 +157,32 @@ function Component(_ref) {
|
|
|
156
157
|
// - the unresolved states: viz. forbidden, not_found, unauthorized, errored.
|
|
157
158
|
useEffect(function () {
|
|
158
159
|
if (isFinalState(state.status)) {
|
|
159
|
-
analytics
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
160
|
+
if (fg('platform-smart-card-migrate-embed-modal-analytics')) {
|
|
161
|
+
succeedUfoExperience('smart-link-rendered', id || 'NULL', {
|
|
162
|
+
extensionKey: extensionKey,
|
|
163
|
+
display: isFlexibleUi ? 'flexible' : appearance
|
|
164
|
+
});
|
|
165
|
+
|
|
166
|
+
// UFO will disregard this if authentication experience has not yet been started
|
|
167
|
+
succeedUfoExperience('smart-link-authenticated', id || 'NULL', {
|
|
168
|
+
display: isFlexibleUi ? 'flexible' : appearance
|
|
169
|
+
});
|
|
170
|
+
fireEvent('ui.smartLink.renderSuccess', {
|
|
171
|
+
definitionId: definitionId !== null && definitionId !== void 0 ? definitionId : null,
|
|
172
|
+
display: isFlexibleUi ? 'flexible' : appearance
|
|
173
|
+
});
|
|
174
|
+
} else {
|
|
175
|
+
analytics.ui.renderSuccessEvent({
|
|
176
|
+
display: isFlexibleUi ? 'flexible' : appearance,
|
|
177
|
+
status: state.status,
|
|
178
|
+
id: id,
|
|
179
|
+
definitionId: definitionId,
|
|
180
|
+
extensionKey: extensionKey,
|
|
181
|
+
canBeDatasource: canBeDatasource
|
|
182
|
+
});
|
|
183
|
+
}
|
|
167
184
|
}
|
|
168
|
-
}, [isFlexibleUi, appearance, state.status, url, definitionId, extensionKey, analytics.ui, id, canBeDatasource]);
|
|
185
|
+
}, [isFlexibleUi, appearance, state.status, url, definitionId, extensionKey, analytics.ui, id, canBeDatasource, fireEvent]);
|
|
169
186
|
var onIframeDwell = useCallback(function (dwellTime, dwellPercentVisible) {
|
|
170
187
|
fireEvent('ui.smartLinkIframe.dwelled', {
|
|
171
188
|
id: id,
|
|
@@ -249,17 +266,13 @@ function Component(_ref) {
|
|
|
249
266
|
authFlow: config && config.authFlow,
|
|
250
267
|
cardState: state,
|
|
251
268
|
handleAuthorize: services.length && handleAuthorize || undefined,
|
|
252
|
-
handleErrorRetry: handleRetry,
|
|
253
|
-
handleInvoke: handleInvoke,
|
|
254
269
|
handleFrameClick: handleClickWrapper,
|
|
255
270
|
analytics: analytics,
|
|
256
271
|
isSelected: isSelected,
|
|
257
272
|
onResolve: onResolve,
|
|
258
273
|
onError: onError,
|
|
259
274
|
testId: testId,
|
|
260
|
-
actionOptions: actionOptions
|
|
261
|
-
platform: platform,
|
|
262
|
-
enableFlexibleBlockCard: true
|
|
275
|
+
actionOptions: actionOptions
|
|
263
276
|
});
|
|
264
277
|
case 'embed':
|
|
265
278
|
return /*#__PURE__*/React.createElement(EmbedCard, {
|
|
@@ -3,8 +3,10 @@ import React, { lazy, Suspense, useCallback, useEffect, useState } from 'react';
|
|
|
3
3
|
import { ErrorBoundary } from 'react-error-boundary';
|
|
4
4
|
import { di } from 'react-magnetic-di';
|
|
5
5
|
import uuid from 'uuid';
|
|
6
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
7
|
import { useAnalyticsEvents } from '../../common/analytics/generated/use-analytics-events';
|
|
7
|
-
import { useSmartLinkAnalytics } from '../../state
|
|
8
|
+
import { useSmartLinkAnalytics } from '../../state';
|
|
9
|
+
import { failUfoExperience, startUfoExperience } from '../../state/analytics';
|
|
8
10
|
import { importWithRetry } from '../../utils';
|
|
9
11
|
import { isFlexibleUiCard } from '../../utils/flexible';
|
|
10
12
|
import { clearMarks, clearMeasures } from '../../utils/performance';
|
|
@@ -75,12 +77,24 @@ export function CardWithURLRenderer(props) {
|
|
|
75
77
|
definitionId: null
|
|
76
78
|
});
|
|
77
79
|
} else if (error.name !== 'APIError') {
|
|
78
|
-
analytics
|
|
79
|
-
|
|
80
|
-
id
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
80
|
+
if (fg('platform-smart-card-migrate-embed-modal-analytics')) {
|
|
81
|
+
startUfoExperience('smart-link-rendered', id || 'NULL');
|
|
82
|
+
failUfoExperience('smart-link-rendered', id || 'NULL');
|
|
83
|
+
failUfoExperience('smart-link-authenticated', id || 'NULL');
|
|
84
|
+
fireEvent('ui.smartLink.renderFailed', {
|
|
85
|
+
display: isFlexibleUi ? 'flexible' : appearance,
|
|
86
|
+
id: id !== null && id !== void 0 ? id : null,
|
|
87
|
+
error: error,
|
|
88
|
+
errorInfo: errorInfo
|
|
89
|
+
});
|
|
90
|
+
} else {
|
|
91
|
+
analytics.ui.renderFailedEvent({
|
|
92
|
+
display: isFlexibleUi ? 'flexible' : appearance,
|
|
93
|
+
id: id,
|
|
94
|
+
error: error,
|
|
95
|
+
errorInfo: errorInfo
|
|
96
|
+
});
|
|
97
|
+
}
|
|
84
98
|
}
|
|
85
99
|
onError && onError({
|
|
86
100
|
status: 'errored',
|