@atlaskit/smart-card 40.13.0 → 40.13.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 +16 -0
- package/dist/cjs/i18n/en.js +5 -0
- package/dist/cjs/i18n/en_GB.js +5 -0
- package/dist/cjs/i18n/en_ZZ.js +5 -0
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/BlockCard/index.js +3 -0
- package/dist/cjs/view/BlockCard/views/utils/index.js +1 -1
- package/dist/cjs/view/EmbedCard/index.js +3 -0
- package/dist/cjs/view/InlineCard/index.js +3 -0
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/i18n/en.js +5 -0
- package/dist/es2019/i18n/en_GB.js +5 -0
- package/dist/es2019/i18n/en_ZZ.js +5 -0
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/BlockCard/index.js +2 -0
- package/dist/es2019/view/BlockCard/views/utils/index.js +1 -1
- package/dist/es2019/view/EmbedCard/index.js +2 -0
- package/dist/es2019/view/InlineCard/index.js +2 -0
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/i18n/en.js +5 -0
- package/dist/esm/i18n/en_GB.js +5 -0
- package/dist/esm/i18n/en_ZZ.js +5 -0
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/BlockCard/index.js +2 -0
- package/dist/esm/view/BlockCard/views/utils/index.js +1 -1
- package/dist/esm/view/EmbedCard/index.js +2 -0
- package/dist/esm/view/InlineCard/index.js +2 -0
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/types/extractors/action/extract-invoke-preview-action.d.ts +5 -5
- package/dist/types/extractors/common/actions/types.d.ts +2 -2
- package/dist/types/extractors/common/context/extractAccessContext.d.ts +2 -2
- package/dist/types/extractors/common/icon/extractIcon.d.ts +4 -4
- package/dist/types/extractors/common/icon/prioritiseIcon.d.ts +6 -6
- package/dist/types/extractors/common/lozenge/extractTaskType.d.ts +1 -1
- package/dist/types/extractors/common/lozenge/types.d.ts +1 -1
- package/dist/types/extractors/flexible/actions/index.d.ts +6 -6
- package/dist/types/extractors/flexible/extract-state.d.ts +2 -2
- package/dist/types/extractors/index.d.ts +3 -3
- package/dist/types/i18n/en.d.ts +5 -0
- package/dist/types/i18n/en_GB.d.ts +5 -0
- package/dist/types/i18n/en_ZZ.d.ts +5 -0
- package/dist/types/model/invoke-opts.d.ts +2 -2
- package/dist/types/ssr.d.ts +1 -1
- package/dist/types/state/flexible-ui-context/types.d.ts +105 -105
- package/dist/types/state/hooks/use-ai-summary/ai-summary-service/types.d.ts +38 -38
- package/dist/types/state/hooks/use-ai-summary-config/types.d.ts +1 -1
- package/dist/types/state/hooks/use-invoke/types.d.ts +1 -1
- package/dist/types/state/hooks/useSmartLink.d.ts +2 -2
- package/dist/types/state/hooks-external/useSmartLinkActions.d.ts +14 -14
- package/dist/types/state/modal/types.d.ts +4 -4
- package/dist/types/types.d.ts +2 -2
- package/dist/types/utils/analytics/LinkAnalyticsContext.d.ts +2 -2
- package/dist/types/utils/analytics/SmartLinkAnalyticsContext.d.ts +3 -3
- package/dist/types/utils/analytics/types.d.ts +6 -6
- package/dist/types/view/BlockCard/types.d.ts +11 -11
- package/dist/types/view/BlockCard/views/utils/index.d.ts +1 -1
- package/dist/types/view/Card/types.d.ts +19 -19
- package/dist/types/view/CardWithUrl/types.d.ts +22 -22
- package/dist/types/view/EmbedCard/components/ErrorFrame.d.ts +4 -4
- package/dist/types/view/EmbedCard/components/ExpandedFrame.d.ts +22 -22
- package/dist/types/view/EmbedCard/components/Frame.d.ts +2 -2
- package/dist/types/view/EmbedCard/components/IFrame.d.ts +1 -1
- package/dist/types/view/EmbedCard/components/IframeDwellTracker.d.ts +1 -1
- package/dist/types/view/EmbedCard/components/ImageIcon.d.ts +2 -2
- package/dist/types/view/EmbedCard/components/styled.d.ts +7 -7
- package/dist/types/view/EmbedCard/types.d.ts +13 -13
- package/dist/types/view/EmbedCard/useEmbedResolvePostMessageListener.d.ts +1 -1
- package/dist/types/view/EmbedCard/views/ErroredView.d.ts +2 -2
- package/dist/types/view/EmbedCard/views/ResolvedView.d.ts +20 -20
- package/dist/types/view/EmbedCard/views/forbidden-view/types.d.ts +1 -1
- package/dist/types/view/EmbedCard/views/not-found-view/types.d.ts +1 -1
- package/dist/types/view/EmbedModal/components/embed-content/types.d.ts +1 -1
- package/dist/types/view/EmbedModal/components/link-info/types.d.ts +1 -1
- package/dist/types/view/EmbedModal/types.d.ts +2 -2
- package/dist/types/view/FlexibleCard/components/actions/action/action-button/types.d.ts +3 -3
- package/dist/types/view/FlexibleCard/components/actions/action/action-icon/types.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/actions/action/action-stack-item/types.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/actions/action/types.d.ts +40 -40
- package/dist/types/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/types.d.ts +2 -2
- package/dist/types/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/utils/api.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/main.d.ts +10 -10
- package/dist/types/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/manual-triggers-form/main.d.ts +2 -2
- package/dist/types/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/main.d.ts +6 -6
- package/dist/types/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/menu-context/main.d.ts +8 -8
- package/dist/types/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/footer/main.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/header/main.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/actions/automation-action/utils/index.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/actions/custom-unresolved-action/index.d.ts +2 -2
- package/dist/types/view/FlexibleCard/components/actions/unresolved-action/index.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/blocks/action-group/action-group-item/index.d.ts +2 -2
- package/dist/types/view/FlexibleCard/components/blocks/action-group/types.d.ts +13 -13
- package/dist/types/view/FlexibleCard/components/blocks/element-group/types.d.ts +11 -11
- package/dist/types/view/FlexibleCard/components/blocks/footer-block/types.d.ts +4 -4
- package/dist/types/view/FlexibleCard/components/blocks/metadata-block/types.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/blocks/preview-block/types.d.ts +4 -4
- package/dist/types/view/FlexibleCard/components/blocks/snippet-block/types.d.ts +8 -8
- package/dist/types/view/FlexibleCard/components/blocks/title-block/types.d.ts +35 -35
- package/dist/types/view/FlexibleCard/components/blocks/types.d.ts +45 -45
- package/dist/types/view/FlexibleCard/components/common/atlaskit-icon/types.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/common/image-icon/types.d.ts +5 -5
- package/dist/types/view/FlexibleCard/components/common/loading-skeleton/types.d.ts +4 -4
- package/dist/types/view/FlexibleCard/components/container/hover-card-control/types.d.ts +2 -2
- package/dist/types/view/FlexibleCard/components/elements/common/base-avatar-group-element/index.d.ts +8 -8
- package/dist/types/view/FlexibleCard/components/elements/common/base-badge-element/index.d.ts +12 -12
- package/dist/types/view/FlexibleCard/components/elements/common/base-date-time-element/index.d.ts +8 -8
- package/dist/types/view/FlexibleCard/components/elements/common/base-icon-element/index.d.ts +19 -19
- package/dist/types/view/FlexibleCard/components/elements/common/base-link-element/index.d.ts +10 -10
- package/dist/types/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/lozenge-action-error/types.d.ts +4 -4
- package/dist/types/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/lozenge-action-items-group/types.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/elements/common/base-text-element/index.d.ts +9 -9
- package/dist/types/view/FlexibleCard/components/elements/index.d.ts +4 -4
- package/dist/types/view/FlexibleCard/components/elements/media-element/index.d.ts +6 -6
- package/dist/types/view/FlexibleCard/components/elements/owned-by-element/index.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/elements/preview-element/index.d.ts +4 -4
- package/dist/types/view/FlexibleCard/types.d.ts +41 -41
- package/dist/types/view/HoverCard/components/views/resolved/types.d.ts +3 -3
- package/dist/types/view/HoverCard/types.d.ts +26 -26
- package/dist/types/view/InlineCard/ErroredView/index.d.ts +7 -7
- package/dist/types/view/InlineCard/ForbiddenView/index.d.ts +10 -10
- package/dist/types/view/InlineCard/Frame/index.d.ts +6 -6
- package/dist/types/view/InlineCard/Frame/styled.d.ts +3 -3
- package/dist/types/view/InlineCard/IconAndTitleLayout/index.d.ts +8 -8
- package/dist/types/view/InlineCard/ResolvedView/index.d.ts +15 -15
- package/dist/types/view/InlineCard/ResolvingView/index.d.ts +6 -6
- package/dist/types/view/InlineCard/UnauthorisedView/index.d.ts +14 -14
- package/dist/types/view/InlineCard/types.d.ts +11 -11
- package/dist/types/view/LinkUrl/types.d.ts +2 -2
- package/dist/types/view/RelatedLinksModal/components/EmptyState.d.ts +2 -2
- package/dist/types/view/RelatedLinksModal/components/types.d.ts +10 -10
- package/dist/types/view/RelatedLinksModal/types.d.ts +5 -5
- package/dist/types/view/common/Icon.d.ts +3 -3
- package/dist/types/view/common/UnauthorisedViewContent.d.ts +5 -5
- package/dist/types/view/common/ai-prism/ai-glowing-border/types.d.ts +7 -7
- package/dist/types/view/common/ai-prism/types.d.ts +1 -1
- package/dist/types/view/common/ai-summary/types.d.ts +6 -6
- package/dist/types/view/common/render-svg.d.ts +2 -2
- package/dist/types/view/types.d.ts +6 -6
- package/dist/types-ts4.5/extractors/action/extract-invoke-preview-action.d.ts +5 -5
- package/dist/types-ts4.5/extractors/common/actions/types.d.ts +2 -2
- package/dist/types-ts4.5/extractors/common/context/extractAccessContext.d.ts +2 -2
- package/dist/types-ts4.5/extractors/common/icon/extractIcon.d.ts +4 -4
- package/dist/types-ts4.5/extractors/common/icon/prioritiseIcon.d.ts +6 -6
- package/dist/types-ts4.5/extractors/common/lozenge/extractTaskType.d.ts +1 -1
- package/dist/types-ts4.5/extractors/common/lozenge/types.d.ts +1 -1
- package/dist/types-ts4.5/extractors/flexible/actions/index.d.ts +6 -6
- package/dist/types-ts4.5/extractors/flexible/extract-state.d.ts +2 -2
- package/dist/types-ts4.5/extractors/index.d.ts +3 -3
- package/dist/types-ts4.5/i18n/en.d.ts +5 -0
- package/dist/types-ts4.5/i18n/en_GB.d.ts +5 -0
- package/dist/types-ts4.5/i18n/en_ZZ.d.ts +5 -0
- package/dist/types-ts4.5/model/invoke-opts.d.ts +2 -2
- package/dist/types-ts4.5/ssr.d.ts +1 -1
- package/dist/types-ts4.5/state/flexible-ui-context/types.d.ts +105 -105
- package/dist/types-ts4.5/state/hooks/use-ai-summary/ai-summary-service/types.d.ts +38 -38
- package/dist/types-ts4.5/state/hooks/use-ai-summary-config/types.d.ts +1 -1
- package/dist/types-ts4.5/state/hooks/use-invoke/types.d.ts +1 -1
- package/dist/types-ts4.5/state/hooks/useSmartLink.d.ts +2 -2
- package/dist/types-ts4.5/state/hooks-external/useSmartLinkActions.d.ts +14 -14
- package/dist/types-ts4.5/state/modal/types.d.ts +4 -4
- package/dist/types-ts4.5/types.d.ts +2 -2
- package/dist/types-ts4.5/utils/analytics/LinkAnalyticsContext.d.ts +2 -2
- package/dist/types-ts4.5/utils/analytics/SmartLinkAnalyticsContext.d.ts +3 -3
- package/dist/types-ts4.5/utils/analytics/types.d.ts +6 -6
- package/dist/types-ts4.5/view/BlockCard/types.d.ts +11 -11
- package/dist/types-ts4.5/view/BlockCard/views/utils/index.d.ts +1 -1
- package/dist/types-ts4.5/view/Card/types.d.ts +19 -19
- package/dist/types-ts4.5/view/CardWithUrl/types.d.ts +22 -22
- package/dist/types-ts4.5/view/EmbedCard/components/ErrorFrame.d.ts +4 -4
- package/dist/types-ts4.5/view/EmbedCard/components/ExpandedFrame.d.ts +22 -22
- package/dist/types-ts4.5/view/EmbedCard/components/Frame.d.ts +2 -2
- package/dist/types-ts4.5/view/EmbedCard/components/IFrame.d.ts +1 -1
- package/dist/types-ts4.5/view/EmbedCard/components/IframeDwellTracker.d.ts +1 -1
- package/dist/types-ts4.5/view/EmbedCard/components/ImageIcon.d.ts +2 -2
- package/dist/types-ts4.5/view/EmbedCard/components/styled.d.ts +7 -7
- package/dist/types-ts4.5/view/EmbedCard/types.d.ts +13 -13
- package/dist/types-ts4.5/view/EmbedCard/useEmbedResolvePostMessageListener.d.ts +1 -1
- package/dist/types-ts4.5/view/EmbedCard/views/ErroredView.d.ts +2 -2
- package/dist/types-ts4.5/view/EmbedCard/views/ResolvedView.d.ts +20 -20
- package/dist/types-ts4.5/view/EmbedCard/views/forbidden-view/types.d.ts +1 -1
- package/dist/types-ts4.5/view/EmbedCard/views/not-found-view/types.d.ts +1 -1
- package/dist/types-ts4.5/view/EmbedModal/components/embed-content/types.d.ts +1 -1
- package/dist/types-ts4.5/view/EmbedModal/components/link-info/types.d.ts +1 -1
- package/dist/types-ts4.5/view/EmbedModal/types.d.ts +2 -2
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/action/action-button/types.d.ts +3 -3
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/action/action-icon/types.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/action/action-stack-item/types.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/action/types.d.ts +40 -40
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/types.d.ts +2 -2
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/utils/api.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/main.d.ts +10 -10
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/manual-triggers-form/main.d.ts +2 -2
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/main.d.ts +6 -6
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/menu-context/main.d.ts +8 -8
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/footer/main.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/header/main.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/utils/index.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/custom-unresolved-action/index.d.ts +2 -2
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/unresolved-action/index.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/action-group/action-group-item/index.d.ts +2 -2
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/action-group/types.d.ts +13 -13
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/element-group/types.d.ts +11 -11
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/footer-block/types.d.ts +4 -4
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/metadata-block/types.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/preview-block/types.d.ts +4 -4
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/snippet-block/types.d.ts +8 -8
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/title-block/types.d.ts +35 -35
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/types.d.ts +45 -45
- package/dist/types-ts4.5/view/FlexibleCard/components/common/atlaskit-icon/types.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/common/image-icon/types.d.ts +5 -5
- package/dist/types-ts4.5/view/FlexibleCard/components/common/loading-skeleton/types.d.ts +4 -4
- package/dist/types-ts4.5/view/FlexibleCard/components/container/hover-card-control/types.d.ts +2 -2
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/common/base-avatar-group-element/index.d.ts +8 -8
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/common/base-badge-element/index.d.ts +12 -12
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/common/base-date-time-element/index.d.ts +8 -8
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/common/base-icon-element/index.d.ts +19 -19
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/common/base-link-element/index.d.ts +10 -10
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/lozenge-action-error/types.d.ts +4 -4
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/lozenge-action-items-group/types.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/common/base-text-element/index.d.ts +9 -9
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/index.d.ts +4 -4
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/media-element/index.d.ts +6 -6
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/owned-by-element/index.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/preview-element/index.d.ts +4 -4
- package/dist/types-ts4.5/view/FlexibleCard/types.d.ts +41 -41
- package/dist/types-ts4.5/view/HoverCard/components/views/resolved/types.d.ts +3 -3
- package/dist/types-ts4.5/view/HoverCard/types.d.ts +26 -26
- package/dist/types-ts4.5/view/InlineCard/ErroredView/index.d.ts +7 -7
- package/dist/types-ts4.5/view/InlineCard/ForbiddenView/index.d.ts +10 -10
- package/dist/types-ts4.5/view/InlineCard/Frame/index.d.ts +6 -6
- package/dist/types-ts4.5/view/InlineCard/Frame/styled.d.ts +3 -3
- package/dist/types-ts4.5/view/InlineCard/IconAndTitleLayout/index.d.ts +8 -8
- package/dist/types-ts4.5/view/InlineCard/ResolvedView/index.d.ts +15 -15
- package/dist/types-ts4.5/view/InlineCard/ResolvingView/index.d.ts +6 -6
- package/dist/types-ts4.5/view/InlineCard/UnauthorisedView/index.d.ts +14 -14
- package/dist/types-ts4.5/view/InlineCard/types.d.ts +11 -11
- package/dist/types-ts4.5/view/LinkUrl/types.d.ts +2 -2
- package/dist/types-ts4.5/view/RelatedLinksModal/components/EmptyState.d.ts +2 -2
- package/dist/types-ts4.5/view/RelatedLinksModal/components/types.d.ts +10 -10
- package/dist/types-ts4.5/view/RelatedLinksModal/types.d.ts +5 -5
- package/dist/types-ts4.5/view/common/Icon.d.ts +3 -3
- package/dist/types-ts4.5/view/common/UnauthorisedViewContent.d.ts +5 -5
- package/dist/types-ts4.5/view/common/ai-prism/ai-glowing-border/types.d.ts +7 -7
- package/dist/types-ts4.5/view/common/ai-prism/types.d.ts +1 -1
- package/dist/types-ts4.5/view/common/ai-summary/types.d.ts +6 -6
- package/dist/types-ts4.5/view/common/render-svg.d.ts +2 -2
- package/dist/types-ts4.5/view/types.d.ts +6 -6
- package/package.json +5 -6
|
@@ -12,14 +12,40 @@ export type TitleBlockProps = {
|
|
|
12
12
|
* @see ActionItem
|
|
13
13
|
*/
|
|
14
14
|
actions?: ActionItem[];
|
|
15
|
+
/**
|
|
16
|
+
* Ref passed into the link <a> element
|
|
17
|
+
*/
|
|
18
|
+
anchorRef?: React.Ref<HTMLAnchorElement>;
|
|
15
19
|
/**
|
|
16
20
|
* Determines the href target behaviour of the Link.
|
|
17
21
|
*/
|
|
18
22
|
anchorTarget?: AnchorTarget;
|
|
23
|
+
/**
|
|
24
|
+
* Competitor Prompt Component for Competitor link experiment
|
|
25
|
+
*/
|
|
26
|
+
CompetitorPrompt?: React.ComponentType<{
|
|
27
|
+
linkType?: string;
|
|
28
|
+
sourceUrl: string;
|
|
29
|
+
}>;
|
|
30
|
+
/**
|
|
31
|
+
* Determines whether TitleBlock will hide the Link Icon.
|
|
32
|
+
*/
|
|
33
|
+
hideIcon?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* This option determines whenever we show any of the links and messages on the right side of the block,
|
|
36
|
+
* like "connect to preview" or "Can't find link" or "Restricted link, try another account" etc.
|
|
37
|
+
* Default is false.
|
|
38
|
+
*/
|
|
39
|
+
hideRetry?: boolean;
|
|
19
40
|
/**
|
|
20
41
|
* [Experiment] Determines whether the linked title should display tooltip on hover.
|
|
21
42
|
*/
|
|
22
43
|
hideTitleTooltip?: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* The icon to display in the title block. Overrides any icon that is retrieved from
|
|
46
|
+
* the Smart Link.
|
|
47
|
+
*/
|
|
48
|
+
icon?: React.ReactNode;
|
|
23
49
|
/**
|
|
24
50
|
* Determines the maximum number of lines for the underlying link text to
|
|
25
51
|
* spread over. Default is 2. Maximum is 2.
|
|
@@ -34,11 +60,20 @@ export type TitleBlockProps = {
|
|
|
34
60
|
* @see ElementItem
|
|
35
61
|
*/
|
|
36
62
|
metadata?: ElementItem[];
|
|
63
|
+
/**
|
|
64
|
+
* The vertical position of the metadata fields. Internal prop, please DO NOT USE.
|
|
65
|
+
* @internal
|
|
66
|
+
*/
|
|
67
|
+
metadataPosition?: SmartLinkPosition;
|
|
37
68
|
/**
|
|
38
69
|
* Called when the action dropdown menu (if present) is open/closed.
|
|
39
70
|
* Receives an object with `isOpen` state.
|
|
40
71
|
*/
|
|
41
72
|
onActionMenuOpenChange?: (options: OnActionMenuOpenChangeOptions) => void;
|
|
73
|
+
/**
|
|
74
|
+
* A unique identifier for the placeholder loading state, which is constant across all loading states of the same item.
|
|
75
|
+
*/
|
|
76
|
+
placeholderId?: string;
|
|
42
77
|
/**
|
|
43
78
|
* Determines the position of the link icon in relative to the vertical
|
|
44
79
|
* height of the TitleBlock. It can either be centred or placed on “top”.
|
|
@@ -50,12 +85,6 @@ export type TitleBlockProps = {
|
|
|
50
85
|
* @internal
|
|
51
86
|
*/
|
|
52
87
|
retry?: RetryOptions;
|
|
53
|
-
/**
|
|
54
|
-
* This option determines whenever we show any of the links and messages on the right side of the block,
|
|
55
|
-
* like "connect to preview" or "Can't find link" or "Restricted link, try another account" etc.
|
|
56
|
-
* Default is false.
|
|
57
|
-
*/
|
|
58
|
-
hideRetry?: boolean;
|
|
59
88
|
/**
|
|
60
89
|
* Determines whether TitleBlock will hide actions until the user is hovering
|
|
61
90
|
* over the link.
|
|
@@ -75,35 +104,6 @@ export type TitleBlockProps = {
|
|
|
75
104
|
* the Smart Link.
|
|
76
105
|
*/
|
|
77
106
|
text?: string;
|
|
78
|
-
/**
|
|
79
|
-
* The icon to display in the title block. Overrides any icon that is retrieved from
|
|
80
|
-
* the Smart Link.
|
|
81
|
-
*/
|
|
82
|
-
icon?: React.ReactNode;
|
|
83
|
-
/**
|
|
84
|
-
* The vertical position of the metadata fields. Internal prop, please DO NOT USE.
|
|
85
|
-
* @internal
|
|
86
|
-
*/
|
|
87
|
-
metadataPosition?: SmartLinkPosition;
|
|
88
|
-
/**
|
|
89
|
-
* Determines whether TitleBlock will hide the Link Icon.
|
|
90
|
-
*/
|
|
91
|
-
hideIcon?: boolean;
|
|
92
|
-
/**
|
|
93
|
-
* Ref passed into the link <a> element
|
|
94
|
-
*/
|
|
95
|
-
anchorRef?: React.Ref<HTMLAnchorElement>;
|
|
96
|
-
/**
|
|
97
|
-
* A unique identifier for the placeholder loading state, which is constant across all loading states of the same item.
|
|
98
|
-
*/
|
|
99
|
-
placeholderId?: string;
|
|
100
|
-
/**
|
|
101
|
-
* Competitor Prompt Component for Competitor link experiment
|
|
102
|
-
*/
|
|
103
|
-
CompetitorPrompt?: React.ComponentType<{
|
|
104
|
-
sourceUrl: string;
|
|
105
|
-
linkType?: string;
|
|
106
|
-
}>;
|
|
107
107
|
/**
|
|
108
108
|
* The URL of the link for Competitor Prompt experiment
|
|
109
109
|
*/
|
|
@@ -3,38 +3,27 @@ import { type ActionName, type ElementName, type SmartLinkDirection, type SmartL
|
|
|
3
3
|
import { type ActionProps } from '../actions/action/types';
|
|
4
4
|
export type BlockProps = {
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Ref to block wrapper div.
|
|
7
7
|
*/
|
|
8
|
-
|
|
8
|
+
blockRef?: Ref<HTMLDivElement>;
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
11
|
-
* or horizontal. Default is horizontal.
|
|
12
|
-
* @internal
|
|
10
|
+
* React children
|
|
13
11
|
*/
|
|
14
|
-
|
|
12
|
+
children?: ReactNode | undefined;
|
|
15
13
|
/**
|
|
16
14
|
* For compiled css
|
|
17
15
|
*/
|
|
18
16
|
className?: string;
|
|
19
17
|
/**
|
|
20
|
-
*
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* The size of the block and the size that the underlying elements should
|
|
25
|
-
* default to.
|
|
26
|
-
*/
|
|
27
|
-
size?: SmartLinkSize;
|
|
28
|
-
/**
|
|
29
|
-
* A `testId` prop is provided for specified elements, which is a unique
|
|
30
|
-
* string that appears as a data attribute `data-testid` in the rendered code,
|
|
31
|
-
* serving as a hook for automated tests
|
|
18
|
+
* The direction that the block should arrange its elements. Can be vertical
|
|
19
|
+
* or horizontal. Default is horizontal.
|
|
20
|
+
* @internal
|
|
32
21
|
*/
|
|
33
|
-
|
|
22
|
+
direction?: SmartLinkDirection;
|
|
34
23
|
/**
|
|
35
|
-
*
|
|
24
|
+
* For image icons in the title, whether to hide the loading skeleton while the image is loading.
|
|
36
25
|
*/
|
|
37
|
-
|
|
26
|
+
hideIconLoadingSkeleton?: boolean;
|
|
38
27
|
/**
|
|
39
28
|
* Function to be called on render of block.
|
|
40
29
|
* @internal
|
|
@@ -50,9 +39,20 @@ export type BlockProps = {
|
|
|
50
39
|
*/
|
|
51
40
|
placeholderId?: string;
|
|
52
41
|
/**
|
|
53
|
-
*
|
|
42
|
+
* The size of the block and the size that the underlying elements should
|
|
43
|
+
* default to.
|
|
54
44
|
*/
|
|
55
|
-
|
|
45
|
+
size?: SmartLinkSize;
|
|
46
|
+
/**
|
|
47
|
+
* For dynamic styles
|
|
48
|
+
*/
|
|
49
|
+
style?: React.CSSProperties;
|
|
50
|
+
/**
|
|
51
|
+
* A `testId` prop is provided for specified elements, which is a unique
|
|
52
|
+
* string that appears as a data attribute `data-testid` in the rendered code,
|
|
53
|
+
* serving as a hook for automated tests
|
|
54
|
+
*/
|
|
55
|
+
testId?: string;
|
|
56
56
|
};
|
|
57
57
|
/**
|
|
58
58
|
* Used to represent a metadata element to be rendered.
|
|
@@ -73,6 +73,10 @@ export type ElementItem = {
|
|
|
73
73
|
* Used to represent an Action when passing props into Flexible UI.
|
|
74
74
|
*/
|
|
75
75
|
export type BaseActionItem = {
|
|
76
|
+
/**
|
|
77
|
+
* Determines the text content of the Action.
|
|
78
|
+
*/
|
|
79
|
+
content?: React.ReactNode;
|
|
76
80
|
/**
|
|
77
81
|
* Determines whether the action should hide the text content of the button.
|
|
78
82
|
*/
|
|
@@ -85,6 +89,10 @@ export type BaseActionItem = {
|
|
|
85
89
|
* Determines where the icon should be rendered if text is provided.
|
|
86
90
|
*/
|
|
87
91
|
iconPosition?: 'before' | 'after';
|
|
92
|
+
/**
|
|
93
|
+
* Determines whether the button displays as disabled.
|
|
94
|
+
*/
|
|
95
|
+
isDisabled?: boolean;
|
|
88
96
|
/**
|
|
89
97
|
* Determines the text and icon representation of the action, with exception
|
|
90
98
|
* to CustomAction.
|
|
@@ -94,10 +102,6 @@ export type BaseActionItem = {
|
|
|
94
102
|
* Determines the onClick behaviour of the action.
|
|
95
103
|
*/
|
|
96
104
|
onClick: () => any;
|
|
97
|
-
/**
|
|
98
|
-
* Determines the text content of the Action.
|
|
99
|
-
*/
|
|
100
|
-
content?: React.ReactNode;
|
|
101
105
|
/**
|
|
102
106
|
* Determines the size of the Action. Corresponds to an Action appearance.
|
|
103
107
|
*/
|
|
@@ -108,10 +112,6 @@ export type BaseActionItem = {
|
|
|
108
112
|
* serving as a hook for automated tests
|
|
109
113
|
*/
|
|
110
114
|
testId?: string;
|
|
111
|
-
/**
|
|
112
|
-
* Determines whether the button displays as disabled.
|
|
113
|
-
*/
|
|
114
|
-
isDisabled?: boolean;
|
|
115
115
|
};
|
|
116
116
|
/**
|
|
117
117
|
* Used to represent an Action which self-hydrates with data when passing props into Flexible UI.
|
|
@@ -125,6 +125,10 @@ export type BaseDataActionItem = {
|
|
|
125
125
|
* Determines whether the action should hide the icon inside the button.
|
|
126
126
|
*/
|
|
127
127
|
hideIcon?: boolean;
|
|
128
|
+
/**
|
|
129
|
+
* Determines whether the button displays as disabled.
|
|
130
|
+
*/
|
|
131
|
+
isDisabled?: boolean;
|
|
128
132
|
/**
|
|
129
133
|
* Determines the text and icon representation of the action, with exception
|
|
130
134
|
* to CustomAction.
|
|
@@ -145,10 +149,6 @@ export type BaseDataActionItem = {
|
|
|
145
149
|
* serving as a hook for automated tests
|
|
146
150
|
*/
|
|
147
151
|
testId?: string;
|
|
148
|
-
/**
|
|
149
|
-
* Determines whether the button displays as disabled.
|
|
150
|
-
*/
|
|
151
|
-
isDisabled?: boolean;
|
|
152
152
|
};
|
|
153
153
|
/**
|
|
154
154
|
* This represents an action that will render based on the data provided from the Smart Link.
|
|
@@ -172,9 +172,9 @@ export type NamedActionItem = BaseActionItem & {
|
|
|
172
172
|
* This represents an action where either Icon or label must be provided.
|
|
173
173
|
*/
|
|
174
174
|
export type CustomActionItem = BaseActionItem & {
|
|
175
|
-
name: ActionName.CustomAction;
|
|
176
|
-
href?: string;
|
|
177
175
|
ariaLabel?: string;
|
|
176
|
+
href?: string;
|
|
177
|
+
name: ActionName.CustomAction;
|
|
178
178
|
} & ((Required<Pick<ActionProps, 'icon' | 'iconPosition'>> & Pick<ActionProps, 'content'>) | ((Required<Pick<ActionProps, 'content'>> & Pick<ActionProps, 'icon' | 'iconPosition'>) & Pick<ActionProps, 'tooltipMessage'>));
|
|
179
179
|
export type ActionItem = (NamedActionItem | NamedDataActionItem | CustomActionItem) & {
|
|
180
180
|
entryPointWrapper?: React.FC<{
|
|
@@ -230,14 +230,14 @@ export type OwnedByGroup = {
|
|
|
230
230
|
*/
|
|
231
231
|
export type AssignedToGroup = {
|
|
232
232
|
name: ElementName.AssignedToGroup;
|
|
233
|
-
/**
|
|
234
|
-
* Shows a name prefix Assigned To in the Avatar tooltip.
|
|
235
|
-
*/
|
|
236
|
-
showNamePrefix?: boolean;
|
|
237
233
|
/**
|
|
238
234
|
* Shows a default unassigned fallback avatar when no person is assigned.
|
|
239
235
|
*/
|
|
240
236
|
showFallbackAvatar?: boolean;
|
|
237
|
+
/**
|
|
238
|
+
* Shows a name prefix Assigned To in the Avatar tooltip.
|
|
239
|
+
*/
|
|
240
|
+
showNamePrefix?: boolean;
|
|
241
241
|
};
|
|
242
242
|
/**
|
|
243
243
|
* Represents the props available for an ChecklistProgress element.
|
|
@@ -279,10 +279,10 @@ export type CreatedBy = {
|
|
|
279
279
|
* @see OwnedBy
|
|
280
280
|
*/
|
|
281
281
|
export type OwnedBy = {
|
|
282
|
+
fontSize?: 'font.body' | 'font.body.large' | 'font.body.small' | 'font.body.UNSAFE_small';
|
|
283
|
+
hideFormat?: boolean;
|
|
282
284
|
name: ElementName.OwnedBy;
|
|
283
285
|
textPrefix?: 'owned_by' | 'owned_by_override';
|
|
284
|
-
hideFormat?: boolean;
|
|
285
|
-
fontSize?: 'font.body' | 'font.body.large' | 'font.body.small' | 'font.body.UNSAFE_small';
|
|
286
286
|
};
|
|
287
287
|
/**
|
|
288
288
|
* Represents the props available for an CreatedOn element.
|
|
@@ -334,12 +334,12 @@ export type ModifiedBy = {
|
|
|
334
334
|
* @see ModifiedOn
|
|
335
335
|
*/
|
|
336
336
|
export type ModifiedOn = {
|
|
337
|
+
fontSize?: 'font.body' | 'font.body.large' | 'font.body.small' | 'font.body.UNSAFE_small';
|
|
337
338
|
name: ElementName.ModifiedOn;
|
|
338
339
|
/**
|
|
339
340
|
* A string which will be displayed before the specified element.
|
|
340
341
|
*/
|
|
341
342
|
text?: string;
|
|
342
|
-
fontSize?: 'font.body' | 'font.body.large' | 'font.body.small' | 'font.body.UNSAFE_small';
|
|
343
343
|
};
|
|
344
344
|
/**
|
|
345
345
|
* Represents the props available for an Preview element.
|
|
@@ -367,8 +367,8 @@ export type ProgrammingLanguage = {
|
|
|
367
367
|
* @see Provider
|
|
368
368
|
*/
|
|
369
369
|
export type Provider = {
|
|
370
|
-
name: ElementName.Provider;
|
|
371
370
|
hideIcon?: boolean;
|
|
371
|
+
name: ElementName.Provider;
|
|
372
372
|
};
|
|
373
373
|
/**
|
|
374
374
|
* Represents the props available for an ReactCount element.
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export type ImageIconProps = {
|
|
2
|
+
appearance?: 'square' | 'round';
|
|
2
3
|
defaultIcon?: React.ReactNode;
|
|
3
|
-
testId?: string;
|
|
4
|
-
url: string;
|
|
5
|
-
width?: string;
|
|
6
4
|
height?: string;
|
|
5
|
+
hideLoadingSkeleton?: boolean;
|
|
7
6
|
onError?: () => void;
|
|
8
7
|
onLoad?: () => void;
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
testId?: string;
|
|
9
|
+
url: string;
|
|
10
|
+
width?: string;
|
|
11
11
|
};
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
export type LoadingSkeletonProps = {
|
|
2
|
+
/**
|
|
3
|
+
* Height of loading skeleton, defaults to height of the parent element
|
|
4
|
+
*/
|
|
5
|
+
height?: string;
|
|
2
6
|
/**
|
|
3
7
|
* A `testId` prop is provided for specified elements, which is a unique
|
|
4
8
|
* string that appears as a data attribute `data-testid` in the rendered
|
|
@@ -9,8 +13,4 @@ export type LoadingSkeletonProps = {
|
|
|
9
13
|
* Width of the loading skeleton, defaults to width of the parent element
|
|
10
14
|
*/
|
|
11
15
|
width?: string;
|
|
12
|
-
/**
|
|
13
|
-
* Height of loading skeleton, defaults to height of the parent element
|
|
14
|
-
*/
|
|
15
|
-
height?: string;
|
|
16
16
|
};
|
package/dist/types-ts4.5/view/FlexibleCard/components/container/hover-card-control/types.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { type PropsWithChildren } from 'react';
|
|
2
2
|
import { type ContainerProps } from '../types';
|
|
3
3
|
export type HoverCardDelayProps = PropsWithChildren<Pick<ContainerProps, 'actionOptions' | 'hoverPreviewOptions'> & {
|
|
4
|
-
|
|
4
|
+
delay?: number;
|
|
5
5
|
isAuthTooltip?: boolean;
|
|
6
|
+
isHoverPreview?: boolean;
|
|
6
7
|
testId?: string;
|
|
7
8
|
url: string;
|
|
8
|
-
delay?: number;
|
|
9
9
|
}>;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { type ElementProps } from '../../index';
|
|
2
2
|
export type BaseAvatarItemProps = {
|
|
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
3
|
/**
|
|
8
4
|
* The name of the person in the avatar.
|
|
9
5
|
*/
|
|
10
6
|
name: string;
|
|
7
|
+
/**
|
|
8
|
+
* The image to be used in an `@atlaskit/avatar - this should be a url to the image src
|
|
9
|
+
*/
|
|
10
|
+
src?: string;
|
|
11
11
|
};
|
|
12
12
|
export type BaseAvatarGroupElementProps = ElementProps & {
|
|
13
13
|
/**
|
|
@@ -18,14 +18,14 @@ export type BaseAvatarGroupElementProps = ElementProps & {
|
|
|
18
18
|
* The maximum number of Avatars to show in the AvatarGroup
|
|
19
19
|
*/
|
|
20
20
|
maxCount?: number;
|
|
21
|
-
/**
|
|
22
|
-
* Shows a name prefix in the Avatar tooltip (Created by, Assigned To, Owned by)
|
|
23
|
-
*/
|
|
24
|
-
showNamePrefix?: boolean;
|
|
25
21
|
/**
|
|
26
22
|
* Shows a default fallback avatar if no persons in the AvatarGroup.
|
|
27
23
|
*/
|
|
28
24
|
showFallbackAvatar?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Shows a name prefix in the Avatar tooltip (Created by, Assigned To, Owned by)
|
|
27
|
+
*/
|
|
28
|
+
showNamePrefix?: boolean;
|
|
29
29
|
};
|
|
30
30
|
/**
|
|
31
31
|
* A base element that displays a group of avatars.
|
package/dist/types-ts4.5/view/FlexibleCard/components/elements/common/base-badge-element/index.d.ts
CHANGED
|
@@ -10,6 +10,10 @@ export type BaseBadgeElementProps = ElementProps & {
|
|
|
10
10
|
* Badge appearances
|
|
11
11
|
*/
|
|
12
12
|
appearance?: 'default' | 'subtle';
|
|
13
|
+
/**
|
|
14
|
+
* Color of the text and badge
|
|
15
|
+
*/
|
|
16
|
+
color?: string;
|
|
13
17
|
/**
|
|
14
18
|
* Determines whether the badge icon should be hidden. When set to true,
|
|
15
19
|
* the badge will be displayed without the icon, showing only the label text.
|
|
@@ -20,24 +24,24 @@ export type BaseBadgeElementProps = ElementProps & {
|
|
|
20
24
|
* then the badge icon will fallback to the URL provided.
|
|
21
25
|
*/
|
|
22
26
|
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
27
|
/**
|
|
28
28
|
* The text to display for the badge.
|
|
29
29
|
*/
|
|
30
30
|
label?: string;
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
32
|
+
* The icon from this URL will be used for the badge if no Atlaskit Icon is provided.
|
|
33
33
|
*/
|
|
34
|
-
|
|
34
|
+
url?: string;
|
|
35
35
|
};
|
|
36
36
|
declare const _default: (props: ElementProps & {
|
|
37
37
|
/**
|
|
38
38
|
* Badge appearances
|
|
39
39
|
*/
|
|
40
40
|
appearance?: "default" | "subtle";
|
|
41
|
+
/**
|
|
42
|
+
* Color of the text and badge
|
|
43
|
+
*/
|
|
44
|
+
color?: string;
|
|
41
45
|
/**
|
|
42
46
|
* Determines whether the badge icon should be hidden. When set to true,
|
|
43
47
|
* the badge will be displayed without the icon, showing only the label text.
|
|
@@ -48,18 +52,14 @@ declare const _default: (props: ElementProps & {
|
|
|
48
52
|
* then the badge icon will fallback to the URL provided.
|
|
49
53
|
*/
|
|
50
54
|
icon?: IconType;
|
|
51
|
-
/**
|
|
52
|
-
* The icon from this URL will be used for the badge if no Atlaskit Icon is provided.
|
|
53
|
-
*/
|
|
54
|
-
url?: string;
|
|
55
55
|
/**
|
|
56
56
|
* The text to display for the badge.
|
|
57
57
|
*/
|
|
58
58
|
label?: string;
|
|
59
59
|
/**
|
|
60
|
-
*
|
|
60
|
+
* The icon from this URL will be used for the badge if no Atlaskit Icon is provided.
|
|
61
61
|
*/
|
|
62
|
-
|
|
62
|
+
url?: string;
|
|
63
63
|
} & React.RefAttributes<HTMLElement> & {
|
|
64
64
|
className?: string;
|
|
65
65
|
}) => React.JSX.Element;
|
|
@@ -4,29 +4,29 @@ import type { ElementProps } from '../../../elements';
|
|
|
4
4
|
export type DateTimeType = 'created' | 'modified' | 'sent';
|
|
5
5
|
export type BaseDateTimeElementProps = ElementProps & {
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Color of the text
|
|
8
8
|
*/
|
|
9
|
-
|
|
9
|
+
color?: string;
|
|
10
10
|
/**
|
|
11
11
|
* The date to display in the element.
|
|
12
12
|
*/
|
|
13
13
|
date?: Date;
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Override the default font size.
|
|
16
16
|
*/
|
|
17
|
-
|
|
17
|
+
fontSize?: Prettify<Extract<Parameters<typeof token>[0], 'font.body' | 'font.body.large' | 'font.body.small' | 'font.body.UNSAFE_small'>>;
|
|
18
18
|
/**
|
|
19
19
|
* Hide the date prefix (e.g. "Created on", "Modified on", "Sent on")
|
|
20
20
|
*/
|
|
21
21
|
hideDatePrefix?: boolean;
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* The override text which will show next to the date
|
|
24
24
|
*/
|
|
25
|
-
|
|
25
|
+
text?: string;
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* Whether the date time element text should contain "Modified" or "Created" or "sent"
|
|
28
28
|
*/
|
|
29
|
-
|
|
29
|
+
type?: DateTimeType;
|
|
30
30
|
};
|
|
31
31
|
/**
|
|
32
32
|
* A base element that displays an ISO Timestamp in text.
|
package/dist/types-ts4.5/view/FlexibleCard/components/elements/common/base-icon-element/index.d.ts
CHANGED
|
@@ -3,40 +3,40 @@ import { type FlexibleUiDataContext } from '../../../../../../state/flexible-ui-
|
|
|
3
3
|
import type { ElementProps } from '../../index';
|
|
4
4
|
export type BaseIconElementProps = ElementProps & {
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Whether to display the icon as a square or round image.
|
|
7
7
|
*/
|
|
8
|
-
|
|
8
|
+
appearance?: 'square' | 'round';
|
|
9
|
+
/**
|
|
10
|
+
* For images, whether to hide the loading skeleton while the image is loading.
|
|
11
|
+
*/
|
|
12
|
+
hideLoadingSkeleton?: boolean;
|
|
9
13
|
/**
|
|
10
14
|
* The Atlaskit Icon to display. If no icon is provided, then the URL provided
|
|
11
15
|
* will be used.
|
|
12
16
|
*/
|
|
13
17
|
icon?: IconType;
|
|
18
|
+
/**
|
|
19
|
+
* The label provided to the Atlaskit Icon.
|
|
20
|
+
*/
|
|
21
|
+
label?: string;
|
|
14
22
|
/**
|
|
15
23
|
* If provided, overrideIcon will be rendered in the place of the provided icon or one that is
|
|
16
24
|
* supplied by the URL.
|
|
17
25
|
*/
|
|
18
26
|
overrideIcon?: React.ReactNode;
|
|
19
|
-
/**
|
|
20
|
-
* The label provided to the Atlaskit Icon.
|
|
21
|
-
*/
|
|
22
|
-
label?: string;
|
|
23
27
|
/**
|
|
24
28
|
* Determines the position of the link icon in relative to the vertical
|
|
25
29
|
* height. It can either be centred or placed on “top”. Default is top.
|
|
26
30
|
*/
|
|
27
31
|
position?: SmartLinkPosition;
|
|
28
32
|
/**
|
|
29
|
-
*
|
|
30
|
-
*/
|
|
31
|
-
url?: string;
|
|
32
|
-
/**
|
|
33
|
-
* Whether to display the icon as a square or round image.
|
|
33
|
+
* If provided, Icon element will use this render function instead.
|
|
34
34
|
*/
|
|
35
|
-
|
|
35
|
+
render?: () => React.ReactNode;
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* The icon from this url will be used if no render function or Atlaskit Icon is provided.
|
|
38
38
|
*/
|
|
39
|
-
|
|
39
|
+
url?: string;
|
|
40
40
|
};
|
|
41
41
|
/**
|
|
42
42
|
* A base element that displays an Icon or favicon.
|
|
@@ -46,17 +46,17 @@ export type BaseIconElementProps = ElementProps & {
|
|
|
46
46
|
*/
|
|
47
47
|
declare const IconElement: ({ icon, overrideIcon, label, name, position, className, render, size, testId, url, appearance, hideLoadingSkeleton, }: BaseIconElementProps) => JSX.Element;
|
|
48
48
|
export default IconElement;
|
|
49
|
-
export declare const toLinkIconProps: (data: FlexibleUiDataContext[keyof FlexibleUiDataContext] | undefined, type: FlexibleUiDataContext["type"]) => string[] | import("../../../../../../extractors/common/lozenge/types").LinkLozenge | import("../../../../../../state/flexible-ui-context/types").FlexibleUiActions | import("@atlaskit/link-extractors").LinkPerson[] | import("../../../../../../state/flexible-ui-context/types").
|
|
49
|
+
export declare const toLinkIconProps: (data: FlexibleUiDataContext[keyof FlexibleUiDataContext] | undefined, type: FlexibleUiDataContext["type"]) => string[] | import("../../../../../../extractors/common/lozenge/types").LinkLozenge | import("../../../../../../state/flexible-ui-context/types").FlexibleUiActions | import("@atlaskit/link-extractors").LinkPerson[] | import("../../../../../../state/flexible-ui-context/types").LinkTitle | import("../../../../../../state/flexible-ui-context/types").LinkLocation | {
|
|
50
|
+
accessType?: string;
|
|
50
51
|
objectId?: string;
|
|
51
52
|
resourceType?: string;
|
|
52
53
|
tenantId?: string;
|
|
53
|
-
|
|
54
|
-
} | {
|
|
55
|
-
role?: string;
|
|
54
|
+
} | import("../../../../../../state/flexible-ui-context/types").Media | {
|
|
56
55
|
department?: string;
|
|
57
56
|
location?: string;
|
|
58
57
|
pronouns?: string;
|
|
59
|
-
|
|
58
|
+
role?: string;
|
|
59
|
+
} | import("../../../../../../state/flexible-ui-context/types").PreviewActionData | {
|
|
60
60
|
appearance: string;
|
|
61
61
|
icon?: IconType;
|
|
62
62
|
label?: string;
|
package/dist/types-ts4.5/view/FlexibleCard/components/elements/common/base-link-element/index.d.ts
CHANGED
|
@@ -7,10 +7,18 @@ import { type SmartLinkInternalTheme, SmartLinkTheme } from '../../../../../../c
|
|
|
7
7
|
import type { ElementProps } from '../../../../components/elements';
|
|
8
8
|
import type { AnchorTarget } from '../../../../components/types';
|
|
9
9
|
export type BaseLinkElementProps = ElementProps & {
|
|
10
|
+
/**
|
|
11
|
+
* Ref passed into the link <a> element
|
|
12
|
+
*/
|
|
13
|
+
anchorRef?: React.Ref<HTMLAnchorElement>;
|
|
10
14
|
/**
|
|
11
15
|
* Determines whether the link should display tooltip on hover.
|
|
12
16
|
*/
|
|
13
17
|
hideTooltip?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* The number of lines that the link text should spread over. Maximum of 2 lines.
|
|
20
|
+
*/
|
|
21
|
+
maxLines?: number;
|
|
14
22
|
/**
|
|
15
23
|
* Determines the behaviour when the Link is clicked. By default is used to
|
|
16
24
|
* propagate analytics.
|
|
@@ -21,9 +29,9 @@ export type BaseLinkElementProps = ElementProps & {
|
|
|
21
29
|
*/
|
|
22
30
|
onMouseDown?: React.MouseEventHandler;
|
|
23
31
|
/**
|
|
24
|
-
* The
|
|
32
|
+
* The href target behaviour of the link.
|
|
25
33
|
*/
|
|
26
|
-
|
|
34
|
+
target?: AnchorTarget;
|
|
27
35
|
/**
|
|
28
36
|
* The text to display. Overrides the default link text.
|
|
29
37
|
*/
|
|
@@ -36,14 +44,6 @@ export type BaseLinkElementProps = ElementProps & {
|
|
|
36
44
|
* The url that the Smart Link should be based upon.
|
|
37
45
|
*/
|
|
38
46
|
url?: string;
|
|
39
|
-
/**
|
|
40
|
-
* The href target behaviour of the link.
|
|
41
|
-
*/
|
|
42
|
-
target?: AnchorTarget;
|
|
43
|
-
/**
|
|
44
|
-
* Ref passed into the link <a> element
|
|
45
|
-
*/
|
|
46
|
-
anchorRef?: React.Ref<HTMLAnchorElement>;
|
|
47
47
|
};
|
|
48
48
|
/**
|
|
49
49
|
* A base element that represent an anchor.
|
|
@@ -9,14 +9,14 @@ export type LozengeActionErrorProps = {
|
|
|
9
9
|
* A preview link action to invoke with useInvokeClientAction
|
|
10
10
|
*/
|
|
11
11
|
invokePreviewAction?: InvokeClientActionProps;
|
|
12
|
-
/**
|
|
13
|
-
* Data test id used for testing purposes
|
|
14
|
-
*/
|
|
15
|
-
testId?: string;
|
|
16
12
|
/**
|
|
17
13
|
* Maximum number of lines displayed inside of the dropdown
|
|
18
14
|
*/
|
|
19
15
|
maxLineNumber?: number;
|
|
16
|
+
/**
|
|
17
|
+
* Data test id used for testing purposes
|
|
18
|
+
*/
|
|
19
|
+
testId?: string;
|
|
20
20
|
/**
|
|
21
21
|
* The url of the link. Used in reload functionality
|
|
22
22
|
*/
|
|
@@ -2,6 +2,6 @@ import { type ThemeAppearance } from '@atlaskit/lozenge';
|
|
|
2
2
|
import { type LozengeItem } from '../types';
|
|
3
3
|
export type LozengeActionItemsGroupProps = {
|
|
4
4
|
items: LozengeItem[];
|
|
5
|
-
testId?: string;
|
|
6
5
|
onClick?: (id: string, text: string, appearance?: ThemeAppearance) => Promise<void>;
|
|
6
|
+
testId?: string;
|
|
7
7
|
};
|