@atlaskit/smart-card 32.7.0 → 32.7.2
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 +15 -0
- package/analytics.spec.yaml +63 -9
- package/dist/cjs/classNames.js +14 -82
- package/dist/cjs/extractors/action/extract-invoke-copy-link-action.js +53 -0
- package/dist/cjs/extractors/action/extract-invoke-download-action.js +57 -0
- package/dist/cjs/extractors/action/extract-invoke-preview-action.js +78 -0
- package/dist/cjs/extractors/action/extract-invoke-view-action.js +60 -0
- package/dist/cjs/extractors/action/extractDownloadActionProps.js +4 -0
- package/dist/cjs/extractors/action/extractPreviewActionProps.js +4 -0
- package/dist/cjs/extractors/action/extractViewActionProps.js +4 -0
- package/dist/cjs/extractors/common/actions/extractActions.js +1 -67
- package/dist/cjs/extractors/flexible/actions/extract-copy-link-action.js +12 -1
- package/dist/cjs/extractors/flexible/actions/extract-download-action.js +12 -1
- package/dist/cjs/extractors/flexible/actions/extract-preview-action.js +12 -1
- package/dist/cjs/extractors/flexible/actions/extract-view-action.js +3 -0
- package/dist/cjs/extractors/flexible/actions/index.js +40 -3
- package/dist/cjs/extractors/flexible/extract-state.js +19 -5
- package/dist/cjs/extractors/flexible/index.js +22 -8
- 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/state/hooks/use-invoke-client-action/index.js +56 -17
- package/dist/cjs/state/hooks-external/useSmartLinkActions.js +22 -3
- package/dist/cjs/utils/analytics/LinkAnalyticsContext.js +7 -2
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/utils/mocks.js +4 -1
- package/dist/cjs/view/BlockCard/components/Action.js +1 -58
- package/dist/cjs/view/BlockCard/index.js +29 -218
- package/dist/cjs/view/BlockCard/views/flexible/FlexibleResolvedView.js +1 -0
- package/dist/cjs/view/BlockCard/views/flexible/unresolved-view/index.js +1 -0
- package/dist/cjs/view/CardWithUrl/component.js +2 -5
- package/dist/cjs/view/EmbedModal/index.js +72 -51
- package/dist/cjs/view/FlexibleCard/components/actions/copy-link-action/index.js +65 -32
- package/dist/cjs/view/FlexibleCard/components/actions/download-action/index.js +36 -28
- package/dist/cjs/view/FlexibleCard/components/actions/preview-action/index.js +40 -32
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/index.js +13 -6
- package/dist/cjs/view/FlexibleCard/components/utils.js +4 -0
- package/dist/cjs/view/FlexibleCard/index.js +11 -1
- package/dist/cjs/view/HoverCard/components/HoverCardContent.js +1 -0
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/classNames.js +12 -10
- package/dist/es2019/extractors/action/extract-invoke-copy-link-action.js +29 -0
- package/dist/es2019/extractors/action/extract-invoke-download-action.js +31 -0
- package/dist/es2019/extractors/action/extract-invoke-preview-action.js +57 -0
- package/dist/es2019/extractors/action/extract-invoke-view-action.js +34 -0
- package/dist/es2019/extractors/action/extractDownloadActionProps.js +5 -0
- package/dist/es2019/extractors/action/extractPreviewActionProps.js +5 -0
- package/dist/es2019/extractors/action/extractViewActionProps.js +5 -0
- package/dist/es2019/extractors/common/actions/extractActions.js +1 -55
- package/dist/es2019/extractors/flexible/actions/extract-copy-link-action.js +11 -0
- package/dist/es2019/extractors/flexible/actions/extract-download-action.js +12 -0
- package/dist/es2019/extractors/flexible/actions/extract-preview-action.js +12 -0
- package/dist/es2019/extractors/flexible/actions/extract-view-action.js +4 -0
- package/dist/es2019/extractors/flexible/actions/index.js +48 -3
- package/dist/es2019/extractors/flexible/extract-state.js +17 -5
- package/dist/es2019/extractors/flexible/index.js +17 -6
- 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/state/hooks/use-invoke-client-action/index.js +91 -43
- package/dist/es2019/state/hooks-external/useSmartLinkActions.js +21 -3
- package/dist/es2019/utils/analytics/LinkAnalyticsContext.js +3 -0
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/utils/mocks.js +4 -1
- package/dist/es2019/view/BlockCard/components/Action.js +1 -48
- package/dist/es2019/view/BlockCard/index.js +27 -163
- package/dist/es2019/view/BlockCard/views/flexible/FlexibleResolvedView.js +1 -0
- package/dist/es2019/view/BlockCard/views/flexible/unresolved-view/index.js +1 -0
- package/dist/es2019/view/CardWithUrl/component.js +2 -5
- package/dist/es2019/view/EmbedModal/index.js +41 -20
- package/dist/es2019/view/FlexibleCard/components/actions/copy-link-action/index.js +31 -16
- package/dist/es2019/view/FlexibleCard/components/actions/download-action/index.js +20 -12
- package/dist/es2019/view/FlexibleCard/components/actions/preview-action/index.js +25 -17
- package/dist/es2019/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/index.js +14 -7
- package/dist/es2019/view/FlexibleCard/components/utils.js +4 -0
- package/dist/es2019/view/FlexibleCard/index.js +12 -1
- package/dist/es2019/view/HoverCard/components/HoverCardContent.js +1 -0
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/classNames.js +12 -10
- package/dist/esm/extractors/action/extract-invoke-copy-link-action.js +46 -0
- package/dist/esm/extractors/action/extract-invoke-download-action.js +50 -0
- package/dist/esm/extractors/action/extract-invoke-preview-action.js +71 -0
- package/dist/esm/extractors/action/extract-invoke-view-action.js +53 -0
- package/dist/esm/extractors/action/extractDownloadActionProps.js +5 -0
- package/dist/esm/extractors/action/extractPreviewActionProps.js +5 -0
- package/dist/esm/extractors/action/extractViewActionProps.js +5 -0
- package/dist/esm/extractors/common/actions/extractActions.js +1 -65
- package/dist/esm/extractors/flexible/actions/extract-copy-link-action.js +11 -0
- package/dist/esm/extractors/flexible/actions/extract-download-action.js +12 -0
- package/dist/esm/extractors/flexible/actions/extract-preview-action.js +12 -0
- package/dist/esm/extractors/flexible/actions/extract-view-action.js +4 -0
- package/dist/esm/extractors/flexible/actions/index.js +42 -5
- package/dist/esm/extractors/flexible/extract-state.js +19 -5
- package/dist/esm/extractors/flexible/index.js +19 -8
- 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/state/hooks/use-invoke-client-action/index.js +56 -17
- package/dist/esm/state/hooks-external/useSmartLinkActions.js +22 -3
- package/dist/esm/utils/analytics/LinkAnalyticsContext.js +7 -2
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/utils/mocks.js +4 -1
- package/dist/esm/view/BlockCard/components/Action.js +1 -54
- package/dist/esm/view/BlockCard/index.js +29 -164
- package/dist/esm/view/BlockCard/views/flexible/FlexibleResolvedView.js +1 -0
- package/dist/esm/view/BlockCard/views/flexible/unresolved-view/index.js +1 -0
- package/dist/esm/view/CardWithUrl/component.js +2 -5
- package/dist/esm/view/EmbedModal/index.js +73 -52
- package/dist/esm/view/FlexibleCard/components/actions/copy-link-action/index.js +65 -32
- package/dist/esm/view/FlexibleCard/components/actions/download-action/index.js +36 -28
- package/dist/esm/view/FlexibleCard/components/actions/preview-action/index.js +40 -32
- package/dist/esm/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/index.js +13 -6
- package/dist/esm/view/FlexibleCard/components/utils.js +4 -0
- package/dist/esm/view/FlexibleCard/index.js +11 -1
- package/dist/esm/view/HoverCard/components/HoverCardContent.js +1 -0
- 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 +63 -2
- package/dist/types/common/analytics/types.d.ts +2 -0
- package/dist/types/extractors/action/extract-invoke-copy-link-action.d.ts +3 -0
- package/dist/types/extractors/action/extract-invoke-download-action.d.ts +3 -0
- package/dist/types/extractors/action/extract-invoke-preview-action.d.ts +11 -0
- package/dist/types/extractors/action/extract-invoke-view-action.d.ts +3 -0
- package/dist/types/extractors/action/extractDownloadActionProps.d.ts +4 -0
- package/dist/types/extractors/action/extractPreviewActionProps.d.ts +5 -1
- package/dist/types/extractors/action/extractViewActionProps.d.ts +4 -0
- package/dist/types/extractors/action/types.d.ts +9 -0
- 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/extractors/flexible/actions/extract-copy-link-action.d.ts +6 -0
- package/dist/types/extractors/flexible/actions/extract-download-action.d.ts +6 -0
- package/dist/types/extractors/flexible/actions/extract-preview-action.d.ts +6 -0
- package/dist/types/extractors/flexible/actions/extract-view-action.d.ts +3 -0
- package/dist/types/extractors/flexible/actions/index.d.ts +21 -4
- package/dist/types/extractors/flexible/extract-state.d.ts +5 -2
- package/dist/types/extractors/flexible/index.d.ts +1 -1
- 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/state/flexible-ui-context/types.d.ts +9 -3
- package/dist/types/state/hooks/use-invoke/types.d.ts +7 -1
- package/dist/types/state/hooks/use-invoke-client-action/index.d.ts +2 -2
- package/dist/types/state/hooks/use-invoke-client-action/types.d.ts +24 -2
- package/dist/types/state/hooks/use-resolve/index.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/EmbedModal/index.d.ts +4 -0
- package/dist/types/view/EmbedModal/types.d.ts +7 -0
- package/dist/types/view/FlexibleCard/components/actions/action/action-stack-item/action-button.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/index.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/types.d.ts +6 -0
- package/dist/types/view/FlexibleCard/components/utils.d.ts +4 -1
- package/dist/types/view/FlexibleCard/index.d.ts +1 -1
- package/dist/types/view/FlexibleCard/types.d.ts +12 -3
- package/dist/types/view/HoverCard/components/CustomPopupContainer.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 +63 -2
- package/dist/types-ts4.5/common/analytics/types.d.ts +2 -0
- package/dist/types-ts4.5/extractors/action/extract-invoke-copy-link-action.d.ts +3 -0
- package/dist/types-ts4.5/extractors/action/extract-invoke-download-action.d.ts +3 -0
- package/dist/types-ts4.5/extractors/action/extract-invoke-preview-action.d.ts +11 -0
- package/dist/types-ts4.5/extractors/action/extract-invoke-view-action.d.ts +3 -0
- package/dist/types-ts4.5/extractors/action/extractDownloadActionProps.d.ts +4 -0
- package/dist/types-ts4.5/extractors/action/extractPreviewActionProps.d.ts +5 -1
- package/dist/types-ts4.5/extractors/action/extractViewActionProps.d.ts +4 -0
- package/dist/types-ts4.5/extractors/action/types.d.ts +9 -0
- 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/extractors/flexible/actions/extract-copy-link-action.d.ts +6 -0
- package/dist/types-ts4.5/extractors/flexible/actions/extract-download-action.d.ts +6 -0
- package/dist/types-ts4.5/extractors/flexible/actions/extract-preview-action.d.ts +6 -0
- package/dist/types-ts4.5/extractors/flexible/actions/extract-view-action.d.ts +3 -0
- package/dist/types-ts4.5/extractors/flexible/actions/index.d.ts +21 -4
- package/dist/types-ts4.5/extractors/flexible/extract-state.d.ts +5 -2
- package/dist/types-ts4.5/extractors/flexible/index.d.ts +1 -1
- 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/state/flexible-ui-context/types.d.ts +9 -3
- package/dist/types-ts4.5/state/hooks/use-invoke/types.d.ts +7 -1
- package/dist/types-ts4.5/state/hooks/use-invoke-client-action/index.d.ts +2 -2
- package/dist/types-ts4.5/state/hooks/use-invoke-client-action/types.d.ts +24 -2
- package/dist/types-ts4.5/state/hooks/use-resolve/index.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/EmbedModal/index.d.ts +8 -0
- package/dist/types-ts4.5/view/EmbedModal/types.d.ts +7 -0
- 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/elements/lozenge/lozenge-action/lozenge-action-error/index.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/types.d.ts +6 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/utils.d.ts +4 -1
- package/dist/types-ts4.5/view/FlexibleCard/index.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/types.d.ts +12 -3
- package/dist/types-ts4.5/view/HoverCard/components/CustomPopupContainer.d.ts +1 -1
- package/package.json +4 -1
- package/dist/cjs/extractors/block/index.js +0 -96
- package/dist/cjs/extractors/common/actions/extractPreviewAction.js +0 -106
- 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/common/actions/extractPreviewAction.js +0 -91
- 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/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/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/cjs/{extractors/block → common/analytics}/types.js +0 -0
- /package/dist/cjs/{state/reducers → extractors/action}/types.js +0 -0
- /package/dist/es2019/{extractors/block → common/analytics}/types.js +0 -0
- /package/dist/es2019/{state/reducers → extractors/action}/types.js +0 -0
- /package/dist/{es2019/view/CardWithData → esm/common/analytics}/types.js +0 -0
- /package/dist/esm/extractors/{block → action}/types.js +0 -0
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
6
|
-
import { css, jsx } from '@emotion/react';
|
|
7
|
-
import { gs } from '../../common/utils';
|
|
8
|
-
/**
|
|
9
|
-
* Class name for selecting non-flexible block card header name
|
|
10
|
-
*
|
|
11
|
-
* @deprecated {@link https://hello.jira.atlassian.cloud/browse/ENGHEALTH-6878 Internal documentation for deprecation (no external access)}
|
|
12
|
-
* Using this selctor is deprecated as once the flexible block card feature flag is removed, this class will no longer be used.
|
|
13
|
-
*/
|
|
14
|
-
export var blockCardContentHeaderNameClassName = 'block-card-content-header-name';
|
|
15
|
-
var baseStyles = css({
|
|
16
|
-
font: "var(--ds-font-heading-xsmall, normal 600 14px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
17
|
-
/**
|
|
18
|
-
* The xsmall heading token has a line height of 20px in the modernized/refreshed themes,
|
|
19
|
-
* but 16px in legacy theme which causes alignment issues.
|
|
20
|
-
* Remove this lineHeight once all consuming apps are using modernized/refreshed themes.
|
|
21
|
-
*/
|
|
22
|
-
lineHeight: '20px',
|
|
23
|
-
// Spec: show max two lines.
|
|
24
|
-
display: '-webkit-box',
|
|
25
|
-
overflow: 'hidden',
|
|
26
|
-
textOverflow: 'ellipsis',
|
|
27
|
-
wordBreak: 'break-word',
|
|
28
|
-
WebkitLineClamp: 2,
|
|
29
|
-
WebkitBoxOrient: 'vertical',
|
|
30
|
-
// Fallback options.
|
|
31
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
32
|
-
maxHeight: gs(6)
|
|
33
|
-
});
|
|
34
|
-
export var Name = function Name(_ref) {
|
|
35
|
-
var name = _ref.name,
|
|
36
|
-
_ref$isLeftPadded = _ref.isLeftPadded,
|
|
37
|
-
isLeftPadded = _ref$isLeftPadded === void 0 ? true : _ref$isLeftPadded,
|
|
38
|
-
testId = _ref.testId,
|
|
39
|
-
textColor = _ref.textColor;
|
|
40
|
-
return jsx("span", {
|
|
41
|
-
css: [baseStyles,
|
|
42
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
43
|
-
{
|
|
44
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
45
|
-
marginLeft: isLeftPadded ? gs(1) : '0',
|
|
46
|
-
color: textColor ? textColor : 'inherit'
|
|
47
|
-
}],
|
|
48
|
-
"data-testid": testId,
|
|
49
|
-
"data-trello-do-not-use-override": "block-card-content-header-name"
|
|
50
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
51
|
-
,
|
|
52
|
-
className: blockCardContentHeaderNameClassName
|
|
53
|
-
}, name);
|
|
54
|
-
};
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
6
|
-
import { css, jsx } from '@emotion/react';
|
|
7
|
-
import { N300 } from '@atlaskit/theme/colors';
|
|
8
|
-
import { gs } from '../../common/utils';
|
|
9
|
-
var wrapperStyles = css({
|
|
10
|
-
display: 'flex',
|
|
11
|
-
alignItems: 'center',
|
|
12
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
13
|
-
fontSize: gs(1.5),
|
|
14
|
-
whiteSpace: 'normal'
|
|
15
|
-
});
|
|
16
|
-
var imgStyles = css({
|
|
17
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
18
|
-
height: gs(1.5),
|
|
19
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
20
|
-
width: gs(1.5)
|
|
21
|
-
});
|
|
22
|
-
var textStyles = css({
|
|
23
|
-
color: "var(--ds-text-subtlest, ".concat(N300, ")"),
|
|
24
|
-
margin: 0,
|
|
25
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
26
|
-
marginLeft: gs(0.5),
|
|
27
|
-
// EDM-713: fixes copy-paste from renderer to editor for Firefox
|
|
28
|
-
// due to HTML its unwrapping behaviour on paste.
|
|
29
|
-
MozUserSelect: 'none'
|
|
30
|
-
});
|
|
31
|
-
export var Provider = function Provider(_ref) {
|
|
32
|
-
var name = _ref.name,
|
|
33
|
-
icon = _ref.icon;
|
|
34
|
-
var iconToRender = icon || null;
|
|
35
|
-
if (typeof icon === 'string') {
|
|
36
|
-
iconToRender =
|
|
37
|
-
// eslint-disable-next-line jsx-a11y/alt-text
|
|
38
|
-
jsx("img", {
|
|
39
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
40
|
-
className: "smart-link-icon",
|
|
41
|
-
css: imgStyles,
|
|
42
|
-
src: icon
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
return jsx("div", {
|
|
46
|
-
css: wrapperStyles
|
|
47
|
-
}, iconToRender, jsx("span", {
|
|
48
|
-
css: textStyles
|
|
49
|
-
}, name));
|
|
50
|
-
};
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
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; }
|
|
3
|
-
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) { _defineProperty(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; }
|
|
4
|
-
/**
|
|
5
|
-
* @jsxRuntime classic
|
|
6
|
-
* @jsx jsx
|
|
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 { gs, mq } from '../../common/utils';
|
|
11
|
-
export var Thumbnail = function Thumbnail(props) {
|
|
12
|
-
return props.color ? jsx(ThumbnailWithBackground, props) : jsx(ThumbnailDefault, props);
|
|
13
|
-
};
|
|
14
|
-
var sharedStyles = {
|
|
15
|
-
// The dimensions of the image are set in this manner
|
|
16
|
-
// in order for `flex` to respect this value.
|
|
17
|
-
minWidth: [gs(13), gs(20)],
|
|
18
|
-
maxWidth: [gs(13), gs(20)]
|
|
19
|
-
};
|
|
20
|
-
export var ThumbnailDefault = function ThumbnailDefault(_ref) {
|
|
21
|
-
var src = _ref.src,
|
|
22
|
-
testId = _ref.testId;
|
|
23
|
-
return jsx("div", {
|
|
24
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
25
|
-
css: mq(_objectSpread(_objectSpread({}, sharedStyles), {}, {
|
|
26
|
-
backgroundSize: 'cover',
|
|
27
|
-
backgroundRepeat: 'no-repeat',
|
|
28
|
-
backgroundPosition: '50% 50%',
|
|
29
|
-
backgroundImage: "url(".concat(src, ")")
|
|
30
|
-
})),
|
|
31
|
-
"data-testid": testId,
|
|
32
|
-
"data-trello-do-not-use-override": testId
|
|
33
|
-
});
|
|
34
|
-
};
|
|
35
|
-
var thumbnailImgStyles = css({
|
|
36
|
-
height: '90px',
|
|
37
|
-
width: '90px'
|
|
38
|
-
});
|
|
39
|
-
export var ThumbnailWithBackground = function ThumbnailWithBackground(_ref2) {
|
|
40
|
-
var src = _ref2.src,
|
|
41
|
-
color = _ref2.color,
|
|
42
|
-
testId = _ref2.testId;
|
|
43
|
-
return jsx("div", {
|
|
44
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
45
|
-
css: mq(_objectSpread(_objectSpread({}, sharedStyles), {}, {
|
|
46
|
-
backgroundColor: color,
|
|
47
|
-
display: 'flex',
|
|
48
|
-
alignItems: 'center',
|
|
49
|
-
justifyContent: 'center'
|
|
50
|
-
})),
|
|
51
|
-
"data-testid": testId,
|
|
52
|
-
"data-trello-do-not-use-override": testId
|
|
53
|
-
}, jsx("img", {
|
|
54
|
-
src: src,
|
|
55
|
-
css: thumbnailImgStyles
|
|
56
|
-
}));
|
|
57
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
6
|
-
import { css, jsx } from '@emotion/react';
|
|
7
|
-
var styles = css({
|
|
8
|
-
display: 'flex',
|
|
9
|
-
alignItems: 'center'
|
|
10
|
-
});
|
|
11
|
-
export var UnresolvedText = function UnresolvedText(_ref) {
|
|
12
|
-
var icon = _ref.icon,
|
|
13
|
-
text = _ref.text;
|
|
14
|
-
return jsx("span", {
|
|
15
|
-
css: styles
|
|
16
|
-
}, icon, text);
|
|
17
|
-
};
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
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; }
|
|
3
|
-
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) { _defineProperty(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; }
|
|
4
|
-
/**
|
|
5
|
-
* @jsxRuntime classic
|
|
6
|
-
* @jsx jsx
|
|
7
|
-
*/
|
|
8
|
-
import { useMemo } from 'react';
|
|
9
|
-
|
|
10
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
11
|
-
import { jsx } from '@emotion/react';
|
|
12
|
-
import { FormattedMessage } from 'react-intl-next';
|
|
13
|
-
import WarningIcon from '@atlaskit/icon/utility/migration/warning';
|
|
14
|
-
import { Flex, xcss } from '@atlaskit/primitives';
|
|
15
|
-
import { R300 } from '@atlaskit/theme/colors';
|
|
16
|
-
import { messages } from '../../../messages';
|
|
17
|
-
import { Byline } from '../../common/Byline';
|
|
18
|
-
import { RetryAction } from '../actions/RetryAction';
|
|
19
|
-
import { ActionList } from '../components/ActionList';
|
|
20
|
-
import { Content } from '../components/Content';
|
|
21
|
-
import { ContentFooter } from '../components/ContentFooter';
|
|
22
|
-
import { ContentHeader } from '../components/ContentHeader';
|
|
23
|
-
import { Frame } from '../components/Frame';
|
|
24
|
-
import { Link } from '../components/Link';
|
|
25
|
-
import { UnresolvedText } from '../components/UnresolvedText';
|
|
26
|
-
import { handleClickCommon } from '../utils/handlers';
|
|
27
|
-
var textDescriptionProps = _objectSpread({}, messages.could_not_load_link);
|
|
28
|
-
var iconWrapperStyles = xcss({
|
|
29
|
-
marginInline: 'space.025'
|
|
30
|
-
});
|
|
31
|
-
/**
|
|
32
|
-
* Class name for selecting non-flexible errored block card
|
|
33
|
-
*
|
|
34
|
-
* @deprecated {@link https://hello.jira.atlassian.cloud/browse/ENGHEALTH-6878 Internal documentation for deprecation (no external access)}
|
|
35
|
-
* Using this selctor is deprecated as once the flexible block card feature flag is removed, this class will no longer be used.
|
|
36
|
-
*/
|
|
37
|
-
export var blockCardErroredViewClassName = 'block-card-errored-view';
|
|
38
|
-
export var ErroredView = function ErroredView(_ref) {
|
|
39
|
-
var _ref$isSelected = _ref.isSelected,
|
|
40
|
-
isSelected = _ref$isSelected === void 0 ? false : _ref$isSelected,
|
|
41
|
-
_ref$testId = _ref.testId,
|
|
42
|
-
testId = _ref$testId === void 0 ? 'block-card-errored-view' : _ref$testId,
|
|
43
|
-
_ref$link = _ref.link,
|
|
44
|
-
link = _ref$link === void 0 ? '' : _ref$link,
|
|
45
|
-
_ref$onClick = _ref.onClick,
|
|
46
|
-
onClick = _ref$onClick === void 0 ? function () {} : _ref$onClick,
|
|
47
|
-
onRetry = _ref.onRetry,
|
|
48
|
-
_ref$inheritDimension = _ref.inheritDimensions,
|
|
49
|
-
inheritDimensions = _ref$inheritDimension === void 0 ? false : _ref$inheritDimension;
|
|
50
|
-
var handleClick = function handleClick(event) {
|
|
51
|
-
return handleClickCommon(event, onClick);
|
|
52
|
-
};
|
|
53
|
-
var actions = useMemo(function () {
|
|
54
|
-
return onRetry ? [RetryAction(onRetry)] : [];
|
|
55
|
-
}, [onRetry]);
|
|
56
|
-
return jsx(Frame, {
|
|
57
|
-
isSelected: isSelected,
|
|
58
|
-
testId: testId
|
|
59
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
60
|
-
,
|
|
61
|
-
className: blockCardErroredViewClassName,
|
|
62
|
-
isFluidHeight: true,
|
|
63
|
-
inheritDimensions: inheritDimensions
|
|
64
|
-
}, jsx(Content, {
|
|
65
|
-
isCompact: true
|
|
66
|
-
}, jsx("div", null, jsx(ContentHeader, {
|
|
67
|
-
onClick: handleClick,
|
|
68
|
-
link: link
|
|
69
|
-
}, jsx(Link, {
|
|
70
|
-
url: link,
|
|
71
|
-
testId: testId
|
|
72
|
-
})), jsx(Byline, null, jsx(UnresolvedText, {
|
|
73
|
-
icon: jsx(Flex, {
|
|
74
|
-
alignItems: "center",
|
|
75
|
-
xcss: iconWrapperStyles
|
|
76
|
-
}, jsx(WarningIcon, {
|
|
77
|
-
label: "errored-warning-icon",
|
|
78
|
-
LEGACY_size: "small",
|
|
79
|
-
color: "var(--ds-icon-warning, ".concat(R300, ")"),
|
|
80
|
-
testId: "".concat(testId, "-warning-icon"),
|
|
81
|
-
LEGACY_margin: "0 ".concat("var(--ds-space-negative-025, -2px)", " 0 ", "var(--ds-space-negative-025, -2px)")
|
|
82
|
-
})),
|
|
83
|
-
text: jsx(FormattedMessage, textDescriptionProps)
|
|
84
|
-
}))), jsx(ContentFooter, null, jsx(ActionList, {
|
|
85
|
-
items: actions
|
|
86
|
-
}))));
|
|
87
|
-
};
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
3
|
-
/**
|
|
4
|
-
* @jsxRuntime classic
|
|
5
|
-
* @jsx jsx
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
|
-
import { jsx } from '@emotion/react';
|
|
10
|
-
import { FormattedMessage } from 'react-intl-next';
|
|
11
|
-
import LockIcon from '@atlaskit/icon/utility/migration/lock-locked--lock-filled';
|
|
12
|
-
import { Flex, xcss } from '@atlaskit/primitives';
|
|
13
|
-
import { R300 } from '@atlaskit/theme/colors';
|
|
14
|
-
import { messages } from '../../../messages';
|
|
15
|
-
import { Byline } from '../../common/Byline';
|
|
16
|
-
import { ActionList } from '../components/ActionList';
|
|
17
|
-
import { Content } from '../components/Content';
|
|
18
|
-
import { ContentFooter } from '../components/ContentFooter';
|
|
19
|
-
import { ContentHeader } from '../components/ContentHeader';
|
|
20
|
-
import { Frame } from '../components/Frame';
|
|
21
|
-
import { Link } from '../components/Link';
|
|
22
|
-
import { Provider } from '../components/Provider';
|
|
23
|
-
import { UnresolvedText } from '../components/UnresolvedText';
|
|
24
|
-
import { handleClickCommon } from '../utils/handlers';
|
|
25
|
-
var iconWrapperStyles = xcss({
|
|
26
|
-
marginRight: 'space.050'
|
|
27
|
-
});
|
|
28
|
-
/**
|
|
29
|
-
* Class name for selecting non-flexible forbidden block card
|
|
30
|
-
*
|
|
31
|
-
* @deprecated {@link https://hello.jira.atlassian.cloud/browse/ENGHEALTH-6878 Internal documentation for deprecation (no external access)}
|
|
32
|
-
* Using this selctor is deprecated as once the flexible block card feature flag is removed, this class will no longer be used.
|
|
33
|
-
*/
|
|
34
|
-
export var blockCardForbiddenViewClassName = 'block-card-forbidden-view';
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* Class name for selecting link inside non-flexible forbidden block card
|
|
38
|
-
*
|
|
39
|
-
* @deprecated {@link https://hello.jira.atlassian.cloud/browse/ENGHEALTH-6878 Internal documentation for deprecation (no external access)}
|
|
40
|
-
* Using this selctor is deprecated as once the flexible block card feature flag is removed, this class will no longer be used.
|
|
41
|
-
*/
|
|
42
|
-
export var blockCardForbiddenViewLinkClassName = 'block-card-forbidden-view-link';
|
|
43
|
-
export var ForbiddenView = function ForbiddenView(_ref) {
|
|
44
|
-
var _ref$context = _ref.context,
|
|
45
|
-
context = _ref$context === void 0 ? {
|
|
46
|
-
text: ''
|
|
47
|
-
} : _ref$context,
|
|
48
|
-
_ref$isSelected = _ref.isSelected,
|
|
49
|
-
isSelected = _ref$isSelected === void 0 ? false : _ref$isSelected,
|
|
50
|
-
_ref$actions = _ref.actions,
|
|
51
|
-
actions = _ref$actions === void 0 ? [] : _ref$actions,
|
|
52
|
-
_ref$testId = _ref.testId,
|
|
53
|
-
testId = _ref$testId === void 0 ? 'block-card-forbidden-view' : _ref$testId,
|
|
54
|
-
_ref$link = _ref.link,
|
|
55
|
-
link = _ref$link === void 0 ? '' : _ref$link,
|
|
56
|
-
_ref$onClick = _ref.onClick,
|
|
57
|
-
onClick = _ref$onClick === void 0 ? function () {} : _ref$onClick,
|
|
58
|
-
_ref$requestAccessCon = _ref.requestAccessContext,
|
|
59
|
-
requestAccessContext = _ref$requestAccessCon === void 0 ? {} : _ref$requestAccessCon,
|
|
60
|
-
actionOptions = _ref.actionOptions;
|
|
61
|
-
var handleClick = function handleClick(event) {
|
|
62
|
-
return handleClickCommon(event, onClick);
|
|
63
|
-
};
|
|
64
|
-
var action = requestAccessContext.action,
|
|
65
|
-
_requestAccessContext = requestAccessContext.descriptiveMessageKey,
|
|
66
|
-
descriptiveMessageKey = _requestAccessContext === void 0 ? 'invalid_permissions_description' : _requestAccessContext,
|
|
67
|
-
_requestAccessContext2 = requestAccessContext.hostname,
|
|
68
|
-
hostname = _requestAccessContext2 === void 0 ? '' : _requestAccessContext2,
|
|
69
|
-
buttonDisabled = requestAccessContext.buttonDisabled;
|
|
70
|
-
var items = action !== undefined && !(buttonDisabled !== null && buttonDisabled !== void 0 ? buttonDisabled : false) ? [].concat(_toConsumableArray(actions), [action]) : actions;
|
|
71
|
-
return jsx(Frame, {
|
|
72
|
-
isSelected: isSelected,
|
|
73
|
-
testId: testId
|
|
74
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
75
|
-
,
|
|
76
|
-
className: blockCardForbiddenViewClassName,
|
|
77
|
-
isFluidHeight: true
|
|
78
|
-
}, jsx(Content, {
|
|
79
|
-
isCompact: true
|
|
80
|
-
}, jsx("div", null, jsx(ContentHeader, {
|
|
81
|
-
onClick: handleClick,
|
|
82
|
-
link: link
|
|
83
|
-
}, jsx(Link, {
|
|
84
|
-
url: link,
|
|
85
|
-
testId: testId
|
|
86
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
87
|
-
,
|
|
88
|
-
className: blockCardForbiddenViewLinkClassName
|
|
89
|
-
})), jsx(Byline, null, jsx(UnresolvedText, {
|
|
90
|
-
icon: jsx(Flex, {
|
|
91
|
-
alignItems: "center",
|
|
92
|
-
xcss: iconWrapperStyles
|
|
93
|
-
}, jsx(LockIcon, {
|
|
94
|
-
label: "forbidden-lock-icon",
|
|
95
|
-
LEGACY_size: "small",
|
|
96
|
-
color: "var(--ds-icon-danger, ".concat(R300, ")"),
|
|
97
|
-
testId: "".concat(testId, "-lock-icon"),
|
|
98
|
-
LEGACY_margin: "0 ".concat("var(--ds-space-negative-050, -4px)", " 0 0")
|
|
99
|
-
})),
|
|
100
|
-
text: jsx(FormattedMessage, _extends({}, messages[descriptiveMessageKey], {
|
|
101
|
-
values: {
|
|
102
|
-
product: context.text,
|
|
103
|
-
context: context.text,
|
|
104
|
-
hostname: hostname
|
|
105
|
-
}
|
|
106
|
-
}))
|
|
107
|
-
}))), jsx(ContentFooter, null, jsx(Provider, {
|
|
108
|
-
name: context.text,
|
|
109
|
-
icon: context.icon
|
|
110
|
-
}), !(actionOptions !== null && actionOptions !== void 0 && actionOptions.hide) && jsx(ActionList, {
|
|
111
|
-
items: items
|
|
112
|
-
}))));
|
|
113
|
-
};
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
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; }
|
|
3
|
-
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) { _defineProperty(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; }
|
|
4
|
-
/**
|
|
5
|
-
* @jsxRuntime classic
|
|
6
|
-
* @jsx jsx
|
|
7
|
-
*/
|
|
8
|
-
import React from 'react';
|
|
9
|
-
|
|
10
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
11
|
-
import { jsx } from '@emotion/react';
|
|
12
|
-
import { FormattedMessage } from 'react-intl-next';
|
|
13
|
-
import WarningIcon from '@atlaskit/icon/glyph/warning';
|
|
14
|
-
import { R300 } from '@atlaskit/theme/colors';
|
|
15
|
-
import { messages } from '../../../messages';
|
|
16
|
-
import { Byline } from '../../common/Byline';
|
|
17
|
-
import { Content } from '../components/Content';
|
|
18
|
-
import { ContentFooter } from '../components/ContentFooter';
|
|
19
|
-
import { ContentHeader } from '../components/ContentHeader';
|
|
20
|
-
import { Frame } from '../components/Frame';
|
|
21
|
-
import { Link } from '../components/Link';
|
|
22
|
-
import { Provider } from '../components/Provider';
|
|
23
|
-
import { UnresolvedText } from '../components/UnresolvedText';
|
|
24
|
-
import { handleClickCommon } from '../utils/handlers';
|
|
25
|
-
var textDescriptionProps = _objectSpread({}, messages.not_found_description);
|
|
26
|
-
/**
|
|
27
|
-
* Class name for selecting non-flexible not-found block card
|
|
28
|
-
*
|
|
29
|
-
* @deprecated {@link https://hello.jira.atlassian.cloud/browse/ENGHEALTH-6878 Internal documentation for deprecation (no external access)}
|
|
30
|
-
* Using this selctor is deprecated as once the flexible block card feature flag is removed, this class will no longer be used.
|
|
31
|
-
*/
|
|
32
|
-
export var blockCardNotFoundViewClassName = 'block-card-not-found-view';
|
|
33
|
-
export var NotFoundView = function NotFoundView(_ref) {
|
|
34
|
-
var _ref$context = _ref.context,
|
|
35
|
-
context = _ref$context === void 0 ? {
|
|
36
|
-
text: ''
|
|
37
|
-
} : _ref$context,
|
|
38
|
-
_ref$isSelected = _ref.isSelected,
|
|
39
|
-
isSelected = _ref$isSelected === void 0 ? false : _ref$isSelected,
|
|
40
|
-
_ref$testId = _ref.testId,
|
|
41
|
-
testId = _ref$testId === void 0 ? 'block-card-not-found-view' : _ref$testId,
|
|
42
|
-
_ref$link = _ref.link,
|
|
43
|
-
link = _ref$link === void 0 ? '' : _ref$link,
|
|
44
|
-
_ref$onClick = _ref.onClick,
|
|
45
|
-
onClick = _ref$onClick === void 0 ? function () {} : _ref$onClick;
|
|
46
|
-
var handleClick = function handleClick(event) {
|
|
47
|
-
return handleClickCommon(event, onClick);
|
|
48
|
-
};
|
|
49
|
-
return jsx(Frame, {
|
|
50
|
-
isSelected: isSelected,
|
|
51
|
-
testId: testId
|
|
52
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
53
|
-
,
|
|
54
|
-
className: blockCardNotFoundViewClassName,
|
|
55
|
-
isFluidHeight: true
|
|
56
|
-
}, jsx(Content, {
|
|
57
|
-
isCompact: true
|
|
58
|
-
}, jsx("div", null, jsx(ContentHeader, {
|
|
59
|
-
onClick: handleClick,
|
|
60
|
-
link: link
|
|
61
|
-
}, jsx(Link, {
|
|
62
|
-
url: link,
|
|
63
|
-
testId: testId
|
|
64
|
-
})), jsx(Byline, null, jsx(UnresolvedText, {
|
|
65
|
-
icon:
|
|
66
|
-
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19513
|
|
67
|
-
jsx(WarningIcon, {
|
|
68
|
-
label: "not-found-warning-icon",
|
|
69
|
-
size: "small",
|
|
70
|
-
primaryColor: "var(--ds-icon-warning, ".concat(R300, ")"),
|
|
71
|
-
testId: "".concat(testId, "-warning-icon")
|
|
72
|
-
}),
|
|
73
|
-
text: jsx(FormattedMessage, textDescriptionProps)
|
|
74
|
-
}))), jsx(ContentFooter, null, jsx(Provider, {
|
|
75
|
-
name: context.text,
|
|
76
|
-
icon: context.icon
|
|
77
|
-
}))));
|
|
78
|
-
};
|
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
/**
|
|
3
|
-
* @jsxRuntime classic
|
|
4
|
-
* @jsx jsx
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
|
-
import { css, jsx } from '@emotion/react';
|
|
9
|
-
import Lozenge from '@atlaskit/lozenge';
|
|
10
|
-
import { Byline } from '../../common/Byline';
|
|
11
|
-
import { Icon } from '../../common/Icon';
|
|
12
|
-
import { MetadataList } from '../../common/MetadataList';
|
|
13
|
-
import { gs } from '../../common/utils';
|
|
14
|
-
import { ActionList } from '../components/ActionList';
|
|
15
|
-
import { CollaboratorList } from '../components/CollaboratorList';
|
|
16
|
-
import { Content } from '../components/Content';
|
|
17
|
-
import { ContentFooter } from '../components/ContentFooter';
|
|
18
|
-
import { ContentHeader } from '../components/ContentHeader';
|
|
19
|
-
import { Emoji } from '../components/Emoji';
|
|
20
|
-
import { Frame } from '../components/Frame';
|
|
21
|
-
import { Name } from '../components/Name';
|
|
22
|
-
import { Provider } from '../components/Provider';
|
|
23
|
-
import { Thumbnail } from '../components/Thumbnail';
|
|
24
|
-
import { handleClickCommon } from '../utils/handlers';
|
|
25
|
-
import { LozengeBlockWrapper } from './styled';
|
|
26
|
-
var styles = css({
|
|
27
|
-
display: 'flex',
|
|
28
|
-
justifyContent: 'space-between',
|
|
29
|
-
alignItems: 'flex-start'
|
|
30
|
-
});
|
|
31
|
-
var lozengeStyles = {
|
|
32
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
33
|
-
height: gs(2.5),
|
|
34
|
-
display: 'flex',
|
|
35
|
-
alignItems: 'center',
|
|
36
|
-
justifyContent: 'center'
|
|
37
|
-
};
|
|
38
|
-
/**
|
|
39
|
-
* Class name for selecting non-flexible resolved block card
|
|
40
|
-
*
|
|
41
|
-
* @deprecated {@link https://hello.jira.atlassian.cloud/browse/ENGHEALTH-6878 Internal documentation for deprecation (no external access)}
|
|
42
|
-
* Using this selctor is deprecated as once the flexible block card feature flag is removed, this class will no longer be used.
|
|
43
|
-
*/
|
|
44
|
-
export var blockCardResolvedViewClassName = 'block-card-resolved-view';
|
|
45
|
-
/**
|
|
46
|
-
* Class name for selecting non-flexible resolved byline
|
|
47
|
-
*
|
|
48
|
-
* @deprecated {@link https://hello.jira.atlassian.cloud/browse/ENGHEALTH-6878 Internal documentation for deprecation (no external access)}
|
|
49
|
-
* Using this selctor is deprecated as once the flexible block card feature flag is removed, this class will no longer be used.
|
|
50
|
-
*/
|
|
51
|
-
export var blockCardResolvedViewByClassName = 'block-card-resolved-view-by';
|
|
52
|
-
export var ResolvedView = function ResolvedView(_ref) {
|
|
53
|
-
var _ref$icon = _ref.icon,
|
|
54
|
-
icon = _ref$icon === void 0 ? {} : _ref$icon,
|
|
55
|
-
_ref$actions = _ref.actions,
|
|
56
|
-
actions = _ref$actions === void 0 ? [] : _ref$actions,
|
|
57
|
-
thumbnail = _ref.thumbnail,
|
|
58
|
-
_ref$context = _ref.context,
|
|
59
|
-
context = _ref$context === void 0 ? {
|
|
60
|
-
text: ''
|
|
61
|
-
} : _ref$context,
|
|
62
|
-
_ref$title = _ref.title,
|
|
63
|
-
title = _ref$title === void 0 ? '' : _ref$title,
|
|
64
|
-
titleTextColor = _ref.titleTextColor,
|
|
65
|
-
titlePrefix = _ref.titlePrefix,
|
|
66
|
-
_ref$isSelected = _ref.isSelected,
|
|
67
|
-
isSelected = _ref$isSelected === void 0 ? false : _ref$isSelected,
|
|
68
|
-
_ref$users = _ref.users,
|
|
69
|
-
users = _ref$users === void 0 ? [] : _ref$users,
|
|
70
|
-
_ref$handleAvatarClic = _ref.handleAvatarClick,
|
|
71
|
-
handleAvatarClick = _ref$handleAvatarClic === void 0 ? function () {} : _ref$handleAvatarClic,
|
|
72
|
-
_ref$handleMoreAvatar = _ref.handleMoreAvatarsClick,
|
|
73
|
-
handleMoreAvatarsClick = _ref$handleMoreAvatar === void 0 ? function () {} : _ref$handleMoreAvatar,
|
|
74
|
-
_ref$onClick = _ref.onClick,
|
|
75
|
-
onClick = _ref$onClick === void 0 ? function () {} : _ref$onClick,
|
|
76
|
-
_ref$link = _ref.link,
|
|
77
|
-
link = _ref$link === void 0 ? '' : _ref$link,
|
|
78
|
-
_ref$byline = _ref.byline,
|
|
79
|
-
byline = _ref$byline === void 0 ? '' : _ref$byline,
|
|
80
|
-
lozenge = _ref.lozenge,
|
|
81
|
-
_ref$details = _ref.details,
|
|
82
|
-
details = _ref$details === void 0 ? [] : _ref$details,
|
|
83
|
-
_ref$testId = _ref.testId,
|
|
84
|
-
testId = _ref$testId === void 0 ? 'block-card-resolved-view' : _ref$testId;
|
|
85
|
-
var resolvedMetadata = details.length > 0 ? jsx(MetadataList, {
|
|
86
|
-
testId: testId ? "".concat(testId, "-meta") : undefined,
|
|
87
|
-
items: details
|
|
88
|
-
}) : undefined;
|
|
89
|
-
var resolvedByline = jsx(Byline, {
|
|
90
|
-
testId: testId ? "".concat(testId, "-by") : undefined
|
|
91
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
92
|
-
,
|
|
93
|
-
className: blockCardResolvedViewByClassName
|
|
94
|
-
}, byline);
|
|
95
|
-
var handleClick = function handleClick(event) {
|
|
96
|
-
return handleClickCommon(event, onClick);
|
|
97
|
-
};
|
|
98
|
-
var hasActions = actions.length > 0;
|
|
99
|
-
return jsx(Frame, {
|
|
100
|
-
isSelected: isSelected,
|
|
101
|
-
testId: testId
|
|
102
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
103
|
-
,
|
|
104
|
-
className: blockCardResolvedViewClassName
|
|
105
|
-
}, jsx(Content, null, jsx("div", null, jsx("div", {
|
|
106
|
-
css: styles
|
|
107
|
-
}, jsx(ContentHeader, {
|
|
108
|
-
onClick: handleClick,
|
|
109
|
-
link: link
|
|
110
|
-
}, titlePrefix ? jsx(Emoji, {
|
|
111
|
-
emoji: titlePrefix
|
|
112
|
-
}) : jsx(Icon, icon), jsx(Name, {
|
|
113
|
-
name: title,
|
|
114
|
-
textColor: titleTextColor
|
|
115
|
-
}), lozenge && jsx(LozengeBlockWrapper, {
|
|
116
|
-
css: lozengeStyles
|
|
117
|
-
}, jsx(Lozenge, _extends({
|
|
118
|
-
style: lozenge.style
|
|
119
|
-
}, lozenge), lozenge.text))), jsx(CollaboratorList, {
|
|
120
|
-
items: users,
|
|
121
|
-
handleAvatarClick: handleAvatarClick,
|
|
122
|
-
handleMoreAvatarsClick: handleMoreAvatarsClick,
|
|
123
|
-
testId: testId ? "".concat(testId, "-collaborator-list") : undefined
|
|
124
|
-
})), resolvedByline, resolvedMetadata), jsx(ContentFooter, {
|
|
125
|
-
hasSpaceBetween: hasActions
|
|
126
|
-
}, jsx(Provider, {
|
|
127
|
-
name: context.text,
|
|
128
|
-
icon: context.icon
|
|
129
|
-
}), hasActions && jsx(ActionList, {
|
|
130
|
-
items: actions
|
|
131
|
-
}))), thumbnail ? jsx(Thumbnail, {
|
|
132
|
-
src: thumbnail,
|
|
133
|
-
testId: testId ? "".concat(testId, "-thumb") : undefined
|
|
134
|
-
}) : null);
|
|
135
|
-
};
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
6
|
-
import { css, jsx } from '@emotion/react';
|
|
7
|
-
import { FormattedMessage } from 'react-intl-next';
|
|
8
|
-
import DocumentFilledIcon from '@atlaskit/icon/core/migration/file--editor-file';
|
|
9
|
-
import { Inline } from '@atlaskit/primitives';
|
|
10
|
-
import { N50, N90 } from '@atlaskit/theme/colors';
|
|
11
|
-
import { messages } from '../../../messages';
|
|
12
|
-
import { gs } from '../../common/utils';
|
|
13
|
-
import { Frame } from '../components/Frame';
|
|
14
|
-
/**
|
|
15
|
-
* Class name for selecting non-flexible resolving block card
|
|
16
|
-
*
|
|
17
|
-
* @deprecated {@link https://hello.atlassian.net/browse/ENGHEALTH-6878 Internal documentation for deprecation (no external access)}
|
|
18
|
-
* Using this selctor is deprecated as once the flexible block card feature flag is removed, this class will no longer be used.
|
|
19
|
-
*/
|
|
20
|
-
export var blockCardResolvingViewClassName = 'block-card-resolving-view';
|
|
21
|
-
var messageStyles = css({
|
|
22
|
-
font: "var(--ds-font-heading-xsmall, normal 600 14px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
23
|
-
color: "var(--ds-text-subtlest, ".concat(N90, ")"),
|
|
24
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
25
|
-
marginLeft: gs(0.5)
|
|
26
|
-
});
|
|
27
|
-
export var ResolvingView = function ResolvingView(_ref) {
|
|
28
|
-
var _ref$isSelected = _ref.isSelected,
|
|
29
|
-
isSelected = _ref$isSelected === void 0 ? false : _ref$isSelected,
|
|
30
|
-
_ref$testId = _ref.testId,
|
|
31
|
-
testId = _ref$testId === void 0 ? 'block-card-resolving-view' : _ref$testId,
|
|
32
|
-
inheritDimensions = _ref.inheritDimensions;
|
|
33
|
-
return jsx(Frame, {
|
|
34
|
-
inheritDimensions: inheritDimensions,
|
|
35
|
-
compact: true,
|
|
36
|
-
isSelected: isSelected,
|
|
37
|
-
testId: testId
|
|
38
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
39
|
-
,
|
|
40
|
-
className: blockCardResolvingViewClassName
|
|
41
|
-
}, jsx(DocumentFilledIcon, {
|
|
42
|
-
LEGACY_size: "medium",
|
|
43
|
-
color: "var(--ds-icon-subtle, ".concat(N50, ")"),
|
|
44
|
-
label: "document-icon",
|
|
45
|
-
LEGACY_margin: "0 -4.3px 0 -4px"
|
|
46
|
-
}), jsx(Inline, {
|
|
47
|
-
xcss: messageStyles
|
|
48
|
-
}, jsx(FormattedMessage, messages.loading)));
|
|
49
|
-
};
|