@atlaskit/smart-card 38.2.0 → 38.4.0
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 +17 -0
- package/compass.yml +2 -14
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/BlockCard/views/ErroredView.js +2 -2
- package/dist/cjs/view/BlockCard/views/ForbiddenView.js +2 -2
- package/dist/cjs/view/BlockCard/views/NotFoundView.js +2 -2
- package/dist/cjs/view/EmbedCard/components/ExpandedFrame.js +4 -1
- package/dist/cjs/view/EmbedModal/index.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/common/ai-summary/ai-learn-more-anchor.js +4 -1
- package/dist/cjs/view/FlexibleCard/components/elements/{applied-to-components-count → applied-to-components-count-element}/index.js +4 -4
- package/dist/cjs/view/FlexibleCard/components/elements/{atlaskit-badge → atlaskit-badge-element}/index.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/elements/{avatar-group → common/base-avatar-group-element}/index.js +7 -9
- package/dist/cjs/view/FlexibleCard/components/elements/{badge → common/base-badge-element}/index.js +15 -20
- package/dist/cjs/view/FlexibleCard/components/elements/{date-time → common/base-date-time-element}/index.js +4 -5
- package/dist/cjs/view/FlexibleCard/components/elements/{link → common/base-link-element}/index.js +6 -7
- package/dist/cjs/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/index.js +4 -5
- package/dist/cjs/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/index.js +7 -7
- package/dist/cjs/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/lozenge-action-error/index.js +4 -4
- package/dist/cjs/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/lozenge-action-error/types.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/elements/{text → common/base-text-element}/index.js +4 -5
- package/dist/cjs/view/FlexibleCard/components/elements/common/index.js +48 -0
- package/dist/cjs/view/FlexibleCard/components/elements/{icon → icon-element}/index.js +3 -3
- package/dist/cjs/view/FlexibleCard/components/elements/index.js +4 -4
- package/dist/cjs/view/FlexibleCard/components/elements/{media → media-element}/index.js +3 -5
- package/dist/cjs/view/FlexibleCard/components/elements/{preview → preview-element}/index.js +4 -4
- package/dist/cjs/view/FlexibleCard/components/elements/snippet-element/index.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/elements/utils.js +51 -44
- package/dist/cjs/view/HoverCard/components/views/resolving/index.js +2 -2
- package/dist/cjs/view/LinkUrl/LinkWarningModal/index.js +4 -1
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/cjs/view/common/UnauthorisedViewContent.js +4 -1
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/BlockCard/views/ErroredView.js +1 -1
- package/dist/es2019/view/BlockCard/views/ForbiddenView.js +1 -1
- package/dist/es2019/view/BlockCard/views/NotFoundView.js +1 -1
- package/dist/es2019/view/EmbedCard/components/ExpandedFrame.js +4 -1
- package/dist/es2019/view/EmbedModal/index.js +2 -2
- package/dist/es2019/view/FlexibleCard/components/common/ai-summary/ai-learn-more-anchor.js +4 -1
- package/dist/es2019/view/FlexibleCard/components/elements/{applied-to-components-count → applied-to-components-count-element}/index.js +4 -4
- package/dist/es2019/view/FlexibleCard/components/elements/{atlaskit-badge → atlaskit-badge-element}/index.js +2 -2
- package/dist/es2019/view/FlexibleCard/components/elements/{avatar-group → common/base-avatar-group-element}/index.js +7 -9
- package/dist/es2019/view/FlexibleCard/components/elements/{badge → common/base-badge-element}/index.js +13 -20
- package/dist/es2019/view/FlexibleCard/components/elements/{date-time → common/base-date-time-element}/index.js +4 -5
- package/dist/es2019/view/FlexibleCard/components/elements/{link → common/base-link-element}/index.js +6 -7
- package/dist/es2019/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/index.js +4 -5
- package/dist/es2019/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/index.js +7 -7
- package/dist/es2019/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/lozenge-action-error/index.js +4 -4
- package/dist/es2019/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/lozenge-action-error/types.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/elements/{text → common/base-text-element}/index.js +3 -4
- package/dist/es2019/view/FlexibleCard/components/elements/common/index.js +6 -0
- package/dist/es2019/view/FlexibleCard/components/elements/{icon → icon-element}/index.js +3 -3
- package/dist/es2019/view/FlexibleCard/components/elements/index.js +2 -3
- package/dist/es2019/view/FlexibleCard/components/elements/{media → media-element}/index.js +3 -5
- package/dist/es2019/view/FlexibleCard/components/elements/{preview → preview-element}/index.js +4 -4
- package/dist/es2019/view/FlexibleCard/components/elements/snippet-element/index.js +2 -2
- package/dist/es2019/view/FlexibleCard/components/elements/utils.js +50 -43
- package/dist/es2019/view/HoverCard/components/views/resolving/index.js +2 -2
- package/dist/es2019/view/LinkUrl/LinkWarningModal/index.js +4 -1
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/es2019/view/common/UnauthorisedViewContent.js +4 -1
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/BlockCard/views/ErroredView.js +1 -1
- package/dist/esm/view/BlockCard/views/ForbiddenView.js +1 -1
- package/dist/esm/view/BlockCard/views/NotFoundView.js +1 -1
- package/dist/esm/view/EmbedCard/components/ExpandedFrame.js +4 -1
- package/dist/esm/view/EmbedModal/index.js +2 -2
- package/dist/esm/view/FlexibleCard/components/common/ai-summary/ai-learn-more-anchor.js +4 -1
- package/dist/esm/view/FlexibleCard/components/elements/{applied-to-components-count → applied-to-components-count-element}/index.js +4 -4
- package/dist/esm/view/FlexibleCard/components/elements/{atlaskit-badge → atlaskit-badge-element}/index.js +2 -2
- package/dist/esm/view/FlexibleCard/components/elements/{avatar-group → common/base-avatar-group-element}/index.js +7 -9
- package/dist/esm/view/FlexibleCard/components/elements/{badge → common/base-badge-element}/index.js +15 -20
- package/dist/esm/view/FlexibleCard/components/elements/{date-time → common/base-date-time-element}/index.js +4 -5
- package/dist/esm/view/FlexibleCard/components/elements/{link → common/base-link-element}/index.js +6 -7
- package/dist/esm/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/index.js +4 -5
- package/dist/esm/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/index.js +7 -7
- package/dist/esm/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/lozenge-action-error/index.js +4 -4
- package/dist/esm/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/lozenge-action-error/types.js +1 -1
- package/dist/esm/view/FlexibleCard/components/elements/{text → common/base-text-element}/index.js +3 -4
- package/dist/esm/view/FlexibleCard/components/elements/common/index.js +6 -0
- package/dist/esm/view/FlexibleCard/components/elements/{icon → icon-element}/index.js +3 -3
- package/dist/esm/view/FlexibleCard/components/elements/index.js +2 -3
- package/dist/esm/view/FlexibleCard/components/elements/{media → media-element}/index.js +3 -5
- package/dist/esm/view/FlexibleCard/components/elements/{preview → preview-element}/index.js +4 -4
- package/dist/esm/view/FlexibleCard/components/elements/snippet-element/index.js +2 -2
- package/dist/esm/view/FlexibleCard/components/elements/utils.js +50 -43
- package/dist/esm/view/HoverCard/components/views/resolving/index.js +2 -2
- package/dist/esm/view/LinkUrl/LinkWarningModal/index.js +4 -1
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/esm/view/common/UnauthorisedViewContent.js +4 -1
- package/dist/types/extractors/action/extract-lozenge-action-items.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/elements/applied-to-components-count-element/index.d.ts +5 -0
- package/dist/types/view/FlexibleCard/components/elements/atlaskit-badge-element/index.d.ts +12 -0
- package/dist/types/view/FlexibleCard/components/elements/common/base-avatar-group-element/index.d.ts +39 -0
- package/dist/types/view/FlexibleCard/components/elements/common/base-badge-element/index.d.ts +66 -0
- package/dist/types/view/FlexibleCard/components/elements/common/base-date-time-element/index.d.ts +35 -0
- package/dist/types/view/FlexibleCard/components/elements/{link/types.d.ts → common/base-link-element/index.d.ts} +17 -5
- package/dist/{types-ts4.5/view/FlexibleCard/components/elements/lozenge/types.d.ts → types/view/FlexibleCard/components/elements/common/base-lozenge-element/index.d.ts} +11 -3
- package/dist/{types-ts4.5/view/FlexibleCard/components/elements/lozenge → types/view/FlexibleCard/components/elements/common/base-lozenge-element}/lozenge-action/lozenge-action-analytics.d.ts +1 -1
- package/dist/{types-ts4.5/view/FlexibleCard/components/elements/lozenge → types/view/FlexibleCard/components/elements/common/base-lozenge-element}/lozenge-action/lozenge-action-error/types.d.ts +2 -2
- package/dist/types/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/types.d.ts +1 -1
- package/dist/{types-ts4.5/view/FlexibleCard/components/elements/text/types.d.ts → types/view/FlexibleCard/components/elements/common/base-text-element/index.d.ts} +12 -3
- package/dist/types/view/FlexibleCard/components/elements/common/index.d.ts +6 -0
- package/dist/{types-ts4.5/view/FlexibleCard/components/elements/icon/types.d.ts → types/view/FlexibleCard/components/elements/icon-element/index.d.ts} +11 -3
- package/dist/types/view/FlexibleCard/components/elements/index.d.ts +60 -42
- package/dist/types/view/FlexibleCard/components/elements/media-element/index.d.ts +26 -0
- package/dist/{types-ts4.5/view/FlexibleCard/components/elements/preview/types.d.ts → types/view/FlexibleCard/components/elements/preview-element/index.d.ts} +5 -2
- package/dist/types/view/FlexibleCard/components/elements/snippet-element/index.d.ts +3 -2
- package/dist/types/view/FlexibleCard/components/elements/utils.d.ts +3 -0
- package/dist/types/view/FlexibleCard/external.d.ts +14 -18
- package/dist/types-ts4.5/extractors/action/extract-lozenge-action-items.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/applied-to-components-count-element/index.d.ts +5 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/atlaskit-badge-element/index.d.ts +12 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/common/base-avatar-group-element/index.d.ts +39 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/common/base-badge-element/index.d.ts +66 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/common/base-date-time-element/index.d.ts +35 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/{link/types.d.ts → common/base-link-element/index.d.ts} +17 -5
- package/dist/{types/view/FlexibleCard/components/elements/lozenge/types.d.ts → types-ts4.5/view/FlexibleCard/components/elements/common/base-lozenge-element/index.d.ts} +11 -3
- package/dist/{types/view/FlexibleCard/components/elements/lozenge → types-ts4.5/view/FlexibleCard/components/elements/common/base-lozenge-element}/lozenge-action/lozenge-action-analytics.d.ts +1 -1
- package/dist/{types/view/FlexibleCard/components/elements/lozenge → types-ts4.5/view/FlexibleCard/components/elements/common/base-lozenge-element}/lozenge-action/lozenge-action-error/types.d.ts +2 -2
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/types.d.ts +1 -1
- package/dist/{types/view/FlexibleCard/components/elements/text/types.d.ts → types-ts4.5/view/FlexibleCard/components/elements/common/base-text-element/index.d.ts} +12 -3
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/common/index.d.ts +6 -0
- package/dist/{types/view/FlexibleCard/components/elements/icon/types.d.ts → types-ts4.5/view/FlexibleCard/components/elements/icon-element/index.d.ts} +11 -3
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/index.d.ts +60 -42
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/media-element/index.d.ts +26 -0
- package/dist/{types/view/FlexibleCard/components/elements/preview/types.d.ts → types-ts4.5/view/FlexibleCard/components/elements/preview-element/index.d.ts} +5 -2
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/snippet-element/index.d.ts +3 -2
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/utils.d.ts +3 -0
- package/dist/types-ts4.5/view/FlexibleCard/external.d.ts +14 -18
- package/package.json +10 -7
- package/dist/cjs/view/FlexibleCard/components/elements/date-time/types.js +0 -5
- package/dist/cjs/view/FlexibleCard/components/elements/icon/types.js +0 -5
- package/dist/cjs/view/FlexibleCard/components/elements/link/types.js +0 -5
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-item/types.js +0 -5
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-items-group/types.js +0 -5
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/types.js +0 -5
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/types.js +0 -5
- package/dist/cjs/view/FlexibleCard/components/elements/media/types.js +0 -5
- package/dist/cjs/view/FlexibleCard/components/elements/preview/types.js +0 -5
- package/dist/cjs/view/FlexibleCard/components/elements/text/types.js +0 -5
- package/dist/cjs/view/FlexibleCard/components/elements/types.js +0 -5
- package/dist/es2019/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-item/types.js +0 -1
- package/dist/es2019/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-items-group/types.js +0 -1
- package/dist/es2019/view/FlexibleCard/components/elements/lozenge/lozenge-action/types.js +0 -1
- package/dist/es2019/view/FlexibleCard/components/elements/lozenge/types.js +0 -1
- package/dist/es2019/view/FlexibleCard/components/elements/media/types.js +0 -1
- package/dist/es2019/view/FlexibleCard/components/elements/preview/types.js +0 -1
- package/dist/es2019/view/FlexibleCard/components/elements/text/types.js +0 -1
- package/dist/es2019/view/FlexibleCard/components/elements/types.js +0 -1
- package/dist/esm/view/FlexibleCard/components/elements/atlaskit-badge/types.js +0 -1
- package/dist/esm/view/FlexibleCard/components/elements/avatar-group/types.js +0 -1
- package/dist/esm/view/FlexibleCard/components/elements/badge/types.js +0 -1
- package/dist/esm/view/FlexibleCard/components/elements/date-time/types.js +0 -1
- package/dist/esm/view/FlexibleCard/components/elements/icon/types.js +0 -1
- package/dist/esm/view/FlexibleCard/components/elements/link/types.js +0 -1
- package/dist/esm/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-item/types.js +0 -1
- package/dist/esm/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-items-group/types.js +0 -1
- package/dist/esm/view/FlexibleCard/components/elements/lozenge/lozenge-action/types.js +0 -1
- package/dist/esm/view/FlexibleCard/components/elements/lozenge/types.js +0 -1
- package/dist/esm/view/FlexibleCard/components/elements/media/types.js +0 -1
- package/dist/esm/view/FlexibleCard/components/elements/preview/types.js +0 -1
- package/dist/esm/view/FlexibleCard/components/elements/text/types.js +0 -1
- package/dist/esm/view/FlexibleCard/components/elements/types.js +0 -1
- package/dist/types/view/FlexibleCard/components/elements/applied-to-components-count/index.d.ts +0 -4
- package/dist/types/view/FlexibleCard/components/elements/atlaskit-badge/index.d.ts +0 -9
- package/dist/types/view/FlexibleCard/components/elements/atlaskit-badge/types.d.ts +0 -4
- package/dist/types/view/FlexibleCard/components/elements/avatar-group/index.d.ts +0 -11
- package/dist/types/view/FlexibleCard/components/elements/avatar-group/types.d.ts +0 -29
- package/dist/types/view/FlexibleCard/components/elements/badge/index.d.ts +0 -4
- package/dist/types/view/FlexibleCard/components/elements/badge/types.d.ts +0 -30
- package/dist/types/view/FlexibleCard/components/elements/date-time/index.d.ts +0 -12
- package/dist/types/view/FlexibleCard/components/elements/date-time/types.d.ts +0 -24
- package/dist/types/view/FlexibleCard/components/elements/icon/index.d.ts +0 -10
- package/dist/types/view/FlexibleCard/components/elements/link/index.d.ts +0 -10
- package/dist/types/view/FlexibleCard/components/elements/lozenge/index.d.ts +0 -10
- package/dist/types/view/FlexibleCard/components/elements/media/index.d.ts +0 -10
- package/dist/types/view/FlexibleCard/components/elements/media/types.d.ts +0 -18
- package/dist/types/view/FlexibleCard/components/elements/preview/index.d.ts +0 -4
- package/dist/types/view/FlexibleCard/components/elements/text/index.d.ts +0 -10
- package/dist/types/view/FlexibleCard/components/elements/types.d.ts +0 -23
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/applied-to-components-count/index.d.ts +0 -4
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/atlaskit-badge/index.d.ts +0 -9
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/atlaskit-badge/types.d.ts +0 -4
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/avatar-group/index.d.ts +0 -11
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/avatar-group/types.d.ts +0 -29
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/badge/index.d.ts +0 -4
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/badge/types.d.ts +0 -30
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/date-time/index.d.ts +0 -12
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/date-time/types.d.ts +0 -24
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/icon/index.d.ts +0 -10
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/link/index.d.ts +0 -10
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/lozenge/index.d.ts +0 -10
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/media/index.d.ts +0 -10
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/media/types.d.ts +0 -18
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/preview/index.d.ts +0 -4
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/text/index.d.ts +0 -10
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/types.d.ts +0 -23
- /package/dist/cjs/view/FlexibleCard/components/elements/{atlaskit-badge → atlaskit-badge-element}/index.compiled.css +0 -0
- /package/dist/cjs/view/FlexibleCard/components/elements/{avatar-group → common/base-avatar-group-element}/index.compiled.css +0 -0
- /package/dist/cjs/view/FlexibleCard/components/elements/{badge → common/base-badge-element}/index.compiled.css +0 -0
- /package/dist/cjs/view/FlexibleCard/components/elements/{date-time → common/base-date-time-element}/index.compiled.css +0 -0
- /package/dist/cjs/view/FlexibleCard/components/elements/{link → common/base-link-element}/index.compiled.css +0 -0
- /package/dist/cjs/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/index.compiled.css +0 -0
- /package/dist/cjs/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/error-boundary/index.js +0 -0
- /package/dist/cjs/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/lozenge-action-analytics.js +0 -0
- /package/dist/cjs/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/lozenge-action-error/index.compiled.css +0 -0
- /package/dist/cjs/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/lozenge-action-item/index.js +0 -0
- /package/dist/cjs/view/FlexibleCard/components/elements/{atlaskit-badge → common/base-lozenge-element/lozenge-action/lozenge-action-item}/types.js +0 -0
- /package/dist/cjs/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/lozenge-action-items-group/index.compiled.css +0 -0
- /package/dist/cjs/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/lozenge-action-items-group/index.js +0 -0
- /package/dist/cjs/view/FlexibleCard/components/elements/{avatar-group → common/base-lozenge-element/lozenge-action/lozenge-action-items-group}/types.js +0 -0
- /package/dist/cjs/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/lozenge-action-trigger/index.compiled.css +0 -0
- /package/dist/cjs/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/lozenge-action-trigger/index.js +0 -0
- /package/dist/cjs/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/lozenge-action-trigger/type.js +0 -0
- /package/dist/cjs/view/FlexibleCard/components/elements/{badge → common/base-lozenge-element/lozenge-action}/types.js +0 -0
- /package/dist/cjs/view/FlexibleCard/components/elements/{text → common/base-text-element}/index.compiled.css +0 -0
- /package/dist/cjs/view/FlexibleCard/components/elements/{icon → icon-element}/index.compiled.css +0 -0
- /package/dist/cjs/view/FlexibleCard/components/elements/{media → media-element}/index.compiled.css +0 -0
- /package/dist/es2019/view/FlexibleCard/components/elements/{atlaskit-badge → atlaskit-badge-element}/index.compiled.css +0 -0
- /package/dist/es2019/view/FlexibleCard/components/elements/{avatar-group → common/base-avatar-group-element}/index.compiled.css +0 -0
- /package/dist/es2019/view/FlexibleCard/components/elements/{badge → common/base-badge-element}/index.compiled.css +0 -0
- /package/dist/es2019/view/FlexibleCard/components/elements/{date-time → common/base-date-time-element}/index.compiled.css +0 -0
- /package/dist/es2019/view/FlexibleCard/components/elements/{link → common/base-link-element}/index.compiled.css +0 -0
- /package/dist/es2019/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/index.compiled.css +0 -0
- /package/dist/es2019/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/error-boundary/index.js +0 -0
- /package/dist/es2019/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/lozenge-action-analytics.js +0 -0
- /package/dist/es2019/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/lozenge-action-error/index.compiled.css +0 -0
- /package/dist/es2019/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/lozenge-action-item/index.js +0 -0
- /package/dist/es2019/view/FlexibleCard/components/elements/{atlaskit-badge → common/base-lozenge-element/lozenge-action/lozenge-action-item}/types.js +0 -0
- /package/dist/es2019/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/lozenge-action-items-group/index.compiled.css +0 -0
- /package/dist/es2019/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/lozenge-action-items-group/index.js +0 -0
- /package/dist/es2019/view/FlexibleCard/components/elements/{avatar-group → common/base-lozenge-element/lozenge-action/lozenge-action-items-group}/types.js +0 -0
- /package/dist/es2019/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/lozenge-action-trigger/index.compiled.css +0 -0
- /package/dist/es2019/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/lozenge-action-trigger/index.js +0 -0
- /package/dist/es2019/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/lozenge-action-trigger/type.js +0 -0
- /package/dist/es2019/view/FlexibleCard/components/elements/{badge → common/base-lozenge-element/lozenge-action}/types.js +0 -0
- /package/dist/es2019/view/FlexibleCard/components/elements/{text → common/base-text-element}/index.compiled.css +0 -0
- /package/dist/es2019/view/FlexibleCard/components/elements/{icon → icon-element}/index.compiled.css +0 -0
- /package/dist/es2019/view/FlexibleCard/components/elements/{media → media-element}/index.compiled.css +0 -0
- /package/dist/esm/view/FlexibleCard/components/elements/{atlaskit-badge → atlaskit-badge-element}/index.compiled.css +0 -0
- /package/dist/esm/view/FlexibleCard/components/elements/{avatar-group → common/base-avatar-group-element}/index.compiled.css +0 -0
- /package/dist/esm/view/FlexibleCard/components/elements/{badge → common/base-badge-element}/index.compiled.css +0 -0
- /package/dist/esm/view/FlexibleCard/components/elements/{date-time → common/base-date-time-element}/index.compiled.css +0 -0
- /package/dist/esm/view/FlexibleCard/components/elements/{link → common/base-link-element}/index.compiled.css +0 -0
- /package/dist/esm/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/index.compiled.css +0 -0
- /package/dist/esm/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/error-boundary/index.js +0 -0
- /package/dist/esm/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/lozenge-action-analytics.js +0 -0
- /package/dist/esm/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/lozenge-action-error/index.compiled.css +0 -0
- /package/dist/esm/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/lozenge-action-item/index.js +0 -0
- /package/dist/{es2019/view/FlexibleCard/components/elements/date-time → esm/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/lozenge-action-item}/types.js +0 -0
- /package/dist/esm/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/lozenge-action-items-group/index.compiled.css +0 -0
- /package/dist/esm/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/lozenge-action-items-group/index.js +0 -0
- /package/dist/{es2019/view/FlexibleCard/components/elements/icon → esm/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/lozenge-action-items-group}/types.js +0 -0
- /package/dist/esm/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/lozenge-action-trigger/index.compiled.css +0 -0
- /package/dist/esm/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/lozenge-action-trigger/index.js +0 -0
- /package/dist/esm/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/lozenge-action-trigger/type.js +0 -0
- /package/dist/{es2019/view/FlexibleCard/components/elements/link → esm/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action}/types.js +0 -0
- /package/dist/esm/view/FlexibleCard/components/elements/{text → common/base-text-element}/index.compiled.css +0 -0
- /package/dist/esm/view/FlexibleCard/components/elements/{icon → icon-element}/index.compiled.css +0 -0
- /package/dist/esm/view/FlexibleCard/components/elements/{media → media-element}/index.compiled.css +0 -0
- /package/dist/types/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/error-boundary/index.d.ts +0 -0
- /package/dist/types/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/index.d.ts +0 -0
- /package/dist/types/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/lozenge-action-error/index.d.ts +0 -0
- /package/dist/types/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/lozenge-action-item/index.d.ts +0 -0
- /package/dist/types/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/lozenge-action-item/types.d.ts +0 -0
- /package/dist/types/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/lozenge-action-items-group/index.d.ts +0 -0
- /package/dist/types/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/lozenge-action-items-group/types.d.ts +0 -0
- /package/dist/types/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/lozenge-action-trigger/index.d.ts +0 -0
- /package/dist/types/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/lozenge-action-trigger/type.d.ts +0 -0
- /package/dist/types-ts4.5/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/error-boundary/index.d.ts +0 -0
- /package/dist/types-ts4.5/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/index.d.ts +0 -0
- /package/dist/types-ts4.5/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/lozenge-action-error/index.d.ts +0 -0
- /package/dist/types-ts4.5/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/lozenge-action-item/index.d.ts +0 -0
- /package/dist/types-ts4.5/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/lozenge-action-item/types.d.ts +0 -0
- /package/dist/types-ts4.5/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/lozenge-action-items-group/index.d.ts +0 -0
- /package/dist/types-ts4.5/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/lozenge-action-items-group/types.d.ts +0 -0
- /package/dist/types-ts4.5/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/lozenge-action-trigger/index.d.ts +0 -0
- /package/dist/types-ts4.5/view/FlexibleCard/components/elements/{lozenge → common/base-lozenge-element}/lozenge-action/lozenge-action-trigger/type.d.ts +0 -0
|
@@ -7,48 +7,44 @@
|
|
|
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
|
|
11
|
-
import { type
|
|
12
|
-
import {
|
|
13
|
-
import { type LinkProps } from './components/elements/link/types';
|
|
14
|
-
import { type PreviewProps } from './components/elements/preview/types';
|
|
15
|
-
import { type TextProps } from './components/elements/text/types';
|
|
10
|
+
import { type BaseBadgeElementProps, type BaseDateTimeProps, type BaseLinkElementProps, type BaseTextElementProps } from './components/elements/common';
|
|
11
|
+
import { type IconElementProps } from './components/elements/icon-element';
|
|
12
|
+
import { PreviewElementProps } from './components/elements/preview-element';
|
|
16
13
|
export declare const AssignedToElement: () => React.JSX.Element;
|
|
17
14
|
export declare const AssignedToGroupElement: () => React.JSX.Element;
|
|
18
15
|
export declare const AttachmentCountElement: () => React.JSX.Element;
|
|
19
16
|
export declare const AuthorGroupElement: () => React.JSX.Element;
|
|
20
17
|
export declare const ChecklistProgressElement: () => React.JSX.Element;
|
|
21
18
|
export declare const CollaboratorGroupElement: () => React.JSX.Element;
|
|
22
|
-
type CommentCountElementProps = Pick<
|
|
19
|
+
type CommentCountElementProps = Pick<BaseBadgeElementProps, 'color'>;
|
|
23
20
|
export declare const CommentCountElement: (props?: CommentCountElementProps) => React.JSX.Element;
|
|
24
21
|
export declare const CreatedOnElement: () => React.JSX.Element;
|
|
25
22
|
export declare const CreatedByElement: () => React.JSX.Element;
|
|
26
23
|
export declare const DueOnElement: () => React.JSX.Element;
|
|
27
24
|
export declare const LatestCommitElement: () => React.JSX.Element;
|
|
28
|
-
type LinkIconElementProps = Pick<
|
|
25
|
+
type LinkIconElementProps = Pick<IconElementProps, 'render'> & {
|
|
29
26
|
iconTileSize?: 16 | 24;
|
|
30
27
|
};
|
|
31
28
|
export declare const LinkIconElement: (props?: LinkIconElementProps) => React.JSX.Element;
|
|
32
29
|
export declare const LocationElement: () => React.JSX.Element;
|
|
33
30
|
export declare const ModifiedByElement: () => React.JSX.Element;
|
|
34
|
-
type ModifiedOnElementProps = Pick<
|
|
31
|
+
type ModifiedOnElementProps = Pick<BaseDateTimeProps, 'hideDatePrefix' | 'color'>;
|
|
35
32
|
export declare const ModifiedOnElement: (props?: ModifiedOnElementProps) => React.JSX.Element;
|
|
36
|
-
type OwnedByElementProps = Pick<
|
|
33
|
+
type OwnedByElementProps = Pick<BaseTextElementProps, 'hideFormat' | 'color'>;
|
|
37
34
|
export declare const OwnedByElement: (props?: OwnedByElementProps) => React.JSX.Element;
|
|
38
35
|
export declare const OwnedByGroupElement: () => React.JSX.Element;
|
|
39
|
-
|
|
40
|
-
url?:
|
|
41
|
-
};
|
|
42
|
-
export declare const PreviewElement: (props?: PreviewElementProps) => React.JSX.Element;
|
|
36
|
+
export declare const PreviewElement: (props: Omit<PreviewElementProps, 'overrideUrl'> & {
|
|
37
|
+
url?: PreviewElementProps['overrideUrl'];
|
|
38
|
+
}) => React.JSX.Element;
|
|
43
39
|
export declare const PriorityElement: () => React.JSX.Element;
|
|
44
40
|
export declare const ProgrammingLanguageElement: () => React.JSX.Element;
|
|
45
41
|
export declare const ProviderElement: () => React.JSX.Element;
|
|
46
|
-
type ReactCountElementProps = Pick<
|
|
42
|
+
type ReactCountElementProps = Pick<BaseBadgeElementProps, 'color'>;
|
|
47
43
|
export declare const ReactCountElement: (props?: ReactCountElementProps) => React.JSX.Element;
|
|
48
44
|
export declare const ReadTimeElement: () => React.JSX.Element;
|
|
49
45
|
export declare const SentOnElement: () => React.JSX.Element;
|
|
50
|
-
export type SnippetElementProps = Pick<
|
|
51
|
-
text?:
|
|
46
|
+
export type SnippetElementProps = Pick<BaseTextElementProps, 'maxLines'> & {
|
|
47
|
+
text?: BaseTextElementProps['content'];
|
|
52
48
|
};
|
|
53
49
|
export declare const SnippetElement: (props: SnippetElementProps) => React.JSX.Element;
|
|
54
50
|
export declare const SourceBranchElement: () => React.JSX.Element;
|
|
@@ -57,7 +53,7 @@ export declare const StoryPointsElement: () => React.JSX.Element;
|
|
|
57
53
|
export declare const SubscriberCountElement: () => React.JSX.Element;
|
|
58
54
|
export declare const SubTasksProgressElement: () => React.JSX.Element;
|
|
59
55
|
export declare const TargetBranchElement: () => React.JSX.Element;
|
|
60
|
-
export type TitleElementProps = Pick<
|
|
56
|
+
export type TitleElementProps = Pick<BaseLinkElementProps, 'hideTooltip' | 'maxLines' | 'target' | 'text'>;
|
|
61
57
|
export declare const TitleElement: (props: TitleElementProps) => React.JSX.Element;
|
|
62
58
|
export declare const ViewCountElement: () => React.JSX.Element;
|
|
63
59
|
export declare const VoteCountElement: () => React.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { GetStatusTransitionsInvokeResponse } from '@atlaskit/linking-types/smart-link-actions';
|
|
2
|
-
import { type LozengeItem } from '../../view/FlexibleCard/components/elements/lozenge/lozenge-action/types';
|
|
2
|
+
import { type LozengeItem } from '../../view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/types';
|
|
3
3
|
declare const extractLozengeActionItems: (response: GetStatusTransitionsInvokeResponse) => LozengeItem[];
|
|
4
4
|
export default extractLozengeActionItems;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { type BaseBadgeElementProps } from '../common';
|
|
3
|
+
export type AppliedToComponentsCountElementProps = BaseBadgeElementProps;
|
|
4
|
+
declare const AppliedToComponentsCountElement: (props: AppliedToComponentsCountElementProps) => JSX.Element | null;
|
|
5
|
+
export default AppliedToComponentsCountElement;
|
package/dist/types-ts4.5/view/FlexibleCard/components/elements/atlaskit-badge-element/index.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ElementProps } from '../index';
|
|
3
|
+
export type AtlaskitBadgeElementProps = 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 AtlaskitElementBadge: ({ value, name, className, testId, }: AtlaskitBadgeElementProps) => JSX.Element | null;
|
|
12
|
+
export default AtlaskitElementBadge;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { type ElementProps } from '../../index';
|
|
3
|
+
export type BaseAvatarItemProps = {
|
|
4
|
+
/**
|
|
5
|
+
* The image to be used in an `@atlaskit/avatar - this should be a url to the image src
|
|
6
|
+
*/
|
|
7
|
+
src?: string;
|
|
8
|
+
/**
|
|
9
|
+
* The name of the person in the avatar.
|
|
10
|
+
*/
|
|
11
|
+
name: string;
|
|
12
|
+
};
|
|
13
|
+
export type BaseAvatarGroupElementProps = ElementProps & {
|
|
14
|
+
/**
|
|
15
|
+
* An array of Avatars to show
|
|
16
|
+
*/
|
|
17
|
+
items?: BaseAvatarItemProps[];
|
|
18
|
+
/**
|
|
19
|
+
* The maximum number of Avatars to show in the AvatarGroup
|
|
20
|
+
*/
|
|
21
|
+
maxCount?: number;
|
|
22
|
+
/**
|
|
23
|
+
* Shows a name prefix in the Avatar tooltip (Created by, Assigned To, Owned by)
|
|
24
|
+
*/
|
|
25
|
+
showNamePrefix?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Shows a default fallback avatar if no persons in the AvatarGroup.
|
|
28
|
+
*/
|
|
29
|
+
showFallbackAvatar?: boolean;
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* A base element that displays a group of avatars.
|
|
33
|
+
* @internal
|
|
34
|
+
* @param {BaseAvatarGroupElementProps} BaseAvatarGroupElementProps - The props necessary for the AvatarGroup.
|
|
35
|
+
* @see AuthorGroup
|
|
36
|
+
* @see CollaboratorGroup
|
|
37
|
+
*/
|
|
38
|
+
declare const BaseAvatarGroup: ({ items, maxCount, name, className, size, testId, showNamePrefix, showFallbackAvatar, }: BaseAvatarGroupElementProps) => JSX.Element | null;
|
|
39
|
+
export default BaseAvatarGroup;
|
package/dist/types-ts4.5/view/FlexibleCard/components/elements/common/base-badge-element/index.d.ts
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
import React from 'react';
|
|
6
|
+
import { IconType } from '../../../../../../constants';
|
|
7
|
+
import type { ElementProps } from '../../index';
|
|
8
|
+
export type BaseBadgeElementProps = ElementProps & {
|
|
9
|
+
/**
|
|
10
|
+
* Badge appearances
|
|
11
|
+
*/
|
|
12
|
+
appearance?: 'default' | 'subtle';
|
|
13
|
+
/**
|
|
14
|
+
* Determines whether the badge icon should be hidden. When set to true,
|
|
15
|
+
* the badge will be displayed without the icon, showing only the label text.
|
|
16
|
+
*/
|
|
17
|
+
hideIcon?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* The Atlaskit Icon to display next to the label. If this is not supplied,
|
|
20
|
+
* then the badge icon will fallback to the URL provided.
|
|
21
|
+
*/
|
|
22
|
+
icon?: IconType;
|
|
23
|
+
/**
|
|
24
|
+
* The icon from this URL will be used for the badge if no Atlaskit Icon is provided.
|
|
25
|
+
*/
|
|
26
|
+
url?: string;
|
|
27
|
+
/**
|
|
28
|
+
* The text to display for the badge.
|
|
29
|
+
*/
|
|
30
|
+
label?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Color of the text and badge
|
|
33
|
+
*/
|
|
34
|
+
color?: string;
|
|
35
|
+
};
|
|
36
|
+
declare const _default: (props: ElementProps & {
|
|
37
|
+
/**
|
|
38
|
+
* Badge appearances
|
|
39
|
+
*/
|
|
40
|
+
appearance?: "default" | "subtle" | undefined;
|
|
41
|
+
/**
|
|
42
|
+
* Determines whether the badge icon should be hidden. When set to true,
|
|
43
|
+
* the badge will be displayed without the icon, showing only the label text.
|
|
44
|
+
*/
|
|
45
|
+
hideIcon?: boolean | undefined;
|
|
46
|
+
/**
|
|
47
|
+
* The Atlaskit Icon to display next to the label. If this is not supplied,
|
|
48
|
+
* then the badge icon will fallback to the URL provided.
|
|
49
|
+
*/
|
|
50
|
+
icon?: IconType | undefined;
|
|
51
|
+
/**
|
|
52
|
+
* The icon from this URL will be used for the badge if no Atlaskit Icon is provided.
|
|
53
|
+
*/
|
|
54
|
+
url?: string | undefined;
|
|
55
|
+
/**
|
|
56
|
+
* The text to display for the badge.
|
|
57
|
+
*/
|
|
58
|
+
label?: string | undefined;
|
|
59
|
+
/**
|
|
60
|
+
* Color of the text and badge
|
|
61
|
+
*/
|
|
62
|
+
color?: string | undefined;
|
|
63
|
+
} & React.RefAttributes<HTMLElement> & {
|
|
64
|
+
className?: string | undefined;
|
|
65
|
+
}) => React.JSX.Element;
|
|
66
|
+
export default _default;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { ElementProps } from '../../../elements';
|
|
3
|
+
export type DateTimeType = 'created' | 'modified' | 'sent';
|
|
4
|
+
export type BaseDateTimeProps = ElementProps & {
|
|
5
|
+
/**
|
|
6
|
+
* Whether the date time element text should contain "Modified" or "Created" or "sent"
|
|
7
|
+
*/
|
|
8
|
+
type?: DateTimeType;
|
|
9
|
+
/**
|
|
10
|
+
* The date to display in the element.
|
|
11
|
+
*/
|
|
12
|
+
date?: Date;
|
|
13
|
+
/**
|
|
14
|
+
* The override text which will show next to the date
|
|
15
|
+
*/
|
|
16
|
+
text?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Hide the date prefix (e.g. "Created on", "Modified on", "Sent on")
|
|
19
|
+
*/
|
|
20
|
+
hideDatePrefix?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Color of the text
|
|
23
|
+
*/
|
|
24
|
+
color?: string;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* A base element that displays an ISO Timestamp in text.
|
|
28
|
+
* @internal
|
|
29
|
+
* @param {BaseDateTimeProps} BaseDateTimeProps - The props necessary for the DateTime element.
|
|
30
|
+
* @see CreatedOn
|
|
31
|
+
* @see ModifiedOn
|
|
32
|
+
* @see SentOn
|
|
33
|
+
*/
|
|
34
|
+
declare const BaseDateTimeElement: ({ date, name, className, type, testId, text, hideDatePrefix, color, }: BaseDateTimeProps) => JSX.Element | null;
|
|
35
|
+
export default BaseDateTimeElement;
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
import React from 'react';
|
|
6
|
+
import { SmartLinkTheme } from '../../../../../../constants';
|
|
7
|
+
import type { ElementProps } from '../../../../components/elements';
|
|
8
|
+
import type { AnchorTarget } from '../../../../components/types';
|
|
9
|
+
export type BaseLinkElementProps = ElementProps & {
|
|
6
10
|
/**
|
|
7
11
|
* Determines whether the link should display tooltip on hover.
|
|
8
12
|
*/
|
|
@@ -37,3 +41,11 @@ export type LinkProps = ElementProps & {
|
|
|
37
41
|
*/
|
|
38
42
|
target?: AnchorTarget;
|
|
39
43
|
};
|
|
44
|
+
/**
|
|
45
|
+
* A base element that represent an anchor.
|
|
46
|
+
* @internal
|
|
47
|
+
* @param {BaseLinkElementProps} BaseLinkElementProps - The props necessary for the Link element.
|
|
48
|
+
* @see LinkIcon
|
|
49
|
+
*/
|
|
50
|
+
declare const BaseLinkElement: ({ hideTooltip, maxLines, name, className, size, testId, text, theme, url, onClick, target, }: BaseLinkElementProps) => JSX.Element;
|
|
51
|
+
export default BaseLinkElement;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { type LozengeProps as AtlaskitLozengeProps } from '@atlaskit/lozenge';
|
|
3
|
-
import type { LinkLozengeInvokeActions } from '
|
|
4
|
-
import {
|
|
3
|
+
import type { LinkLozengeInvokeActions } from '../../../../../../extractors/common/lozenge/types';
|
|
4
|
+
import type { ElementProps } from '../../../elements';
|
|
5
5
|
export type LozengeAppearance = 'default' | 'inprogress' | 'moved' | 'new' | 'removed' | 'success';
|
|
6
|
-
export type
|
|
6
|
+
export type BaseLozengeElementProps = ElementProps & {
|
|
7
7
|
/**
|
|
8
8
|
* Action that can be performed on the element
|
|
9
9
|
*/
|
|
@@ -21,3 +21,11 @@ export type LozengeProps = ElementProps & {
|
|
|
21
21
|
*/
|
|
22
22
|
text?: string | React.ReactNode;
|
|
23
23
|
};
|
|
24
|
+
/**
|
|
25
|
+
* A base element that displays a Lozenge.
|
|
26
|
+
* @internal
|
|
27
|
+
* @param {BaseLozengeElementProps} BaseLozengeElementProps - The props necessary for the Lozenge element.
|
|
28
|
+
* @see State
|
|
29
|
+
*/
|
|
30
|
+
declare const BaseLozengeElement: ({ action, appearance, name, className, style, text, testId, }: BaseLozengeElementProps) => JSX.Element | null;
|
|
31
|
+
export default BaseLozengeElement;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type TrackQuickActionFailureReason, type TrackQuickActionType } from '
|
|
1
|
+
import { type TrackQuickActionFailureReason, type TrackQuickActionType } from '../../../../../../../utils/analytics/analytics';
|
|
2
2
|
export declare const unknownLoadErrorAnalyticsPayload: {
|
|
3
3
|
smartLinkActionType: TrackQuickActionType;
|
|
4
4
|
reason: TrackQuickActionFailureReason;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type InvokeClientActionProps } from '
|
|
2
|
-
import { type MessageProps } from '
|
|
1
|
+
import { type InvokeClientActionProps } from '../../../../../../../../state/hooks/use-invoke-client-action/types';
|
|
2
|
+
import { type MessageProps } from '../../../../../types';
|
|
3
3
|
export type LozengeActionErrorProps = {
|
|
4
4
|
/**
|
|
5
5
|
* Error message to be displayed inside the dropdown
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { ThemeAppearance } from '@atlaskit/lozenge';
|
|
3
|
-
import type { LinkLozengeInvokeActions } from '
|
|
3
|
+
import type { LinkLozengeInvokeActions } from '../../../../../../../extractors/common/lozenge/types';
|
|
4
4
|
export type LozengeItem = {
|
|
5
5
|
appearance?: ThemeAppearance;
|
|
6
6
|
id: string;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { MessageProps } from '../../../types';
|
|
3
|
+
import { type ElementProps } from '../../index';
|
|
4
|
+
export type BaseTextElementProps = ElementProps & {
|
|
4
5
|
/**
|
|
5
6
|
* Determines the formatted message (i18n) to display.
|
|
6
7
|
* If this is provided and hideFormat is false, the content prop will not be displayed.
|
|
@@ -24,3 +25,11 @@ export type TextProps = ElementProps & {
|
|
|
24
25
|
*/
|
|
25
26
|
color?: string;
|
|
26
27
|
};
|
|
28
|
+
/**
|
|
29
|
+
* A base element that displays some Text.
|
|
30
|
+
* @internal
|
|
31
|
+
* @param {TextProps} TextProps - The props necessary for the Text element.
|
|
32
|
+
* @see Title
|
|
33
|
+
*/
|
|
34
|
+
export declare const BaseTextElement: ({ content, maxLines, message, name, className, testId, hideFormat, color, }: BaseTextElementProps) => JSX.Element | null;
|
|
35
|
+
export default BaseTextElement;
|
|
@@ -0,0 +1,6 @@
|
|
|
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 BaseDateTimeProps, default as BaseDateTimeElement, type DateTimeType, } from './base-date-time-element';
|
|
5
|
+
export { type BaseLozengeElementProps, default as BaseLozengeElement, } from './base-lozenge-element';
|
|
6
|
+
export { type BaseLinkElementProps, default as BaseLinkElement } from './base-link-element';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { type IconType,
|
|
3
|
-
import {
|
|
4
|
-
export type
|
|
2
|
+
import { type IconType, SmartLinkPosition } from '../../../../../constants';
|
|
3
|
+
import type { ElementProps } from '../index';
|
|
4
|
+
export type IconElementProps = ElementProps & {
|
|
5
5
|
/**
|
|
6
6
|
* If provided, Icon element will use this render function instead.
|
|
7
7
|
*/
|
|
@@ -34,3 +34,11 @@ export type IconProps = ElementProps & {
|
|
|
34
34
|
*/
|
|
35
35
|
appearance?: 'square' | 'round';
|
|
36
36
|
};
|
|
37
|
+
/**
|
|
38
|
+
* A base element that displays an Icon or favicon.
|
|
39
|
+
* @internal
|
|
40
|
+
* @param props - The props necessary for the Icon element.
|
|
41
|
+
* @see LinkIcon
|
|
42
|
+
*/
|
|
43
|
+
declare const IconElement: ({ icon, overrideIcon, label, name, position, className, render, size, testId, url, appearance, }: IconElementProps) => JSX.Element;
|
|
44
|
+
export default IconElement;
|
|
@@ -1,131 +1,149 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { type
|
|
3
|
-
import {
|
|
4
|
-
import { type
|
|
5
|
-
import { type
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
import { ElementName, type SmartLinkSize } from '../../../../constants';
|
|
3
|
+
import { AtlaskitBadgeElementProps } from './atlaskit-badge-element';
|
|
4
|
+
import { type BaseAvatarGroupElementProps, type BaseBadgeElementProps, type BaseDateTimeProps, type BaseLinkElementProps, type BaseLozengeElementProps, type BaseTextElementProps } from './common';
|
|
5
|
+
import { type IconElementProps } from './icon-element';
|
|
6
|
+
export type ElementProps = {
|
|
7
|
+
/**
|
|
8
|
+
* Name of the element, can be used as a selector.
|
|
9
|
+
* E.g. [data-smart-element="Provider"]
|
|
10
|
+
* @internal
|
|
11
|
+
*/
|
|
12
|
+
name?: ElementName;
|
|
13
|
+
/**
|
|
14
|
+
* For compiled css
|
|
15
|
+
*/
|
|
16
|
+
className?: string;
|
|
17
|
+
/**
|
|
18
|
+
* The size of the element to display.
|
|
19
|
+
*/
|
|
20
|
+
size?: SmartLinkSize;
|
|
21
|
+
/**
|
|
22
|
+
* A `testId` prop is provided for specified elements, which is a unique
|
|
23
|
+
* string that appears as a data attribute `data-testid` in the rendered code,
|
|
24
|
+
* serving as a hook for automated tests
|
|
25
|
+
*/
|
|
26
|
+
testId?: string;
|
|
27
|
+
};
|
|
10
28
|
/**
|
|
11
29
|
* Creates a AssignedTo text element using the data from AssignedTo in the Flexible UI Context.
|
|
12
30
|
* @see Text
|
|
13
31
|
*/
|
|
14
|
-
export declare const AssignedTo: import("react").ComponentType<
|
|
32
|
+
export declare const AssignedTo: import("react").ComponentType<BaseTextElementProps>;
|
|
15
33
|
/**
|
|
16
34
|
* An AvatarGroup element using the data from AssignedToGroup in the Flexible UI Context.
|
|
17
35
|
* @see AvatarGroup
|
|
18
36
|
*/
|
|
19
|
-
export declare const AssignedToGroup: import("react").ComponentType<
|
|
37
|
+
export declare const AssignedToGroup: import("react").ComponentType<BaseAvatarGroupElementProps>;
|
|
20
38
|
/**
|
|
21
39
|
* Creates a AttachmentCount Badge element using the data from AttachmentCount in the Flexible UI Context.
|
|
22
40
|
* @see Badge
|
|
23
41
|
*/
|
|
24
|
-
export declare const AttachmentCount: import("react").ComponentType<
|
|
42
|
+
export declare const AttachmentCount: import("react").ComponentType<BaseBadgeElementProps>;
|
|
25
43
|
/**
|
|
26
44
|
* An AvatarGroup element using the data from AuthorGroup in the Flexible UI Context.
|
|
27
45
|
* @see AvatarGroup
|
|
28
46
|
*/
|
|
29
|
-
export declare const AuthorGroup: import("react").ComponentType<
|
|
47
|
+
export declare const AuthorGroup: import("react").ComponentType<BaseAvatarGroupElementProps>;
|
|
30
48
|
/**
|
|
31
49
|
* Creates a Checklist Badge element using the data from ChecklistProgress in the Flexible UI Context.
|
|
32
50
|
* @see Badge
|
|
33
51
|
*/
|
|
34
|
-
export declare const ChecklistProgress: import("react").ComponentType<
|
|
52
|
+
export declare const ChecklistProgress: import("react").ComponentType<BaseBadgeElementProps>;
|
|
35
53
|
/**
|
|
36
54
|
* An AvatarGroup element using the data from CollaboratorGroup in the Flexible UI Context.
|
|
37
55
|
* @see AvatarGroup
|
|
38
56
|
*/
|
|
39
|
-
export declare const CollaboratorGroup: import("react").ComponentType<
|
|
57
|
+
export declare const CollaboratorGroup: import("react").ComponentType<BaseAvatarGroupElementProps>;
|
|
40
58
|
/**
|
|
41
59
|
* Creates a CommentCount Badge element using the data from CommentCount in the Flexible UI Context.
|
|
42
60
|
* @see Badge
|
|
43
61
|
*/
|
|
44
|
-
export declare const CommentCount: import("react").ComponentType<
|
|
62
|
+
export declare const CommentCount: import("react").ComponentType<BaseBadgeElementProps>;
|
|
45
63
|
/**
|
|
46
64
|
* Creates a CreatedOn DateTime element using the data from CreatedOn in the Flexible UI Context.
|
|
47
65
|
* @see DateTime
|
|
48
66
|
*/
|
|
49
|
-
export declare const CreatedOn: import("react").ComponentType<
|
|
67
|
+
export declare const CreatedOn: import("react").ComponentType<BaseDateTimeProps>;
|
|
50
68
|
/**
|
|
51
69
|
* Creates a CreatedBy text element using the data from CreatedBy in the Flexible UI Context.
|
|
52
70
|
* @see Text
|
|
53
71
|
*/
|
|
54
|
-
export declare const CreatedBy: import("react").ComponentType<
|
|
72
|
+
export declare const CreatedBy: import("react").ComponentType<BaseTextElementProps>;
|
|
55
73
|
/**
|
|
56
74
|
* Creates a DueOn Lozenge element using the data from dueOn in the Flexible UI Context.
|
|
57
75
|
* @see Lozenge
|
|
58
76
|
*/
|
|
59
|
-
export declare const DueOn: import("react").ComponentType<
|
|
77
|
+
export declare const DueOn: import("react").ComponentType<BaseLozengeElementProps>;
|
|
60
78
|
/**
|
|
61
79
|
* Creates an element that contains Last Commit hash
|
|
62
80
|
*/
|
|
63
|
-
export declare const LatestCommit: import("react").ComponentType<
|
|
81
|
+
export declare const LatestCommit: import("react").ComponentType<BaseBadgeElementProps>;
|
|
64
82
|
/**
|
|
65
83
|
* Creates a LinkIcon Icon element using the data from LinkIcon in the Flexible UI Context.
|
|
66
84
|
* @see Icon
|
|
67
85
|
*/
|
|
68
|
-
export declare const LinkIcon: import("react").ComponentType<
|
|
86
|
+
export declare const LinkIcon: import("react").ComponentType<IconElementProps>;
|
|
69
87
|
/**
|
|
70
88
|
* Creates a Location Link element.
|
|
71
89
|
* This represents the location or container of the resource.
|
|
72
90
|
* @see Link
|
|
73
91
|
*/
|
|
74
|
-
export declare const Location: import("react").ComponentType<
|
|
92
|
+
export declare const Location: import("react").ComponentType<BaseLinkElementProps>;
|
|
75
93
|
/**
|
|
76
94
|
* Creates a ModifiedBy Text element using the data from ModifiedBy in the Flexible UI Context.
|
|
77
95
|
* @see Text
|
|
78
96
|
*/
|
|
79
|
-
export declare const ModifiedBy: import("react").ComponentType<
|
|
97
|
+
export declare const ModifiedBy: import("react").ComponentType<BaseTextElementProps>;
|
|
80
98
|
/**
|
|
81
99
|
* Creates a ModifiedOn DateTime element using the data from ModifiedOn in the Flexible UI Context.
|
|
82
100
|
* @see DateTime
|
|
83
101
|
*/
|
|
84
|
-
export declare const ModifiedOn: import("react").ComponentType<
|
|
102
|
+
export declare const ModifiedOn: import("react").ComponentType<BaseDateTimeProps>;
|
|
85
103
|
/**
|
|
86
104
|
* Creates a OwnedBy text element using the data from OwnedBy in the Flexible UI Context.
|
|
87
105
|
* @see Text
|
|
88
106
|
*/
|
|
89
|
-
export declare const OwnedBy: import("react").ComponentType<
|
|
107
|
+
export declare const OwnedBy: import("react").ComponentType<BaseTextElementProps>;
|
|
90
108
|
/**
|
|
91
109
|
* An AvatarGroup element using the data from OwnedByGroup in the Flexible UI Context.
|
|
92
110
|
* @see AvatarGroup
|
|
93
111
|
*/
|
|
94
|
-
export declare const OwnedByGroup: import("react").ComponentType<
|
|
112
|
+
export declare const OwnedByGroup: import("react").ComponentType<BaseAvatarGroupElementProps>;
|
|
95
113
|
/**
|
|
96
114
|
* Creates a Preview element using the data from Preview in the Flexible UI Context.
|
|
97
115
|
* @see Preview
|
|
98
116
|
*/
|
|
99
|
-
export { default as Preview } from './preview';
|
|
117
|
+
export { default as Preview } from './preview-element';
|
|
100
118
|
/**
|
|
101
119
|
* Creates a Priority Badge element using the data from Priority in the Flexible UI Context.
|
|
102
120
|
* @see Badge
|
|
103
121
|
*/
|
|
104
|
-
export declare const Priority: import("react").ComponentType<
|
|
122
|
+
export declare const Priority: import("react").ComponentType<BaseBadgeElementProps>;
|
|
105
123
|
/**
|
|
106
124
|
* Creates a ProgrammingLanguage Badge element using the data from ProgrammingLanguage in the Flexible UI Context.
|
|
107
125
|
* @see Badge
|
|
108
126
|
*/
|
|
109
|
-
export declare const ProgrammingLanguage: import("react").ComponentType<
|
|
127
|
+
export declare const ProgrammingLanguage: import("react").ComponentType<BaseBadgeElementProps>;
|
|
110
128
|
/**
|
|
111
129
|
* Creates a Provider Badge element using the data from Provider in the Flexible UI Context.
|
|
112
130
|
* @see Badge
|
|
113
131
|
*/
|
|
114
|
-
export declare const Provider: import("react").ComponentType<
|
|
132
|
+
export declare const Provider: import("react").ComponentType<BaseBadgeElementProps>;
|
|
115
133
|
/**
|
|
116
134
|
* Creates a ReactCount Badge element using the data from ReactCount in the Flexible UI Context.
|
|
117
135
|
* @see Badge
|
|
118
136
|
*/
|
|
119
|
-
export declare const ReactCount: import("react").ComponentType<
|
|
137
|
+
export declare const ReactCount: import("react").ComponentType<BaseBadgeElementProps>;
|
|
120
138
|
/**
|
|
121
139
|
* Creates a ReadTime Text element using the data from readTime in the Flexible UI Context
|
|
122
140
|
*/
|
|
123
|
-
export declare const ReadTime: import("react").ComponentType<
|
|
141
|
+
export declare const ReadTime: import("react").ComponentType<BaseTextElementProps>;
|
|
124
142
|
/**
|
|
125
143
|
* Creates a SentOn DateTime element using the data from SentOn in the Flexible UI Context.
|
|
126
144
|
* @see DateTime
|
|
127
145
|
*/
|
|
128
|
-
export declare const SentOn: import("react").ComponentType<
|
|
146
|
+
export declare const SentOn: import("react").ComponentType<BaseDateTimeProps>;
|
|
129
147
|
/**
|
|
130
148
|
* Creates a Snippet element using the data from Snippet in the Flexible UI Context.
|
|
131
149
|
* @see Text
|
|
@@ -135,46 +153,46 @@ export { default as Snippet } from './snippet-element';
|
|
|
135
153
|
* Creates a SourceBranch Text element using the data from sourceBranch in the Flexible UI Context.
|
|
136
154
|
* @see Text
|
|
137
155
|
*/
|
|
138
|
-
export declare const SourceBranch: import("react").ComponentType<
|
|
156
|
+
export declare const SourceBranch: import("react").ComponentType<BaseTextElementProps>;
|
|
139
157
|
/**
|
|
140
158
|
* Creates a State Lozenge element using the data from State in the Flexible UI Context.
|
|
141
159
|
* @see Lozenge
|
|
142
160
|
*/
|
|
143
|
-
export declare const State: import("react").ComponentType<
|
|
161
|
+
export declare const State: import("react").ComponentType<BaseLozengeElementProps>;
|
|
144
162
|
/**
|
|
145
163
|
* Creates a SubscriberCount Badge element using the data from SubscriberCount in the Flexible UI Context.
|
|
146
164
|
* @see Badge
|
|
147
165
|
*/
|
|
148
|
-
export declare const SubscriberCount: import("react").ComponentType<
|
|
166
|
+
export declare const SubscriberCount: import("react").ComponentType<BaseBadgeElementProps>;
|
|
149
167
|
/**
|
|
150
168
|
* Create a SubTasks Badge element using the data from subTasks in the Flexible UI Context.
|
|
151
169
|
* @see Badge
|
|
152
170
|
*/
|
|
153
|
-
export declare const SubTasksProgress: import("react").ComponentType<
|
|
171
|
+
export declare const SubTasksProgress: import("react").ComponentType<BaseBadgeElementProps>;
|
|
154
172
|
/**
|
|
155
173
|
* Create a StoryPoints Badge element using the data from storyPoints in the Flexible UI Context.
|
|
156
174
|
* @see AtlaskitBadge
|
|
157
175
|
*/
|
|
158
|
-
export declare const StoryPoints: import("react").ComponentType<
|
|
176
|
+
export declare const StoryPoints: import("react").ComponentType<AtlaskitBadgeElementProps>;
|
|
159
177
|
/**
|
|
160
178
|
* Creates a TargetBranch Text element using the data from targetBranch in the Flexible UI Context.
|
|
161
179
|
* @see Text
|
|
162
180
|
*/
|
|
163
|
-
export declare const TargetBranch: import("react").ComponentType<
|
|
181
|
+
export declare const TargetBranch: import("react").ComponentType<BaseTextElementProps>;
|
|
164
182
|
/**
|
|
165
183
|
* Creates a Title Link element using the data from Title in the Flexible UI Context.
|
|
166
184
|
* This represents the main link text within the Smart Link.
|
|
167
185
|
* @see Link
|
|
168
186
|
*/
|
|
169
|
-
export declare const Title: import("react").ComponentType<
|
|
187
|
+
export declare const Title: import("react").ComponentType<BaseLinkElementProps>;
|
|
170
188
|
/**
|
|
171
189
|
* Creates a ViewCount Badge element using the data from ViewCount in the Flexible UI Context.
|
|
172
190
|
* @see Badge
|
|
173
191
|
*/
|
|
174
|
-
export declare const ViewCount: import("react").ComponentType<
|
|
192
|
+
export declare const ViewCount: import("react").ComponentType<BaseBadgeElementProps>;
|
|
175
193
|
/**
|
|
176
194
|
* Creates a VoteCount Badge element using the data from VoteCount in the Flexible UI Context.
|
|
177
195
|
* @see Badge
|
|
178
196
|
*/
|
|
179
|
-
export declare const VoteCount: import("react").ComponentType<
|
|
180
|
-
export { default as AppliedToComponentsCount } from './applied-to-components-count';
|
|
197
|
+
export declare const VoteCount: import("react").ComponentType<BaseBadgeElementProps>;
|
|
198
|
+
export { default as AppliedToComponentsCount } from './applied-to-components-count-element';
|