@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
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export interface FrameViewProps {
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
className?: string;
|
|
5
|
+
/** A flag that determines whether a card is in hover state in edit mode. */
|
|
6
|
+
isHovered?: boolean;
|
|
3
7
|
/** A flag that determines whether the card is selected in edit mode. */
|
|
4
8
|
isSelected?: boolean;
|
|
5
|
-
/** A flag that determines whether the card needs a backgorund or not */
|
|
6
|
-
withoutBackground?: boolean;
|
|
7
|
-
children?: React.ReactNode;
|
|
8
9
|
link?: string;
|
|
9
10
|
/** The optional click handler */
|
|
10
11
|
onClick?: React.EventHandler<React.MouseEvent | React.KeyboardEvent>;
|
|
11
12
|
/** A `testId` prop is provided for specified elements, which is a unique string that appears as a data attribute `data-testid` in the rendered code, serving as a hook for automated tests */
|
|
12
13
|
testId?: string;
|
|
13
|
-
className?: string;
|
|
14
|
-
/** A flag that determines whether a card is in hover state in edit mode. */
|
|
15
|
-
isHovered?: boolean;
|
|
16
14
|
/** A flag that determines whether a card is truncated to 1 line */
|
|
17
15
|
truncateInline?: boolean;
|
|
16
|
+
/** A flag that determines whether the card needs a backgorund or not */
|
|
17
|
+
withoutBackground?: boolean;
|
|
18
18
|
}
|
|
19
19
|
export declare const Frame: React.ForwardRefExoticComponent<FrameViewProps & React.RefAttributes<never>>;
|
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
import React from 'react';
|
|
6
6
|
export interface WrapperProps extends React.ComponentProps<any> {
|
|
7
7
|
href?: string;
|
|
8
|
-
isSelected?: boolean;
|
|
9
|
-
isInteractive?: boolean;
|
|
10
|
-
withoutBackground?: boolean;
|
|
11
8
|
isHovered?: boolean;
|
|
9
|
+
isInteractive?: boolean;
|
|
10
|
+
isSelected?: boolean;
|
|
12
11
|
truncateInline?: boolean;
|
|
12
|
+
withoutBackground?: boolean;
|
|
13
13
|
}
|
|
14
14
|
export declare const WrapperSpan: React.ForwardRefExoticComponent<Omit<WrapperProps, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
15
15
|
export declare const WrapperAnchor: React.ForwardRefExoticComponent<Omit<WrapperProps, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
|
|
@@ -6,19 +6,19 @@
|
|
|
6
6
|
import React, { type ComponentPropsWithoutRef } from 'react';
|
|
7
7
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
8
8
|
export interface IconAndTitleLayoutProps {
|
|
9
|
-
emoji?: React.ReactNode;
|
|
10
|
-
icon?: React.ReactNode;
|
|
11
|
-
title: React.ReactNode;
|
|
12
|
-
right?: React.ReactNode;
|
|
13
|
-
titleColor?: string;
|
|
14
|
-
titleTextColor?: string;
|
|
15
9
|
children?: React.ReactNode;
|
|
16
10
|
defaultIcon?: React.ReactNode;
|
|
17
|
-
|
|
11
|
+
emoji?: React.ReactNode;
|
|
12
|
+
icon?: React.ReactNode;
|
|
18
13
|
link?: string;
|
|
14
|
+
onClick?: React.EventHandler<React.MouseEvent | React.KeyboardEvent>;
|
|
15
|
+
right?: React.ReactNode;
|
|
19
16
|
rightSide?: React.ReactNode;
|
|
20
17
|
rightSideSpacer?: boolean;
|
|
21
|
-
|
|
18
|
+
testId?: string;
|
|
19
|
+
title: React.ReactNode;
|
|
20
|
+
titleColor?: string;
|
|
21
|
+
titleTextColor?: string;
|
|
22
22
|
type?: string[];
|
|
23
23
|
}
|
|
24
24
|
export declare const IconAndTitleLayout: ({ icon, emoji, defaultIcon, onClick, children, title, titleColor, titleTextColor, link, rightSide, testId, type, }: IconAndTitleLayoutProps) => JSX.Element;
|
|
@@ -3,33 +3,33 @@ import { type LozengeProps } from '../../../types';
|
|
|
3
3
|
import type { CardActionOptions } from '../../Card/types';
|
|
4
4
|
import { type HoverPreviewOptions } from '../../HoverCard/types';
|
|
5
5
|
export interface InlineCardResolvedViewProps {
|
|
6
|
-
/**
|
|
7
|
-
|
|
6
|
+
/** Configure visibility of server and client actions */
|
|
7
|
+
actionOptions?: CardActionOptions;
|
|
8
|
+
hoverPreviewOptions?: HoverPreviewOptions;
|
|
8
9
|
/** The optional con of the service (e.g. Dropbox/Asana/Google/etc) to display */
|
|
9
10
|
icon?: React.ReactNode;
|
|
10
|
-
/**
|
|
11
|
-
|
|
12
|
-
/** The the optional lozenge that might represent the statux of the resource */
|
|
13
|
-
lozenge?: LozengeProps;
|
|
14
|
-
/** A flag that determines whether the card is selected in edit mode. */
|
|
15
|
-
isSelected?: boolean;
|
|
11
|
+
/** A unique ID for a Smart Link. */
|
|
12
|
+
id?: string;
|
|
16
13
|
/** A flag that determines whether a card is in hover state in edit mode. Currently used for inline only */
|
|
17
14
|
isHovered?: boolean;
|
|
15
|
+
/** A flag that determines whether the card is selected in edit mode. */
|
|
16
|
+
isSelected?: boolean;
|
|
18
17
|
/** The optional url */
|
|
19
18
|
link?: string;
|
|
19
|
+
/** The the optional lozenge that might represent the statux of the resource */
|
|
20
|
+
lozenge?: LozengeProps;
|
|
20
21
|
/** The optional click handler */
|
|
21
22
|
onClick?: React.EventHandler<React.MouseEvent | React.KeyboardEvent>;
|
|
23
|
+
/** Enables showing a custom preview on hover of link */
|
|
24
|
+
showHoverPreview?: boolean;
|
|
22
25
|
/** A `testId` prop is provided for specified elements, which is a unique string that appears as a data attribute `data-testid` in the rendered code, serving as a hook for automated tests */
|
|
23
26
|
testId?: string;
|
|
24
|
-
/** The
|
|
25
|
-
|
|
27
|
+
/** The name of the resource */
|
|
28
|
+
title?: string;
|
|
26
29
|
/** The Emoji icon prefix that was added to the title text via Add emoji button */
|
|
27
30
|
titlePrefix?: React.ReactNode;
|
|
28
|
-
/**
|
|
29
|
-
|
|
30
|
-
hoverPreviewOptions?: HoverPreviewOptions;
|
|
31
|
-
/** Configure visibility of server and client actions */
|
|
32
|
-
actionOptions?: CardActionOptions;
|
|
31
|
+
/** The color of the title text only (not including the icon) */
|
|
32
|
+
titleTextColor?: string;
|
|
33
33
|
/** Truncates the card to one line */
|
|
34
34
|
truncateInline?: boolean;
|
|
35
35
|
/** Type of inline card */
|
|
@@ -5,19 +5,19 @@
|
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { type InlinePreloaderStyle } from '../../types';
|
|
7
7
|
export interface InlineCardResolvingViewProps {
|
|
8
|
-
/** The url to display */
|
|
9
|
-
url: string;
|
|
10
8
|
inlinePreloaderStyle?: InlinePreloaderStyle;
|
|
11
|
-
/** The optional click handler */
|
|
12
|
-
onClick?: React.EventHandler<React.MouseEvent | React.KeyboardEvent>;
|
|
13
9
|
/** A flag that determines whether the card is selected in edit mode. */
|
|
14
10
|
isSelected?: boolean;
|
|
11
|
+
/** The optional click handler */
|
|
12
|
+
onClick?: React.EventHandler<React.MouseEvent | React.KeyboardEvent>;
|
|
13
|
+
/** An optional placeholder displayed while the smart card is resolving. */
|
|
14
|
+
resolvingPlaceholder?: string;
|
|
15
15
|
/** A `testId` prop is provided for specified elements, which is a unique string that appears as a data attribute `data-testid` in the rendered code, serving as a hook for automated tests */
|
|
16
16
|
testId?: string;
|
|
17
17
|
titleTextColor?: string;
|
|
18
|
-
/** An optional placeholder displayed while the smart card is resolving. */
|
|
19
|
-
resolvingPlaceholder?: string;
|
|
20
18
|
/** Truncates the card to one line */
|
|
21
19
|
truncateInline?: boolean;
|
|
20
|
+
/** The url to display */
|
|
21
|
+
url: string;
|
|
22
22
|
}
|
|
23
23
|
export declare const InlineCardResolvingView: ({ url, onClick, isSelected, inlinePreloaderStyle, testId, titleTextColor, resolvingPlaceholder, truncateInline, }: InlineCardResolvingViewProps) => JSX.Element;
|
|
@@ -4,27 +4,27 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
6
|
export interface InlineCardUnauthorizedViewProps {
|
|
7
|
-
/** The url to display */
|
|
8
|
-
url: string;
|
|
9
|
-
/** The icon of the service (e.g. Dropbox/Asana/Google/etc) to display */
|
|
10
|
-
icon?: React.ReactNode;
|
|
11
7
|
/** The name of the service (e.g. Dropbox/Asana/Google/etc) to display */
|
|
12
8
|
context?: string;
|
|
13
|
-
/**
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
|
|
9
|
+
/** An identifier of the provider which will be executing the action. */
|
|
10
|
+
extensionKey?: string;
|
|
11
|
+
/** The icon of the service (e.g. Dropbox/Asana/Google/etc) to display */
|
|
12
|
+
icon?: React.ReactNode;
|
|
13
|
+
/** A smart link id that may be used in analytics */
|
|
14
|
+
id?: string;
|
|
17
15
|
/** A flag that determines whether the card is selected in edit mode. */
|
|
18
16
|
isSelected?: boolean;
|
|
19
|
-
/**
|
|
20
|
-
|
|
17
|
+
/** What to do when a user hit "Try another account" button */
|
|
18
|
+
onAuthorise?: () => void;
|
|
19
|
+
/** The optional click handler */
|
|
20
|
+
onClick?: React.EventHandler<React.MouseEvent | React.KeyboardEvent>;
|
|
21
21
|
/** Enables showing a custom preview on hover of link */
|
|
22
22
|
showHoverPreview?: boolean;
|
|
23
|
-
/** A
|
|
24
|
-
|
|
25
|
-
/** An identifier of the provider which will be executing the action. */
|
|
26
|
-
extensionKey?: string;
|
|
23
|
+
/** A `testId` prop is provided for specified elements, which is a unique string that appears as a data attribute `data-testid` in the rendered code, serving as a hook for automated tests */
|
|
24
|
+
testId?: string;
|
|
27
25
|
/** Truncates the card to one line */
|
|
28
26
|
truncateInline?: boolean;
|
|
27
|
+
/** The url to display */
|
|
28
|
+
url: string;
|
|
29
29
|
}
|
|
30
30
|
export declare const InlineCardUnauthorizedView: ({ url, id, icon, onAuthorise, onClick, isSelected, testId, showHoverPreview, truncateInline, context, }: InlineCardUnauthorizedViewProps) => JSX.Element;
|
|
@@ -5,25 +5,25 @@ import type { CardActionOptions } from '../Card/types';
|
|
|
5
5
|
import { type HoverPreviewOptions } from '../HoverCard/types';
|
|
6
6
|
import { type InlinePreloaderStyle, type OnErrorCallback } from '../types';
|
|
7
7
|
export type InlineCardProps = {
|
|
8
|
-
|
|
9
|
-
url: string;
|
|
8
|
+
actionOptions?: CardActionOptions;
|
|
10
9
|
cardState: CardState;
|
|
11
10
|
handleAuthorize: (() => void) | undefined;
|
|
12
11
|
handleFrameClick: EventHandler<MouseEvent | KeyboardEvent>;
|
|
13
|
-
|
|
12
|
+
hoverPreviewOptions?: HoverPreviewOptions;
|
|
13
|
+
id: string;
|
|
14
|
+
inlinePreloaderStyle?: InlinePreloaderStyle;
|
|
14
15
|
isHovered?: boolean;
|
|
15
|
-
|
|
16
|
+
isSelected?: boolean;
|
|
17
|
+
onError?: OnErrorCallback;
|
|
16
18
|
onResolve?: (data: {
|
|
17
|
-
url?: string;
|
|
18
19
|
title?: string;
|
|
20
|
+
url?: string;
|
|
19
21
|
}) => void;
|
|
20
|
-
onError?: OnErrorCallback;
|
|
21
|
-
inlinePreloaderStyle?: InlinePreloaderStyle;
|
|
22
|
-
renderers?: CardProviderRenderers;
|
|
23
|
-
showHoverPreview?: boolean;
|
|
24
|
-
hoverPreviewOptions?: HoverPreviewOptions;
|
|
25
|
-
actionOptions?: CardActionOptions;
|
|
26
22
|
removeTextHighlightingFromTitle?: boolean;
|
|
23
|
+
renderers?: CardProviderRenderers;
|
|
27
24
|
resolvingPlaceholder?: string;
|
|
25
|
+
showHoverPreview?: boolean;
|
|
26
|
+
testId?: string;
|
|
28
27
|
truncateInline?: boolean;
|
|
28
|
+
url: string;
|
|
29
29
|
};
|
|
@@ -3,11 +3,11 @@ export interface LinkUrlProps extends React.AnchorHTMLAttributes<HTMLAnchorEleme
|
|
|
3
3
|
* Determines if we want to perform a link safety check. True by default.
|
|
4
4
|
*/
|
|
5
5
|
checkSafety?: boolean;
|
|
6
|
-
testId?: string;
|
|
7
6
|
isLinkComponent?: boolean;
|
|
7
|
+
testId?: string;
|
|
8
8
|
}
|
|
9
9
|
export type PackageDataType = {
|
|
10
|
+
componentName: 'linkUrl';
|
|
10
11
|
packageName: string;
|
|
11
12
|
packageVersion: string;
|
|
12
|
-
componentName: 'linkUrl';
|
|
13
13
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
type EmptyStateProps = {
|
|
2
|
-
header: string;
|
|
3
|
-
testId?: string;
|
|
4
2
|
description?: React.ReactNode;
|
|
3
|
+
header: string;
|
|
5
4
|
renderImage?: () => React.ReactNode;
|
|
5
|
+
testId?: string;
|
|
6
6
|
};
|
|
7
7
|
export declare const EmptyState: ({ testId, header, description, renderImage }: EmptyStateProps) => JSX.Element;
|
|
8
8
|
export {};
|
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
2
|
import { type MessageDescriptor } from 'react-intl-next';
|
|
3
3
|
export type RelatedLinkItemProp = {
|
|
4
|
+
isSelected?: boolean;
|
|
5
|
+
onFocus?: () => void;
|
|
6
|
+
testId?: string;
|
|
4
7
|
/**
|
|
5
8
|
* the url link of the resource to be resolved and shown
|
|
6
9
|
*/
|
|
7
10
|
url: string;
|
|
8
|
-
testId?: string;
|
|
9
|
-
isSelected?: boolean;
|
|
10
|
-
onFocus?: () => void;
|
|
11
11
|
};
|
|
12
12
|
export type RelatedLinksListProp = {
|
|
13
|
+
handleSelectedUpdate?: (selectedKey: string) => void;
|
|
14
|
+
selected?: string;
|
|
15
|
+
testId?: string;
|
|
13
16
|
/**
|
|
14
17
|
* the title heading of the list
|
|
15
18
|
*/
|
|
@@ -19,11 +22,12 @@ export type RelatedLinksListProp = {
|
|
|
19
22
|
* the urls will be resolved by smart card using the store
|
|
20
23
|
*/
|
|
21
24
|
urls: string[];
|
|
22
|
-
testId?: string;
|
|
23
|
-
selected?: string;
|
|
24
|
-
handleSelectedUpdate?: (selectedKey: string) => void;
|
|
25
25
|
};
|
|
26
26
|
export type RelatedLinksBaseModalProps = {
|
|
27
|
+
/**
|
|
28
|
+
* Children of modal dialog
|
|
29
|
+
*/
|
|
30
|
+
children: React.ReactNode;
|
|
27
31
|
/**
|
|
28
32
|
* Function to be called when the modal is closed
|
|
29
33
|
*/
|
|
@@ -32,8 +36,4 @@ export type RelatedLinksBaseModalProps = {
|
|
|
32
36
|
* Prop which controls whether the modal is shown
|
|
33
37
|
*/
|
|
34
38
|
showModal: boolean;
|
|
35
|
-
/**
|
|
36
|
-
* Children of modal dialog
|
|
37
|
-
*/
|
|
38
|
-
children: React.ReactNode;
|
|
39
39
|
};
|
|
@@ -3,6 +3,11 @@ export type RelatedLinksModalProps = {
|
|
|
3
3
|
* ari for which the related links will be derived from
|
|
4
4
|
*/
|
|
5
5
|
ari: string;
|
|
6
|
+
/**
|
|
7
|
+
* base url which will be appended with /gateway/api/graphql to make requests to AGG
|
|
8
|
+
* to retrieve related ARIs for the given ari using content-referenced-entity relationship
|
|
9
|
+
*/
|
|
10
|
+
baseUriWithNoTrailingSlash?: string;
|
|
6
11
|
/**
|
|
7
12
|
* Function to be called when the modal is closed
|
|
8
13
|
*/
|
|
@@ -11,9 +16,4 @@ export type RelatedLinksModalProps = {
|
|
|
11
16
|
* Prop which controls whether the modal is shown
|
|
12
17
|
*/
|
|
13
18
|
showModal: boolean;
|
|
14
|
-
/**
|
|
15
|
-
* base url which will be appended with /gateway/api/graphql to make requests to AGG
|
|
16
|
-
* to retrieve related ARIs for the given ari using content-referenced-entity relationship
|
|
17
|
-
*/
|
|
18
|
-
baseUriWithNoTrailingSlash?: string;
|
|
19
19
|
};
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
6
|
export interface IconProps {
|
|
7
|
-
url?: string;
|
|
8
|
-
icon?: React.ReactNode;
|
|
9
7
|
defaultIcon?: React.ReactNode;
|
|
10
|
-
|
|
8
|
+
icon?: React.ReactNode;
|
|
11
9
|
isFlexibleUi?: boolean;
|
|
10
|
+
testId?: string;
|
|
11
|
+
url?: string;
|
|
12
12
|
}
|
|
13
13
|
/**
|
|
14
14
|
* Class name for selecting non-flexible block card icon image
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
type UnauthorisedViewContentProps = {
|
|
3
|
-
/**
|
|
4
|
-
* Is the name of the provider for the account that needs to be connected
|
|
5
|
-
* Eg. Google, Microsoft etc
|
|
6
|
-
*/
|
|
7
|
-
providerName?: string;
|
|
8
3
|
/**
|
|
9
4
|
* If `true`, display an alternative message which prompts user to connect all
|
|
10
5
|
* Atlassian products (vs. smart links only) to the 3rd party account.
|
|
11
6
|
*/
|
|
12
7
|
isProductIntegrationSupported?: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Is the name of the provider for the account that needs to be connected
|
|
10
|
+
* Eg. Google, Microsoft etc
|
|
11
|
+
*/
|
|
12
|
+
providerName?: string;
|
|
13
13
|
/**
|
|
14
14
|
* A `testId` prop is provided for specified elements, which is a unique
|
|
15
15
|
* string that appears as a data attribute `data-testid` in the rendered code,
|
|
@@ -7,21 +7,21 @@ import type { AIBorderPalette } from '../types';
|
|
|
7
7
|
*/
|
|
8
8
|
export type AIGlowingBorderProps = {
|
|
9
9
|
children: ReactNode;
|
|
10
|
-
palette: AIBorderPalette;
|
|
11
|
-
isMoving?: boolean;
|
|
12
|
-
isGlowing?: boolean;
|
|
13
|
-
testId?: string;
|
|
14
10
|
/**
|
|
15
11
|
* For compiled css
|
|
16
12
|
*/
|
|
17
13
|
className?: string;
|
|
14
|
+
isGlowing?: boolean;
|
|
15
|
+
isMoving?: boolean;
|
|
16
|
+
palette: AIBorderPalette;
|
|
17
|
+
testId?: string;
|
|
18
18
|
};
|
|
19
19
|
export type AnimatedSvgContainerProps = {
|
|
20
|
-
palette: AIBorderPalette;
|
|
21
|
-
isMoving?: boolean;
|
|
22
|
-
isGlowing?: boolean;
|
|
23
20
|
/**
|
|
24
21
|
* For compiled css
|
|
25
22
|
*/
|
|
26
23
|
className?: string;
|
|
24
|
+
isGlowing?: boolean;
|
|
25
|
+
isMoving?: boolean;
|
|
26
|
+
palette: AIBorderPalette;
|
|
27
27
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
export type AISummaryProps = {
|
|
2
|
-
content?: string;
|
|
3
2
|
/**
|
|
4
|
-
*
|
|
5
|
-
* serving as a hook for automated tests
|
|
3
|
+
* For compiled css
|
|
6
4
|
*/
|
|
7
|
-
|
|
5
|
+
className?: string;
|
|
6
|
+
content?: string;
|
|
8
7
|
/**
|
|
9
8
|
* Minimum height requirement for the AISummary component to prevent fluctuations in a card size on the summary action.
|
|
10
9
|
*/
|
|
11
10
|
minHeight?: number;
|
|
12
11
|
/**
|
|
13
|
-
*
|
|
12
|
+
* appears as a data attribute `data-testid` in the rendered code,
|
|
13
|
+
* serving as a hook for automated tests
|
|
14
14
|
*/
|
|
15
|
-
|
|
15
|
+
testId?: string;
|
|
16
16
|
};
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
5
|
export type RenderSVGProps = {
|
|
6
|
-
size?: 'xlarge' | 'large' | 'medium';
|
|
7
6
|
alt: string;
|
|
7
|
+
size?: 'xlarge' | 'large' | 'medium';
|
|
8
8
|
};
|
|
9
9
|
type RenderSVGInternalProps = RenderSVGProps & {
|
|
10
|
+
className?: string;
|
|
10
11
|
src: string;
|
|
11
12
|
srcDark?: string;
|
|
12
|
-
className?: string;
|
|
13
13
|
};
|
|
14
14
|
export declare const RenderSVG: ({ alt, size, src, srcDark }: RenderSVGInternalProps) => JSX.Element;
|
|
15
15
|
export {};
|
|
@@ -8,27 +8,27 @@ export type AccessTypes = 'REQUEST_ACCESS' | 'PENDING_REQUEST_EXISTS' | 'FORBIDD
|
|
|
8
8
|
export interface AccessContext {
|
|
9
9
|
accessType?: AccessTypes;
|
|
10
10
|
cloudId?: string;
|
|
11
|
-
url?: string;
|
|
12
11
|
smartLinksAccessMetadataExperimentCohort?: 'experiment' | 'control' | 'not-enrolled';
|
|
12
|
+
url?: string;
|
|
13
13
|
}
|
|
14
14
|
export interface ActionProps {
|
|
15
|
+
buttonAppearance?: Appearance;
|
|
15
16
|
id: string;
|
|
16
|
-
text: React.ReactNode;
|
|
17
17
|
promise: () => Promise<any>;
|
|
18
|
-
|
|
18
|
+
text: React.ReactNode;
|
|
19
19
|
}
|
|
20
20
|
export interface RequestAccessContextProps extends AccessContext {
|
|
21
21
|
action?: ActionProps;
|
|
22
|
+
buttonDisabled?: boolean;
|
|
22
23
|
callToActionMessageKey?: RequestAccessMessageKey;
|
|
23
24
|
descriptiveMessageKey?: RequestAccessMessageKey;
|
|
24
|
-
titleMessageKey?: RequestAccessMessageKey;
|
|
25
25
|
hostname?: string;
|
|
26
|
-
|
|
26
|
+
titleMessageKey?: RequestAccessMessageKey;
|
|
27
27
|
}
|
|
28
28
|
export type InlinePreloaderStyle = 'on-left-with-skeleton' | 'on-right-without-skeleton';
|
|
29
29
|
export type ErrorCardType = 'errored' | 'fallback' | 'forbidden' | 'not_found' | 'unauthorized';
|
|
30
30
|
export type OnErrorCallback = (data: {
|
|
31
|
+
err?: Error;
|
|
31
32
|
status: Extract<CardType, ErrorCardType>;
|
|
32
33
|
url: string;
|
|
33
|
-
err?: Error;
|
|
34
34
|
}) => void;
|
|
@@ -5,21 +5,21 @@ import { type EmbedModalProps } from '../../view/EmbedModal/types';
|
|
|
5
5
|
import { type ExtractClientActionsParam } from './types';
|
|
6
6
|
export type ExtractInvokePreviewActionParam = ExtractClientActionsParam & {
|
|
7
7
|
fireEvent?: FireEventFunction;
|
|
8
|
-
onClose?: EmbedModalProps['onClose'];
|
|
9
|
-
origin?: AnalyticsOrigin;
|
|
10
8
|
isPreviewPanelAvailable?: (params: {
|
|
11
9
|
ari: string;
|
|
12
10
|
}) => boolean;
|
|
11
|
+
onClose?: EmbedModalProps['onClose'];
|
|
13
12
|
openPreviewPanel?: (params: {
|
|
14
13
|
ari: string;
|
|
15
|
-
url: string;
|
|
16
|
-
name: string;
|
|
17
14
|
iconUrl: string | undefined;
|
|
15
|
+
name: string;
|
|
16
|
+
url: string;
|
|
18
17
|
}) => void;
|
|
18
|
+
origin?: AnalyticsOrigin;
|
|
19
19
|
};
|
|
20
20
|
type ExtractInvokePreviewActionReturn = {
|
|
21
|
-
invokeAction: InvokeClientActionProps;
|
|
22
21
|
hasPreviewPanel?: boolean;
|
|
22
|
+
invokeAction: InvokeClientActionProps;
|
|
23
23
|
};
|
|
24
24
|
export declare const extractInvokePreviewAction: (param: ExtractInvokePreviewActionParam) => ExtractInvokePreviewActionReturn | undefined;
|
|
25
25
|
export {};
|
|
@@ -2,9 +2,9 @@ import { type JsonLd } from '@atlaskit/json-ld-types';
|
|
|
2
2
|
import { type AnalyticsOrigin } from '../../../utils/types';
|
|
3
3
|
import { type CardActionOptions, type CardInnerAppearance } from '../../../view/Card/types';
|
|
4
4
|
export type ExtractActionsProps = {
|
|
5
|
-
response: JsonLd.Response;
|
|
6
5
|
actionOptions?: CardActionOptions;
|
|
7
6
|
extensionKey?: string;
|
|
8
|
-
source?: CardInnerAppearance;
|
|
9
7
|
origin?: AnalyticsOrigin;
|
|
8
|
+
response: JsonLd.Response;
|
|
9
|
+
source?: CardInnerAppearance;
|
|
10
10
|
};
|
|
@@ -2,8 +2,8 @@ import { type CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
|
2
2
|
import { type JsonLd } from '@atlaskit/json-ld-types';
|
|
3
3
|
import { type RequestAccessContextProps } from '../../../view/types';
|
|
4
4
|
export declare const extractRequestAccessContextImproved: ({ jsonLd, url, product, createAnalyticsEvent, }: {
|
|
5
|
+
createAnalyticsEvent?: CreateUIAnalyticsEvent;
|
|
5
6
|
jsonLd: JsonLd.Meta.BaseMeta;
|
|
6
|
-
url: string;
|
|
7
7
|
product: string;
|
|
8
|
-
|
|
8
|
+
url: string;
|
|
9
9
|
}) => RequestAccessContextProps;
|
|
@@ -4,12 +4,12 @@ import { type LinkProvider } from '@atlaskit/link-extractors';
|
|
|
4
4
|
import { type LinkTaskType } from '../lozenge/extractTaskType';
|
|
5
5
|
export type IconPriority = 'type' | 'provider';
|
|
6
6
|
export interface IconOpts {
|
|
7
|
-
title?: string;
|
|
8
|
-
provider?: LinkProvider;
|
|
9
7
|
fileFormat?: string;
|
|
10
|
-
taskType?: LinkTaskType;
|
|
11
|
-
priority?: IconPriority;
|
|
12
8
|
icon?: string;
|
|
9
|
+
priority?: IconPriority;
|
|
10
|
+
provider?: LinkProvider;
|
|
13
11
|
showIconLabel?: boolean;
|
|
12
|
+
taskType?: LinkTaskType;
|
|
13
|
+
title?: string;
|
|
14
14
|
}
|
|
15
15
|
export declare const extractIcon: (jsonLd: JsonLd.Data.BaseData, priority?: IconPriority, showIconLabel?: boolean) => React.ReactNode | undefined;
|
|
@@ -2,10 +2,6 @@
|
|
|
2
2
|
* Options required to prioritise which icon to show
|
|
3
3
|
*/
|
|
4
4
|
export type IconPriorityOpts<T> = {
|
|
5
|
-
/**
|
|
6
|
-
* Icon choice corresponding to the file format (based on MIME type) for the object.
|
|
7
|
-
*/
|
|
8
|
-
fileFormatIcon: T | undefined;
|
|
9
5
|
/**
|
|
10
6
|
* Icon choice corresponding to the document type for the object.
|
|
11
7
|
* @remark Document type icons can be provider-specific. This covers use cases
|
|
@@ -16,14 +12,18 @@ export type IconPriorityOpts<T> = {
|
|
|
16
12
|
*/
|
|
17
13
|
documentTypeIcon: T | undefined;
|
|
18
14
|
/**
|
|
19
|
-
*
|
|
15
|
+
* Icon choice corresponding to the file format (based on MIME type) for the object.
|
|
20
16
|
*/
|
|
21
|
-
|
|
17
|
+
fileFormatIcon: T | undefined;
|
|
22
18
|
/**
|
|
23
19
|
* The icon choice extracted from the generator object (provider) of the
|
|
24
20
|
* JSON-LD data object.
|
|
25
21
|
*/
|
|
26
22
|
providerIcon: T | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* The icon choice extracted from the icon property of the JSON-LD data object.
|
|
25
|
+
*/
|
|
26
|
+
urlIcon: T | undefined;
|
|
27
27
|
};
|
|
28
28
|
/**
|
|
29
29
|
* Reusable priority function for choosing which icon to show.
|
|
@@ -6,9 +6,9 @@ export type AccentShortName = 'blue' | 'gray' | 'green' | 'lime' | 'magenta' | '
|
|
|
6
6
|
export type LinkLozengeInvokeActions = InvokeActions;
|
|
7
7
|
export interface LinkLozenge {
|
|
8
8
|
action?: LinkLozengeInvokeActions;
|
|
9
|
-
text: string;
|
|
10
9
|
appearance?: LinkLozengeColor;
|
|
11
10
|
style?: AtlaskitLozengeProps['style'];
|
|
11
|
+
text: string;
|
|
12
12
|
}
|
|
13
13
|
export type LinkDocumentState = 'archived' | 'draft' | 'current';
|
|
14
14
|
export type LinkPullRequestState = 'open' | 'merged' | 'declined' | 'closed';
|
|
@@ -5,22 +5,22 @@ import { type AISummaryConfig } from '../../../state/hooks/use-ai-summary-config
|
|
|
5
5
|
import { type AnalyticsOrigin } from '../../../utils/types';
|
|
6
6
|
import { type CardActionOptions, type CardInnerAppearance } from '../../../view/Card/types';
|
|
7
7
|
export type ExtractActionsParam = {
|
|
8
|
-
response: JsonLd.Response;
|
|
9
|
-
url?: string;
|
|
10
8
|
actionOptions?: CardActionOptions;
|
|
11
|
-
id?: string;
|
|
12
9
|
aiSummaryConfig?: AISummaryConfig;
|
|
13
10
|
appearance?: CardInnerAppearance;
|
|
14
|
-
origin?: AnalyticsOrigin;
|
|
15
11
|
fireEvent?: FireEventFunction;
|
|
12
|
+
id?: string;
|
|
16
13
|
isPreviewPanelAvailable?: (params: {
|
|
17
14
|
ari: string;
|
|
18
15
|
}) => boolean;
|
|
19
16
|
openPreviewPanel?: (params: {
|
|
20
17
|
ari: string;
|
|
21
|
-
url: string;
|
|
22
|
-
name: string;
|
|
23
18
|
iconUrl: string | undefined;
|
|
19
|
+
name: string;
|
|
20
|
+
url: string;
|
|
24
21
|
}) => void;
|
|
22
|
+
origin?: AnalyticsOrigin;
|
|
23
|
+
response: JsonLd.Response;
|
|
24
|
+
url?: string;
|
|
25
25
|
};
|
|
26
26
|
export declare const extractFlexibleCardActions: ({ actionOptions, aiSummaryConfig, appearance, fireEvent, id, origin, response, url, isPreviewPanelAvailable, openPreviewPanel, }: ExtractActionsParam) => FlexibleUiActions | undefined;
|
|
@@ -8,8 +8,8 @@ declare const extractState: (response?: JsonLd.Response, actionOptions?: CardAct
|
|
|
8
8
|
ari: string;
|
|
9
9
|
}) => boolean, openPreviewPanel?: (params: {
|
|
10
10
|
ari: string;
|
|
11
|
-
url: string;
|
|
12
|
-
name: string;
|
|
13
11
|
iconUrl: string | undefined;
|
|
12
|
+
name: string;
|
|
13
|
+
url: string;
|
|
14
14
|
}) => void) => LinkLozenge | undefined;
|
|
15
15
|
export default extractState;
|