@atlaskit/smart-card 26.15.3 → 26.15.5
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/utils/analytics/analytics.js +2 -3
- package/dist/cjs/version.json +1 -1
- package/dist/cjs/view/BlockCard/index.js +12 -33
- package/dist/cjs/view/BlockCard/views/flexible/FlexibleErroredView.js +5 -3
- package/dist/cjs/view/BlockCard/views/flexible/FlexibleForbiddenView.js +5 -3
- package/dist/cjs/view/BlockCard/views/flexible/FlexibleNotFoundView.js +5 -3
- package/dist/cjs/view/BlockCard/views/flexible/FlexibleResolvedView.js +5 -3
- package/dist/cjs/view/BlockCard/views/flexible/FlexibleUnauthorisedView.js +5 -3
- package/dist/cjs/view/BlockCard/views/flexible/styled.js +10 -3
- package/dist/cjs/view/BlockCard/views/flexible/{utils.js → utils/index.js} +3 -3
- package/dist/cjs/view/BlockCard/views/flexible/utils/withFlexibleUIBlockCardStyle.js +18 -0
- package/dist/cjs/view/HoverCard/components/CustomPopupContainer.js +25 -0
- package/dist/cjs/view/HoverCard/components/HoverCardComponent.js +6 -2
- package/dist/cjs/view/HoverCard/styled.js +12 -3
- package/dist/cjs/view/LinkUrl/index.js +2 -3
- package/dist/es2019/utils/analytics/analytics.js +2 -3
- package/dist/es2019/version.json +1 -1
- package/dist/es2019/view/BlockCard/index.js +12 -34
- package/dist/es2019/view/BlockCard/views/flexible/FlexibleErroredView.js +6 -3
- package/dist/es2019/view/BlockCard/views/flexible/FlexibleForbiddenView.js +5 -3
- package/dist/es2019/view/BlockCard/views/flexible/FlexibleNotFoundView.js +6 -3
- package/dist/es2019/view/BlockCard/views/flexible/FlexibleResolvedView.js +5 -3
- package/dist/es2019/view/BlockCard/views/flexible/FlexibleUnauthorisedView.js +5 -3
- package/dist/es2019/view/BlockCard/views/flexible/styled.js +16 -1
- package/dist/es2019/view/BlockCard/views/flexible/{utils.js → utils/index.js} +3 -3
- package/dist/es2019/view/BlockCard/views/flexible/utils/withFlexibleUIBlockCardStyle.js +8 -0
- package/dist/es2019/view/HoverCard/components/CustomPopupContainer.js +14 -0
- package/dist/es2019/view/HoverCard/components/HoverCardComponent.js +6 -2
- package/dist/es2019/view/HoverCard/styled.js +12 -0
- package/dist/es2019/view/LinkUrl/index.js +2 -3
- package/dist/esm/utils/analytics/analytics.js +2 -3
- package/dist/esm/version.json +1 -1
- package/dist/esm/view/BlockCard/index.js +12 -32
- package/dist/esm/view/BlockCard/views/flexible/FlexibleErroredView.js +6 -3
- package/dist/esm/view/BlockCard/views/flexible/FlexibleForbiddenView.js +5 -3
- package/dist/esm/view/BlockCard/views/flexible/FlexibleNotFoundView.js +6 -3
- package/dist/esm/view/BlockCard/views/flexible/FlexibleResolvedView.js +5 -3
- package/dist/esm/view/BlockCard/views/flexible/FlexibleUnauthorisedView.js +5 -3
- package/dist/esm/view/BlockCard/views/flexible/styled.js +8 -2
- package/dist/esm/view/BlockCard/views/flexible/{utils.js → utils/index.js} +3 -3
- package/dist/esm/view/BlockCard/views/flexible/utils/withFlexibleUIBlockCardStyle.js +10 -0
- package/dist/esm/view/HoverCard/components/CustomPopupContainer.js +17 -0
- package/dist/esm/view/HoverCard/components/HoverCardComponent.js +6 -2
- package/dist/esm/view/HoverCard/styled.js +10 -2
- package/dist/esm/view/LinkUrl/index.js +2 -3
- package/dist/types/utils/analytics/analytics.d.ts +2 -2
- package/dist/types/view/BlockCard/views/flexible/FlexibleErroredView.d.ts +2 -9
- package/dist/types/view/BlockCard/views/flexible/FlexibleForbiddenView.d.ts +2 -10
- package/dist/types/view/BlockCard/views/flexible/FlexibleNotFoundView.d.ts +2 -9
- package/dist/types/view/BlockCard/views/flexible/FlexibleResolvedView.d.ts +2 -8
- package/dist/types/view/BlockCard/views/flexible/FlexibleUnauthorisedView.d.ts +2 -10
- package/dist/types/view/BlockCard/views/flexible/styled.d.ts +1 -0
- package/dist/{types-ts4.5/view/BlockCard/views/flexible/utils.d.ts → types/view/BlockCard/views/flexible/utils/index.d.ts} +1 -1
- package/dist/types/view/BlockCard/views/flexible/utils/withFlexibleUIBlockCardStyle.d.ts +4 -0
- package/dist/types/view/HoverCard/components/CustomPopupContainer.d.ts +5 -0
- package/dist/types/view/HoverCard/styled.d.ts +1 -0
- package/dist/types/view/LinkUrl/types.d.ts +1 -1
- package/dist/types-ts4.5/utils/analytics/analytics.d.ts +2 -2
- package/dist/types-ts4.5/view/BlockCard/views/flexible/FlexibleErroredView.d.ts +2 -9
- package/dist/types-ts4.5/view/BlockCard/views/flexible/FlexibleForbiddenView.d.ts +2 -10
- package/dist/types-ts4.5/view/BlockCard/views/flexible/FlexibleNotFoundView.d.ts +2 -9
- package/dist/types-ts4.5/view/BlockCard/views/flexible/FlexibleResolvedView.d.ts +2 -8
- package/dist/types-ts4.5/view/BlockCard/views/flexible/FlexibleUnauthorisedView.d.ts +2 -10
- package/dist/types-ts4.5/view/BlockCard/views/flexible/styled.d.ts +1 -0
- package/dist/{types/view/BlockCard/views/flexible/utils.d.ts → types-ts4.5/view/BlockCard/views/flexible/utils/index.d.ts} +1 -1
- package/dist/types-ts4.5/view/BlockCard/views/flexible/utils/withFlexibleUIBlockCardStyle.d.ts +4 -0
- package/dist/types-ts4.5/view/HoverCard/components/CustomPopupContainer.d.ts +5 -0
- package/dist/types-ts4.5/view/HoverCard/styled.d.ts +1 -0
- package/dist/types-ts4.5/view/LinkUrl/types.d.ts +1 -1
- package/package.json +3 -3
|
@@ -8,12 +8,14 @@ import { useSmartLinkActions } from '../../../state/hooks-external/useSmartLinkA
|
|
|
8
8
|
import { useSmartLinkRenderers } from '../../../state/renderers';
|
|
9
9
|
import { useSmartCardState as useLinkState } from '../../../state/store';
|
|
10
10
|
import HoverCardContent from '../components/HoverCardContent';
|
|
11
|
+
import CustomPopupContainer from '../components/CustomPopupContainer';
|
|
11
12
|
import { CARD_GAP_PX, HOVER_CARD_Z_INDEX } from '../styled';
|
|
12
13
|
import { CardDisplay } from '../../../constants';
|
|
13
14
|
import { SmartLinkAnalyticsContext } from '../../../utils/analytics/SmartLinkAnalyticsContext';
|
|
14
15
|
import { useSmartCardActions } from '../../../state/actions';
|
|
15
16
|
import { useSmartLinkAnalytics } from '../../../state/analytics';
|
|
16
17
|
import { useFeatureFlag } from '@atlaskit/link-provider';
|
|
18
|
+
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
17
19
|
var HOVER_CARD_SOURCE = 'smartLinkPreviewHoverCard';
|
|
18
20
|
var FADE_IN_DELAY = 500;
|
|
19
21
|
var FADE_OUT_DELAY = 300;
|
|
@@ -209,7 +211,7 @@ export var HoverCardComponent = function HoverCardComponent(_ref) {
|
|
|
209
211
|
"data-testid": "hover-card-trigger-wrapper"
|
|
210
212
|
}), children));
|
|
211
213
|
}, [children, initHideCard, initShowCard, onChildClick, onContextMenuClick, setMousePosition]);
|
|
212
|
-
return jsx(Popup, {
|
|
214
|
+
return jsx(Popup, _extends({
|
|
213
215
|
testId: "hover-card",
|
|
214
216
|
isOpen: isOpen && canOpen,
|
|
215
217
|
onClose: hideCard,
|
|
@@ -219,5 +221,7 @@ export var HoverCardComponent = function HoverCardComponent(_ref) {
|
|
|
219
221
|
content: content,
|
|
220
222
|
trigger: trigger,
|
|
221
223
|
zIndex: zIndex
|
|
222
|
-
})
|
|
224
|
+
}, getBooleanFF('platform.linking-platform.smart-card.show-smart-links-refreshed-design') && {
|
|
225
|
+
popupComponent: CustomPopupContainer
|
|
226
|
+
}));
|
|
223
227
|
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
2
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
|
|
3
3
|
import { css } from '@emotion/react';
|
|
4
4
|
import { loadingPlaceholderClassName } from '../../index';
|
|
5
5
|
import { SmartLinkSize, SmartLinkTheme } from '../../constants';
|
|
6
6
|
import { layers } from '@atlaskit/theme/constants';
|
|
7
|
+
import { themed } from '@atlaskit/theme/components';
|
|
7
8
|
|
|
8
9
|
// Temporary fix for Confluence inline comment on editor mod has z-index of 500, Jira issue view has z-index of 510
|
|
9
10
|
export var HOVER_CARD_Z_INDEX = layers.modal();
|
|
@@ -27,4 +28,11 @@ export var HoverCardContainer = css(_templateObject2 || (_templateObject2 = _tag
|
|
|
27
28
|
export var titleBlockCss = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n gap: ", ";\n\n ", "\n\n // title and subtitle element group\n [data-smart-element-group] {\n // gap between title and subtitle\n gap: 0.06rem;\n display: flex;\n /* subtitle element group */\n > [data-smart-element-group] {\n > span {\n margin-right: ", ";\n }\n }\n }\n"])), blockGap, separatorCss, elementGap);
|
|
28
29
|
export var getTransitionStyles = function getTransitionStyles(snippetHeight) {
|
|
29
30
|
return css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n transition: height 300ms ease-in-out;\n height: ", "px;\n"])), snippetHeight);
|
|
30
|
-
};
|
|
31
|
+
};
|
|
32
|
+
export var popupContainerStyles = css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n border-radius: ", ";\n background-color: ", ";\n box-shadow: ", ";\n"])), "var(--ds-border-radius-300, 12px)", themed({
|
|
33
|
+
light: "var(--ds-surface-raised, white)",
|
|
34
|
+
dark: "var(--ds-surface-raised, #262B31)"
|
|
35
|
+
})(), themed({
|
|
36
|
+
light: "var(--ds-shadow-overlay, 0px 8px 12px rgba(9, 30, 66, 0.15),0px 0px 1px rgba(9, 30, 66, 0.31))",
|
|
37
|
+
dark: "var(--ds-shadow-overlay, 0px 0px 0px rgba(188, 214, 240, 0.12),0px 8px 12px rgba(3, 4, 4, 0.36),0px 0px 1px rgba(3, 4, 4, 0.5))"
|
|
38
|
+
})());
|
|
@@ -4,15 +4,14 @@ var _excluded = ["href", "children", "checkSafety", "onClick", "testId"],
|
|
|
4
4
|
_excluded2 = ["isLinkSafe", "showSafetyWarningModal"];
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { withAnalyticsContext } from '@atlaskit/analytics-next';
|
|
7
|
-
import { name as packageName, version as packageVersion } from '../../version.json';
|
|
8
7
|
import { withLinkClickedEvent } from '../../utils/analytics/click';
|
|
9
8
|
import { LinkAnalyticsContext } from '../../utils/analytics/LinkAnalyticsContext';
|
|
10
9
|
import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
|
|
11
10
|
import LinkWarningModal from './LinkWarningModal';
|
|
12
11
|
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
13
12
|
var PACKAGE_DATA = {
|
|
14
|
-
packageName:
|
|
15
|
-
packageVersion:
|
|
13
|
+
packageName: "@atlaskit/smart-card",
|
|
14
|
+
packageVersion: "26.15.5",
|
|
16
15
|
componentName: 'linkUrl'
|
|
17
16
|
};
|
|
18
17
|
var Link = withLinkClickedEvent('a');
|
|
@@ -6,8 +6,8 @@ import { SmartLinkActionType } from '@atlaskit/linking-types';
|
|
|
6
6
|
export declare const ANALYTICS_CHANNEL = "media";
|
|
7
7
|
export declare const context: {
|
|
8
8
|
componentName: string;
|
|
9
|
-
packageName:
|
|
10
|
-
packageVersion:
|
|
9
|
+
packageName: string;
|
|
10
|
+
packageVersion: string;
|
|
11
11
|
};
|
|
12
12
|
export declare enum TrackQuickActionType {
|
|
13
13
|
StatusUpdate = "StatusUpdate"
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { FlexibleBlockCardProps } from './types';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
*
|
|
6
|
-
* @see SmartLinkStatus
|
|
7
|
-
* @see FlexibleCardProps
|
|
8
|
-
*/
|
|
9
|
-
declare const FlexibleErroredView: ({ anchorTarget, cardState, onAuthorize, onError, ui, url, onClick, testId, }: FlexibleBlockCardProps) => JSX.Element;
|
|
10
|
-
export default FlexibleErroredView;
|
|
2
|
+
declare const _default: (props: FlexibleBlockCardProps) => import("@emotion/react").jsx.JSX.Element;
|
|
3
|
+
export default _default;
|
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { FlexibleBlockCardProps } from './types';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
* It should have a "Try another account" button that will allow a user to connect another account and view the block card.
|
|
6
|
-
*
|
|
7
|
-
* @see SmartLinkStatus
|
|
8
|
-
* @see FlexibleCardProps
|
|
9
|
-
*/
|
|
10
|
-
declare const FlexibleForbiddenView: ({ anchorTarget, cardState, onAuthorize, onClick, onError, testId, ui, url, }: FlexibleBlockCardProps) => JSX.Element;
|
|
11
|
-
export default FlexibleForbiddenView;
|
|
2
|
+
declare const _default: (props: FlexibleBlockCardProps) => import("@emotion/react").jsx.JSX.Element;
|
|
3
|
+
export default _default;
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { FlexibleBlockCardProps } from './types';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
*
|
|
6
|
-
* @see SmartLinkStatus
|
|
7
|
-
* @see FlexibleCardProps
|
|
8
|
-
*/
|
|
9
|
-
declare const FlexibleNotFoundView: ({ anchorTarget, cardState, onAuthorize, onError, ui, url, onClick, testId, }: FlexibleBlockCardProps) => JSX.Element;
|
|
10
|
-
export default FlexibleNotFoundView;
|
|
2
|
+
declare const _default: (props: FlexibleBlockCardProps) => import("@emotion/react").jsx.JSX.Element;
|
|
3
|
+
export default _default;
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { FlexibleBlockCardProps } from './types';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
* @see SmartLinkStatus
|
|
6
|
-
* @see FlexibleCardProps
|
|
7
|
-
*/
|
|
8
|
-
declare const FlexibleResolvedView: ({ id, cardState, onClick, onError, onResolve, showServerActions, anchorTarget, testId, ui, url, analytics, }: FlexibleBlockCardProps) => JSX.Element;
|
|
9
|
-
export default FlexibleResolvedView;
|
|
2
|
+
declare const _default: (props: FlexibleBlockCardProps) => import("@emotion/react").jsx.JSX.Element;
|
|
3
|
+
export default _default;
|
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { FlexibleBlockCardProps } from './types';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
* It should have a "Connect" button that will allow a user to connect their account and view the block card.
|
|
6
|
-
*
|
|
7
|
-
* @see SmartLinkStatus
|
|
8
|
-
* @see FlexibleCardProps
|
|
9
|
-
*/
|
|
10
|
-
declare const FlexibleUnauthorisedView: ({ anchorTarget, analytics, cardState, extensionKey, onAuthorize, onClick, onError, testId, ui, url, }: FlexibleBlockCardProps) => JSX.Element;
|
|
11
|
-
export default FlexibleUnauthorisedView;
|
|
2
|
+
declare const _default: (props: FlexibleBlockCardProps) => import("@emotion/react").jsx.JSX.Element;
|
|
3
|
+
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { JsonLd } from 'json-ld-types';
|
|
2
|
-
import { ElementItem } from '
|
|
2
|
+
import { ElementItem } from '../../../../FlexibleCard/components/blocks/types';
|
|
3
3
|
export declare const getSimulatedBetterMetadata: (cardDetails?: JsonLd.Response) => SimulatedMetadata;
|
|
4
4
|
export declare const getSimulatedMetadata: (cardDetails?: JsonLd.Response) => SimulatedMetadata;
|
|
5
5
|
type SimulatedMetadata = {
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/** @jsx jsx */
|
|
2
|
+
import { jsx } from '@emotion/react';
|
|
3
|
+
import { FlexibleBlockCardProps } from '../types';
|
|
4
|
+
export declare const withFlexibleUIBlockCardStyle: (FlexibleBlockCardView: React.FC<FlexibleBlockCardProps>) => (props: FlexibleBlockCardProps) => jsx.JSX.Element;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/** @jsx jsx */
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { PopupComponentProps } from '@atlaskit/popup';
|
|
4
|
+
declare const CustomPopupContainer: React.ForwardRefExoticComponent<Pick<PopupComponentProps, "children" | "style" | "id" | "tabIndex" | "data-testid" | "data-placement"> & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
+
export default CustomPopupContainer;
|
|
@@ -7,3 +7,4 @@ export declare const separatorCss: import("@emotion/react").SerializedStyles;
|
|
|
7
7
|
export declare const HoverCardContainer: import("@emotion/react").SerializedStyles;
|
|
8
8
|
export declare const titleBlockCss: import("@emotion/react").SerializedStyles;
|
|
9
9
|
export declare const getTransitionStyles: (snippetHeight: number) => import("@emotion/react").SerializedStyles;
|
|
10
|
+
export declare const popupContainerStyles: import("@emotion/react").SerializedStyles;
|
|
@@ -6,8 +6,8 @@ import { SmartLinkActionType } from '@atlaskit/linking-types';
|
|
|
6
6
|
export declare const ANALYTICS_CHANNEL = "media";
|
|
7
7
|
export declare const context: {
|
|
8
8
|
componentName: string;
|
|
9
|
-
packageName:
|
|
10
|
-
packageVersion:
|
|
9
|
+
packageName: string;
|
|
10
|
+
packageVersion: string;
|
|
11
11
|
};
|
|
12
12
|
export declare enum TrackQuickActionType {
|
|
13
13
|
StatusUpdate = "StatusUpdate"
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { FlexibleBlockCardProps } from './types';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
*
|
|
6
|
-
* @see SmartLinkStatus
|
|
7
|
-
* @see FlexibleCardProps
|
|
8
|
-
*/
|
|
9
|
-
declare const FlexibleErroredView: ({ anchorTarget, cardState, onAuthorize, onError, ui, url, onClick, testId, }: FlexibleBlockCardProps) => JSX.Element;
|
|
10
|
-
export default FlexibleErroredView;
|
|
2
|
+
declare const _default: (props: FlexibleBlockCardProps) => import("@emotion/react").jsx.JSX.Element;
|
|
3
|
+
export default _default;
|
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { FlexibleBlockCardProps } from './types';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
* It should have a "Try another account" button that will allow a user to connect another account and view the block card.
|
|
6
|
-
*
|
|
7
|
-
* @see SmartLinkStatus
|
|
8
|
-
* @see FlexibleCardProps
|
|
9
|
-
*/
|
|
10
|
-
declare const FlexibleForbiddenView: ({ anchorTarget, cardState, onAuthorize, onClick, onError, testId, ui, url, }: FlexibleBlockCardProps) => JSX.Element;
|
|
11
|
-
export default FlexibleForbiddenView;
|
|
2
|
+
declare const _default: (props: FlexibleBlockCardProps) => import("@emotion/react").jsx.JSX.Element;
|
|
3
|
+
export default _default;
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { FlexibleBlockCardProps } from './types';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
*
|
|
6
|
-
* @see SmartLinkStatus
|
|
7
|
-
* @see FlexibleCardProps
|
|
8
|
-
*/
|
|
9
|
-
declare const FlexibleNotFoundView: ({ anchorTarget, cardState, onAuthorize, onError, ui, url, onClick, testId, }: FlexibleBlockCardProps) => JSX.Element;
|
|
10
|
-
export default FlexibleNotFoundView;
|
|
2
|
+
declare const _default: (props: FlexibleBlockCardProps) => import("@emotion/react").jsx.JSX.Element;
|
|
3
|
+
export default _default;
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { FlexibleBlockCardProps } from './types';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
* @see SmartLinkStatus
|
|
6
|
-
* @see FlexibleCardProps
|
|
7
|
-
*/
|
|
8
|
-
declare const FlexibleResolvedView: ({ id, cardState, onClick, onError, onResolve, showServerActions, anchorTarget, testId, ui, url, analytics, }: FlexibleBlockCardProps) => JSX.Element;
|
|
9
|
-
export default FlexibleResolvedView;
|
|
2
|
+
declare const _default: (props: FlexibleBlockCardProps) => import("@emotion/react").jsx.JSX.Element;
|
|
3
|
+
export default _default;
|
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { FlexibleBlockCardProps } from './types';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
* It should have a "Connect" button that will allow a user to connect their account and view the block card.
|
|
6
|
-
*
|
|
7
|
-
* @see SmartLinkStatus
|
|
8
|
-
* @see FlexibleCardProps
|
|
9
|
-
*/
|
|
10
|
-
declare const FlexibleUnauthorisedView: ({ anchorTarget, analytics, cardState, extensionKey, onAuthorize, onClick, onError, testId, ui, url, }: FlexibleBlockCardProps) => JSX.Element;
|
|
11
|
-
export default FlexibleUnauthorisedView;
|
|
2
|
+
declare const _default: (props: FlexibleBlockCardProps) => import("@emotion/react").jsx.JSX.Element;
|
|
3
|
+
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { JsonLd } from 'json-ld-types';
|
|
2
|
-
import { ElementItem } from '
|
|
2
|
+
import { ElementItem } from '../../../../FlexibleCard/components/blocks/types';
|
|
3
3
|
export declare const getSimulatedBetterMetadata: (cardDetails?: JsonLd.Response) => SimulatedMetadata;
|
|
4
4
|
export declare const getSimulatedMetadata: (cardDetails?: JsonLd.Response) => SimulatedMetadata;
|
|
5
5
|
type SimulatedMetadata = {
|
package/dist/types-ts4.5/view/BlockCard/views/flexible/utils/withFlexibleUIBlockCardStyle.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/** @jsx jsx */
|
|
2
|
+
import { jsx } from '@emotion/react';
|
|
3
|
+
import { FlexibleBlockCardProps } from '../types';
|
|
4
|
+
export declare const withFlexibleUIBlockCardStyle: (FlexibleBlockCardView: React.FC<FlexibleBlockCardProps>) => (props: FlexibleBlockCardProps) => jsx.JSX.Element;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/** @jsx jsx */
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { PopupComponentProps } from '@atlaskit/popup';
|
|
4
|
+
declare const CustomPopupContainer: React.ForwardRefExoticComponent<Pick<PopupComponentProps, "children" | "style" | "id" | "tabIndex" | "data-testid" | "data-placement"> & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
+
export default CustomPopupContainer;
|
|
@@ -7,3 +7,4 @@ export declare const separatorCss: import("@emotion/react").SerializedStyles;
|
|
|
7
7
|
export declare const HoverCardContainer: import("@emotion/react").SerializedStyles;
|
|
8
8
|
export declare const titleBlockCss: import("@emotion/react").SerializedStyles;
|
|
9
9
|
export declare const getTransitionStyles: (snippetHeight: number) => import("@emotion/react").SerializedStyles;
|
|
10
|
+
export declare const popupContainerStyles: import("@emotion/react").SerializedStyles;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/smart-card",
|
|
3
|
-
"version": "26.15.
|
|
3
|
+
"version": "26.15.5",
|
|
4
4
|
"description": "Smart card component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"@atlaskit/avatar": "^21.3.0",
|
|
28
28
|
"@atlaskit/avatar-group": "^9.3.0",
|
|
29
29
|
"@atlaskit/badge": "^15.1.0",
|
|
30
|
-
"@atlaskit/button": "^16.
|
|
30
|
+
"@atlaskit/button": "^16.9.0",
|
|
31
31
|
"@atlaskit/dropdown-menu": "^11.11.0",
|
|
32
32
|
"@atlaskit/frontend-utilities": "^2.7.0",
|
|
33
33
|
"@atlaskit/icon": "^21.12.0",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@atlaskit/link-analytics": "^8.2.0",
|
|
39
39
|
"@atlaskit/link-client-extension": "^1.6.0",
|
|
40
40
|
"@atlaskit/link-extractors": "^1.1.0",
|
|
41
|
-
"@atlaskit/linking-common": "^4.
|
|
41
|
+
"@atlaskit/linking-common": "^4.4.0",
|
|
42
42
|
"@atlaskit/linking-types": "^8.2.0",
|
|
43
43
|
"@atlaskit/logo": "^13.14.0",
|
|
44
44
|
"@atlaskit/lozenge": "^11.4.0",
|