@atlaskit/smart-card 38.5.0 → 38.5.1
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 +8 -0
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/EmbedModal/index.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/elements/applied-to-components-count-element/index.js +2 -10
- package/dist/cjs/view/FlexibleCard/components/elements/assigned-to-element/index.js +21 -0
- package/dist/cjs/view/FlexibleCard/components/elements/assigned-to-group-element/index.js +20 -0
- package/dist/cjs/view/FlexibleCard/components/elements/attachment-count-element/index.js +23 -0
- package/dist/cjs/view/FlexibleCard/components/elements/author-group-element/index.js +20 -0
- package/dist/cjs/view/FlexibleCard/components/elements/checklist-progress-element/index.js +23 -0
- package/dist/cjs/view/FlexibleCard/components/elements/collaborator-group-element/index.js +20 -0
- package/dist/cjs/view/FlexibleCard/components/elements/comment-count-element/index.js +23 -0
- package/dist/cjs/view/FlexibleCard/components/elements/{atlaskit-badge-element → common/base-atlaskit-badge-element}/index.js +8 -3
- package/dist/cjs/view/FlexibleCard/components/elements/common/base-avatar-group-element/index.js +9 -2
- package/dist/cjs/view/FlexibleCard/components/elements/common/base-badge-element/index.js +13 -2
- package/dist/cjs/view/FlexibleCard/components/elements/common/base-date-time-element/index.js +9 -3
- package/dist/cjs/view/FlexibleCard/components/elements/{icon-element → common/base-icon-element}/index.js +25 -12
- package/dist/cjs/view/FlexibleCard/components/elements/common/base-link-element/index.js +8 -2
- package/dist/cjs/view/FlexibleCard/components/elements/common/base-lozenge-element/index.js +17 -2
- package/dist/cjs/view/FlexibleCard/components/elements/common/base-text-element/index.js +28 -2
- package/dist/cjs/view/FlexibleCard/components/elements/common/index.js +77 -7
- package/dist/cjs/view/FlexibleCard/components/elements/created-by-element/index.js +21 -0
- package/dist/cjs/view/FlexibleCard/components/elements/created-on-element/index.js +20 -0
- package/dist/cjs/view/FlexibleCard/components/elements/due-on-element/index.js +20 -0
- package/dist/cjs/view/FlexibleCard/components/elements/index.js +10 -0
- package/dist/cjs/view/FlexibleCard/components/elements/latest-commit-element/index.js +23 -0
- package/dist/cjs/view/FlexibleCard/components/elements/link-icon-element/index.js +31 -0
- package/dist/cjs/view/FlexibleCard/components/elements/location-element/index.js +23 -0
- package/dist/cjs/view/FlexibleCard/components/elements/modified-by-element/index.js +21 -0
- package/dist/cjs/view/FlexibleCard/components/elements/modified-on-element/index.js +20 -0
- package/dist/cjs/view/FlexibleCard/components/elements/owned-by-element/index.js +21 -0
- package/dist/cjs/view/FlexibleCard/components/elements/owned-by-group-element/index.js +20 -0
- package/dist/cjs/view/FlexibleCard/components/elements/preview-element/index.js +2 -10
- package/dist/cjs/view/FlexibleCard/components/elements/priority-element/index.js +21 -0
- package/dist/cjs/view/FlexibleCard/components/elements/programming-language-element/index.js +22 -0
- package/dist/cjs/view/FlexibleCard/components/elements/provider-element/index.js +21 -0
- package/dist/cjs/view/FlexibleCard/components/elements/react-count-element/index.js +23 -0
- package/dist/cjs/view/FlexibleCard/components/elements/read-time-element/index.js +21 -0
- package/dist/cjs/view/FlexibleCard/components/elements/sent-on-element/index.js +20 -0
- package/dist/cjs/view/FlexibleCard/components/elements/snippet-element/index.js +2 -7
- package/dist/cjs/view/FlexibleCard/components/elements/source-branch-element/index.js +20 -0
- package/dist/cjs/view/FlexibleCard/components/elements/state-element/index.js +21 -0
- package/dist/cjs/view/FlexibleCard/components/elements/story-points-element/index.js +20 -0
- package/dist/cjs/view/FlexibleCard/components/elements/sub-tasks-progress-element/index.js +23 -0
- package/dist/cjs/view/FlexibleCard/components/elements/subscriber-count-element/index.js +23 -0
- package/dist/cjs/view/FlexibleCard/components/elements/target-branch-element/index.js +20 -0
- package/dist/cjs/view/FlexibleCard/components/elements/title-element/index.js +20 -0
- package/dist/cjs/view/FlexibleCard/components/elements/utils.js +129 -139
- package/dist/cjs/view/FlexibleCard/components/elements/view-count-element/index.js +23 -0
- package/dist/cjs/view/FlexibleCard/components/elements/vote-count-element/index.js +23 -0
- package/dist/cjs/view/HoverCard/components/views/resolving/index.js +2 -2
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/EmbedModal/index.js +2 -2
- package/dist/es2019/view/FlexibleCard/components/elements/applied-to-components-count-element/index.js +3 -8
- package/dist/es2019/view/FlexibleCard/components/elements/assigned-to-element/index.js +14 -0
- package/dist/es2019/view/FlexibleCard/components/elements/assigned-to-group-element/index.js +13 -0
- package/dist/es2019/view/FlexibleCard/components/elements/attachment-count-element/index.js +16 -0
- package/dist/es2019/view/FlexibleCard/components/elements/author-group-element/index.js +13 -0
- package/dist/es2019/view/FlexibleCard/components/elements/checklist-progress-element/index.js +16 -0
- package/dist/es2019/view/FlexibleCard/components/elements/collaborator-group-element/index.js +13 -0
- package/dist/es2019/view/FlexibleCard/components/elements/comment-count-element/index.js +16 -0
- package/dist/es2019/view/FlexibleCard/components/elements/{atlaskit-badge-element → common/base-atlaskit-badge-element}/index.js +7 -2
- package/dist/es2019/view/FlexibleCard/components/elements/common/base-avatar-group-element/index.js +8 -1
- package/dist/es2019/view/FlexibleCard/components/elements/common/base-badge-element/index.js +12 -1
- package/dist/es2019/view/FlexibleCard/components/elements/common/base-date-time-element/index.js +8 -2
- package/dist/es2019/view/FlexibleCard/components/elements/{icon-element → common/base-icon-element}/index.js +19 -5
- package/dist/es2019/view/FlexibleCard/components/elements/common/base-link-element/index.js +7 -1
- package/dist/es2019/view/FlexibleCard/components/elements/common/base-lozenge-element/index.js +16 -1
- package/dist/es2019/view/FlexibleCard/components/elements/common/base-text-element/index.js +27 -1
- package/dist/es2019/view/FlexibleCard/components/elements/common/index.js +8 -6
- package/dist/es2019/view/FlexibleCard/components/elements/created-by-element/index.js +14 -0
- package/dist/es2019/view/FlexibleCard/components/elements/created-on-element/index.js +13 -0
- package/dist/es2019/view/FlexibleCard/components/elements/due-on-element/index.js +13 -0
- package/dist/es2019/view/FlexibleCard/components/elements/index.js +10 -0
- package/dist/es2019/view/FlexibleCard/components/elements/latest-commit-element/index.js +16 -0
- package/dist/es2019/view/FlexibleCard/components/elements/link-icon-element/index.js +23 -0
- package/dist/es2019/view/FlexibleCard/components/elements/location-element/index.js +16 -0
- package/dist/es2019/view/FlexibleCard/components/elements/modified-by-element/index.js +14 -0
- package/dist/es2019/view/FlexibleCard/components/elements/modified-on-element/index.js +13 -0
- package/dist/es2019/view/FlexibleCard/components/elements/owned-by-element/index.js +14 -0
- package/dist/es2019/view/FlexibleCard/components/elements/owned-by-group-element/index.js +13 -0
- package/dist/es2019/view/FlexibleCard/components/elements/preview-element/index.js +3 -8
- package/dist/es2019/view/FlexibleCard/components/elements/priority-element/index.js +14 -0
- package/dist/es2019/view/FlexibleCard/components/elements/programming-language-element/index.js +15 -0
- package/dist/es2019/view/FlexibleCard/components/elements/provider-element/index.js +14 -0
- package/dist/es2019/view/FlexibleCard/components/elements/react-count-element/index.js +16 -0
- package/dist/es2019/view/FlexibleCard/components/elements/read-time-element/index.js +14 -0
- package/dist/es2019/view/FlexibleCard/components/elements/sent-on-element/index.js +13 -0
- package/dist/es2019/view/FlexibleCard/components/elements/snippet-element/index.js +2 -7
- package/dist/es2019/view/FlexibleCard/components/elements/source-branch-element/index.js +13 -0
- package/dist/es2019/view/FlexibleCard/components/elements/state-element/index.js +14 -0
- package/dist/es2019/view/FlexibleCard/components/elements/story-points-element/index.js +13 -0
- package/dist/es2019/view/FlexibleCard/components/elements/sub-tasks-progress-element/index.js +16 -0
- package/dist/es2019/view/FlexibleCard/components/elements/subscriber-count-element/index.js +16 -0
- package/dist/es2019/view/FlexibleCard/components/elements/target-branch-element/index.js +13 -0
- package/dist/es2019/view/FlexibleCard/components/elements/title-element/index.js +13 -0
- package/dist/es2019/view/FlexibleCard/components/elements/utils.js +116 -124
- package/dist/es2019/view/FlexibleCard/components/elements/view-count-element/index.js +16 -0
- package/dist/es2019/view/FlexibleCard/components/elements/vote-count-element/index.js +16 -0
- package/dist/es2019/view/HoverCard/components/views/resolving/index.js +2 -2
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/EmbedModal/index.js +2 -2
- package/dist/esm/view/FlexibleCard/components/elements/applied-to-components-count-element/index.js +3 -8
- package/dist/esm/view/FlexibleCard/components/elements/assigned-to-element/index.js +14 -0
- package/dist/esm/view/FlexibleCard/components/elements/assigned-to-group-element/index.js +13 -0
- package/dist/esm/view/FlexibleCard/components/elements/attachment-count-element/index.js +16 -0
- package/dist/esm/view/FlexibleCard/components/elements/author-group-element/index.js +13 -0
- package/dist/esm/view/FlexibleCard/components/elements/checklist-progress-element/index.js +16 -0
- package/dist/esm/view/FlexibleCard/components/elements/collaborator-group-element/index.js +13 -0
- package/dist/esm/view/FlexibleCard/components/elements/comment-count-element/index.js +16 -0
- package/dist/esm/view/FlexibleCard/components/elements/{atlaskit-badge-element → common/base-atlaskit-badge-element}/index.js +7 -2
- package/dist/esm/view/FlexibleCard/components/elements/common/base-avatar-group-element/index.js +8 -1
- package/dist/esm/view/FlexibleCard/components/elements/common/base-badge-element/index.js +12 -1
- package/dist/esm/view/FlexibleCard/components/elements/common/base-date-time-element/index.js +8 -2
- package/dist/esm/view/FlexibleCard/components/elements/{icon-element → common/base-icon-element}/index.js +21 -5
- package/dist/esm/view/FlexibleCard/components/elements/common/base-link-element/index.js +7 -1
- package/dist/esm/view/FlexibleCard/components/elements/common/base-lozenge-element/index.js +16 -1
- package/dist/esm/view/FlexibleCard/components/elements/common/base-text-element/index.js +27 -1
- package/dist/esm/view/FlexibleCard/components/elements/common/index.js +8 -6
- package/dist/esm/view/FlexibleCard/components/elements/created-by-element/index.js +14 -0
- package/dist/esm/view/FlexibleCard/components/elements/created-on-element/index.js +13 -0
- package/dist/esm/view/FlexibleCard/components/elements/due-on-element/index.js +13 -0
- package/dist/esm/view/FlexibleCard/components/elements/index.js +10 -0
- package/dist/esm/view/FlexibleCard/components/elements/latest-commit-element/index.js +16 -0
- package/dist/esm/view/FlexibleCard/components/elements/link-icon-element/index.js +24 -0
- package/dist/esm/view/FlexibleCard/components/elements/location-element/index.js +16 -0
- package/dist/esm/view/FlexibleCard/components/elements/modified-by-element/index.js +14 -0
- package/dist/esm/view/FlexibleCard/components/elements/modified-on-element/index.js +13 -0
- package/dist/esm/view/FlexibleCard/components/elements/owned-by-element/index.js +14 -0
- package/dist/esm/view/FlexibleCard/components/elements/owned-by-group-element/index.js +13 -0
- package/dist/esm/view/FlexibleCard/components/elements/preview-element/index.js +3 -8
- package/dist/esm/view/FlexibleCard/components/elements/priority-element/index.js +14 -0
- package/dist/esm/view/FlexibleCard/components/elements/programming-language-element/index.js +15 -0
- package/dist/esm/view/FlexibleCard/components/elements/provider-element/index.js +14 -0
- package/dist/esm/view/FlexibleCard/components/elements/react-count-element/index.js +16 -0
- package/dist/esm/view/FlexibleCard/components/elements/read-time-element/index.js +14 -0
- package/dist/esm/view/FlexibleCard/components/elements/sent-on-element/index.js +13 -0
- package/dist/esm/view/FlexibleCard/components/elements/snippet-element/index.js +2 -7
- package/dist/esm/view/FlexibleCard/components/elements/source-branch-element/index.js +13 -0
- package/dist/esm/view/FlexibleCard/components/elements/state-element/index.js +14 -0
- package/dist/esm/view/FlexibleCard/components/elements/story-points-element/index.js +13 -0
- package/dist/esm/view/FlexibleCard/components/elements/sub-tasks-progress-element/index.js +16 -0
- package/dist/esm/view/FlexibleCard/components/elements/subscriber-count-element/index.js +16 -0
- package/dist/esm/view/FlexibleCard/components/elements/target-branch-element/index.js +13 -0
- package/dist/esm/view/FlexibleCard/components/elements/title-element/index.js +13 -0
- package/dist/esm/view/FlexibleCard/components/elements/utils.js +116 -125
- package/dist/esm/view/FlexibleCard/components/elements/view-count-element/index.js +16 -0
- package/dist/esm/view/FlexibleCard/components/elements/vote-count-element/index.js +16 -0
- package/dist/esm/view/HoverCard/components/views/resolving/index.js +2 -2
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/types/view/FlexibleCard/components/elements/assigned-to-element/index.d.ts +5 -0
- package/dist/types/view/FlexibleCard/components/elements/assigned-to-group-element/index.d.ts +5 -0
- package/dist/types/view/FlexibleCard/components/elements/attachment-count-element/index.d.ts +5 -0
- package/dist/types/view/FlexibleCard/components/elements/author-group-element/index.d.ts +5 -0
- package/dist/types/view/FlexibleCard/components/elements/checklist-progress-element/index.d.ts +5 -0
- package/dist/types/view/FlexibleCard/components/elements/collaborator-group-element/index.d.ts +5 -0
- package/dist/types/view/FlexibleCard/components/elements/comment-count-element/index.d.ts +5 -0
- package/dist/types/view/FlexibleCard/components/elements/common/base-atlaskit-badge-element/index.d.ts +13 -0
- package/dist/types/view/FlexibleCard/components/elements/common/base-avatar-group-element/index.d.ts +1 -0
- package/dist/types/view/FlexibleCard/components/elements/common/base-badge-element/index.d.ts +1 -0
- package/dist/types/view/FlexibleCard/components/elements/common/base-date-time-element/index.d.ts +4 -3
- package/dist/{types-ts4.5/view/FlexibleCard/components/elements/icon-element → types/view/FlexibleCard/components/elements/common/base-icon-element}/index.d.ts +15 -4
- package/dist/types/view/FlexibleCard/components/elements/common/base-link-element/index.d.ts +3 -2
- package/dist/types/view/FlexibleCard/components/elements/common/base-lozenge-element/index.d.ts +1 -0
- package/dist/types/view/FlexibleCard/components/elements/common/base-text-element/index.d.ts +3 -0
- package/dist/types/view/FlexibleCard/components/elements/common/index.d.ts +8 -6
- package/dist/types/view/FlexibleCard/components/elements/created-by-element/index.d.ts +5 -0
- package/dist/types/view/FlexibleCard/components/elements/created-on-element/index.d.ts +5 -0
- package/dist/types/view/FlexibleCard/components/elements/due-on-element/index.d.ts +5 -0
- package/dist/types/view/FlexibleCard/components/elements/index.d.ts +12 -8
- package/dist/types/view/FlexibleCard/components/elements/latest-commit-element/index.d.ts +5 -0
- package/dist/types/view/FlexibleCard/components/elements/link-icon-element/index.d.ts +5 -0
- package/dist/types/view/FlexibleCard/components/elements/location-element/index.d.ts +5 -0
- package/dist/types/view/FlexibleCard/components/elements/modified-by-element/index.d.ts +5 -0
- package/dist/types/view/FlexibleCard/components/elements/modified-on-element/index.d.ts +5 -0
- package/dist/types/view/FlexibleCard/components/elements/owned-by-element/index.d.ts +5 -0
- package/dist/types/view/FlexibleCard/components/elements/owned-by-group-element/index.d.ts +5 -0
- package/dist/types/view/FlexibleCard/components/elements/priority-element/index.d.ts +5 -0
- package/dist/types/view/FlexibleCard/components/elements/programming-language-element/index.d.ts +5 -0
- package/dist/types/view/FlexibleCard/components/elements/provider-element/index.d.ts +5 -0
- package/dist/types/view/FlexibleCard/components/elements/react-count-element/index.d.ts +5 -0
- package/dist/types/view/FlexibleCard/components/elements/read-time-element/index.d.ts +5 -0
- package/dist/types/view/FlexibleCard/components/elements/sent-on-element/index.d.ts +5 -0
- package/dist/types/view/FlexibleCard/components/elements/source-branch-element/index.d.ts +5 -0
- package/dist/types/view/FlexibleCard/components/elements/state-element/index.d.ts +5 -0
- package/dist/types/view/FlexibleCard/components/elements/story-points-element/index.d.ts +5 -0
- package/dist/types/view/FlexibleCard/components/elements/sub-tasks-progress-element/index.d.ts +5 -0
- package/dist/types/view/FlexibleCard/components/elements/subscriber-count-element/index.d.ts +5 -0
- package/dist/types/view/FlexibleCard/components/elements/target-branch-element/index.d.ts +5 -0
- package/dist/types/view/FlexibleCard/components/elements/title-element/index.d.ts +5 -0
- package/dist/types/view/FlexibleCard/components/elements/utils.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/elements/view-count-element/index.d.ts +5 -0
- package/dist/types/view/FlexibleCard/components/elements/vote-count-element/index.d.ts +5 -0
- package/dist/types/view/FlexibleCard/external.d.ts +3 -4
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/assigned-to-element/index.d.ts +5 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/assigned-to-group-element/index.d.ts +5 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/attachment-count-element/index.d.ts +5 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/author-group-element/index.d.ts +5 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/checklist-progress-element/index.d.ts +5 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/collaborator-group-element/index.d.ts +5 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/comment-count-element/index.d.ts +5 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/common/base-atlaskit-badge-element/index.d.ts +13 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/common/base-avatar-group-element/index.d.ts +1 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/common/base-badge-element/index.d.ts +1 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/common/base-date-time-element/index.d.ts +4 -3
- package/dist/{types/view/FlexibleCard/components/elements/icon-element → types-ts4.5/view/FlexibleCard/components/elements/common/base-icon-element}/index.d.ts +15 -4
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/common/base-link-element/index.d.ts +3 -2
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/common/base-lozenge-element/index.d.ts +1 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/common/base-text-element/index.d.ts +3 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/common/index.d.ts +8 -6
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/created-by-element/index.d.ts +5 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/created-on-element/index.d.ts +5 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/due-on-element/index.d.ts +5 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/index.d.ts +12 -8
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/latest-commit-element/index.d.ts +5 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/link-icon-element/index.d.ts +5 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/location-element/index.d.ts +5 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/modified-by-element/index.d.ts +5 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/modified-on-element/index.d.ts +5 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/owned-by-element/index.d.ts +5 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/owned-by-group-element/index.d.ts +5 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/priority-element/index.d.ts +5 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/programming-language-element/index.d.ts +5 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/provider-element/index.d.ts +5 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/react-count-element/index.d.ts +5 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/read-time-element/index.d.ts +5 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/sent-on-element/index.d.ts +5 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/source-branch-element/index.d.ts +5 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/state-element/index.d.ts +5 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/story-points-element/index.d.ts +5 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/sub-tasks-progress-element/index.d.ts +5 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/subscriber-count-element/index.d.ts +5 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/target-branch-element/index.d.ts +5 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/title-element/index.d.ts +5 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/utils.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/view-count-element/index.d.ts +5 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/vote-count-element/index.d.ts +5 -0
- package/dist/types-ts4.5/view/FlexibleCard/external.d.ts +3 -4
- package/package.json +2 -2
- package/dist/types/view/FlexibleCard/components/elements/atlaskit-badge-element/index.d.ts +0 -12
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/atlaskit-badge-element/index.d.ts +0 -12
- /package/dist/cjs/view/FlexibleCard/components/elements/{atlaskit-badge-element → common/base-atlaskit-badge-element}/index.compiled.css +0 -0
- /package/dist/cjs/view/FlexibleCard/components/elements/{icon-element → common/base-icon-element}/index.compiled.css +0 -0
- /package/dist/es2019/view/FlexibleCard/components/elements/{atlaskit-badge-element → common/base-atlaskit-badge-element}/index.compiled.css +0 -0
- /package/dist/es2019/view/FlexibleCard/components/elements/{icon-element → common/base-icon-element}/index.compiled.css +0 -0
- /package/dist/esm/view/FlexibleCard/components/elements/{atlaskit-badge-element → common/base-atlaskit-badge-element}/index.compiled.css +0 -0
- /package/dist/esm/view/FlexibleCard/components/elements/{icon-element → common/base-icon-element}/index.compiled.css +0 -0
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ElementName, type SmartLinkSize } from '../../../../constants';
|
|
3
|
-
import {
|
|
4
|
-
import { type BaseAvatarGroupElementProps, type BaseBadgeElementProps, type BaseDateTimeProps, type BaseLinkElementProps, type BaseLozengeElementProps, type BaseTextElementProps } from './common';
|
|
5
|
-
import { type IconElementProps } from './icon-element';
|
|
3
|
+
import { type BaseAtlaskitBadgeElementProps, type BaseAvatarGroupElementProps, type BaseBadgeElementProps, type BaseDateTimeElementProps, type BaseIconElementProps, type BaseLinkElementProps, type BaseLozengeElementProps, type BaseTextElementProps } from './common';
|
|
6
4
|
export type ElementProps = {
|
|
7
5
|
/**
|
|
8
6
|
* Name of the element, can be used as a selector.
|
|
@@ -25,6 +23,12 @@ export type ElementProps = {
|
|
|
25
23
|
*/
|
|
26
24
|
testId?: string;
|
|
27
25
|
};
|
|
26
|
+
/**
|
|
27
|
+
* @note The intention is to replace all the exports below with an import from
|
|
28
|
+
* the direct files when `createElement` is deleted.
|
|
29
|
+
* This changes should be made when FG platform-linking-flexible-card-elements-refactor
|
|
30
|
+
* is cleaned up
|
|
31
|
+
*/
|
|
28
32
|
/**
|
|
29
33
|
* Creates a AssignedTo text element using the data from AssignedTo in the Flexible UI Context.
|
|
30
34
|
* @see Text
|
|
@@ -64,7 +68,7 @@ export declare const CommentCount: import("react").ComponentType<BaseBadgeElemen
|
|
|
64
68
|
* Creates a CreatedOn DateTime element using the data from CreatedOn in the Flexible UI Context.
|
|
65
69
|
* @see DateTime
|
|
66
70
|
*/
|
|
67
|
-
export declare const CreatedOn: import("react").ComponentType<
|
|
71
|
+
export declare const CreatedOn: import("react").ComponentType<BaseDateTimeElementProps>;
|
|
68
72
|
/**
|
|
69
73
|
* Creates a CreatedBy text element using the data from CreatedBy in the Flexible UI Context.
|
|
70
74
|
* @see Text
|
|
@@ -83,7 +87,7 @@ export declare const LatestCommit: import("react").ComponentType<BaseBadgeElemen
|
|
|
83
87
|
* Creates a LinkIcon Icon element using the data from LinkIcon in the Flexible UI Context.
|
|
84
88
|
* @see Icon
|
|
85
89
|
*/
|
|
86
|
-
export declare const LinkIcon: import("react").ComponentType<
|
|
90
|
+
export declare const LinkIcon: import("react").ComponentType<BaseIconElementProps>;
|
|
87
91
|
/**
|
|
88
92
|
* Creates a Location Link element.
|
|
89
93
|
* This represents the location or container of the resource.
|
|
@@ -99,7 +103,7 @@ export declare const ModifiedBy: import("react").ComponentType<BaseTextElementPr
|
|
|
99
103
|
* Creates a ModifiedOn DateTime element using the data from ModifiedOn in the Flexible UI Context.
|
|
100
104
|
* @see DateTime
|
|
101
105
|
*/
|
|
102
|
-
export declare const ModifiedOn: import("react").ComponentType<
|
|
106
|
+
export declare const ModifiedOn: import("react").ComponentType<BaseDateTimeElementProps>;
|
|
103
107
|
/**
|
|
104
108
|
* Creates a OwnedBy text element using the data from OwnedBy in the Flexible UI Context.
|
|
105
109
|
* @see Text
|
|
@@ -143,7 +147,7 @@ export declare const ReadTime: import("react").ComponentType<BaseTextElementProp
|
|
|
143
147
|
* Creates a SentOn DateTime element using the data from SentOn in the Flexible UI Context.
|
|
144
148
|
* @see DateTime
|
|
145
149
|
*/
|
|
146
|
-
export declare const SentOn: import("react").ComponentType<
|
|
150
|
+
export declare const SentOn: import("react").ComponentType<BaseDateTimeElementProps>;
|
|
147
151
|
/**
|
|
148
152
|
* Creates a Snippet element using the data from Snippet in the Flexible UI Context.
|
|
149
153
|
* @see Text
|
|
@@ -173,7 +177,7 @@ export declare const SubTasksProgress: import("react").ComponentType<BaseBadgeEl
|
|
|
173
177
|
* Create a StoryPoints Badge element using the data from storyPoints in the Flexible UI Context.
|
|
174
178
|
* @see AtlaskitBadge
|
|
175
179
|
*/
|
|
176
|
-
export declare const StoryPoints: import("react").ComponentType<
|
|
180
|
+
export declare const StoryPoints: import("react").ComponentType<BaseAtlaskitBadgeElementProps>;
|
|
177
181
|
/**
|
|
178
182
|
* Creates a TargetBranch Text element using the data from targetBranch in the Flexible UI Context.
|
|
179
183
|
* @see Text
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { type BaseBadgeElementProps } from '../common';
|
|
3
|
+
export type LatestCommitElementProps = BaseBadgeElementProps;
|
|
4
|
+
declare const LatestCommitElement: (props: LatestCommitElementProps) => JSX.Element | null;
|
|
5
|
+
export default LatestCommitElement;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { type BaseTextElementProps } from '../common';
|
|
3
|
+
export type ModifiedByElementProps = BaseTextElementProps;
|
|
4
|
+
declare const ModifiedByElement: (props: ModifiedByElementProps) => JSX.Element | null;
|
|
5
|
+
export default ModifiedByElement;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { type BaseAvatarGroupElementProps } from '../common';
|
|
3
|
+
export type OwnedByGroupElementProps = BaseAvatarGroupElementProps;
|
|
4
|
+
declare const OwnedByGroupElement: (props: OwnedByGroupElementProps) => JSX.Element | null;
|
|
5
|
+
export default OwnedByGroupElement;
|
package/dist/types/view/FlexibleCard/components/elements/programming-language-element/index.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { BaseBadgeElementProps } from '../common';
|
|
3
|
+
export type ProgrammingLanguageElementProps = BaseBadgeElementProps;
|
|
4
|
+
declare const ProgrammingLanguageElement: (props: ProgrammingLanguageElementProps) => JSX.Element | null;
|
|
5
|
+
export default ProgrammingLanguageElement;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { type BaseBadgeElementProps } from '../common';
|
|
3
|
+
export type ReactCountElementProps = BaseBadgeElementProps;
|
|
4
|
+
declare const ReactCountElement: (props: ReactCountElementProps) => JSX.Element | null;
|
|
5
|
+
export default ReactCountElement;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { type BaseTextElementProps } from '../common';
|
|
3
|
+
export type SourceBranchElementProps = BaseTextElementProps;
|
|
4
|
+
declare const SourceBranchElement: (props: SourceBranchElementProps) => JSX.Element | null;
|
|
5
|
+
export default SourceBranchElement;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { type BaseAtlaskitBadgeElementProps } from '../common';
|
|
3
|
+
export type StoryPointsElementProps = BaseAtlaskitBadgeElementProps;
|
|
4
|
+
declare const StoryPointsElement: (props: StoryPointsElementProps) => JSX.Element | null;
|
|
5
|
+
export default StoryPointsElement;
|
package/dist/types/view/FlexibleCard/components/elements/sub-tasks-progress-element/index.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { type BaseBadgeElementProps } from '../common';
|
|
3
|
+
export type SubTasksProgressElementProps = BaseBadgeElementProps;
|
|
4
|
+
declare const SubTasksProgressElement: (props: SubTasksProgressElementProps) => JSX.Element | null;
|
|
5
|
+
export default SubTasksProgressElement;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { type BaseBadgeElementProps } from '../common';
|
|
3
|
+
export type SubscriberCountElementProps = BaseBadgeElementProps;
|
|
4
|
+
declare const SubscriberCountElement: (props: SubscriberCountElementProps) => JSX.Element | null;
|
|
5
|
+
export default SubscriberCountElement;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { type BaseTextElementProps } from '../common';
|
|
3
|
+
export type TargetBranchElementProps = BaseTextElementProps;
|
|
4
|
+
declare const TargetBranchElement: (props: TargetBranchElementProps) => JSX.Element | null;
|
|
5
|
+
export default TargetBranchElement;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ElementName } from '../../../../constants';
|
|
3
3
|
/**
|
|
4
|
-
* @deprecated
|
|
4
|
+
* @deprecated remove on FG platform-linking-flexible-card-elements-refactor clean up
|
|
5
5
|
*/
|
|
6
6
|
export declare const createElement: <P extends {}>(name: ElementName) => React.ComponentType<P>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { type BaseBadgeElementProps } from '../common';
|
|
3
|
+
export type VoteCountElementProps = BaseBadgeElementProps;
|
|
4
|
+
declare const VoteCountElement: (props: VoteCountElementProps) => JSX.Element | null;
|
|
5
|
+
export default VoteCountElement;
|
|
@@ -7,8 +7,7 @@
|
|
|
7
7
|
* DO NOT add a new prop to these components until we are ready to support it externally.
|
|
8
8
|
*/
|
|
9
9
|
import React from 'react';
|
|
10
|
-
import { type BaseBadgeElementProps, type
|
|
11
|
-
import { type IconElementProps } from './components/elements/icon-element';
|
|
10
|
+
import { type BaseBadgeElementProps, type BaseDateTimeElementProps, type BaseIconElementProps, type BaseLinkElementProps, type BaseTextElementProps } from './components/elements/common';
|
|
12
11
|
import { PreviewElementProps } from './components/elements/preview-element';
|
|
13
12
|
export declare const AssignedToElement: () => React.JSX.Element;
|
|
14
13
|
export declare const AssignedToGroupElement: () => React.JSX.Element;
|
|
@@ -22,13 +21,13 @@ export declare const CreatedOnElement: () => React.JSX.Element;
|
|
|
22
21
|
export declare const CreatedByElement: () => React.JSX.Element;
|
|
23
22
|
export declare const DueOnElement: () => React.JSX.Element;
|
|
24
23
|
export declare const LatestCommitElement: () => React.JSX.Element;
|
|
25
|
-
type LinkIconElementProps = Pick<
|
|
24
|
+
type LinkIconElementProps = Pick<BaseIconElementProps, 'render'> & {
|
|
26
25
|
iconTileSize?: 16 | 24;
|
|
27
26
|
};
|
|
28
27
|
export declare const LinkIconElement: (props?: LinkIconElementProps) => React.JSX.Element;
|
|
29
28
|
export declare const LocationElement: () => React.JSX.Element;
|
|
30
29
|
export declare const ModifiedByElement: () => React.JSX.Element;
|
|
31
|
-
type ModifiedOnElementProps = Pick<
|
|
30
|
+
type ModifiedOnElementProps = Pick<BaseDateTimeElementProps, 'hideDatePrefix' | 'color'>;
|
|
32
31
|
export declare const ModifiedOnElement: (props?: ModifiedOnElementProps) => React.JSX.Element;
|
|
33
32
|
type OwnedByElementProps = Pick<BaseTextElementProps, 'hideFormat' | 'color'>;
|
|
34
33
|
export declare const OwnedByElement: (props?: OwnedByElementProps) => React.JSX.Element;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { type BaseTextElementProps } from '../common';
|
|
3
|
+
export type AssignedToElementProps = BaseTextElementProps;
|
|
4
|
+
declare const AssignedToElement: (props: AssignedToElementProps) => JSX.Element | null;
|
|
5
|
+
export default AssignedToElement;
|
package/dist/types-ts4.5/view/FlexibleCard/components/elements/assigned-to-group-element/index.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { type BaseAvatarGroupElementProps } from '../common';
|
|
3
|
+
export type AssignedToGroupElementProps = BaseAvatarGroupElementProps;
|
|
4
|
+
declare const AssignedToGroupElement: (props: AssignedToGroupElementProps) => JSX.Element | null;
|
|
5
|
+
export default AssignedToGroupElement;
|
package/dist/types-ts4.5/view/FlexibleCard/components/elements/attachment-count-element/index.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { BaseBadgeElementProps } from '../common';
|
|
3
|
+
export type AttachmentCountElementProps = BaseBadgeElementProps;
|
|
4
|
+
declare const AttachmentCountElement: (props: AttachmentCountElementProps) => JSX.Element | null;
|
|
5
|
+
export default AttachmentCountElement;
|
package/dist/types-ts4.5/view/FlexibleCard/components/elements/author-group-element/index.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { type BaseAvatarGroupElementProps } from '../common';
|
|
3
|
+
export type AuthorGroupElementProps = BaseAvatarGroupElementProps;
|
|
4
|
+
declare const AuthorGroupElement: (props: AuthorGroupElementProps) => JSX.Element | null;
|
|
5
|
+
export default AuthorGroupElement;
|
package/dist/types-ts4.5/view/FlexibleCard/components/elements/checklist-progress-element/index.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { type BaseBadgeElementProps } from '../common';
|
|
3
|
+
export type ChecklistProgressElementProps = BaseBadgeElementProps;
|
|
4
|
+
declare const ChecklistProgressElement: (props: ChecklistProgressElementProps) => JSX.Element | null;
|
|
5
|
+
export default ChecklistProgressElement;
|
package/dist/types-ts4.5/view/FlexibleCard/components/elements/collaborator-group-element/index.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { type BaseAvatarGroupElementProps } from '../common';
|
|
3
|
+
export type CollaboratorGroupElementProps = BaseAvatarGroupElementProps;
|
|
4
|
+
declare const CollaboratorGroupElement: (props: CollaboratorGroupElementProps) => JSX.Element | null;
|
|
5
|
+
export default CollaboratorGroupElement;
|
package/dist/types-ts4.5/view/FlexibleCard/components/elements/comment-count-element/index.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { type BaseBadgeElementProps } from '../common';
|
|
3
|
+
export type CommentCountElementProps = BaseBadgeElementProps;
|
|
4
|
+
declare const CommentCountElement: (props: CommentCountElementProps) => JSX.Element | null;
|
|
5
|
+
export default CommentCountElement;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ElementProps } from '../../index';
|
|
3
|
+
export type BaseAtlaskitBadgeElementProps = ElementProps & {
|
|
4
|
+
value?: number;
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* A base element that displays a visual indicator for a numeric value
|
|
8
|
+
* @internal
|
|
9
|
+
* @see StoryPoints
|
|
10
|
+
* */
|
|
11
|
+
declare const BaseAtlaskitElementBadge: ({ value, name, className, testId, }: BaseAtlaskitBadgeElementProps) => JSX.Element | null;
|
|
12
|
+
export default BaseAtlaskitElementBadge;
|
|
13
|
+
export declare const toAtlaskitBadgeProps: (value?: number) => Partial<BaseAtlaskitBadgeElementProps> | undefined;
|
|
@@ -37,3 +37,4 @@ export type BaseAvatarGroupElementProps = ElementProps & {
|
|
|
37
37
|
*/
|
|
38
38
|
declare const BaseAvatarGroup: ({ items, maxCount, name, className, size, testId, showNamePrefix, showFallbackAvatar, }: BaseAvatarGroupElementProps) => JSX.Element | null;
|
|
39
39
|
export default BaseAvatarGroup;
|
|
40
|
+
export declare const toAvatarGroupProps: (items?: BaseAvatarItemProps[], showFallbackAvatar?: boolean) => Partial<BaseAvatarGroupElementProps> | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { ElementProps } from '../../../elements';
|
|
3
3
|
export type DateTimeType = 'created' | 'modified' | 'sent';
|
|
4
|
-
export type
|
|
4
|
+
export type BaseDateTimeElementProps = ElementProps & {
|
|
5
5
|
/**
|
|
6
6
|
* Whether the date time element text should contain "Modified" or "Created" or "sent"
|
|
7
7
|
*/
|
|
@@ -26,10 +26,11 @@ export type BaseDateTimeProps = ElementProps & {
|
|
|
26
26
|
/**
|
|
27
27
|
* A base element that displays an ISO Timestamp in text.
|
|
28
28
|
* @internal
|
|
29
|
-
* @param {
|
|
29
|
+
* @param {BaseDateTimeElementProps} BaseDateTimeElementProps - The props necessary for the DateTime element.
|
|
30
30
|
* @see CreatedOn
|
|
31
31
|
* @see ModifiedOn
|
|
32
32
|
* @see SentOn
|
|
33
33
|
*/
|
|
34
|
-
declare const BaseDateTimeElement: ({ date, name, className, type, testId, text, hideDatePrefix, color, }:
|
|
34
|
+
declare const BaseDateTimeElement: ({ date, name, className, type, testId, text, hideDatePrefix, color, }: BaseDateTimeElementProps) => JSX.Element | null;
|
|
35
35
|
export default BaseDateTimeElement;
|
|
36
|
+
export declare const toDateTimeProps: (type: 'created' | 'modified' | 'sent', dateString?: string) => Partial<BaseDateTimeElementProps> | undefined;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { type IconType, SmartLinkPosition } from '
|
|
3
|
-
import type
|
|
4
|
-
|
|
2
|
+
import { type IconType, SmartLinkPosition } from '../../../../../../constants';
|
|
3
|
+
import { type FlexibleUiDataContext } from '../../../../../../state/flexible-ui-context/types';
|
|
4
|
+
import type { ElementProps } from '../../index';
|
|
5
|
+
export type BaseIconElementProps = ElementProps & {
|
|
5
6
|
/**
|
|
6
7
|
* If provided, Icon element will use this render function instead.
|
|
7
8
|
*/
|
|
@@ -40,5 +41,15 @@ export type IconElementProps = ElementProps & {
|
|
|
40
41
|
* @param props - The props necessary for the Icon element.
|
|
41
42
|
* @see LinkIcon
|
|
42
43
|
*/
|
|
43
|
-
declare const IconElement: ({ icon, overrideIcon, label, name, position, className, render, size, testId, url, appearance, }:
|
|
44
|
+
declare const IconElement: ({ icon, overrideIcon, label, name, position, className, render, size, testId, url, appearance, }: BaseIconElementProps) => JSX.Element;
|
|
44
45
|
export default IconElement;
|
|
46
|
+
export declare const toLinkIconProps: (data: FlexibleUiDataContext[keyof FlexibleUiDataContext] | undefined, type: FlexibleUiDataContext['type']) => string[] | import("../../../../../../state/flexible-ui-context/types").LinkLocation | import("../../../../../../state/flexible-ui-context/types").Media | import("../../../../../../state/flexible-ui-context/types").FlexibleUiActions | import("../../../../../../state/flexible-ui-context/types").PreviewActionData | import("../../../../../../extractors/common/lozenge/types").LinkLozenge | import("@atlaskit/link-extractors").LinkPerson[] | {
|
|
47
|
+
objectId?: string | undefined;
|
|
48
|
+
resourceType?: string | undefined;
|
|
49
|
+
tenantId?: string | undefined;
|
|
50
|
+
} | {
|
|
51
|
+
appearance: string;
|
|
52
|
+
icon?: IconType | undefined;
|
|
53
|
+
label?: string | undefined;
|
|
54
|
+
url?: string | undefined;
|
|
55
|
+
} | undefined;
|
package/dist/types-ts4.5/view/FlexibleCard/components/elements/common/base-link-element/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
|
-
import { SmartLinkTheme } from '../../../../../../constants';
|
|
6
|
+
import { SmartLinkInternalTheme, SmartLinkTheme } from '../../../../../../constants';
|
|
7
7
|
import type { ElementProps } from '../../../../components/elements';
|
|
8
8
|
import type { AnchorTarget } from '../../../../components/types';
|
|
9
9
|
export type BaseLinkElementProps = ElementProps & {
|
|
@@ -31,7 +31,7 @@ export type BaseLinkElementProps = ElementProps & {
|
|
|
31
31
|
/**
|
|
32
32
|
* The theme of the link. Can be Black, or Link (default blue URL).
|
|
33
33
|
*/
|
|
34
|
-
theme?: SmartLinkTheme;
|
|
34
|
+
theme?: SmartLinkTheme | SmartLinkInternalTheme;
|
|
35
35
|
/**
|
|
36
36
|
* The url that the Smart Link should be based upon.
|
|
37
37
|
*/
|
|
@@ -53,3 +53,4 @@ export type BaseLinkElementProps = ElementProps & {
|
|
|
53
53
|
*/
|
|
54
54
|
declare const BaseLinkElement: ({ hideTooltip, maxLines, name, className, size, testId, text, theme, url, onClick, target, anchorRef, }: BaseLinkElementProps) => JSX.Element;
|
|
55
55
|
export default BaseLinkElement;
|
|
56
|
+
export declare const toLinkProps: (text?: string, url?: string) => Partial<BaseLinkElementProps> | undefined;
|
|
@@ -29,3 +29,4 @@ export type BaseLozengeElementProps = ElementProps & {
|
|
|
29
29
|
*/
|
|
30
30
|
declare const BaseLozengeElement: ({ action, appearance, name, className, style, text, testId, }: BaseLozengeElementProps) => JSX.Element | null;
|
|
31
31
|
export default BaseLozengeElement;
|
|
32
|
+
export declare const toDateLozengeProps: (dateString?: string) => Partial<BaseLozengeElementProps> | undefined;
|
package/dist/types-ts4.5/view/FlexibleCard/components/elements/common/base-text-element/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { MessageDescriptor } from 'react-intl-next';
|
|
2
3
|
import type { MessageProps } from '../../../types';
|
|
3
4
|
import { type ElementProps } from '../../index';
|
|
4
5
|
export type BaseTextElementProps = ElementProps & {
|
|
@@ -33,3 +34,5 @@ export type BaseTextElementProps = ElementProps & {
|
|
|
33
34
|
*/
|
|
34
35
|
export declare const BaseTextElement: ({ content, maxLines, message, name, className, testId, hideFormat, color, }: BaseTextElementProps) => JSX.Element | null;
|
|
35
36
|
export default BaseTextElement;
|
|
37
|
+
export declare const toFormattedTextProps: (descriptor: MessageDescriptor, context?: string) => Partial<BaseTextElementProps> | undefined;
|
|
38
|
+
export declare const toTextProps: (content?: string) => Partial<BaseTextElementProps> | undefined;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
export { type BaseBadgeElementProps, default as BaseBadgeElement } from './base-badge-element';
|
|
2
|
-
export { type BaseTextElementProps, default as BaseTextElement } from './base-text-element';
|
|
3
|
-
export { type BaseAvatarGroupElementProps, default as BaseAvatarGroupElement, type BaseAvatarItemProps, } from './base-avatar-group-element';
|
|
4
|
-
export { type
|
|
5
|
-
export { type BaseLozengeElementProps, default as BaseLozengeElement, } from './base-lozenge-element';
|
|
6
|
-
export { type BaseLinkElementProps, default as BaseLinkElement } from './base-link-element';
|
|
1
|
+
export { type BaseBadgeElementProps, default as BaseBadgeElement, toBadgeProps, } from './base-badge-element';
|
|
2
|
+
export { type BaseTextElementProps, default as BaseTextElement, toFormattedTextProps, toTextProps, } from './base-text-element';
|
|
3
|
+
export { type BaseAvatarGroupElementProps, default as BaseAvatarGroupElement, type BaseAvatarItemProps, toAvatarGroupProps, } from './base-avatar-group-element';
|
|
4
|
+
export { type BaseDateTimeElementProps, default as BaseDateTimeElement, type DateTimeType, toDateTimeProps, } from './base-date-time-element';
|
|
5
|
+
export { type BaseLozengeElementProps, default as BaseLozengeElement, toDateLozengeProps, } from './base-lozenge-element';
|
|
6
|
+
export { type BaseLinkElementProps, default as BaseLinkElement, toLinkProps, } from './base-link-element';
|
|
7
|
+
export { type BaseIconElementProps, default as BaseIconElement, toLinkIconProps, } from './base-icon-element';
|
|
8
|
+
export { type BaseAtlaskitBadgeElementProps, default as BaseAtlaskitBadgeElement, toAtlaskitBadgeProps, } from './base-atlaskit-badge-element';
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ElementName, type SmartLinkSize } from '../../../../constants';
|
|
3
|
-
import {
|
|
4
|
-
import { type BaseAvatarGroupElementProps, type BaseBadgeElementProps, type BaseDateTimeProps, type BaseLinkElementProps, type BaseLozengeElementProps, type BaseTextElementProps } from './common';
|
|
5
|
-
import { type IconElementProps } from './icon-element';
|
|
3
|
+
import { type BaseAtlaskitBadgeElementProps, type BaseAvatarGroupElementProps, type BaseBadgeElementProps, type BaseDateTimeElementProps, type BaseIconElementProps, type BaseLinkElementProps, type BaseLozengeElementProps, type BaseTextElementProps } from './common';
|
|
6
4
|
export type ElementProps = {
|
|
7
5
|
/**
|
|
8
6
|
* Name of the element, can be used as a selector.
|
|
@@ -25,6 +23,12 @@ export type ElementProps = {
|
|
|
25
23
|
*/
|
|
26
24
|
testId?: string;
|
|
27
25
|
};
|
|
26
|
+
/**
|
|
27
|
+
* @note The intention is to replace all the exports below with an import from
|
|
28
|
+
* the direct files when `createElement` is deleted.
|
|
29
|
+
* This changes should be made when FG platform-linking-flexible-card-elements-refactor
|
|
30
|
+
* is cleaned up
|
|
31
|
+
*/
|
|
28
32
|
/**
|
|
29
33
|
* Creates a AssignedTo text element using the data from AssignedTo in the Flexible UI Context.
|
|
30
34
|
* @see Text
|
|
@@ -64,7 +68,7 @@ export declare const CommentCount: import("react").ComponentType<BaseBadgeElemen
|
|
|
64
68
|
* Creates a CreatedOn DateTime element using the data from CreatedOn in the Flexible UI Context.
|
|
65
69
|
* @see DateTime
|
|
66
70
|
*/
|
|
67
|
-
export declare const CreatedOn: import("react").ComponentType<
|
|
71
|
+
export declare const CreatedOn: import("react").ComponentType<BaseDateTimeElementProps>;
|
|
68
72
|
/**
|
|
69
73
|
* Creates a CreatedBy text element using the data from CreatedBy in the Flexible UI Context.
|
|
70
74
|
* @see Text
|
|
@@ -83,7 +87,7 @@ export declare const LatestCommit: import("react").ComponentType<BaseBadgeElemen
|
|
|
83
87
|
* Creates a LinkIcon Icon element using the data from LinkIcon in the Flexible UI Context.
|
|
84
88
|
* @see Icon
|
|
85
89
|
*/
|
|
86
|
-
export declare const LinkIcon: import("react").ComponentType<
|
|
90
|
+
export declare const LinkIcon: import("react").ComponentType<BaseIconElementProps>;
|
|
87
91
|
/**
|
|
88
92
|
* Creates a Location Link element.
|
|
89
93
|
* This represents the location or container of the resource.
|
|
@@ -99,7 +103,7 @@ export declare const ModifiedBy: import("react").ComponentType<BaseTextElementPr
|
|
|
99
103
|
* Creates a ModifiedOn DateTime element using the data from ModifiedOn in the Flexible UI Context.
|
|
100
104
|
* @see DateTime
|
|
101
105
|
*/
|
|
102
|
-
export declare const ModifiedOn: import("react").ComponentType<
|
|
106
|
+
export declare const ModifiedOn: import("react").ComponentType<BaseDateTimeElementProps>;
|
|
103
107
|
/**
|
|
104
108
|
* Creates a OwnedBy text element using the data from OwnedBy in the Flexible UI Context.
|
|
105
109
|
* @see Text
|
|
@@ -143,7 +147,7 @@ export declare const ReadTime: import("react").ComponentType<BaseTextElementProp
|
|
|
143
147
|
* Creates a SentOn DateTime element using the data from SentOn in the Flexible UI Context.
|
|
144
148
|
* @see DateTime
|
|
145
149
|
*/
|
|
146
|
-
export declare const SentOn: import("react").ComponentType<
|
|
150
|
+
export declare const SentOn: import("react").ComponentType<BaseDateTimeElementProps>;
|
|
147
151
|
/**
|
|
148
152
|
* Creates a Snippet element using the data from Snippet in the Flexible UI Context.
|
|
149
153
|
* @see Text
|
|
@@ -173,7 +177,7 @@ export declare const SubTasksProgress: import("react").ComponentType<BaseBadgeEl
|
|
|
173
177
|
* Create a StoryPoints Badge element using the data from storyPoints in the Flexible UI Context.
|
|
174
178
|
* @see AtlaskitBadge
|
|
175
179
|
*/
|
|
176
|
-
export declare const StoryPoints: import("react").ComponentType<
|
|
180
|
+
export declare const StoryPoints: import("react").ComponentType<BaseAtlaskitBadgeElementProps>;
|
|
177
181
|
/**
|
|
178
182
|
* Creates a TargetBranch Text element using the data from targetBranch in the Flexible UI Context.
|
|
179
183
|
* @see Text
|
package/dist/types-ts4.5/view/FlexibleCard/components/elements/latest-commit-element/index.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { type BaseBadgeElementProps } from '../common';
|
|
3
|
+
export type LatestCommitElementProps = BaseBadgeElementProps;
|
|
4
|
+
declare const LatestCommitElement: (props: LatestCommitElementProps) => JSX.Element | null;
|
|
5
|
+
export default LatestCommitElement;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { type BaseTextElementProps } from '../common';
|
|
3
|
+
export type ModifiedByElementProps = BaseTextElementProps;
|
|
4
|
+
declare const ModifiedByElement: (props: ModifiedByElementProps) => JSX.Element | null;
|
|
5
|
+
export default ModifiedByElement;
|
package/dist/types-ts4.5/view/FlexibleCard/components/elements/owned-by-group-element/index.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { type BaseAvatarGroupElementProps } from '../common';
|
|
3
|
+
export type OwnedByGroupElementProps = BaseAvatarGroupElementProps;
|
|
4
|
+
declare const OwnedByGroupElement: (props: OwnedByGroupElementProps) => JSX.Element | null;
|
|
5
|
+
export default OwnedByGroupElement;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { BaseBadgeElementProps } from '../common';
|
|
3
|
+
export type ProgrammingLanguageElementProps = BaseBadgeElementProps;
|
|
4
|
+
declare const ProgrammingLanguageElement: (props: ProgrammingLanguageElementProps) => JSX.Element | null;
|
|
5
|
+
export default ProgrammingLanguageElement;
|