@atlaskit/smart-card 38.3.0 → 38.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +24 -0
- package/compass.yml +2 -14
- package/dist/cjs/state/flexible-ui-context/index.js +23 -3
- 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/EmbedModal/index.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/blocks/title-block/index.js +4 -2
- package/dist/cjs/view/FlexibleCard/components/container/index.js +5 -1
- package/dist/cjs/view/FlexibleCard/components/elements/{applied-to-components-count → applied-to-components-count-element}/index.js +10 -5
- 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 +10 -8
- 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 +10 -5
- package/dist/cjs/view/FlexibleCard/components/elements/snippet-element/index.js +7 -3
- package/dist/cjs/view/FlexibleCard/components/elements/utils.js +56 -45
- package/dist/cjs/view/FlexibleCard/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/state/flexible-ui-context/index.js +24 -2
- 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/EmbedModal/index.js +2 -2
- package/dist/es2019/view/FlexibleCard/components/blocks/title-block/index.js +3 -1
- package/dist/es2019/view/FlexibleCard/components/container/index.js +6 -2
- package/dist/es2019/view/FlexibleCard/components/elements/{applied-to-components-count → applied-to-components-count-element}/index.js +11 -6
- 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 +10 -8
- 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-element/index.js +26 -0
- package/dist/es2019/view/FlexibleCard/components/elements/snippet-element/index.js +8 -4
- package/dist/es2019/view/FlexibleCard/components/elements/utils.js +56 -45
- package/dist/es2019/view/FlexibleCard/index.js +22 -1
- package/dist/es2019/view/HoverCard/components/views/resolving/index.js +2 -2
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/state/flexible-ui-context/index.js +22 -2
- 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/EmbedModal/index.js +2 -2
- package/dist/esm/view/FlexibleCard/components/blocks/title-block/index.js +4 -2
- package/dist/esm/view/FlexibleCard/components/container/index.js +6 -2
- package/dist/esm/view/FlexibleCard/components/elements/{applied-to-components-count → applied-to-components-count-element}/index.js +11 -6
- 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 +10 -8
- 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 +11 -6
- package/dist/esm/view/FlexibleCard/components/elements/snippet-element/index.js +8 -4
- package/dist/esm/view/FlexibleCard/components/elements/utils.js +56 -45
- package/dist/esm/view/FlexibleCard/index.js +24 -1
- package/dist/esm/view/HoverCard/components/views/resolving/index.js +2 -2
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/types/extractors/action/extract-lozenge-action-items.d.ts +1 -1
- package/dist/types/state/flexible-ui-context/index.d.ts +14 -0
- package/dist/types/view/FlexibleCard/components/blocks/title-block/index.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/blocks/title-block/types.d.ts +4 -0
- 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} +21 -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/state/flexible-ui-context/index.d.ts +14 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/title-block/index.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/title-block/types.d.ts +4 -0
- 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} +21 -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 +4 -1
- 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/index.js +0 -21
- 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
|
@@ -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';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { type MediaType } from '../../../../../constants';
|
|
3
|
+
import { type ElementProps } from '../index';
|
|
4
|
+
export type MediaElementProps = ElementProps & {
|
|
5
|
+
/**
|
|
6
|
+
* The type of media to display. Can be image.
|
|
7
|
+
*/
|
|
8
|
+
type?: MediaType;
|
|
9
|
+
/**
|
|
10
|
+
* The URL of the associated media to display.
|
|
11
|
+
*/
|
|
12
|
+
url?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Function to be called on error loading media.
|
|
15
|
+
* @internal
|
|
16
|
+
*/
|
|
17
|
+
onError?: () => void;
|
|
18
|
+
onLoad?: () => void;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* A base element that displays a Media.
|
|
22
|
+
* @internal
|
|
23
|
+
* @param props - The props necessary for the Media element.
|
|
24
|
+
*/
|
|
25
|
+
declare const MediaElement: ({ name, className, testId, type, url, onLoad, onError, }: MediaElementProps) => JSX.Element | null;
|
|
26
|
+
export default MediaElement;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ElementProps } from '../index';
|
|
3
|
+
export type PreviewElementProps = ElementProps & {
|
|
3
4
|
/**
|
|
4
5
|
* An image URL to render. This will replace the default image from smart link data.
|
|
5
6
|
*/
|
|
@@ -11,3 +12,5 @@ export type PreviewProps = ElementProps & {
|
|
|
11
12
|
onError?: () => void;
|
|
12
13
|
onLoad?: () => void;
|
|
13
14
|
};
|
|
15
|
+
declare const PreviewElement: (props: PreviewElementProps) => React.JSX.Element | null;
|
|
16
|
+
export default PreviewElement;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { type
|
|
3
|
-
|
|
2
|
+
import { type BaseTextElementProps } from '../common';
|
|
3
|
+
export type SnippetElementProps = BaseTextElementProps;
|
|
4
|
+
declare const SnippetElement: (props: SnippetElementProps) => JSX.Element;
|
|
4
5
|
export default SnippetElement;
|
|
@@ -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;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/smart-card",
|
|
3
|
-
"version": "38.
|
|
3
|
+
"version": "38.4.2",
|
|
4
4
|
"description": "Smart card component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -243,6 +243,9 @@
|
|
|
243
243
|
"platform-linking-fix-a11y-in-smart-card": {
|
|
244
244
|
"type": "boolean"
|
|
245
245
|
},
|
|
246
|
+
"platform-linking-flexible-card-context": {
|
|
247
|
+
"type": "boolean"
|
|
248
|
+
},
|
|
246
249
|
"dst-a11y__replace-anchor-with-link__linking-platfo": {
|
|
247
250
|
"type": "boolean"
|
|
248
251
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
import React, { useContext } from 'react';
|
|
3
|
-
import { MediaType } from '../../../../../constants';
|
|
4
|
-
import { FlexibleUiContext } from '../../../../../state/flexible-ui-context';
|
|
5
|
-
import Media from '../media';
|
|
6
|
-
const Preview = props => {
|
|
7
|
-
const {
|
|
8
|
-
overrideUrl,
|
|
9
|
-
...rest
|
|
10
|
-
} = props !== null && props !== void 0 ? props : {};
|
|
11
|
-
const context = useContext(FlexibleUiContext);
|
|
12
|
-
const data = overrideUrl ? {
|
|
13
|
-
url: overrideUrl,
|
|
14
|
-
type: MediaType.Image
|
|
15
|
-
} : context === null || context === void 0 ? void 0 : context.preview;
|
|
16
|
-
if (!data) {
|
|
17
|
-
return null;
|
|
18
|
-
}
|
|
19
|
-
return /*#__PURE__*/React.createElement(Media, _extends({}, rest, data));
|
|
20
|
-
};
|
|
21
|
-
export default Preview;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { type AtlaskitBadgeProps } from './types';
|
|
3
|
-
/**
|
|
4
|
-
* A base element that displays a visual indicator for a numeric value
|
|
5
|
-
* @internal
|
|
6
|
-
* @see StoryPoints
|
|
7
|
-
* */
|
|
8
|
-
declare const AtlaskitBadge: ({ value, name, className, testId, }: AtlaskitBadgeProps) => JSX.Element | null;
|
|
9
|
-
export default AtlaskitBadge;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { type AvatarGroupProps } from './types';
|
|
3
|
-
/**
|
|
4
|
-
* A base element that displays a group of avatars.
|
|
5
|
-
* @internal
|
|
6
|
-
* @param {AvatarGroupProps} AvatarGroupProps - The props necessary for the AvatarGroup.
|
|
7
|
-
* @see AuthorGroup
|
|
8
|
-
* @see CollaboratorGroup
|
|
9
|
-
*/
|
|
10
|
-
declare const AvatarGroup: ({ items, maxCount, name, className, size, testId, showNamePrefix, showFallbackAvatar, }: AvatarGroupProps) => JSX.Element | null;
|
|
11
|
-
export default AvatarGroup;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { type ElementProps } from '../types';
|
|
2
|
-
export type AvatarItemProps = {
|
|
3
|
-
/**
|
|
4
|
-
* The image to be used in an `@atlaskit/avatar - this should be a url to the image src
|
|
5
|
-
*/
|
|
6
|
-
src?: string;
|
|
7
|
-
/**
|
|
8
|
-
* The name of the person in the avatar.
|
|
9
|
-
*/
|
|
10
|
-
name: string;
|
|
11
|
-
};
|
|
12
|
-
export type AvatarGroupProps = ElementProps & {
|
|
13
|
-
/**
|
|
14
|
-
* An array of Avatars to show
|
|
15
|
-
*/
|
|
16
|
-
items?: AvatarItemProps[];
|
|
17
|
-
/**
|
|
18
|
-
* The maximum number of Avatars to show in the AvatarGroup
|
|
19
|
-
*/
|
|
20
|
-
maxCount?: number;
|
|
21
|
-
/**
|
|
22
|
-
* Shows a name prefix in the Avatar tooltip (Created by, Assigned To, Owned by)
|
|
23
|
-
*/
|
|
24
|
-
showNamePrefix?: boolean;
|
|
25
|
-
/**
|
|
26
|
-
* Shows a default fallback avatar if no persons in the AvatarGroup.
|
|
27
|
-
*/
|
|
28
|
-
showFallbackAvatar?: boolean;
|
|
29
|
-
};
|