@atlaskit/smart-card 36.2.2 → 36.2.4
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 +18 -0
- package/dist/cjs/constants.js +8 -0
- package/dist/cjs/extractors/common/icon/extractIcon.js +3 -1
- package/dist/cjs/extractors/common/icon/extractIconFromDocument.js +7 -7
- package/dist/cjs/extractors/inline/index.js +5 -3
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/HoverCard/components/HoverCardComponent.js +5 -3
- package/dist/cjs/view/InlineCard/Frame/index.js +0 -1
- package/dist/cjs/view/InlineCard/ResolvedView/index.js +2 -1
- package/dist/cjs/view/InlineCard/index.js +1 -1
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/constants.js +8 -0
- package/dist/es2019/extractors/common/icon/extractIcon.js +3 -2
- package/dist/es2019/extractors/common/icon/extractIconFromDocument.js +7 -7
- package/dist/es2019/extractors/inline/index.js +5 -5
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/HoverCard/components/HoverCardComponent.js +4 -3
- package/dist/es2019/view/InlineCard/Frame/index.js +0 -1
- package/dist/es2019/view/InlineCard/ResolvedView/index.js +2 -1
- package/dist/es2019/view/InlineCard/index.js +1 -1
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/constants.js +8 -0
- package/dist/esm/extractors/common/icon/extractIcon.js +3 -1
- package/dist/esm/extractors/common/icon/extractIconFromDocument.js +7 -7
- package/dist/esm/extractors/inline/index.js +5 -3
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/HoverCard/components/HoverCardComponent.js +5 -3
- package/dist/esm/view/InlineCard/Frame/index.js +0 -1
- package/dist/esm/view/InlineCard/ResolvedView/index.js +2 -1
- package/dist/esm/view/InlineCard/index.js +1 -1
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/types/__fixtures__/atlas-project.d.ts +1 -1
- package/dist/types/__fixtures__/dropbox-file.d.ts +1 -1
- package/dist/types/extractors/action/types.d.ts +1 -1
- package/dist/types/extractors/common/__mocks__/jsonld.d.ts +1 -1
- package/dist/types/extractors/common/actions/extractActions.d.ts +1 -1
- package/dist/types/extractors/common/actions/types.d.ts +1 -1
- package/dist/types/extractors/common/context/extractAccessContext.d.ts +1 -1
- package/dist/types/extractors/common/download/extractDownloadUrl.d.ts +1 -1
- package/dist/types/extractors/common/icon/extractFileFormat.d.ts +1 -1
- package/dist/types/extractors/common/icon/extractIcon.d.ts +3 -2
- package/dist/types/extractors/common/icon/priority.d.ts +1 -1
- package/dist/types/extractors/common/lozenge/extractLozenge.d.ts +1 -1
- package/dist/types/extractors/common/lozenge/extractTag.d.ts +1 -1
- package/dist/types/extractors/common/lozenge/extractTaskStatus.d.ts +1 -1
- 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/common/meta/extractIsSupportTheming.d.ts +1 -1
- package/dist/types/extractors/common/meta/extractIsTrusted.d.ts +1 -1
- package/dist/types/extractors/common/primitives/extractSummary.d.ts +1 -1
- package/dist/types/extractors/common/primitives/extractTitleTextColor.d.ts +1 -1
- package/dist/types/extractors/common/primitives/extractVisitUrl.d.ts +1 -1
- package/dist/types/extractors/common/title-prefix/extractTitlePrefix.d.ts +1 -1
- package/dist/types/extractors/embed/index.d.ts +1 -1
- package/dist/types/extractors/flexible/actions/extract-ai-summary-action.d.ts +1 -1
- package/dist/types/extractors/flexible/actions/extract-automation-action.d.ts +1 -1
- package/dist/types/extractors/flexible/actions/extract-follow-action.d.ts +1 -1
- package/dist/types/extractors/flexible/actions/extract-view-related-links-action.d.ts +1 -1
- package/dist/types/extractors/flexible/actions/index.d.ts +1 -1
- package/dist/types/extractors/flexible/collaboratorGroup/index.d.ts +1 -1
- package/dist/types/extractors/flexible/extract-preview.d.ts +1 -1
- package/dist/types/extractors/flexible/extract-priority.d.ts +1 -1
- package/dist/types/extractors/flexible/extract-server-action.d.ts +1 -1
- package/dist/types/extractors/flexible/extract-state.d.ts +1 -1
- package/dist/types/extractors/flexible/icon/extract-icon-renderer.d.ts +1 -1
- package/dist/types/extractors/flexible/icon/extract-jsonld-data-icon.d.ts +1 -1
- package/dist/types/extractors/flexible/icon/extract-provider-icon.d.ts +1 -1
- package/dist/types/extractors/flexible/icon/extract-url-icon.d.ts +1 -1
- package/dist/types/extractors/flexible/icon/index.d.ts +1 -1
- package/dist/types/extractors/flexible/latest-commit/index.d.ts +1 -1
- package/dist/types/extractors/flexible/utils.d.ts +1 -1
- package/dist/types/extractors/inline/index.d.ts +3 -3
- package/dist/types/model/invoke-handler.d.ts +1 -1
- package/dist/types/state/actions/index.d.ts +1 -1
- package/dist/types/state/helpers.d.ts +1 -1
- package/dist/types/state/hooks/use-response/index.d.ts +1 -1
- package/dist/types/state/hooks/useSmartLink.d.ts +1 -1
- package/dist/types/state/hooks-external/useSmartLinkActions.d.ts +1 -1
- package/dist/types/types.d.ts +1 -1
- package/dist/types/utils/ai-summary.d.ts +1 -1
- package/dist/types/utils/jsonld.d.ts +1 -1
- package/dist/types/utils/mocks.d.ts +1 -1
- package/dist/types/view/BlockCard/views/utils/index.d.ts +1 -1
- package/dist/types/view/FlexibleCard/types.d.ts +1 -1
- package/dist/types/view/FlexibleCard/utils.d.ts +1 -1
- package/dist/types/view/HoverCard/components/HoverCardComponent.d.ts +1 -1
- package/dist/types/view/HoverCard/types.d.ts +5 -1
- package/dist/types/view/HoverCard/utils.d.ts +1 -1
- package/dist/types-ts4.5/__fixtures__/atlas-project.d.ts +1 -1
- package/dist/types-ts4.5/__fixtures__/dropbox-file.d.ts +1 -1
- package/dist/types-ts4.5/extractors/action/types.d.ts +1 -1
- package/dist/types-ts4.5/extractors/common/__mocks__/jsonld.d.ts +1 -1
- package/dist/types-ts4.5/extractors/common/actions/extractActions.d.ts +1 -1
- package/dist/types-ts4.5/extractors/common/actions/types.d.ts +1 -1
- package/dist/types-ts4.5/extractors/common/context/extractAccessContext.d.ts +1 -1
- package/dist/types-ts4.5/extractors/common/download/extractDownloadUrl.d.ts +1 -1
- package/dist/types-ts4.5/extractors/common/icon/extractFileFormat.d.ts +1 -1
- package/dist/types-ts4.5/extractors/common/icon/extractIcon.d.ts +3 -2
- package/dist/types-ts4.5/extractors/common/icon/priority.d.ts +1 -1
- package/dist/types-ts4.5/extractors/common/lozenge/extractLozenge.d.ts +1 -1
- package/dist/types-ts4.5/extractors/common/lozenge/extractTag.d.ts +1 -1
- package/dist/types-ts4.5/extractors/common/lozenge/extractTaskStatus.d.ts +1 -1
- 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/common/meta/extractIsSupportTheming.d.ts +1 -1
- package/dist/types-ts4.5/extractors/common/meta/extractIsTrusted.d.ts +1 -1
- package/dist/types-ts4.5/extractors/common/primitives/extractSummary.d.ts +1 -1
- package/dist/types-ts4.5/extractors/common/primitives/extractTitleTextColor.d.ts +1 -1
- package/dist/types-ts4.5/extractors/common/primitives/extractVisitUrl.d.ts +1 -1
- package/dist/types-ts4.5/extractors/common/title-prefix/extractTitlePrefix.d.ts +1 -1
- package/dist/types-ts4.5/extractors/embed/index.d.ts +1 -1
- package/dist/types-ts4.5/extractors/flexible/actions/extract-ai-summary-action.d.ts +1 -1
- package/dist/types-ts4.5/extractors/flexible/actions/extract-automation-action.d.ts +1 -1
- package/dist/types-ts4.5/extractors/flexible/actions/extract-follow-action.d.ts +1 -1
- package/dist/types-ts4.5/extractors/flexible/actions/extract-view-related-links-action.d.ts +1 -1
- package/dist/types-ts4.5/extractors/flexible/actions/index.d.ts +1 -1
- package/dist/types-ts4.5/extractors/flexible/collaboratorGroup/index.d.ts +1 -1
- package/dist/types-ts4.5/extractors/flexible/extract-preview.d.ts +1 -1
- package/dist/types-ts4.5/extractors/flexible/extract-priority.d.ts +1 -1
- package/dist/types-ts4.5/extractors/flexible/extract-server-action.d.ts +1 -1
- package/dist/types-ts4.5/extractors/flexible/extract-state.d.ts +1 -1
- package/dist/types-ts4.5/extractors/flexible/icon/extract-icon-renderer.d.ts +1 -1
- package/dist/types-ts4.5/extractors/flexible/icon/extract-jsonld-data-icon.d.ts +1 -1
- package/dist/types-ts4.5/extractors/flexible/icon/extract-provider-icon.d.ts +1 -1
- package/dist/types-ts4.5/extractors/flexible/icon/extract-url-icon.d.ts +1 -1
- package/dist/types-ts4.5/extractors/flexible/icon/index.d.ts +1 -1
- package/dist/types-ts4.5/extractors/flexible/latest-commit/index.d.ts +1 -1
- package/dist/types-ts4.5/extractors/flexible/utils.d.ts +1 -1
- package/dist/types-ts4.5/extractors/inline/index.d.ts +3 -3
- package/dist/types-ts4.5/model/invoke-handler.d.ts +1 -1
- package/dist/types-ts4.5/state/actions/index.d.ts +1 -1
- package/dist/types-ts4.5/state/helpers.d.ts +1 -1
- package/dist/types-ts4.5/state/hooks/use-response/index.d.ts +1 -1
- package/dist/types-ts4.5/state/hooks/useSmartLink.d.ts +1 -1
- package/dist/types-ts4.5/state/hooks-external/useSmartLinkActions.d.ts +1 -1
- package/dist/types-ts4.5/types.d.ts +1 -1
- package/dist/types-ts4.5/utils/ai-summary.d.ts +1 -1
- package/dist/types-ts4.5/utils/jsonld.d.ts +1 -1
- package/dist/types-ts4.5/utils/mocks.d.ts +1 -1
- package/dist/types-ts4.5/view/BlockCard/views/utils/index.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/types.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/utils.d.ts +1 -1
- package/dist/types-ts4.5/view/HoverCard/components/HoverCardComponent.d.ts +1 -1
- package/dist/types-ts4.5/view/HoverCard/types.d.ts +5 -1
- package/dist/types-ts4.5/view/HoverCard/utils.d.ts +1 -1
- package/package.json +6 -6
- package/report.api.md +1 -1
|
@@ -40,7 +40,6 @@ export var Frame = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
40
40
|
isSelected: isSelected,
|
|
41
41
|
isInteractive: isInteractive,
|
|
42
42
|
tabIndex: isInteractive ? 0 : undefined,
|
|
43
|
-
"aria-label": isAnchor ? link !== null && link !== void 0 ? link : 'Link' : undefined,
|
|
44
43
|
role: isInteractive ? 'button' : undefined,
|
|
45
44
|
onClick: handleClick,
|
|
46
45
|
onMouseDown: handleMouseDown,
|
|
@@ -73,7 +73,8 @@ export var InlineCardResolvedView = /*#__PURE__*/function (_React$Component) {
|
|
|
73
73
|
id: id,
|
|
74
74
|
url: link,
|
|
75
75
|
actionOptions: actionOptions,
|
|
76
|
-
hoverPreviewOptions: hoverPreviewOptions
|
|
76
|
+
hoverPreviewOptions: hoverPreviewOptions,
|
|
77
|
+
showLabel: false
|
|
77
78
|
}, inlineCardResolvedView);
|
|
78
79
|
}
|
|
79
80
|
return inlineCardResolvedView;
|
|
@@ -46,7 +46,7 @@ export var InlineCard = function InlineCard(_ref) {
|
|
|
46
46
|
if (showHoverPreview === undefined && showHoverPreviewFlag !== undefined) {
|
|
47
47
|
showHoverPreview = Boolean(showHoverPreviewFlag);
|
|
48
48
|
}
|
|
49
|
-
var resolvedProps = status === SmartLinkStatus.Resolved ? extractInlineProps(cardDetails, renderers, removeTextHighlightingFromTitle) : {};
|
|
49
|
+
var resolvedProps = status === SmartLinkStatus.Resolved ? extractInlineProps(cardDetails, renderers, removeTextHighlightingFromTitle, false) : {};
|
|
50
50
|
useEffect(function () {
|
|
51
51
|
switch (status) {
|
|
52
52
|
case SmartLinkStatus.Resolved:
|
|
@@ -13,7 +13,7 @@ import LinkWarningModal from './LinkWarningModal';
|
|
|
13
13
|
import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
|
|
14
14
|
var PACKAGE_DATA = {
|
|
15
15
|
packageName: "@atlaskit/smart-card",
|
|
16
|
-
packageVersion: "36.2.
|
|
16
|
+
packageVersion: "36.2.4",
|
|
17
17
|
componentName: 'linkUrl'
|
|
18
18
|
};
|
|
19
19
|
var Anchor = withLinkClickedEvent('a');
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { JsonLd } from 'json-ld-types';
|
|
1
|
+
import type { JsonLd } from '@atlaskit/json-ld-types';
|
|
2
2
|
import type { CardActionOptions } from '../../view/Card/types';
|
|
3
3
|
import type { FlexibleCardProps } from '../../view/FlexibleCard/types';
|
|
4
4
|
export type ExtractClientActionsParam = {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { type JsonLd } from 'json-ld-types';
|
|
1
|
+
import { type JsonLd } from '@atlaskit/json-ld-types';
|
|
2
2
|
export declare const getActionsFromJsonLd: (jsonLd: JsonLd.Data.BaseData) => JsonLd.Primitives.Action[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type JsonLd } from 'json-ld-types';
|
|
1
|
+
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 = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type JsonLd } from 'json-ld-types';
|
|
2
1
|
import { type CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
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
5
|
jsonLd: JsonLd.Meta.BaseMeta;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { type JsonLd } from 'json-ld-types';
|
|
1
|
+
import { type JsonLd } from '@atlaskit/json-ld-types';
|
|
2
2
|
export declare const extractDownloadUrl: (jsonLd: JsonLd.Data.Document) => string | undefined;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { type JsonLd } from 'json-ld-types';
|
|
1
|
+
import { type JsonLd } from '@atlaskit/json-ld-types';
|
|
2
2
|
export declare const extractFileFormat: (jsonLd: JsonLd.Data.Document) => string | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type JsonLd } from 'json-ld-types';
|
|
2
|
+
import { type JsonLd } from '@atlaskit/json-ld-types';
|
|
3
3
|
import { type LinkProvider } from '@atlaskit/link-extractors';
|
|
4
4
|
import { type LinkTaskType } from '../lozenge/extractTaskType';
|
|
5
5
|
export type IconPriority = 'type' | 'provider';
|
|
@@ -10,5 +10,6 @@ export interface IconOpts {
|
|
|
10
10
|
taskType?: LinkTaskType;
|
|
11
11
|
priority?: IconPriority;
|
|
12
12
|
icon?: string;
|
|
13
|
+
showIconLabel?: boolean;
|
|
13
14
|
}
|
|
14
|
-
export declare const extractIcon: (jsonLd: JsonLd.Data.BaseData, priority?: IconPriority) => React.ReactNode | undefined;
|
|
15
|
+
export declare const extractIcon: (jsonLd: JsonLd.Data.BaseData, priority?: IconPriority, showIconLabel?: boolean) => React.ReactNode | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type JsonLd } from 'json-ld-types';
|
|
1
|
+
import { type JsonLd } from '@atlaskit/json-ld-types';
|
|
2
2
|
type JsonLdType = JsonLd.Primitives.ObjectType | 'atlassian:Template';
|
|
3
3
|
/**
|
|
4
4
|
* Preference more detailed object types over less detailed ones (like 'Document' or 'Object').
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type JsonLd } from 'json-ld-types';
|
|
1
|
+
import { type JsonLd } from '@atlaskit/json-ld-types';
|
|
2
2
|
import { type LozengeProps as AtlaskitLozengeProps } from '@atlaskit/lozenge';
|
|
3
3
|
import { type InvokeActions } from '../../../state/hooks/use-invoke/types';
|
|
4
4
|
export type LinkLozengeColor = 'default' | 'success' | 'removed' | 'inprogress' | 'new' | 'moved';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { type JsonLd } from 'json-ld-types';
|
|
1
|
+
import { type JsonLd } from '@atlaskit/json-ld-types';
|
|
2
2
|
export declare const extractIsSupportTheming: (meta?: JsonLd.Meta.BaseMeta) => boolean;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { type JsonLd } from 'json-ld-types';
|
|
1
|
+
import { type JsonLd } from '@atlaskit/json-ld-types';
|
|
2
2
|
export declare const extractIsTrusted: (meta?: JsonLd.Meta.BaseMeta) => boolean;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { type JsonLd } from 'json-ld-types';
|
|
1
|
+
import { type JsonLd } from '@atlaskit/json-ld-types';
|
|
2
2
|
export declare const extractTitleTextColor: (jsonLd: JsonLd.Primitives.Object) => string | undefined;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { type JsonLd } from 'json-ld-types';
|
|
1
|
+
import { type JsonLd } from '@atlaskit/json-ld-types';
|
|
2
2
|
export declare const extractVisitUrl: (jsonLd: JsonLd.Data.BaseData) => string | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
|
-
import { type JsonLd } from 'json-ld-types';
|
|
2
|
+
import { type JsonLd } from '@atlaskit/json-ld-types';
|
|
3
3
|
import { type CardProviderRenderers } from '@atlaskit/link-provider';
|
|
4
4
|
import { type CardAppearance } from '../../../view/Card';
|
|
5
5
|
export declare const extractTitlePrefix: (jsonLd: JsonLd.Data.BaseData, renderers?: CardProviderRenderers, type?: CardAppearance) => string | React.ReactNode | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type JsonLd } from 'json-ld-types';
|
|
1
|
+
import { type JsonLd } from '@atlaskit/json-ld-types';
|
|
2
2
|
import { type CardPlatform, type EmbedIframeUrlType } from '../../view/Card/types';
|
|
3
3
|
import { type EmbedCardResolvedViewProps } from '../../view/EmbedCard/views/ResolvedView';
|
|
4
4
|
export declare const extractEmbedProps: (jsonLd: JsonLd.Data.BaseData, meta?: JsonLd.Meta.BaseMeta, platform?: CardPlatform, iframeUrlType?: EmbedIframeUrlType) => EmbedCardResolvedViewProps;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type JsonLd } from 'json-ld-types';
|
|
1
|
+
import { type JsonLd } from '@atlaskit/json-ld-types';
|
|
2
2
|
import { type AISummaryActionData } from '../../../state/flexible-ui-context/types';
|
|
3
3
|
import { type AISummaryConfig } from '../../../state/hooks/use-ai-summary-config/types';
|
|
4
4
|
import { type CardActionOptions } from '../../../view/Card/types';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { JsonLd } from 'json-ld-types';
|
|
1
|
+
import type { JsonLd } from '@atlaskit/json-ld-types';
|
|
2
2
|
import { type AutomationActionData } from '../../../state/flexible-ui-context/types';
|
|
3
3
|
export declare const extractAutomationAction: (response: JsonLd.Response) => AutomationActionData | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { JsonLd } from 'json-ld-types';
|
|
1
|
+
import type { JsonLd } from '@atlaskit/json-ld-types';
|
|
2
2
|
import { type ServerActionProp } from '../../../state/flexible-ui-context/types';
|
|
3
3
|
import { type CardActionOptions } from '../../../view/Card/types';
|
|
4
4
|
declare const extractFollowAction: (response?: JsonLd.Response, actionOptions?: CardActionOptions, id?: string) => ServerActionProp<boolean> | undefined;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { type JsonLd } from 'json-ld-types';
|
|
1
|
+
import { type JsonLd } from '@atlaskit/json-ld-types';
|
|
2
2
|
import { type ViewRelatedLinksActionData } from '../../../state/flexible-ui-context/types';
|
|
3
3
|
export declare const extractViewRelatedLinksAction: (response: JsonLd.Response) => ViewRelatedLinksActionData | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type JsonLd } from 'json-ld-types';
|
|
1
|
+
import { type JsonLd } from '@atlaskit/json-ld-types';
|
|
2
2
|
import { type FireEventFunction } from '../../../common/analytics/types';
|
|
3
3
|
import { type FlexibleUiActions } from '../../../state/flexible-ui-context/types';
|
|
4
4
|
import { type AISummaryConfig } from '../../../state/hooks/use-ai-summary-config/types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type JsonLd } from 'json-ld-types';
|
|
1
|
+
import { type JsonLd } from '@atlaskit/json-ld-types';
|
|
2
2
|
import { type LinkPerson } from '@atlaskit/link-extractors';
|
|
3
3
|
export type LinkTypeUpdatedBy = JsonLd.Data.Document | JsonLd.Data.Project | JsonLd.Data.SourceCodePullRequest | JsonLd.Data.SourceCodeReference | JsonLd.Data.SourceCodeRepository | JsonLd.Data.Task;
|
|
4
4
|
export declare const extractPersonsUpdatedBy: (jsonLd: LinkTypeUpdatedBy) => LinkPerson[] | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type JsonLd } from 'json-ld-types';
|
|
1
|
+
import { type JsonLd } from '@atlaskit/json-ld-types';
|
|
2
2
|
import { type Media } from '../../state/flexible-ui-context/types';
|
|
3
3
|
declare const extractPreview: (data: JsonLd.Data.BaseData) => Media | undefined;
|
|
4
4
|
export default extractPreview;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type JsonLd } from 'json-ld-types';
|
|
1
|
+
import { type JsonLd } from '@atlaskit/json-ld-types';
|
|
2
2
|
import { type Icon } from '../../state/flexible-ui-context/types';
|
|
3
3
|
declare const extractPriority: (data: JsonLd.Data.Task) => Icon | undefined;
|
|
4
4
|
export default extractPriority;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { JsonLd } from 'json-ld-types';
|
|
1
|
+
import type { JsonLd } from '@atlaskit/json-ld-types';
|
|
2
2
|
import { type FireEventFunction } from '../../common/analytics/types';
|
|
3
3
|
import { type ResolveFunction } from '../../state/hooks/use-resolve';
|
|
4
4
|
import { type AnalyticsOrigin } from '../../utils/types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type JsonLd } from 'json-ld-types';
|
|
1
|
+
import { type JsonLd } from '@atlaskit/json-ld-types';
|
|
2
2
|
import { type CardProviderRenderers } from '@atlaskit/link-provider';
|
|
3
3
|
declare const extractIconRenderer: (data: JsonLd.Data.BaseData, renderers?: CardProviderRenderers) => (() => React.ReactNode) | undefined;
|
|
4
4
|
export default extractIconRenderer;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { type JsonLd } from 'json-ld-types';
|
|
2
|
+
import { type JsonLd } from '@atlaskit/json-ld-types';
|
|
3
3
|
import { type CardProviderRenderers } from '@atlaskit/link-provider';
|
|
4
4
|
import { IconType, SmartLinkStatus } from '../../../constants';
|
|
5
5
|
export declare const extractLinkIcon: (response: JsonLd.Response, renderers?: CardProviderRenderers) => {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { type JsonLd } from 'json-ld-types';
|
|
1
|
+
import { type JsonLd } from '@atlaskit/json-ld-types';
|
|
2
2
|
export type LinkTypeLatestCommit = JsonLd.Data.SourceCodeDocument | JsonLd.Data.SourceCodeRepository;
|
|
3
3
|
export declare const extractLatestCommit: (jsonLd: LinkTypeLatestCommit) => string | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type JsonLd } from 'json-ld-types';
|
|
1
|
+
import { type JsonLd } from '@atlaskit/json-ld-types';
|
|
2
2
|
import { type LinkPerson } from '@atlaskit/link-extractors';
|
|
3
3
|
import { type LinkLocation } from '../../state/flexible-ui-context/types';
|
|
4
4
|
export type LinkCommentType = JsonLd.Data.Document | JsonLd.Data.Page | JsonLd.Data.Project | JsonLd.Data.SourceCodeCommit | JsonLd.Data.TaskType;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { type JsonLd } from 'json-ld-types';
|
|
2
|
+
import { type JsonLd } from '@atlaskit/json-ld-types';
|
|
3
3
|
import { type CardProviderRenderers } from '@atlaskit/link-provider';
|
|
4
4
|
import { type InlineCardResolvedViewProps } from '../../view/InlineCard/ResolvedView';
|
|
5
|
-
export declare const extractInlineIcon: (jsonLd: JsonLd.Data.BaseData) => import("react").ReactNode;
|
|
6
|
-
export declare const extractInlineProps: (jsonLd: JsonLd.Data.BaseData, renderers?: CardProviderRenderers, removeTextHighlightingFromTitle?: boolean) => InlineCardResolvedViewProps;
|
|
5
|
+
export declare const extractInlineIcon: (jsonLd: JsonLd.Data.BaseData, showIconLabel?: boolean) => import("react").ReactNode;
|
|
6
|
+
export declare const extractInlineProps: (jsonLd: JsonLd.Data.BaseData, renderers?: CardProviderRenderers, removeTextHighlightingFromTitle?: boolean, showLabel?: boolean) => InlineCardResolvedViewProps;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { type JsonLd } from 'json-ld-types';
|
|
1
|
+
import { type JsonLd } from '@atlaskit/json-ld-types';
|
|
2
2
|
import { type InvokeClientOpts, type InvokeServerOpts } from './invoke-opts';
|
|
3
3
|
export type InvokeHandler = (opts: InvokeClientOpts | InvokeServerOpts) => Promise<JsonLd.Response | void>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type JsonLd } from 'json-ld-types';
|
|
1
|
+
import { type JsonLd } from '@atlaskit/json-ld-types';
|
|
2
2
|
import { type InvokeClientOpts, type InvokeServerOpts } from '../../model/invoke-opts';
|
|
3
3
|
import { type CardInnerAppearance } from '../../view/Card/types';
|
|
4
4
|
export declare const useSmartCardActions: (id: string, url: string) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type JsonLd } from 'json-ld-types';
|
|
1
|
+
import { type JsonLd } from '@atlaskit/json-ld-types';
|
|
2
2
|
import { type DatasourceResolveResponse, type JsonLdDatasourceResponse } from '@atlaskit/link-client-extension';
|
|
3
3
|
import { type CardStore, type CardType } from '@atlaskit/linking-common';
|
|
4
4
|
import { type DestinationProduct, type DestinationSubproduct } from '../utils/analytics/types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type JsonLd } from 'json-ld-types';
|
|
1
|
+
import { type JsonLd } from '@atlaskit/json-ld-types';
|
|
2
2
|
import { APIError } from '@atlaskit/linking-common';
|
|
3
3
|
declare const useResponse: () => {
|
|
4
4
|
handleResolvedLinkError: (url: string, error: APIError, response?: JsonLd.Response, isMetadataRequest?: boolean) => void;
|
|
@@ -4,7 +4,7 @@ export declare function useSmartLink(id: string, url: string): {
|
|
|
4
4
|
register: () => Promise<void>;
|
|
5
5
|
reload: () => void;
|
|
6
6
|
authorize: (appearance: import("../../view/Card/types").CardInnerAppearance) => void;
|
|
7
|
-
invoke: (opts: import("../../model/invoke-opts").InvokeClientOpts | import("../../model/invoke-opts").InvokeServerOpts, appearance: import("../../view/Card/types").CardInnerAppearance) => Promise<void | import("json-ld-types").JsonLd.Response<import("json-ld-types").JsonLd.Data.BaseData>>;
|
|
7
|
+
invoke: (opts: import("../../model/invoke-opts").InvokeClientOpts | import("../../model/invoke-opts").InvokeServerOpts, appearance: import("../../view/Card/types").CardInnerAppearance) => Promise<void | import("@atlaskit/json-ld-types").JsonLd.Response<import("@atlaskit/json-ld-types").JsonLd.Data.BaseData>>;
|
|
8
8
|
loadMetadata: () => Promise<void> | undefined;
|
|
9
9
|
};
|
|
10
10
|
config: (import("@atlaskit/link-provider").CardProviderCacheOpts & import("@atlaskit/link-provider").CardAuthFlowOpts) | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { type JsonLd } from 'json-ld-types';
|
|
2
|
+
import { type JsonLd } from '@atlaskit/json-ld-types';
|
|
3
3
|
import type { AnalyticsOrigin } from '../../utils/types';
|
|
4
4
|
import type { CardActionOptions, CardInnerAppearance } from '../../view/Card/types';
|
|
5
5
|
export interface LinkAction {
|
package/dist/types/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type JsonLd } from 'json-ld-types';
|
|
1
|
+
import { type JsonLd } from '@atlaskit/json-ld-types';
|
|
2
2
|
export { type CardContext } from '@atlaskit/link-provider';
|
|
3
3
|
import { type LozengeProps as AtlaskitLozengeProps } from '@atlaskit/lozenge';
|
|
4
4
|
/** @deprecated {@link https://hello.atlassian.net/browse/ENGHEALTH-15961 Internal documentation for deprecation (no external access)} */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { JsonLd } from 'json-ld-types';
|
|
2
1
|
import type { MessageDescriptor } from 'react-intl-next';
|
|
2
|
+
import type { JsonLd } from '@atlaskit/json-ld-types';
|
|
3
3
|
export declare const getIsAISummaryEnabled: (isAdminHubAIEnabled?: boolean, response?: JsonLd.Response) => boolean;
|
|
4
4
|
export declare const getAISummaryErrorMessage: (error?: string) => {
|
|
5
5
|
message: MessageDescriptor;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type JsonLd } from 'json-ld-types';
|
|
1
|
+
import { type JsonLd } from '@atlaskit/json-ld-types';
|
|
2
2
|
export declare const getEmptyJsonLd: () => JsonLd.Data.BaseData;
|
|
3
3
|
export declare const getUnauthorizedJsonLd: () => JsonLd.Response;
|
|
4
4
|
export declare const getForbiddenJsonLd: () => JsonLd.Response;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { JsonLd } from 'json-ld-types';
|
|
1
|
+
import type { JsonLd } from '@atlaskit/json-ld-types';
|
|
2
2
|
import type { PreviewBlockProps } from '../../../FlexibleCard/components/blocks/preview-block/types';
|
|
3
3
|
import type { TitleBlockProps } from '../../../FlexibleCard/components/blocks/title-block/types';
|
|
4
4
|
import type { ElementItem } from '../../../FlexibleCard/components/blocks/types';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { type JsonLd } from 'json-ld-types';
|
|
3
2
|
import { type MessageDescriptor } from 'react-intl-next';
|
|
3
|
+
import { type JsonLd } from '@atlaskit/json-ld-types';
|
|
4
4
|
import { type CardProviderRenderers } from '@atlaskit/link-provider';
|
|
5
5
|
import { type CardState, type LinkingPlatformFeatureFlags } from '@atlaskit/linking-common';
|
|
6
6
|
import { type FireEventFunction } from '../../common/analytics/types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type JsonLd } from 'json-ld-types';
|
|
1
|
+
import { type JsonLd } from '@atlaskit/json-ld-types';
|
|
2
2
|
import { SmartLinkStatus } from '../../constants';
|
|
3
3
|
import { type FlexibleUiDataContext } from '../../state/flexible-ui-context/types';
|
|
4
4
|
import { type ExtractFlexibleUiDataContextParams, type RetryOptions } from './types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type HoverCardComponentProps } from '../types';
|
|
3
3
|
export declare const HOVER_CARD_SOURCE = "smartLinkPreviewHoverCard";
|
|
4
|
-
export declare const HoverCardComponent: ({ children, url, id, canOpen, closeOnChildClick, actionOptions, allowEventPropagation, zIndex, noFadeDelay, hoverPreviewOptions, role, label, titleId, }: HoverCardComponentProps) => React.JSX.Element;
|
|
4
|
+
export declare const HoverCardComponent: ({ children, url, id, canOpen, closeOnChildClick, actionOptions, allowEventPropagation, zIndex, noFadeDelay, hoverPreviewOptions, role, label, titleId, showLabel, }: HoverCardComponentProps) => React.JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type MouseEventHandler, type ReactElement } from 'react';
|
|
2
|
-
import { type JsonLd } from 'json-ld-types';
|
|
3
2
|
import { type WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
3
|
+
import { type JsonLd } from '@atlaskit/json-ld-types';
|
|
4
4
|
import { type CardProviderRenderers } from '@atlaskit/link-provider';
|
|
5
5
|
import { type CardState } from '@atlaskit/linking-common';
|
|
6
6
|
import type { ActionName } from '../../constants';
|
|
@@ -74,6 +74,10 @@ export interface HoverCardInternalProps {
|
|
|
74
74
|
* Suspend hover card UI delays (fade-in, fade-out) for VR testing purposes.
|
|
75
75
|
*/
|
|
76
76
|
noFadeDelay?: boolean;
|
|
77
|
+
/**
|
|
78
|
+
* A flag to determine whether to show aria-label
|
|
79
|
+
*/
|
|
80
|
+
showLabel?: boolean;
|
|
77
81
|
}
|
|
78
82
|
export interface HoverCardComponentProps extends HoverCardProps, HoverCardInternalProps {
|
|
79
83
|
analyticsHandler?: AnalyticsHandler;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { JsonLd } from 'json-ld-types';
|
|
1
|
+
import type { JsonLd } from '@atlaskit/json-ld-types';
|
|
2
2
|
import type { ElementItem } from '../FlexibleCard/components/blocks/types';
|
|
3
3
|
export declare const getMetadata: (extensionKey?: string, data?: JsonLd.Data.BaseData) => {
|
|
4
4
|
subtitle: ElementItem[] | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { JsonLd } from 'json-ld-types';
|
|
1
|
+
import type { JsonLd } from '@atlaskit/json-ld-types';
|
|
2
2
|
import type { CardActionOptions } from '../../view/Card/types';
|
|
3
3
|
import type { FlexibleCardProps } from '../../view/FlexibleCard/types';
|
|
4
4
|
export type ExtractClientActionsParam = {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { type JsonLd } from 'json-ld-types';
|
|
1
|
+
import { type JsonLd } from '@atlaskit/json-ld-types';
|
|
2
2
|
export declare const getActionsFromJsonLd: (jsonLd: JsonLd.Data.BaseData) => JsonLd.Primitives.Action[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type JsonLd } from 'json-ld-types';
|
|
1
|
+
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 = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type JsonLd } from 'json-ld-types';
|
|
2
1
|
import { type CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
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
5
|
jsonLd: JsonLd.Meta.BaseMeta;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { type JsonLd } from 'json-ld-types';
|
|
1
|
+
import { type JsonLd } from '@atlaskit/json-ld-types';
|
|
2
2
|
export declare const extractDownloadUrl: (jsonLd: JsonLd.Data.Document) => string | undefined;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { type JsonLd } from 'json-ld-types';
|
|
1
|
+
import { type JsonLd } from '@atlaskit/json-ld-types';
|
|
2
2
|
export declare const extractFileFormat: (jsonLd: JsonLd.Data.Document) => string | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type JsonLd } from 'json-ld-types';
|
|
2
|
+
import { type JsonLd } from '@atlaskit/json-ld-types';
|
|
3
3
|
import { type LinkProvider } from '@atlaskit/link-extractors';
|
|
4
4
|
import { type LinkTaskType } from '../lozenge/extractTaskType';
|
|
5
5
|
export type IconPriority = 'type' | 'provider';
|
|
@@ -10,5 +10,6 @@ export interface IconOpts {
|
|
|
10
10
|
taskType?: LinkTaskType;
|
|
11
11
|
priority?: IconPriority;
|
|
12
12
|
icon?: string;
|
|
13
|
+
showIconLabel?: boolean;
|
|
13
14
|
}
|
|
14
|
-
export declare const extractIcon: (jsonLd: JsonLd.Data.BaseData, priority?: IconPriority) => React.ReactNode | undefined;
|
|
15
|
+
export declare const extractIcon: (jsonLd: JsonLd.Data.BaseData, priority?: IconPriority, showIconLabel?: boolean) => React.ReactNode | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type JsonLd } from 'json-ld-types';
|
|
1
|
+
import { type JsonLd } from '@atlaskit/json-ld-types';
|
|
2
2
|
type JsonLdType = JsonLd.Primitives.ObjectType | 'atlassian:Template';
|
|
3
3
|
/**
|
|
4
4
|
* Preference more detailed object types over less detailed ones (like 'Document' or 'Object').
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type JsonLd } from 'json-ld-types';
|
|
1
|
+
import { type JsonLd } from '@atlaskit/json-ld-types';
|
|
2
2
|
import { type LozengeProps as AtlaskitLozengeProps } from '@atlaskit/lozenge';
|
|
3
3
|
import { type InvokeActions } from '../../../state/hooks/use-invoke/types';
|
|
4
4
|
export type LinkLozengeColor = 'default' | 'success' | 'removed' | 'inprogress' | 'new' | 'moved';
|