@atlaskit/smart-card 26.15.2 → 26.15.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 +12 -0
- 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/LinkWarningModal/index.js +14 -8
- package/dist/cjs/view/LinkUrl/LinkWarningModal/styled.js +12 -0
- 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/LinkWarningModal/index.js +13 -8
- package/dist/es2019/view/LinkUrl/LinkWarningModal/styled.js +5 -0
- 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/LinkWarningModal/index.js +13 -8
- package/dist/esm/view/LinkUrl/LinkWarningModal/styled.js +4 -0
- 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/LinkWarningModal/index.d.ts +1 -0
- package/dist/types/view/LinkUrl/LinkWarningModal/styled.d.ts +1 -0
- 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/LinkWarningModal/index.d.ts +1 -0
- package/dist/types-ts4.5/view/LinkUrl/LinkWarningModal/styled.d.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** @jsx jsx */
|
|
2
|
+
import { jsx } from '@emotion/react';
|
|
3
|
+
import { flexibleBlockCardStyle } from '../styled';
|
|
4
|
+
export var withFlexibleUIBlockCardStyle = function withFlexibleUIBlockCardStyle(FlexibleBlockCardView) {
|
|
5
|
+
return function (props) {
|
|
6
|
+
return jsx("div", {
|
|
7
|
+
css: flexibleBlockCardStyle
|
|
8
|
+
}, jsx(FlexibleBlockCardView, props));
|
|
9
|
+
};
|
|
10
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
+
var _excluded = ["children"];
|
|
4
|
+
/** @jsx jsx */
|
|
5
|
+
import React from 'react';
|
|
6
|
+
import { popupContainerStyles } from '../styled';
|
|
7
|
+
import { jsx } from '@emotion/react';
|
|
8
|
+
var CustomPopupContainer = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
9
|
+
var children = _ref.children,
|
|
10
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
11
|
+
return jsx("div", _extends({
|
|
12
|
+
css: popupContainerStyles
|
|
13
|
+
}, props, {
|
|
14
|
+
ref: ref
|
|
15
|
+
}), children);
|
|
16
|
+
});
|
|
17
|
+
export default CustomPopupContainer;
|
|
@@ -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
|
+
})());
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
/** @jsx jsx */
|
|
2
3
|
import React from 'react';
|
|
3
4
|
import Button from '@atlaskit/button/standard-button';
|
|
4
5
|
import Modal, { ModalBody, ModalFooter, ModalHeader, ModalTitle, ModalTransition } from '@atlaskit/modal-dialog';
|
|
5
6
|
import { FormattedMessage, IntlProvider, injectIntl } from 'react-intl-next';
|
|
7
|
+
import { breakWordsCss } from './styled';
|
|
8
|
+
import { jsx } from '@emotion/react';
|
|
6
9
|
import { messages } from '../../../messages';
|
|
7
10
|
var WarningModal = function WarningModal(props) {
|
|
8
11
|
var isOpen = props.isOpen,
|
|
@@ -11,31 +14,33 @@ var WarningModal = function WarningModal(props) {
|
|
|
11
14
|
onClose = props.onClose,
|
|
12
15
|
onContinue = props.onContinue,
|
|
13
16
|
intl = props.intl;
|
|
14
|
-
var content =
|
|
17
|
+
var content = jsx(ModalTransition, null, isOpen && jsx(Modal, {
|
|
15
18
|
onClose: onClose,
|
|
16
19
|
testId: "link-with-safety-warning"
|
|
17
|
-
},
|
|
20
|
+
}, jsx(ModalHeader, null, jsx(ModalTitle, {
|
|
18
21
|
appearance: "warning"
|
|
19
|
-
},
|
|
22
|
+
}, jsx(FormattedMessage, messages.check_this_link))), jsx(ModalBody, null, jsx("div", {
|
|
23
|
+
css: breakWordsCss
|
|
24
|
+
}, url && unsafeLinkText && jsx(FormattedMessage, _extends({}, messages.link_safety_warning_message, {
|
|
20
25
|
values: {
|
|
21
26
|
unsafeLinkText: unsafeLinkText,
|
|
22
27
|
a: function a() {
|
|
23
|
-
return
|
|
28
|
+
return jsx("a", {
|
|
24
29
|
href: url,
|
|
25
30
|
target: "_blank",
|
|
26
31
|
rel: "noopener noreferrer"
|
|
27
32
|
}, url);
|
|
28
33
|
}
|
|
29
34
|
}
|
|
30
|
-
}))),
|
|
35
|
+
})))), jsx(ModalFooter, null, jsx(Button, {
|
|
31
36
|
appearance: "subtle",
|
|
32
37
|
onClick: onClose
|
|
33
|
-
},
|
|
38
|
+
}, jsx(FormattedMessage, messages.go_back)), jsx(Button, {
|
|
34
39
|
appearance: "warning",
|
|
35
40
|
onClick: onContinue,
|
|
36
41
|
autoFocus: true
|
|
37
|
-
},
|
|
38
|
-
return intl ? content :
|
|
42
|
+
}, jsx(FormattedMessage, messages.continue)))));
|
|
43
|
+
return intl ? content : jsx(IntlProvider, {
|
|
39
44
|
locale: "en"
|
|
40
45
|
}, content);
|
|
41
46
|
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
+
var _templateObject;
|
|
3
|
+
import { css } from '@emotion/react';
|
|
4
|
+
export var breakWordsCss = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n white-space: pre-line;\n word-break: break-all;\n"])));
|
|
@@ -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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const breakWordsCss: import("@emotion/react").SerializedStyles;
|
|
@@ -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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const breakWordsCss: import("@emotion/react").SerializedStyles;
|