@atlaskit/smart-card 26.39.0 → 26.41.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/dist/cjs/messages.js +20 -0
- package/dist/cjs/state/hooks/use-related-urls/index.js +37 -0
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/BlockCard/index.js +4 -1
- package/dist/cjs/view/BlockCard/views/flexible/FlexibleNotFoundView.js +34 -11
- package/dist/cjs/view/BlockCard/views/flexible/FlexibleNotFoundViewOld.js +48 -0
- package/dist/cjs/view/BlockCard/views/flexible/unresolved-view/index.js +1 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/index.js +8 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/related-urls-block/errored/index.js +25 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/related-urls-block/errored/types.js +5 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/related-urls-block/index.js +99 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/related-urls-block/resolved/index.js +30 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/related-urls-block/resolved/related-url-list/index.js +78 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/related-urls-block/resolved/related-url-list/related-url-item/index.js +43 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/related-urls-block/resolved/related-url-list/related-url-item/types.js +5 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/related-urls-block/resolved/related-url-list/types.js +5 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/related-urls-block/resolved/types.js +5 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/related-urls-block/resolving/index.js +23 -0
- package/dist/cjs/view/HoverCard/components/views/resolved/index.js +5 -1
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/messages.js +20 -0
- package/dist/es2019/state/hooks/use-related-urls/index.js +13 -0
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/BlockCard/index.js +4 -1
- package/dist/es2019/view/BlockCard/views/flexible/FlexibleNotFoundView.js +36 -16
- package/dist/es2019/view/BlockCard/views/flexible/FlexibleNotFoundViewOld.js +38 -0
- package/dist/es2019/view/BlockCard/views/flexible/unresolved-view/index.js +1 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/index.js +2 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/related-urls-block/errored/index.js +15 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/related-urls-block/errored/types.js +1 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/related-urls-block/index.js +54 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/related-urls-block/resolved/index.js +24 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/related-urls-block/resolved/related-url-list/index.js +61 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/related-urls-block/resolved/related-url-list/related-url-item/index.js +32 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/related-urls-block/resolved/related-url-list/related-url-item/types.js +1 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/related-urls-block/resolved/related-url-list/types.js +1 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/related-urls-block/resolved/types.js +1 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/related-urls-block/resolving/index.js +13 -0
- package/dist/es2019/view/HoverCard/components/views/resolved/index.js +6 -2
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/messages.js +20 -0
- package/dist/esm/state/hooks/use-related-urls/index.js +30 -0
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/BlockCard/index.js +4 -1
- package/dist/esm/view/BlockCard/views/flexible/FlexibleNotFoundView.js +31 -11
- package/dist/esm/view/BlockCard/views/flexible/FlexibleNotFoundViewOld.js +42 -0
- package/dist/esm/view/BlockCard/views/flexible/unresolved-view/index.js +1 -0
- package/dist/esm/view/FlexibleCard/components/blocks/index.js +2 -1
- package/dist/esm/view/FlexibleCard/components/blocks/related-urls-block/errored/index.js +18 -0
- package/dist/esm/view/FlexibleCard/components/blocks/related-urls-block/errored/types.js +1 -0
- package/dist/esm/view/FlexibleCard/components/blocks/related-urls-block/index.js +89 -0
- package/dist/esm/view/FlexibleCard/components/blocks/related-urls-block/resolved/index.js +23 -0
- package/dist/esm/view/FlexibleCard/components/blocks/related-urls-block/resolved/related-url-list/index.js +68 -0
- package/dist/esm/view/FlexibleCard/components/blocks/related-urls-block/resolved/related-url-list/related-url-item/index.js +33 -0
- package/dist/esm/view/FlexibleCard/components/blocks/related-urls-block/resolved/related-url-list/related-url-item/types.js +1 -0
- package/dist/esm/view/FlexibleCard/components/blocks/related-urls-block/resolved/related-url-list/types.js +1 -0
- package/dist/esm/view/FlexibleCard/components/blocks/related-urls-block/resolved/types.js +1 -0
- package/dist/esm/view/FlexibleCard/components/blocks/related-urls-block/resolving/index.js +16 -0
- package/dist/esm/view/HoverCard/components/views/resolved/index.js +6 -2
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/types/messages.d.ts +1 -1
- package/dist/types/state/hooks/use-related-urls/index.d.ts +6 -0
- package/dist/types/view/BlockCard/views/flexible/FlexibleNotFoundViewOld.d.ts +8 -0
- package/dist/types/view/FlexibleCard/components/blocks/index.d.ts +1 -0
- package/dist/types/view/FlexibleCard/components/blocks/related-urls-block/errored/index.d.ts +3 -0
- package/dist/types/view/FlexibleCard/components/blocks/related-urls-block/errored/types.d.ts +4 -0
- package/dist/types/view/FlexibleCard/components/blocks/related-urls-block/index.d.ts +13 -0
- package/dist/types/view/FlexibleCard/components/blocks/related-urls-block/resolved/index.d.ts +3 -0
- package/dist/types/view/FlexibleCard/components/blocks/related-urls-block/resolved/related-url-list/index.d.ts +4 -0
- package/dist/types/view/FlexibleCard/components/blocks/related-urls-block/resolved/related-url-list/related-url-item/index.d.ts +4 -0
- package/dist/types/view/FlexibleCard/components/blocks/related-urls-block/resolved/related-url-list/related-url-item/types.d.ts +7 -0
- package/dist/types/view/FlexibleCard/components/blocks/related-urls-block/resolved/related-url-list/types.d.ts +10 -0
- package/dist/types/view/FlexibleCard/components/blocks/related-urls-block/resolved/types.d.ts +8 -0
- package/dist/types/view/FlexibleCard/components/blocks/related-urls-block/resolving/index.d.ts +5 -0
- package/dist/types-ts4.5/messages.d.ts +1 -1
- package/dist/types-ts4.5/state/hooks/use-related-urls/index.d.ts +6 -0
- package/dist/types-ts4.5/view/BlockCard/views/flexible/FlexibleNotFoundViewOld.d.ts +8 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/index.d.ts +1 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/related-urls-block/errored/index.d.ts +3 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/related-urls-block/errored/types.d.ts +4 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/related-urls-block/index.d.ts +13 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/related-urls-block/resolved/index.d.ts +3 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/related-urls-block/resolved/related-url-list/index.d.ts +4 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/related-urls-block/resolved/related-url-list/related-url-item/index.d.ts +4 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/related-urls-block/resolved/related-url-list/related-url-item/types.d.ts +7 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/related-urls-block/resolved/related-url-list/types.d.ts +10 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/related-urls-block/resolved/types.d.ts +8 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/related-urls-block/resolving/index.d.ts +5 -0
- package/package.json +7 -3
package/dist/es2019/messages.js
CHANGED
|
@@ -536,5 +536,25 @@ export const messages = defineMessages({
|
|
|
536
536
|
id: 'fabric.linking.forbidden_description_crossjoin',
|
|
537
537
|
defaultMessage: 'Contact your admin to request access to {hostname}.',
|
|
538
538
|
description: 'Informs the user that they must contact the site administrator for access.'
|
|
539
|
+
},
|
|
540
|
+
related_work_items_not_found: {
|
|
541
|
+
id: 'fabric.linking.related_work_items_not_found',
|
|
542
|
+
defaultMessage: 'This link is not mentioned anywhere else.',
|
|
543
|
+
description: 'Informs the user that there are no related resources for a given url'
|
|
544
|
+
},
|
|
545
|
+
last_mentioned_in: {
|
|
546
|
+
id: 'fabric.linking.last_mentioned_in',
|
|
547
|
+
defaultMessage: 'Last mentioned in',
|
|
548
|
+
description: 'Informs the user about where the resource was last mentioned in'
|
|
549
|
+
},
|
|
550
|
+
related: {
|
|
551
|
+
id: 'fabric.linking.related',
|
|
552
|
+
defaultMessage: 'Related',
|
|
553
|
+
description: 'Informs the user about related resources'
|
|
554
|
+
},
|
|
555
|
+
generic_error_message: {
|
|
556
|
+
id: 'fabric.linking.generic_error_message',
|
|
557
|
+
defaultMessage: 'An error occurred',
|
|
558
|
+
description: 'A generic error message to the user'
|
|
539
559
|
}
|
|
540
560
|
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { useCallback } from 'react';
|
|
2
|
+
import { useSmartLinkClientExtension } from '@atlaskit/link-client-extension';
|
|
3
|
+
import { useSmartLinkContext } from '@atlaskit/link-provider';
|
|
4
|
+
const useRelatedUrls = () => {
|
|
5
|
+
const {
|
|
6
|
+
connections
|
|
7
|
+
} = useSmartLinkContext();
|
|
8
|
+
const clientExt = useSmartLinkClientExtension(connections.client);
|
|
9
|
+
return useCallback(async url => {
|
|
10
|
+
return await clientExt.relatedUrls(url);
|
|
11
|
+
}, [clientExt]);
|
|
12
|
+
};
|
|
13
|
+
export default useRelatedUrls;
|
|
@@ -4,7 +4,7 @@ export const ANALYTICS_CHANNEL = 'media';
|
|
|
4
4
|
export const context = {
|
|
5
5
|
componentName: 'smart-cards',
|
|
6
6
|
packageName: "@atlaskit/smart-card",
|
|
7
|
-
packageVersion: "26.
|
|
7
|
+
packageVersion: "26.41.0"
|
|
8
8
|
};
|
|
9
9
|
export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
10
10
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -17,6 +17,7 @@ import { ErroredView as BlockCardErroredView } from './views/ErroredView';
|
|
|
17
17
|
import FlexibleResolvedView from './views/flexible/FlexibleResolvedView';
|
|
18
18
|
import FlexibleUnauthorisedView from './views/flexible/FlexibleUnauthorisedView';
|
|
19
19
|
import FlexibleNotFoundView from './views/flexible/FlexibleNotFoundView';
|
|
20
|
+
import FlexibleNotFoundViewOld from './views/flexible/FlexibleNotFoundViewOld';
|
|
20
21
|
import FlexibleForbiddenView from './views/flexible/FlexibleForbiddenView';
|
|
21
22
|
import FlexibleForbiddenViewOld from './views/flexible/FlexibleForbiddenViewOld';
|
|
22
23
|
import FlexibleErroredView from './views/flexible/FlexibleErroredView';
|
|
@@ -91,7 +92,9 @@ export const BlockCard = ({
|
|
|
91
92
|
onAuthorize: handleAuthorize
|
|
92
93
|
}));
|
|
93
94
|
case 'not_found':
|
|
94
|
-
return jsx(FlexibleNotFoundView, _extends({}, flexibleBlockCardProps, {
|
|
95
|
+
return getBooleanFF('platform.linking-platform.smart-card.cross-join') ? jsx(FlexibleNotFoundView, _extends({}, flexibleBlockCardProps, {
|
|
96
|
+
onAuthorize: handleAuthorize
|
|
97
|
+
})) : jsx(FlexibleNotFoundViewOld, _extends({}, flexibleBlockCardProps, {
|
|
95
98
|
onAuthorize: handleAuthorize
|
|
96
99
|
}));
|
|
97
100
|
case 'fallback':
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import WarningIcon from '@atlaskit/icon/glyph/warning';
|
|
2
|
+
import LockIcon from '@atlaskit/icon/glyph/lock';
|
|
3
|
+
import { extractProvider } from '@atlaskit/link-extractors';
|
|
5
4
|
import { R300 } from '@atlaskit/theme/colors';
|
|
5
|
+
import React, { useMemo } from 'react';
|
|
6
|
+
import { useIntl } from 'react-intl-next';
|
|
7
|
+
import { messages } from '../../../../messages';
|
|
6
8
|
import Text from '../../../FlexibleCard/components/elements/text';
|
|
7
9
|
import UnresolvedView from './unresolved-view';
|
|
8
10
|
import { withFlexibleUIBlockCardStyle } from './utils/withFlexibleUIBlockCardStyle';
|
|
@@ -16,17 +18,35 @@ import { withFlexibleUIBlockCardStyle } from './utils/withFlexibleUIBlockCardSty
|
|
|
16
18
|
const FlexibleNotFoundView = ({
|
|
17
19
|
testId = 'smart-block-not-found-view',
|
|
18
20
|
...props
|
|
19
|
-
}) =>
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
},
|
|
30
|
-
|
|
31
|
-
|
|
21
|
+
}) => {
|
|
22
|
+
var _cardState$details2;
|
|
23
|
+
const intl = useIntl();
|
|
24
|
+
const {
|
|
25
|
+
cardState
|
|
26
|
+
} = props;
|
|
27
|
+
const product = useMemo(() => {
|
|
28
|
+
var _cardState$details, _provider$text;
|
|
29
|
+
const provider = extractProvider(cardState === null || cardState === void 0 ? void 0 : (_cardState$details = cardState.details) === null || _cardState$details === void 0 ? void 0 : _cardState$details.data);
|
|
30
|
+
return (_provider$text = provider === null || provider === void 0 ? void 0 : provider.text) !== null && _provider$text !== void 0 ? _provider$text : '';
|
|
31
|
+
}, [cardState === null || cardState === void 0 ? void 0 : (_cardState$details2 = cardState.details) === null || _cardState$details2 === void 0 ? void 0 : _cardState$details2.data]);
|
|
32
|
+
const title = useMemo(() => intl.formatMessage(messages.not_found_title_crossjoin, {
|
|
33
|
+
product
|
|
34
|
+
}), [intl, product]);
|
|
35
|
+
const description = useMemo(() => ({
|
|
36
|
+
descriptor: messages.not_found_description_crossjoin
|
|
37
|
+
}), []);
|
|
38
|
+
return /*#__PURE__*/React.createElement(UnresolvedView, _extends({}, props, {
|
|
39
|
+
showPreview: true,
|
|
40
|
+
testId: testId,
|
|
41
|
+
title: title
|
|
42
|
+
}), /*#__PURE__*/React.createElement(LockIcon, {
|
|
43
|
+
label: "not-found-lock-icon",
|
|
44
|
+
size: "small",
|
|
45
|
+
primaryColor: `var(--ds-icon-danger, ${R300})`,
|
|
46
|
+
testId: `${testId}-lock-icon`
|
|
47
|
+
}), /*#__PURE__*/React.createElement(Text, {
|
|
48
|
+
message: description,
|
|
49
|
+
testId: `${testId}-message`
|
|
50
|
+
}));
|
|
51
|
+
};
|
|
32
52
|
export default withFlexibleUIBlockCardStyle(FlexibleNotFoundView);
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { messages } from '../../../../messages';
|
|
4
|
+
import WarningIcon from '@atlaskit/icon/glyph/warning';
|
|
5
|
+
import { R300 } from '@atlaskit/theme/colors';
|
|
6
|
+
import Text from '../../../FlexibleCard/components/elements/text';
|
|
7
|
+
import UnresolvedView from './unresolved-view';
|
|
8
|
+
import { withFlexibleUIBlockCardStyle } from './utils/withFlexibleUIBlockCardStyle';
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* This view represents a Block Card with a 'Not_Found' status.
|
|
12
|
+
*
|
|
13
|
+
* @see SmartLinkStatus
|
|
14
|
+
* @see FlexibleCardProps
|
|
15
|
+
*/
|
|
16
|
+
const FlexibleNotFoundViewOld = ({
|
|
17
|
+
testId = 'smart-block-not-found-view',
|
|
18
|
+
...props
|
|
19
|
+
}) => /*#__PURE__*/React.createElement(UnresolvedView, _extends({}, props, {
|
|
20
|
+
testId: testId
|
|
21
|
+
}), /*#__PURE__*/React.createElement(WarningIcon, {
|
|
22
|
+
label: "not-found-warning-icon",
|
|
23
|
+
size: "small",
|
|
24
|
+
primaryColor: `var(--ds-icon-warning, ${R300})`,
|
|
25
|
+
testId: `${testId}-warning-icon`
|
|
26
|
+
}), /*#__PURE__*/React.createElement(Text, {
|
|
27
|
+
message: {
|
|
28
|
+
descriptor: messages.not_found_description
|
|
29
|
+
},
|
|
30
|
+
testId: `${testId}-message`
|
|
31
|
+
}));
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* @private
|
|
35
|
+
* @deprecated {@link https://product-fabric.atlassian.net/browse/EDM-7977 Internal documentation for deprecation (no external access)}
|
|
36
|
+
* @deprecated Replaced by FlexibleNotFoundView
|
|
37
|
+
*/
|
|
38
|
+
export default withFlexibleUIBlockCardStyle(FlexibleNotFoundViewOld);
|
|
@@ -25,6 +25,7 @@ const UnresolvedView = ({
|
|
|
25
25
|
ui: FlexibleCardUiOptions,
|
|
26
26
|
url: url
|
|
27
27
|
}, /*#__PURE__*/React.createElement(TitleBlock, _extends({}, getTitleBlockOptions(), {
|
|
28
|
+
hideIcon: !!title,
|
|
28
29
|
text: title
|
|
29
30
|
})), /*#__PURE__*/React.createElement(CustomBlock, null, children), showPreview && /*#__PURE__*/React.createElement(PreviewBlock, PreviewBlockOptions), /*#__PURE__*/React.createElement(InternalFooterBlock, _extends({}, getFooterBlockOptions(), {
|
|
30
31
|
actions: actions,
|
|
@@ -6,4 +6,5 @@ export { default as TitleBlock } from './title-block';
|
|
|
6
6
|
export { default as CustomBlock } from './block';
|
|
7
7
|
|
|
8
8
|
// Internal components to be used within @atlaskit/smart-card only.
|
|
9
|
-
export { default as InternalFooterBlock } from './footer-block/resolved';
|
|
9
|
+
export { default as InternalFooterBlock } from './footer-block/resolved';
|
|
10
|
+
export { default as RelatedUrlsBlock } from './related-urls-block';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { messages } from '../../../../../../messages';
|
|
4
|
+
import Text from '../../../elements/text';
|
|
5
|
+
import Block from '../../block';
|
|
6
|
+
export const RelatedUrlsBlockErroredView = ({
|
|
7
|
+
testId,
|
|
8
|
+
...blockProps
|
|
9
|
+
}) => /*#__PURE__*/React.createElement(Block, _extends({}, blockProps, {
|
|
10
|
+
testId: testId
|
|
11
|
+
}), /*#__PURE__*/React.createElement(Text, {
|
|
12
|
+
message: {
|
|
13
|
+
descriptor: messages.generic_error_message
|
|
14
|
+
}
|
|
15
|
+
}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import React, { useEffect, useState } from 'react';
|
|
3
|
+
import { di } from 'react-magnetic-di';
|
|
4
|
+
import { css } from '@emotion/react';
|
|
5
|
+
import useRelatedUrls from '../../../../../state/hooks/use-related-urls';
|
|
6
|
+
import { RelatedUrlsBlockErroredView } from './errored';
|
|
7
|
+
import { RelatedUrlsResolvedView } from './resolved';
|
|
8
|
+
import { RelatedUrlsBlockResolvingView } from './resolving';
|
|
9
|
+
/**
|
|
10
|
+
* Represents a block to display related resources of a url
|
|
11
|
+
*/
|
|
12
|
+
const RelatedUrlsBlock = ({
|
|
13
|
+
testId = 'smart-block-related-urls',
|
|
14
|
+
url,
|
|
15
|
+
renderers,
|
|
16
|
+
...blockProps
|
|
17
|
+
}) => {
|
|
18
|
+
const [loadingRelatedUrls, setLoadingRelatedUrls] = useState(true);
|
|
19
|
+
const [err, setErr] = useState();
|
|
20
|
+
const [relatedUrls, setRelatedUrls] = useState();
|
|
21
|
+
const getRelatedUrls = useRelatedUrls();
|
|
22
|
+
useEffect(() => {
|
|
23
|
+
const fetchRelatedUrls = async () => {
|
|
24
|
+
try {
|
|
25
|
+
const relUrls = await getRelatedUrls(url);
|
|
26
|
+
setRelatedUrls(relUrls);
|
|
27
|
+
} catch (error) {
|
|
28
|
+
setErr(error);
|
|
29
|
+
}
|
|
30
|
+
setLoadingRelatedUrls(false);
|
|
31
|
+
};
|
|
32
|
+
fetchRelatedUrls();
|
|
33
|
+
}, [getRelatedUrls, url]);
|
|
34
|
+
if (loadingRelatedUrls) {
|
|
35
|
+
return /*#__PURE__*/React.createElement(RelatedUrlsBlockResolvingView, _extends({
|
|
36
|
+
testId: `${testId}-resolving-view`
|
|
37
|
+
}, blockProps));
|
|
38
|
+
}
|
|
39
|
+
if (relatedUrls) {
|
|
40
|
+
return /*#__PURE__*/React.createElement(RelatedUrlsResolvedView, _extends({
|
|
41
|
+
renderers: renderers,
|
|
42
|
+
overrideCss: css`
|
|
43
|
+
min-height: 1.55rem;
|
|
44
|
+
`,
|
|
45
|
+
testId: `${testId}-resolved-view`,
|
|
46
|
+
relatedUrlsResponse: relatedUrls
|
|
47
|
+
}, blockProps));
|
|
48
|
+
}
|
|
49
|
+
return /*#__PURE__*/React.createElement(RelatedUrlsBlockErroredView, _extends({
|
|
50
|
+
err: err,
|
|
51
|
+
testId: `${testId}-errored-view`
|
|
52
|
+
}, blockProps));
|
|
53
|
+
};
|
|
54
|
+
export default RelatedUrlsBlock;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { messages } from '../../../../../../messages';
|
|
4
|
+
import Block from '../../block';
|
|
5
|
+
import RelatedUrlsList from './related-url-list';
|
|
6
|
+
export const RelatedUrlsResolvedView = ({
|
|
7
|
+
relatedUrlsResponse: {
|
|
8
|
+
resolvedResults
|
|
9
|
+
},
|
|
10
|
+
renderers,
|
|
11
|
+
testId,
|
|
12
|
+
initializeOpened,
|
|
13
|
+
...blockProps
|
|
14
|
+
}) => {
|
|
15
|
+
return /*#__PURE__*/React.createElement(Block, _extends({}, blockProps, {
|
|
16
|
+
testId: testId
|
|
17
|
+
}), resolvedResults && /*#__PURE__*/React.createElement(RelatedUrlsList, {
|
|
18
|
+
testId: `${testId}-list`,
|
|
19
|
+
renderers: renderers,
|
|
20
|
+
initializeOpened: initializeOpened,
|
|
21
|
+
title: messages.last_mentioned_in,
|
|
22
|
+
resolvedResults: resolvedResults
|
|
23
|
+
}));
|
|
24
|
+
};
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import React, { useCallback, useMemo, useState } from 'react';
|
|
2
|
+
import { useIntl } from 'react-intl-next';
|
|
3
|
+
import ChevronDownIcon from '@atlaskit/icon/glyph/chevron-down';
|
|
4
|
+
import ChevronUpIcon from '@atlaskit/icon/glyph/chevron-up';
|
|
5
|
+
import { Box, Inline, Stack, xcss } from '@atlaskit/primitives';
|
|
6
|
+
import { css } from '@emotion/react';
|
|
7
|
+
import { messages } from '../../../../../../../messages';
|
|
8
|
+
import { getFormattedMessageAsString } from '../../../../../components/utils';
|
|
9
|
+
import Text from '../../../../elements/text';
|
|
10
|
+
import RelatedUrlItem from './related-url-item';
|
|
11
|
+
const RelatedUrlList = ({
|
|
12
|
+
resolvedResults,
|
|
13
|
+
title,
|
|
14
|
+
renderers,
|
|
15
|
+
testId,
|
|
16
|
+
initializeOpened
|
|
17
|
+
}) => {
|
|
18
|
+
const [isOpen, setIsOpen] = useState(initializeOpened);
|
|
19
|
+
const chevronClickHandler = useCallback(() => setIsOpen(!isOpen), [isOpen]);
|
|
20
|
+
const ChevronComponent = isOpen ? ChevronUpIcon : ChevronDownIcon;
|
|
21
|
+
const intl = useIntl();
|
|
22
|
+
const resolvedResultsStack = useMemo(() => {
|
|
23
|
+
return /*#__PURE__*/React.createElement(Stack, {
|
|
24
|
+
space: "space.050",
|
|
25
|
+
testId: `${testId}-items-wrapper`
|
|
26
|
+
}, resolvedResults.map((resolvedResults, idx) => /*#__PURE__*/React.createElement(RelatedUrlItem, {
|
|
27
|
+
testId: `${testId}-item`,
|
|
28
|
+
key: idx,
|
|
29
|
+
results: resolvedResults,
|
|
30
|
+
renderers: renderers
|
|
31
|
+
})));
|
|
32
|
+
}, [renderers, resolvedResults, testId]);
|
|
33
|
+
return resolvedResults.length > 0 ? /*#__PURE__*/React.createElement(Stack, {
|
|
34
|
+
testId: testId,
|
|
35
|
+
xcss: xcss({
|
|
36
|
+
width: '100%'
|
|
37
|
+
})
|
|
38
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
39
|
+
onClick: chevronClickHandler,
|
|
40
|
+
testId: `${testId}-expand-title`
|
|
41
|
+
}, /*#__PURE__*/React.createElement(Inline, {
|
|
42
|
+
alignBlock: "center",
|
|
43
|
+
spread: "space-between"
|
|
44
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
45
|
+
overrideCss: css`
|
|
46
|
+
font-weight: ${"var(--ds-font-weight-medium, 500)"};
|
|
47
|
+
`,
|
|
48
|
+
message: {
|
|
49
|
+
descriptor: title
|
|
50
|
+
}
|
|
51
|
+
}), /*#__PURE__*/React.createElement(ChevronComponent, {
|
|
52
|
+
label: getFormattedMessageAsString(intl, title),
|
|
53
|
+
size: 'medium'
|
|
54
|
+
}))), isOpen && resolvedResultsStack) : /*#__PURE__*/React.createElement(Text, {
|
|
55
|
+
testId: testId,
|
|
56
|
+
message: {
|
|
57
|
+
descriptor: messages.related_work_items_not_found
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
};
|
|
61
|
+
export default RelatedUrlList;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import React, { useMemo } from 'react';
|
|
3
|
+
import { Inline } from '@atlaskit/primitives';
|
|
4
|
+
import { SmartLinkSize } from '../../../../../../../../constants';
|
|
5
|
+
import extractFlexibleUiContext from '../../../../../../../../extractors/flexible';
|
|
6
|
+
import Icon from '../../../../../elements/icon';
|
|
7
|
+
import Link from '../../../../../elements/link';
|
|
8
|
+
const RelatedUrlItem = ({
|
|
9
|
+
results,
|
|
10
|
+
renderers,
|
|
11
|
+
testId
|
|
12
|
+
}) => {
|
|
13
|
+
const flexibleDataContext = useMemo(() => extractFlexibleUiContext({
|
|
14
|
+
response: results,
|
|
15
|
+
renderers
|
|
16
|
+
}), [renderers, results]);
|
|
17
|
+
return /*#__PURE__*/React.createElement(Inline, {
|
|
18
|
+
alignBlock: "center",
|
|
19
|
+
space: "space.050",
|
|
20
|
+
testId: testId
|
|
21
|
+
}, /*#__PURE__*/React.createElement(Icon, _extends({}, flexibleDataContext === null || flexibleDataContext === void 0 ? void 0 : flexibleDataContext.linkIcon, {
|
|
22
|
+
testId: `${testId}-icon`,
|
|
23
|
+
size: SmartLinkSize.Small
|
|
24
|
+
})), /*#__PURE__*/React.createElement(Link, {
|
|
25
|
+
testId: `${testId}-link`,
|
|
26
|
+
text: flexibleDataContext === null || flexibleDataContext === void 0 ? void 0 : flexibleDataContext.title,
|
|
27
|
+
url: flexibleDataContext === null || flexibleDataContext === void 0 ? void 0 : flexibleDataContext.url,
|
|
28
|
+
size: SmartLinkSize.Small,
|
|
29
|
+
maxLines: 1
|
|
30
|
+
}));
|
|
31
|
+
};
|
|
32
|
+
export default RelatedUrlItem;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import LoadingSkeleton from '../../../common/loading-skeleton';
|
|
4
|
+
import Block from '../../block';
|
|
5
|
+
export const RelatedUrlsBlockResolvingView = ({
|
|
6
|
+
testId,
|
|
7
|
+
...blockProps
|
|
8
|
+
}) => /*#__PURE__*/React.createElement(Block, _extends({}, blockProps, {
|
|
9
|
+
testId: testId
|
|
10
|
+
}), /*#__PURE__*/React.createElement(LoadingSkeleton, {
|
|
11
|
+
height: 1.55,
|
|
12
|
+
width: 22
|
|
13
|
+
}));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React, { useCallback, useEffect, useMemo, useRef } from 'react';
|
|
3
3
|
import { ActionName, CardDisplay, SmartLinkPosition, SmartLinkSize } from '../../../../../constants';
|
|
4
|
-
import { FooterBlock, MetadataBlock, SnippetBlock, TitleBlock } from '../../../../FlexibleCard/components/blocks';
|
|
4
|
+
import { FooterBlock, MetadataBlock, RelatedUrlsBlock, SnippetBlock, TitleBlock } from '../../../../FlexibleCard/components/blocks';
|
|
5
5
|
import { footerBlockCss, hiddenSnippetStyles, metadataBlockCss } from './styled';
|
|
6
6
|
import FlexibleCard from '../../../../FlexibleCard';
|
|
7
7
|
import { getSimulatedMetadata, getSimulatedBetterMetadata } from '../../../utils';
|
|
@@ -52,7 +52,8 @@ const HoverCardResolvedView = ({
|
|
|
52
52
|
cardState,
|
|
53
53
|
cardActions = [],
|
|
54
54
|
onActionClick,
|
|
55
|
-
extensionKey
|
|
55
|
+
extensionKey,
|
|
56
|
+
url
|
|
56
57
|
}) => {
|
|
57
58
|
var _cardState$details;
|
|
58
59
|
const canBeDatasource = getCanBeDatasource(cardState.details);
|
|
@@ -117,6 +118,9 @@ const HoverCardResolvedView = ({
|
|
|
117
118
|
size: SmartLinkSize.Large,
|
|
118
119
|
overrideCss: metadataBlockCss,
|
|
119
120
|
maxLines: 1
|
|
121
|
+
}), getBooleanFF('platform.linking-platform.smart-card.enable-hover-card-related-urls') && /*#__PURE__*/React.createElement(RelatedUrlsBlock, {
|
|
122
|
+
url: url,
|
|
123
|
+
size: SmartLinkSize.Small
|
|
120
124
|
}), /*#__PURE__*/React.createElement(FooterBlock, {
|
|
121
125
|
actions: footerActions,
|
|
122
126
|
size: SmartLinkSize.Large,
|
|
@@ -8,7 +8,7 @@ import LinkWarningModal from './LinkWarningModal';
|
|
|
8
8
|
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
9
9
|
const PACKAGE_DATA = {
|
|
10
10
|
packageName: "@atlaskit/smart-card",
|
|
11
|
-
packageVersion: "26.
|
|
11
|
+
packageVersion: "26.41.0",
|
|
12
12
|
componentName: 'linkUrl'
|
|
13
13
|
};
|
|
14
14
|
const Link = withLinkClickedEvent('a');
|
package/dist/esm/messages.js
CHANGED
|
@@ -536,5 +536,25 @@ export var messages = defineMessages({
|
|
|
536
536
|
id: 'fabric.linking.forbidden_description_crossjoin',
|
|
537
537
|
defaultMessage: 'Contact your admin to request access to {hostname}.',
|
|
538
538
|
description: 'Informs the user that they must contact the site administrator for access.'
|
|
539
|
+
},
|
|
540
|
+
related_work_items_not_found: {
|
|
541
|
+
id: 'fabric.linking.related_work_items_not_found',
|
|
542
|
+
defaultMessage: 'This link is not mentioned anywhere else.',
|
|
543
|
+
description: 'Informs the user that there are no related resources for a given url'
|
|
544
|
+
},
|
|
545
|
+
last_mentioned_in: {
|
|
546
|
+
id: 'fabric.linking.last_mentioned_in',
|
|
547
|
+
defaultMessage: 'Last mentioned in',
|
|
548
|
+
description: 'Informs the user about where the resource was last mentioned in'
|
|
549
|
+
},
|
|
550
|
+
related: {
|
|
551
|
+
id: 'fabric.linking.related',
|
|
552
|
+
defaultMessage: 'Related',
|
|
553
|
+
description: 'Informs the user about related resources'
|
|
554
|
+
},
|
|
555
|
+
generic_error_message: {
|
|
556
|
+
id: 'fabric.linking.generic_error_message',
|
|
557
|
+
defaultMessage: 'An error occurred',
|
|
558
|
+
description: 'A generic error message to the user'
|
|
539
559
|
}
|
|
540
560
|
});
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
2
|
+
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
3
|
+
import { useCallback } from 'react';
|
|
4
|
+
import { useSmartLinkClientExtension } from '@atlaskit/link-client-extension';
|
|
5
|
+
import { useSmartLinkContext } from '@atlaskit/link-provider';
|
|
6
|
+
var useRelatedUrls = function useRelatedUrls() {
|
|
7
|
+
var _useSmartLinkContext = useSmartLinkContext(),
|
|
8
|
+
connections = _useSmartLinkContext.connections;
|
|
9
|
+
var clientExt = useSmartLinkClientExtension(connections.client);
|
|
10
|
+
return useCallback( /*#__PURE__*/function () {
|
|
11
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(url) {
|
|
12
|
+
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
13
|
+
while (1) switch (_context.prev = _context.next) {
|
|
14
|
+
case 0:
|
|
15
|
+
_context.next = 2;
|
|
16
|
+
return clientExt.relatedUrls(url);
|
|
17
|
+
case 2:
|
|
18
|
+
return _context.abrupt("return", _context.sent);
|
|
19
|
+
case 3:
|
|
20
|
+
case "end":
|
|
21
|
+
return _context.stop();
|
|
22
|
+
}
|
|
23
|
+
}, _callee);
|
|
24
|
+
}));
|
|
25
|
+
return function (_x) {
|
|
26
|
+
return _ref.apply(this, arguments);
|
|
27
|
+
};
|
|
28
|
+
}(), [clientExt]);
|
|
29
|
+
};
|
|
30
|
+
export default useRelatedUrls;
|
|
@@ -15,7 +15,7 @@ export var ANALYTICS_CHANNEL = 'media';
|
|
|
15
15
|
export var context = {
|
|
16
16
|
componentName: 'smart-cards',
|
|
17
17
|
packageName: "@atlaskit/smart-card",
|
|
18
|
-
packageVersion: "26.
|
|
18
|
+
packageVersion: "26.41.0"
|
|
19
19
|
};
|
|
20
20
|
export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
21
21
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -17,6 +17,7 @@ import { ErroredView as BlockCardErroredView } from './views/ErroredView';
|
|
|
17
17
|
import FlexibleResolvedView from './views/flexible/FlexibleResolvedView';
|
|
18
18
|
import FlexibleUnauthorisedView from './views/flexible/FlexibleUnauthorisedView';
|
|
19
19
|
import FlexibleNotFoundView from './views/flexible/FlexibleNotFoundView';
|
|
20
|
+
import FlexibleNotFoundViewOld from './views/flexible/FlexibleNotFoundViewOld';
|
|
20
21
|
import FlexibleForbiddenView from './views/flexible/FlexibleForbiddenView';
|
|
21
22
|
import FlexibleForbiddenViewOld from './views/flexible/FlexibleForbiddenViewOld';
|
|
22
23
|
import FlexibleErroredView from './views/flexible/FlexibleErroredView';
|
|
@@ -90,7 +91,9 @@ export var BlockCard = function BlockCard(_ref) {
|
|
|
90
91
|
onAuthorize: handleAuthorize
|
|
91
92
|
}));
|
|
92
93
|
case 'not_found':
|
|
93
|
-
return jsx(FlexibleNotFoundView, _extends({}, flexibleBlockCardProps, {
|
|
94
|
+
return getBooleanFF('platform.linking-platform.smart-card.cross-join') ? jsx(FlexibleNotFoundView, _extends({}, flexibleBlockCardProps, {
|
|
95
|
+
onAuthorize: handleAuthorize
|
|
96
|
+
})) : jsx(FlexibleNotFoundViewOld, _extends({}, flexibleBlockCardProps, {
|
|
94
97
|
onAuthorize: handleAuthorize
|
|
95
98
|
}));
|
|
96
99
|
case 'fallback':
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
var _excluded = ["testId"];
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import WarningIcon from '@atlaskit/icon/glyph/warning';
|
|
4
|
+
import LockIcon from '@atlaskit/icon/glyph/lock';
|
|
5
|
+
import { extractProvider } from '@atlaskit/link-extractors';
|
|
7
6
|
import { R300 } from '@atlaskit/theme/colors';
|
|
7
|
+
import React, { useMemo } from 'react';
|
|
8
|
+
import { useIntl } from 'react-intl-next';
|
|
9
|
+
import { messages } from '../../../../messages';
|
|
8
10
|
import Text from '../../../FlexibleCard/components/elements/text';
|
|
9
11
|
import UnresolvedView from './unresolved-view';
|
|
10
12
|
import { withFlexibleUIBlockCardStyle } from './utils/withFlexibleUIBlockCardStyle';
|
|
@@ -16,20 +18,38 @@ import { withFlexibleUIBlockCardStyle } from './utils/withFlexibleUIBlockCardSty
|
|
|
16
18
|
* @see FlexibleCardProps
|
|
17
19
|
*/
|
|
18
20
|
var FlexibleNotFoundView = function FlexibleNotFoundView(_ref) {
|
|
21
|
+
var _cardState$details2;
|
|
19
22
|
var _ref$testId = _ref.testId,
|
|
20
23
|
testId = _ref$testId === void 0 ? 'smart-block-not-found-view' : _ref$testId,
|
|
21
24
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
25
|
+
var intl = useIntl();
|
|
26
|
+
var cardState = props.cardState;
|
|
27
|
+
var product = useMemo(function () {
|
|
28
|
+
var _cardState$details, _provider$text;
|
|
29
|
+
var provider = extractProvider(cardState === null || cardState === void 0 || (_cardState$details = cardState.details) === null || _cardState$details === void 0 ? void 0 : _cardState$details.data);
|
|
30
|
+
return (_provider$text = provider === null || provider === void 0 ? void 0 : provider.text) !== null && _provider$text !== void 0 ? _provider$text : '';
|
|
31
|
+
}, [cardState === null || cardState === void 0 || (_cardState$details2 = cardState.details) === null || _cardState$details2 === void 0 ? void 0 : _cardState$details2.data]);
|
|
32
|
+
var title = useMemo(function () {
|
|
33
|
+
return intl.formatMessage(messages.not_found_title_crossjoin, {
|
|
34
|
+
product: product
|
|
35
|
+
});
|
|
36
|
+
}, [intl, product]);
|
|
37
|
+
var description = useMemo(function () {
|
|
38
|
+
return {
|
|
39
|
+
descriptor: messages.not_found_description_crossjoin
|
|
40
|
+
};
|
|
41
|
+
}, []);
|
|
22
42
|
return /*#__PURE__*/React.createElement(UnresolvedView, _extends({}, props, {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
43
|
+
showPreview: true,
|
|
44
|
+
testId: testId,
|
|
45
|
+
title: title
|
|
46
|
+
}), /*#__PURE__*/React.createElement(LockIcon, {
|
|
47
|
+
label: "not-found-lock-icon",
|
|
26
48
|
size: "small",
|
|
27
|
-
primaryColor: "var(--ds-icon-
|
|
28
|
-
testId: "".concat(testId, "-
|
|
49
|
+
primaryColor: "var(--ds-icon-danger, ".concat(R300, ")"),
|
|
50
|
+
testId: "".concat(testId, "-lock-icon")
|
|
29
51
|
}), /*#__PURE__*/React.createElement(Text, {
|
|
30
|
-
message:
|
|
31
|
-
descriptor: messages.not_found_description
|
|
32
|
-
},
|
|
52
|
+
message: description,
|
|
33
53
|
testId: "".concat(testId, "-message")
|
|
34
54
|
}));
|
|
35
55
|
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
+
var _excluded = ["testId"];
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import { messages } from '../../../../messages';
|
|
6
|
+
import WarningIcon from '@atlaskit/icon/glyph/warning';
|
|
7
|
+
import { R300 } from '@atlaskit/theme/colors';
|
|
8
|
+
import Text from '../../../FlexibleCard/components/elements/text';
|
|
9
|
+
import UnresolvedView from './unresolved-view';
|
|
10
|
+
import { withFlexibleUIBlockCardStyle } from './utils/withFlexibleUIBlockCardStyle';
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* This view represents a Block Card with a 'Not_Found' status.
|
|
14
|
+
*
|
|
15
|
+
* @see SmartLinkStatus
|
|
16
|
+
* @see FlexibleCardProps
|
|
17
|
+
*/
|
|
18
|
+
var FlexibleNotFoundViewOld = function FlexibleNotFoundViewOld(_ref) {
|
|
19
|
+
var _ref$testId = _ref.testId,
|
|
20
|
+
testId = _ref$testId === void 0 ? 'smart-block-not-found-view' : _ref$testId,
|
|
21
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
22
|
+
return /*#__PURE__*/React.createElement(UnresolvedView, _extends({}, props, {
|
|
23
|
+
testId: testId
|
|
24
|
+
}), /*#__PURE__*/React.createElement(WarningIcon, {
|
|
25
|
+
label: "not-found-warning-icon",
|
|
26
|
+
size: "small",
|
|
27
|
+
primaryColor: "var(--ds-icon-warning, ".concat(R300, ")"),
|
|
28
|
+
testId: "".concat(testId, "-warning-icon")
|
|
29
|
+
}), /*#__PURE__*/React.createElement(Text, {
|
|
30
|
+
message: {
|
|
31
|
+
descriptor: messages.not_found_description
|
|
32
|
+
},
|
|
33
|
+
testId: "".concat(testId, "-message")
|
|
34
|
+
}));
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* @private
|
|
39
|
+
* @deprecated {@link https://product-fabric.atlassian.net/browse/EDM-7977 Internal documentation for deprecation (no external access)}
|
|
40
|
+
* @deprecated Replaced by FlexibleNotFoundView
|
|
41
|
+
*/
|
|
42
|
+
export default withFlexibleUIBlockCardStyle(FlexibleNotFoundViewOld);
|