@atlaskit/smart-card 30.4.2 → 31.0.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 +14 -0
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/BlockCard/views/ResolvingView.js +4 -3
- package/dist/cjs/view/CardWithUrl/component.js +1 -2
- package/dist/cjs/view/CardWithUrl/loader.js +0 -2
- package/dist/cjs/view/EmbedCard/views/ErroredView.js +10 -3
- package/dist/cjs/view/FlexibleCard/components/actions/automation-action/index.js +6 -3
- package/dist/cjs/view/FlexibleCard/components/blocks/title-block/errored/index.js +16 -8
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/BlockCard/views/ResolvingView.js +4 -3
- package/dist/es2019/view/CardWithUrl/component.js +1 -2
- package/dist/es2019/view/CardWithUrl/loader.js +0 -2
- package/dist/es2019/view/EmbedCard/views/ErroredView.js +10 -3
- package/dist/es2019/view/FlexibleCard/components/actions/automation-action/index.js +5 -2
- package/dist/es2019/view/FlexibleCard/components/blocks/title-block/errored/index.js +16 -8
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/BlockCard/views/ResolvingView.js +4 -3
- package/dist/esm/view/CardWithUrl/component.js +1 -2
- package/dist/esm/view/CardWithUrl/loader.js +0 -2
- package/dist/esm/view/EmbedCard/views/ErroredView.js +10 -3
- package/dist/esm/view/FlexibleCard/components/actions/automation-action/index.js +5 -2
- package/dist/esm/view/FlexibleCard/components/blocks/title-block/errored/index.js +16 -8
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/types/view/BlockCard/views/ResolvingView.d.ts +1 -1
- package/dist/types/view/Card/index.d.ts +1 -1
- package/dist/types/view/Card/types.d.ts +0 -7
- package/dist/types/view/CardWithUrl/types.d.ts +0 -1
- package/dist/types/view/HoverCard/components/CustomPopupContainer.d.ts +1 -1
- package/dist/types-ts4.5/view/BlockCard/views/ResolvingView.d.ts +1 -1
- package/dist/types-ts4.5/view/Card/index.d.ts +1 -1
- package/dist/types-ts4.5/view/Card/types.d.ts +0 -7
- package/dist/types-ts4.5/view/CardWithUrl/types.d.ts +0 -1
- package/dist/types-ts4.5/view/HoverCard/components/CustomPopupContainer.d.ts +1 -1
- package/package.json +1 -1
- /package/dist/cjs/view/FlexibleCard/components/actions/automation-action/{manaul-triggers-icon → manual-triggers-icon}/index.js +0 -0
- /package/dist/es2019/view/FlexibleCard/components/actions/automation-action/{manaul-triggers-icon → manual-triggers-icon}/index.js +0 -0
- /package/dist/esm/view/FlexibleCard/components/actions/automation-action/{manaul-triggers-icon → manual-triggers-icon}/index.js +0 -0
- /package/dist/types/view/FlexibleCard/components/actions/automation-action/{manaul-triggers-icon → manual-triggers-icon}/index.d.ts +0 -0
- /package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/{manaul-triggers-icon → manual-triggers-icon}/index.d.ts +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 31.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [#168886](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/168886)
|
|
8
|
+
[`1b7dbf4237106`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1b7dbf4237106) -
|
|
9
|
+
Remove deprecated prop `useLegacyBlockCard`
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#167375](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/167375)
|
|
14
|
+
[`ce85e442a7d6e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/ce85e442a7d6e) -
|
|
15
|
+
[ux] Use atlaskit primitives for typography
|
|
16
|
+
|
|
3
17
|
## 30.4.2
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -17,7 +17,7 @@ var ANALYTICS_CHANNEL = exports.ANALYTICS_CHANNEL = 'media';
|
|
|
17
17
|
var context = exports.context = {
|
|
18
18
|
componentName: 'smart-cards',
|
|
19
19
|
packageName: "@atlaskit/smart-card",
|
|
20
|
-
packageVersion: "
|
|
20
|
+
packageVersion: "31.0.0"
|
|
21
21
|
};
|
|
22
22
|
var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
23
23
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -8,6 +8,7 @@ exports.blockCardResolvingViewClassName = exports.ResolvingView = void 0;
|
|
|
8
8
|
var _react = require("@emotion/react");
|
|
9
9
|
var _reactIntlNext = require("react-intl-next");
|
|
10
10
|
var _fileEditorFile = _interopRequireDefault(require("@atlaskit/icon/core/migration/file--editor-file"));
|
|
11
|
+
var _primitives = require("@atlaskit/primitives");
|
|
11
12
|
var _colors = require("@atlaskit/theme/colors");
|
|
12
13
|
var _messages = require("../../../messages");
|
|
13
14
|
var _utils = require("../../common/utils");
|
|
@@ -21,7 +22,7 @@ var _Frame = require("../components/Frame");
|
|
|
21
22
|
/**
|
|
22
23
|
* Class name for selecting non-flexible resolving block card
|
|
23
24
|
*
|
|
24
|
-
* @deprecated {@link https://hello.
|
|
25
|
+
* @deprecated {@link https://hello.atlassian.net/browse/ENGHEALTH-6878 Internal documentation for deprecation (no external access)}
|
|
25
26
|
* Using this selctor is deprecated as once the flexible block card feature flag is removed, this class will no longer be used.
|
|
26
27
|
*/
|
|
27
28
|
var blockCardResolvingViewClassName = exports.blockCardResolvingViewClassName = 'block-card-resolving-view';
|
|
@@ -50,7 +51,7 @@ var ResolvingView = exports.ResolvingView = function ResolvingView(_ref) {
|
|
|
50
51
|
color: "var(--ds-icon-subtle, ".concat(_colors.N50, ")"),
|
|
51
52
|
label: "document-icon",
|
|
52
53
|
LEGACY_margin: "0 -4.3px 0 -4px"
|
|
53
|
-
}), (0, _react.jsx)(
|
|
54
|
-
|
|
54
|
+
}), (0, _react.jsx)(_primitives.Inline, {
|
|
55
|
+
xcss: messageStyles
|
|
55
56
|
}, (0, _react.jsx)(_reactIntlNext.FormattedMessage, _messages.messages.loading)));
|
|
56
57
|
};
|
|
@@ -48,7 +48,6 @@ function Component(_ref) {
|
|
|
48
48
|
hoverPreviewOptions = _ref.hoverPreviewOptions,
|
|
49
49
|
showAuthTooltip = _ref.showAuthTooltip,
|
|
50
50
|
analyticsEvents = _ref.analyticsEvents,
|
|
51
|
-
useLegacyBlockCard = _ref.useLegacyBlockCard,
|
|
52
51
|
removeTextHighlightingFromTitle = _ref.removeTextHighlightingFromTitle,
|
|
53
52
|
resolvingPlaceholder = _ref.resolvingPlaceholder,
|
|
54
53
|
truncateInline = _ref.truncateInline;
|
|
@@ -250,7 +249,7 @@ function Component(_ref) {
|
|
|
250
249
|
testId: testId,
|
|
251
250
|
actionOptions: actionOptions,
|
|
252
251
|
platform: platform,
|
|
253
|
-
enableFlexibleBlockCard:
|
|
252
|
+
enableFlexibleBlockCard: true
|
|
254
253
|
});
|
|
255
254
|
case 'embed':
|
|
256
255
|
return /*#__PURE__*/_react.default.createElement(_EmbedCard.EmbedCard, {
|
|
@@ -62,7 +62,6 @@ function CardWithURLRenderer(props) {
|
|
|
62
62
|
showAuthTooltip = props.showAuthTooltip,
|
|
63
63
|
placeholder = props.placeholder,
|
|
64
64
|
fallbackComponent = props.fallbackComponent,
|
|
65
|
-
useLegacyBlockCard = props.useLegacyBlockCard,
|
|
66
65
|
removeTextHighlightingFromTitle = props.removeTextHighlightingFromTitle,
|
|
67
66
|
resolvingPlaceholder = props.resolvingPlaceholder,
|
|
68
67
|
truncateInline = props.truncateInline;
|
|
@@ -131,7 +130,6 @@ function CardWithURLRenderer(props) {
|
|
|
131
130
|
hoverPreviewOptions: hoverPreviewOptions,
|
|
132
131
|
showAuthTooltip: showAuthTooltip,
|
|
133
132
|
placeholder: placeholder,
|
|
134
|
-
useLegacyBlockCard: useLegacyBlockCard,
|
|
135
133
|
removeTextHighlightingFromTitle: removeTextHighlightingFromTitle,
|
|
136
134
|
resolvingPlaceholder: resolvingPlaceholder,
|
|
137
135
|
truncateInline: truncateInline
|
|
@@ -9,6 +9,7 @@ var _react = require("@emotion/react");
|
|
|
9
9
|
var _reactIntlNext = require("react-intl-next");
|
|
10
10
|
var _button = _interopRequireDefault(require("@atlaskit/button"));
|
|
11
11
|
var _error = _interopRequireDefault(require("@atlaskit/icon/core/migration/error"));
|
|
12
|
+
var _primitives = require("@atlaskit/primitives");
|
|
12
13
|
var _colors = require("@atlaskit/theme/colors");
|
|
13
14
|
var _messages = require("../../../messages");
|
|
14
15
|
var _Frame = require("../../BlockCard/components/Frame");
|
|
@@ -35,6 +36,10 @@ var messageStyles = (0, _react.css)({
|
|
|
35
36
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
36
37
|
maxHeight: (0, _utils.gs)(3)
|
|
37
38
|
});
|
|
39
|
+
var boxStyles = (0, _primitives.xcss)({
|
|
40
|
+
paddingLeft: 'space.050',
|
|
41
|
+
paddingRight: 'space.050'
|
|
42
|
+
});
|
|
38
43
|
var EmbedCardErroredView = exports.EmbedCardErroredView = function EmbedCardErroredView(_ref) {
|
|
39
44
|
var onRetry = _ref.onRetry,
|
|
40
45
|
_ref$isSelected = _ref.isSelected,
|
|
@@ -51,9 +56,11 @@ var EmbedCardErroredView = exports.EmbedCardErroredView = function EmbedCardErro
|
|
|
51
56
|
LEGACY_size: "small",
|
|
52
57
|
color: "var(--ds-icon-danger, ".concat(_colors.R300, ")"),
|
|
53
58
|
label: "error-icon"
|
|
54
|
-
}), (0, _react.jsx)(
|
|
55
|
-
|
|
56
|
-
}, (0, _react.jsx)(
|
|
59
|
+
}), (0, _react.jsx)(_primitives.Box, {
|
|
60
|
+
xcss: boxStyles
|
|
61
|
+
}, (0, _react.jsx)(_primitives.Inline, {
|
|
62
|
+
xcss: messageStyles
|
|
63
|
+
}, (0, _react.jsx)(_reactIntlNext.FormattedMessage, _messages.messages.could_not_load_link))), (0, _react.jsx)(_button.default, {
|
|
57
64
|
testId: "err-view-retry",
|
|
58
65
|
appearance: "link",
|
|
59
66
|
spacing: "none",
|
|
@@ -10,13 +10,14 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
var _reactIntlNext = require("react-intl-next");
|
|
12
12
|
var _automation = _interopRequireDefault(require("@atlaskit/icon/core/automation"));
|
|
13
|
+
var _primitives = require("@atlaskit/primitives");
|
|
13
14
|
var _useAnalyticsEvents2 = require("../../../../../common/analytics/generated/use-analytics-events");
|
|
14
15
|
var _constants = require("../../../../../constants");
|
|
15
16
|
var _messages = require("../../../../../messages");
|
|
16
17
|
var _flexibleUiContext = require("../../../../../state/flexible-ui-context");
|
|
17
18
|
var _modal = require("../../../../../state/modal");
|
|
18
19
|
var _action = _interopRequireDefault(require("../action"));
|
|
19
|
-
var
|
|
20
|
+
var _manualTriggersIcon = _interopRequireDefault(require("./manual-triggers-icon"));
|
|
20
21
|
var _utils = require("./utils");
|
|
21
22
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
22
23
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != (0, _typeof2.default)(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
@@ -53,7 +54,9 @@ var AutomationAction = function AutomationAction(props) {
|
|
|
53
54
|
values: {
|
|
54
55
|
name: objectName,
|
|
55
56
|
b: function b(chunks) {
|
|
56
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
57
|
+
return /*#__PURE__*/_react.default.createElement(_primitives.Text, {
|
|
58
|
+
as: "strong"
|
|
59
|
+
}, chunks);
|
|
57
60
|
},
|
|
58
61
|
br: /*#__PURE__*/_react.default.createElement("br", null)
|
|
59
62
|
}
|
|
@@ -82,7 +85,7 @@ var AutomationAction = function AutomationAction(props) {
|
|
|
82
85
|
content: automationActionTitle,
|
|
83
86
|
icon: /*#__PURE__*/_react.default.createElement(_automation.default, {
|
|
84
87
|
spacing: "spacious",
|
|
85
|
-
LEGACY_fallbackIcon:
|
|
88
|
+
LEGACY_fallbackIcon: _manualTriggersIcon.default,
|
|
86
89
|
color: "currentColor",
|
|
87
90
|
label: automationActionIconLabel
|
|
88
91
|
}),
|
|
@@ -9,6 +9,7 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
9
9
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
10
10
|
var _react = require("@emotion/react");
|
|
11
11
|
var _reactIntlNext = require("react-intl-next");
|
|
12
|
+
var _primitives = require("@atlaskit/primitives");
|
|
12
13
|
var _constants = require("../../../../../../constants");
|
|
13
14
|
var _elements = require("../../../elements");
|
|
14
15
|
var _utils = require("../../../utils");
|
|
@@ -28,6 +29,13 @@ var actionStyles = (0, _react.css)({
|
|
|
28
29
|
textDecoration: 'underline'
|
|
29
30
|
}
|
|
30
31
|
});
|
|
32
|
+
var actionHoverStyles = (0, _react.css)({
|
|
33
|
+
position: 'relative',
|
|
34
|
+
zIndex: 1,
|
|
35
|
+
'&:focus': {
|
|
36
|
+
outlineOffset: "var(--ds-space-negative-025, -2px)"
|
|
37
|
+
}
|
|
38
|
+
});
|
|
31
39
|
var getMessageStyles = function getMessageStyles(size, hasAction) {
|
|
32
40
|
var sizeStyles = (0, _utils.getLinkSizeStyles)(size);
|
|
33
41
|
return (0, _react.css)({
|
|
@@ -45,7 +53,9 @@ var getMessageStyles = function getMessageStyles(size, hasAction) {
|
|
|
45
53
|
':focus': {
|
|
46
54
|
outline: "var(--ds-border-focused, #388BFF)".concat(" solid 2px")
|
|
47
55
|
}
|
|
48
|
-
}
|
|
56
|
+
},
|
|
57
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
58
|
+
hasAction ? actionHoverStyles : '');
|
|
49
59
|
};
|
|
50
60
|
|
|
51
61
|
/**
|
|
@@ -79,14 +89,12 @@ var TitleBlockErroredView = function TitleBlockErroredView(_ref) {
|
|
|
79
89
|
}), title, descriptor && (0, _react.jsx)(_elementGroup.default, {
|
|
80
90
|
direction: _constants.SmartLinkDirection.Horizontal,
|
|
81
91
|
align: _constants.SmartLinkAlignment.Right
|
|
82
|
-
}, (0, _react.jsx)(
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
,
|
|
87
|
-
css: getMessageStyles(size, hasAction),
|
|
92
|
+
}, (0, _react.jsx)(_primitives.Box
|
|
93
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
94
|
+
, {
|
|
95
|
+
xcss: getMessageStyles(size, hasAction),
|
|
88
96
|
onClick: onClick,
|
|
89
|
-
|
|
97
|
+
testId: "".concat(testId, "-errored-view-message"),
|
|
90
98
|
tabIndex: hasAction ? 0 : -1
|
|
91
99
|
}, (0, _react.jsx)(_reactIntlNext.FormattedMessage, (0, _extends2.default)({}, descriptor, {
|
|
92
100
|
values: values
|
|
@@ -17,7 +17,7 @@ var _excluded = ["href", "children", "checkSafety", "onClick", "testId"],
|
|
|
17
17
|
_excluded2 = ["isLinkSafe", "showSafetyWarningModal"];
|
|
18
18
|
var PACKAGE_DATA = {
|
|
19
19
|
packageName: "@atlaskit/smart-card",
|
|
20
|
-
packageVersion: "
|
|
20
|
+
packageVersion: "31.0.0",
|
|
21
21
|
componentName: 'linkUrl'
|
|
22
22
|
};
|
|
23
23
|
var Link = (0, _click.withLinkClickedEvent)('a');
|
|
@@ -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: "
|
|
7
|
+
packageVersion: "31.0.0"
|
|
8
8
|
};
|
|
9
9
|
export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
10
10
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
import { css, jsx } from '@emotion/react';
|
|
7
7
|
import { FormattedMessage } from 'react-intl-next';
|
|
8
8
|
import DocumentFilledIcon from '@atlaskit/icon/core/migration/file--editor-file';
|
|
9
|
+
import { Inline } from '@atlaskit/primitives';
|
|
9
10
|
import { N50, N90 } from '@atlaskit/theme/colors';
|
|
10
11
|
import { messages } from '../../../messages';
|
|
11
12
|
import { gs } from '../../common/utils';
|
|
@@ -13,7 +14,7 @@ import { Frame } from '../components/Frame';
|
|
|
13
14
|
/**
|
|
14
15
|
* Class name for selecting non-flexible resolving block card
|
|
15
16
|
*
|
|
16
|
-
* @deprecated {@link https://hello.
|
|
17
|
+
* @deprecated {@link https://hello.atlassian.net/browse/ENGHEALTH-6878 Internal documentation for deprecation (no external access)}
|
|
17
18
|
* Using this selctor is deprecated as once the flexible block card feature flag is removed, this class will no longer be used.
|
|
18
19
|
*/
|
|
19
20
|
export const blockCardResolvingViewClassName = 'block-card-resolving-view';
|
|
@@ -40,6 +41,6 @@ export const ResolvingView = ({
|
|
|
40
41
|
color: `var(--ds-icon-subtle, ${N50})`,
|
|
41
42
|
label: "document-icon",
|
|
42
43
|
LEGACY_margin: "0 -4.3px 0 -4px"
|
|
43
|
-
}), jsx(
|
|
44
|
-
|
|
44
|
+
}), jsx(Inline, {
|
|
45
|
+
xcss: messageStyles
|
|
45
46
|
}, jsx(FormattedMessage, messages.loading)));
|
|
@@ -38,7 +38,6 @@ function Component({
|
|
|
38
38
|
hoverPreviewOptions,
|
|
39
39
|
showAuthTooltip,
|
|
40
40
|
analyticsEvents,
|
|
41
|
-
useLegacyBlockCard,
|
|
42
41
|
removeTextHighlightingFromTitle,
|
|
43
42
|
resolvingPlaceholder,
|
|
44
43
|
truncateInline
|
|
@@ -238,7 +237,7 @@ function Component({
|
|
|
238
237
|
testId: testId,
|
|
239
238
|
actionOptions: actionOptions,
|
|
240
239
|
platform: platform,
|
|
241
|
-
enableFlexibleBlockCard:
|
|
240
|
+
enableFlexibleBlockCard: true
|
|
242
241
|
});
|
|
243
242
|
case 'embed':
|
|
244
243
|
return /*#__PURE__*/React.createElement(EmbedCard, {
|
|
@@ -41,7 +41,6 @@ export function CardWithURLRenderer(props) {
|
|
|
41
41
|
showAuthTooltip,
|
|
42
42
|
placeholder,
|
|
43
43
|
fallbackComponent,
|
|
44
|
-
useLegacyBlockCard,
|
|
45
44
|
removeTextHighlightingFromTitle,
|
|
46
45
|
resolvingPlaceholder,
|
|
47
46
|
truncateInline
|
|
@@ -109,7 +108,6 @@ export function CardWithURLRenderer(props) {
|
|
|
109
108
|
hoverPreviewOptions,
|
|
110
109
|
showAuthTooltip,
|
|
111
110
|
placeholder,
|
|
112
|
-
useLegacyBlockCard,
|
|
113
111
|
removeTextHighlightingFromTitle,
|
|
114
112
|
resolvingPlaceholder,
|
|
115
113
|
truncateInline
|
|
@@ -7,6 +7,7 @@ import { css, jsx } from '@emotion/react';
|
|
|
7
7
|
import { FormattedMessage } from 'react-intl-next';
|
|
8
8
|
import Button from '@atlaskit/button';
|
|
9
9
|
import ErrorIcon from '@atlaskit/icon/core/migration/error';
|
|
10
|
+
import { Box, Inline, xcss } from '@atlaskit/primitives';
|
|
10
11
|
import { R300 } from '@atlaskit/theme/colors';
|
|
11
12
|
import { messages } from '../../../messages';
|
|
12
13
|
import { Frame } from '../../BlockCard/components/Frame';
|
|
@@ -27,6 +28,10 @@ const messageStyles = css({
|
|
|
27
28
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
28
29
|
maxHeight: gs(3)
|
|
29
30
|
});
|
|
31
|
+
const boxStyles = xcss({
|
|
32
|
+
paddingLeft: 'space.050',
|
|
33
|
+
paddingRight: 'space.050'
|
|
34
|
+
});
|
|
30
35
|
export const EmbedCardErroredView = ({
|
|
31
36
|
onRetry,
|
|
32
37
|
isSelected = false,
|
|
@@ -41,9 +46,11 @@ export const EmbedCardErroredView = ({
|
|
|
41
46
|
LEGACY_size: "small",
|
|
42
47
|
color: `var(--ds-icon-danger, ${R300})`,
|
|
43
48
|
label: "error-icon"
|
|
44
|
-
}), jsx(
|
|
45
|
-
|
|
46
|
-
}, jsx(
|
|
49
|
+
}), jsx(Box, {
|
|
50
|
+
xcss: boxStyles
|
|
51
|
+
}, jsx(Inline, {
|
|
52
|
+
xcss: messageStyles
|
|
53
|
+
}, jsx(FormattedMessage, messages.could_not_load_link))), jsx(Button, {
|
|
47
54
|
testId: "err-view-retry",
|
|
48
55
|
appearance: "link",
|
|
49
56
|
spacing: "none",
|
|
@@ -2,13 +2,14 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import React, { lazy, useCallback } from 'react';
|
|
3
3
|
import { FormattedMessage, useIntl } from 'react-intl-next';
|
|
4
4
|
import AutomationIcon from '@atlaskit/icon/core/automation';
|
|
5
|
+
import { Text } from '@atlaskit/primitives';
|
|
5
6
|
import { useAnalyticsEvents } from '../../../../../common/analytics/generated/use-analytics-events';
|
|
6
7
|
import { ActionName } from '../../../../../constants';
|
|
7
8
|
import { messages } from '../../../../../messages';
|
|
8
9
|
import { useFlexibleUiContext } from '../../../../../state/flexible-ui-context';
|
|
9
10
|
import { useSmartLinkModal } from '../../../../../state/modal';
|
|
10
11
|
import Action from '../action';
|
|
11
|
-
import AutomationManualTriggersGlyph from './
|
|
12
|
+
import AutomationManualTriggersGlyph from './manual-triggers-icon';
|
|
12
13
|
import { getModalContent } from './utils';
|
|
13
14
|
const AutomationModal = /*#__PURE__*/lazy(() => import( /* webpackChunkName: "@atlaskit-internal_smart-card-automation-modal" */'./automation-manual-triggers/manual-triggers-modal'));
|
|
14
15
|
const AutomationAction = props => {
|
|
@@ -45,7 +46,9 @@ const AutomationAction = props => {
|
|
|
45
46
|
const automationModalDescription = modalDescription ? /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, modalDescription, {
|
|
46
47
|
values: {
|
|
47
48
|
name: objectName,
|
|
48
|
-
b: chunks => /*#__PURE__*/React.createElement(
|
|
49
|
+
b: chunks => /*#__PURE__*/React.createElement(Text, {
|
|
50
|
+
as: "strong"
|
|
51
|
+
}, chunks),
|
|
49
52
|
br: /*#__PURE__*/React.createElement("br", null)
|
|
50
53
|
}
|
|
51
54
|
})) : undefined;
|
|
@@ -6,6 +6,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
6
6
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
7
7
|
import { css, jsx } from '@emotion/react';
|
|
8
8
|
import { FormattedMessage } from 'react-intl-next';
|
|
9
|
+
import { Box } from '@atlaskit/primitives';
|
|
9
10
|
import { SmartLinkAlignment, SmartLinkDirection, SmartLinkSize } from '../../../../../../constants';
|
|
10
11
|
import { LinkIcon } from '../../../elements';
|
|
11
12
|
import { getLinkLineHeight, getLinkSizeStyles, getTruncateStyles } from '../../../utils';
|
|
@@ -19,6 +20,13 @@ const actionStyles = css({
|
|
|
19
20
|
textDecoration: 'underline'
|
|
20
21
|
}
|
|
21
22
|
});
|
|
23
|
+
const actionHoverStyles = css({
|
|
24
|
+
position: 'relative',
|
|
25
|
+
zIndex: 1,
|
|
26
|
+
'&:focus': {
|
|
27
|
+
outlineOffset: "var(--ds-space-negative-025, -2px)"
|
|
28
|
+
}
|
|
29
|
+
});
|
|
22
30
|
const getMessageStyles = (size, hasAction) => {
|
|
23
31
|
const sizeStyles = getLinkSizeStyles(size);
|
|
24
32
|
return css({
|
|
@@ -36,7 +44,9 @@ const getMessageStyles = (size, hasAction) => {
|
|
|
36
44
|
':focus': {
|
|
37
45
|
outline: `${"var(--ds-border-focused, #388BFF)"} solid 2px`
|
|
38
46
|
}
|
|
39
|
-
}
|
|
47
|
+
},
|
|
48
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
49
|
+
hasAction ? actionHoverStyles : '');
|
|
40
50
|
};
|
|
41
51
|
|
|
42
52
|
/**
|
|
@@ -73,14 +83,12 @@ const TitleBlockErroredView = ({
|
|
|
73
83
|
}), title, descriptor && jsx(ElementGroup, {
|
|
74
84
|
direction: SmartLinkDirection.Horizontal,
|
|
75
85
|
align: SmartLinkAlignment.Right
|
|
76
|
-
}, jsx(
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
,
|
|
81
|
-
css: getMessageStyles(size, hasAction),
|
|
86
|
+
}, jsx(Box
|
|
87
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
88
|
+
, {
|
|
89
|
+
xcss: getMessageStyles(size, hasAction),
|
|
82
90
|
onClick: onClick,
|
|
83
|
-
|
|
91
|
+
testId: `${testId}-errored-view-message`,
|
|
84
92
|
tabIndex: hasAction ? 0 : -1
|
|
85
93
|
}, jsx(FormattedMessage, _extends({}, descriptor, {
|
|
86
94
|
values: values
|
|
@@ -7,7 +7,7 @@ import LinkWarningModal from './LinkWarningModal';
|
|
|
7
7
|
import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
|
|
8
8
|
const PACKAGE_DATA = {
|
|
9
9
|
packageName: "@atlaskit/smart-card",
|
|
10
|
-
packageVersion: "
|
|
10
|
+
packageVersion: "31.0.0",
|
|
11
11
|
componentName: 'linkUrl'
|
|
12
12
|
};
|
|
13
13
|
const Link = withLinkClickedEvent('a');
|
|
@@ -10,7 +10,7 @@ export var ANALYTICS_CHANNEL = 'media';
|
|
|
10
10
|
export var context = {
|
|
11
11
|
componentName: 'smart-cards',
|
|
12
12
|
packageName: "@atlaskit/smart-card",
|
|
13
|
-
packageVersion: "
|
|
13
|
+
packageVersion: "31.0.0"
|
|
14
14
|
};
|
|
15
15
|
export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
16
16
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
import { css, jsx } from '@emotion/react';
|
|
7
7
|
import { FormattedMessage } from 'react-intl-next';
|
|
8
8
|
import DocumentFilledIcon from '@atlaskit/icon/core/migration/file--editor-file';
|
|
9
|
+
import { Inline } from '@atlaskit/primitives';
|
|
9
10
|
import { N50, N90 } from '@atlaskit/theme/colors';
|
|
10
11
|
import { messages } from '../../../messages';
|
|
11
12
|
import { gs } from '../../common/utils';
|
|
@@ -13,7 +14,7 @@ import { Frame } from '../components/Frame';
|
|
|
13
14
|
/**
|
|
14
15
|
* Class name for selecting non-flexible resolving block card
|
|
15
16
|
*
|
|
16
|
-
* @deprecated {@link https://hello.
|
|
17
|
+
* @deprecated {@link https://hello.atlassian.net/browse/ENGHEALTH-6878 Internal documentation for deprecation (no external access)}
|
|
17
18
|
* Using this selctor is deprecated as once the flexible block card feature flag is removed, this class will no longer be used.
|
|
18
19
|
*/
|
|
19
20
|
export var blockCardResolvingViewClassName = 'block-card-resolving-view';
|
|
@@ -42,7 +43,7 @@ export var ResolvingView = function ResolvingView(_ref) {
|
|
|
42
43
|
color: "var(--ds-icon-subtle, ".concat(N50, ")"),
|
|
43
44
|
label: "document-icon",
|
|
44
45
|
LEGACY_margin: "0 -4.3px 0 -4px"
|
|
45
|
-
}), jsx(
|
|
46
|
-
|
|
46
|
+
}), jsx(Inline, {
|
|
47
|
+
xcss: messageStyles
|
|
47
48
|
}, jsx(FormattedMessage, messages.loading)));
|
|
48
49
|
};
|
|
@@ -38,7 +38,6 @@ function Component(_ref) {
|
|
|
38
38
|
hoverPreviewOptions = _ref.hoverPreviewOptions,
|
|
39
39
|
showAuthTooltip = _ref.showAuthTooltip,
|
|
40
40
|
analyticsEvents = _ref.analyticsEvents,
|
|
41
|
-
useLegacyBlockCard = _ref.useLegacyBlockCard,
|
|
42
41
|
removeTextHighlightingFromTitle = _ref.removeTextHighlightingFromTitle,
|
|
43
42
|
resolvingPlaceholder = _ref.resolvingPlaceholder,
|
|
44
43
|
truncateInline = _ref.truncateInline;
|
|
@@ -240,7 +239,7 @@ function Component(_ref) {
|
|
|
240
239
|
testId: testId,
|
|
241
240
|
actionOptions: actionOptions,
|
|
242
241
|
platform: platform,
|
|
243
|
-
enableFlexibleBlockCard:
|
|
242
|
+
enableFlexibleBlockCard: true
|
|
244
243
|
});
|
|
245
244
|
case 'embed':
|
|
246
245
|
return /*#__PURE__*/React.createElement(EmbedCard, {
|
|
@@ -49,7 +49,6 @@ export function CardWithURLRenderer(props) {
|
|
|
49
49
|
showAuthTooltip = props.showAuthTooltip,
|
|
50
50
|
placeholder = props.placeholder,
|
|
51
51
|
fallbackComponent = props.fallbackComponent,
|
|
52
|
-
useLegacyBlockCard = props.useLegacyBlockCard,
|
|
53
52
|
removeTextHighlightingFromTitle = props.removeTextHighlightingFromTitle,
|
|
54
53
|
resolvingPlaceholder = props.resolvingPlaceholder,
|
|
55
54
|
truncateInline = props.truncateInline;
|
|
@@ -118,7 +117,6 @@ export function CardWithURLRenderer(props) {
|
|
|
118
117
|
hoverPreviewOptions: hoverPreviewOptions,
|
|
119
118
|
showAuthTooltip: showAuthTooltip,
|
|
120
119
|
placeholder: placeholder,
|
|
121
|
-
useLegacyBlockCard: useLegacyBlockCard,
|
|
122
120
|
removeTextHighlightingFromTitle: removeTextHighlightingFromTitle,
|
|
123
121
|
resolvingPlaceholder: resolvingPlaceholder,
|
|
124
122
|
truncateInline: truncateInline
|
|
@@ -7,6 +7,7 @@ import { css, jsx } from '@emotion/react';
|
|
|
7
7
|
import { FormattedMessage } from 'react-intl-next';
|
|
8
8
|
import Button from '@atlaskit/button';
|
|
9
9
|
import ErrorIcon from '@atlaskit/icon/core/migration/error';
|
|
10
|
+
import { Box, Inline, xcss } from '@atlaskit/primitives';
|
|
10
11
|
import { R300 } from '@atlaskit/theme/colors';
|
|
11
12
|
import { messages } from '../../../messages';
|
|
12
13
|
import { Frame } from '../../BlockCard/components/Frame';
|
|
@@ -27,6 +28,10 @@ var messageStyles = css({
|
|
|
27
28
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
28
29
|
maxHeight: gs(3)
|
|
29
30
|
});
|
|
31
|
+
var boxStyles = xcss({
|
|
32
|
+
paddingLeft: 'space.050',
|
|
33
|
+
paddingRight: 'space.050'
|
|
34
|
+
});
|
|
30
35
|
export var EmbedCardErroredView = function EmbedCardErroredView(_ref) {
|
|
31
36
|
var onRetry = _ref.onRetry,
|
|
32
37
|
_ref$isSelected = _ref.isSelected,
|
|
@@ -43,9 +48,11 @@ export var EmbedCardErroredView = function EmbedCardErroredView(_ref) {
|
|
|
43
48
|
LEGACY_size: "small",
|
|
44
49
|
color: "var(--ds-icon-danger, ".concat(R300, ")"),
|
|
45
50
|
label: "error-icon"
|
|
46
|
-
}), jsx(
|
|
47
|
-
|
|
48
|
-
}, jsx(
|
|
51
|
+
}), jsx(Box, {
|
|
52
|
+
xcss: boxStyles
|
|
53
|
+
}, jsx(Inline, {
|
|
54
|
+
xcss: messageStyles
|
|
55
|
+
}, jsx(FormattedMessage, messages.could_not_load_link))), jsx(Button, {
|
|
49
56
|
testId: "err-view-retry",
|
|
50
57
|
appearance: "link",
|
|
51
58
|
spacing: "none",
|
|
@@ -2,13 +2,14 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import React, { lazy, useCallback } from 'react';
|
|
3
3
|
import { FormattedMessage, useIntl } from 'react-intl-next';
|
|
4
4
|
import AutomationIcon from '@atlaskit/icon/core/automation';
|
|
5
|
+
import { Text } from '@atlaskit/primitives';
|
|
5
6
|
import { useAnalyticsEvents } from '../../../../../common/analytics/generated/use-analytics-events';
|
|
6
7
|
import { ActionName } from '../../../../../constants';
|
|
7
8
|
import { messages } from '../../../../../messages';
|
|
8
9
|
import { useFlexibleUiContext } from '../../../../../state/flexible-ui-context';
|
|
9
10
|
import { useSmartLinkModal } from '../../../../../state/modal';
|
|
10
11
|
import Action from '../action';
|
|
11
|
-
import AutomationManualTriggersGlyph from './
|
|
12
|
+
import AutomationManualTriggersGlyph from './manual-triggers-icon';
|
|
12
13
|
import { getModalContent } from './utils';
|
|
13
14
|
var AutomationModal = /*#__PURE__*/lazy(function () {
|
|
14
15
|
return import( /* webpackChunkName: "@atlaskit-internal_smart-card-automation-modal" */'./automation-manual-triggers/manual-triggers-modal');
|
|
@@ -41,7 +42,9 @@ var AutomationAction = function AutomationAction(props) {
|
|
|
41
42
|
values: {
|
|
42
43
|
name: objectName,
|
|
43
44
|
b: function b(chunks) {
|
|
44
|
-
return /*#__PURE__*/React.createElement(
|
|
45
|
+
return /*#__PURE__*/React.createElement(Text, {
|
|
46
|
+
as: "strong"
|
|
47
|
+
}, chunks);
|
|
45
48
|
},
|
|
46
49
|
br: /*#__PURE__*/React.createElement("br", null)
|
|
47
50
|
}
|
|
@@ -8,6 +8,7 @@ var _excluded = ["actionGroup", "retry", "position", "testId", "title", "icon",
|
|
|
8
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
9
|
import { css, jsx } from '@emotion/react';
|
|
10
10
|
import { FormattedMessage } from 'react-intl-next';
|
|
11
|
+
import { Box } from '@atlaskit/primitives';
|
|
11
12
|
import { SmartLinkAlignment, SmartLinkDirection, SmartLinkSize } from '../../../../../../constants';
|
|
12
13
|
import { LinkIcon } from '../../../elements';
|
|
13
14
|
import { getLinkLineHeight, getLinkSizeStyles, getTruncateStyles } from '../../../utils';
|
|
@@ -21,6 +22,13 @@ var actionStyles = css({
|
|
|
21
22
|
textDecoration: 'underline'
|
|
22
23
|
}
|
|
23
24
|
});
|
|
25
|
+
var actionHoverStyles = css({
|
|
26
|
+
position: 'relative',
|
|
27
|
+
zIndex: 1,
|
|
28
|
+
'&:focus': {
|
|
29
|
+
outlineOffset: "var(--ds-space-negative-025, -2px)"
|
|
30
|
+
}
|
|
31
|
+
});
|
|
24
32
|
var getMessageStyles = function getMessageStyles(size, hasAction) {
|
|
25
33
|
var sizeStyles = getLinkSizeStyles(size);
|
|
26
34
|
return css({
|
|
@@ -38,7 +46,9 @@ var getMessageStyles = function getMessageStyles(size, hasAction) {
|
|
|
38
46
|
':focus': {
|
|
39
47
|
outline: "var(--ds-border-focused, #388BFF)".concat(" solid 2px")
|
|
40
48
|
}
|
|
41
|
-
}
|
|
49
|
+
},
|
|
50
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
51
|
+
hasAction ? actionHoverStyles : '');
|
|
42
52
|
};
|
|
43
53
|
|
|
44
54
|
/**
|
|
@@ -72,14 +82,12 @@ var TitleBlockErroredView = function TitleBlockErroredView(_ref) {
|
|
|
72
82
|
}), title, descriptor && jsx(ElementGroup, {
|
|
73
83
|
direction: SmartLinkDirection.Horizontal,
|
|
74
84
|
align: SmartLinkAlignment.Right
|
|
75
|
-
}, jsx(
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
,
|
|
80
|
-
css: getMessageStyles(size, hasAction),
|
|
85
|
+
}, jsx(Box
|
|
86
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
87
|
+
, {
|
|
88
|
+
xcss: getMessageStyles(size, hasAction),
|
|
81
89
|
onClick: onClick,
|
|
82
|
-
|
|
90
|
+
testId: "".concat(testId, "-errored-view-message"),
|
|
83
91
|
tabIndex: hasAction ? 0 : -1
|
|
84
92
|
}, jsx(FormattedMessage, _extends({}, descriptor, {
|
|
85
93
|
values: values
|
|
@@ -10,7 +10,7 @@ import LinkWarningModal from './LinkWarningModal';
|
|
|
10
10
|
import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
|
|
11
11
|
var PACKAGE_DATA = {
|
|
12
12
|
packageName: "@atlaskit/smart-card",
|
|
13
|
-
packageVersion: "
|
|
13
|
+
packageVersion: "31.0.0",
|
|
14
14
|
componentName: 'linkUrl'
|
|
15
15
|
};
|
|
16
16
|
var Link = withLinkClickedEvent('a');
|
|
@@ -11,7 +11,7 @@ export interface ResolvingProps {
|
|
|
11
11
|
/**
|
|
12
12
|
* Class name for selecting non-flexible resolving block card
|
|
13
13
|
*
|
|
14
|
-
* @deprecated {@link https://hello.
|
|
14
|
+
* @deprecated {@link https://hello.atlassian.net/browse/ENGHEALTH-6878 Internal documentation for deprecation (no external access)}
|
|
15
15
|
* Using this selctor is deprecated as once the flexible block card feature flag is removed, this class will no longer be used.
|
|
16
16
|
*/
|
|
17
17
|
export declare const blockCardResolvingViewClassName = "block-card-resolving-view";
|
|
@@ -3,5 +3,5 @@ import { type WrappedComponentProps } from 'react-intl-next';
|
|
|
3
3
|
import { type CardAppearance, type CardPlatform, type CardProps } from './types';
|
|
4
4
|
export declare const Card: React.ForwardRefExoticComponent<Pick<Omit<Omit<CardProps & WrappedComponentProps, "intl"> & {
|
|
5
5
|
forwardedRef?: React.Ref<any> | undefined;
|
|
6
|
-
}, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "url" | "appearance" | "container" | "children" | "key" | "id" | "placeholder" | "onError" | "onClick" | "testId" | "analyticsContext" | "isSelected" | "inheritDimensions" | "ui" | "actionOptions" | "hoverPreviewOptions" | "onResolve" | "showHoverPreview" | "showAuthTooltip" | "platform" | "forwardedRef" | "fallbackComponent" | "inlinePreloaderStyle" | "isHovered" | "removeTextHighlightingFromTitle" | "resolvingPlaceholder" | "truncateInline" | "
|
|
6
|
+
}, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "url" | "appearance" | "container" | "children" | "key" | "id" | "placeholder" | "onError" | "onClick" | "testId" | "analyticsContext" | "isSelected" | "inheritDimensions" | "ui" | "actionOptions" | "hoverPreviewOptions" | "onResolve" | "showHoverPreview" | "showAuthTooltip" | "platform" | "forwardedRef" | "fallbackComponent" | "inlinePreloaderStyle" | "isHovered" | "removeTextHighlightingFromTitle" | "resolvingPlaceholder" | "truncateInline" | "embedIframeRef" | "embedIframeUrlType" | "frameStyle"> & React.RefAttributes<any>>;
|
|
7
7
|
export type { CardAppearance, CardProps, CardPlatform };
|
|
@@ -138,13 +138,6 @@ export interface InlineProps extends HoverPreviewProps {
|
|
|
138
138
|
truncateInline?: boolean;
|
|
139
139
|
}
|
|
140
140
|
export interface BlockProps extends ActionProps {
|
|
141
|
-
/**
|
|
142
|
-
* When enabled the legacy block card is always used, even if the enableFlexibleBlockCard flag is set to true.
|
|
143
|
-
* Usage is strongly discouraged. This should only be used if there is a specific reason you're
|
|
144
|
-
* unable to use the new flexible block cards.
|
|
145
|
-
* @deprecated {@link https://hello.atlassian.net/browse/ENGHEALTH-15021 Internal documentation for deprecation (no external access)}
|
|
146
|
-
*/
|
|
147
|
-
useLegacyBlockCard?: boolean;
|
|
148
141
|
}
|
|
149
142
|
export interface EmbedProps {
|
|
150
143
|
/**
|
|
@@ -30,7 +30,6 @@ export type CardWithUrlContentProps = {
|
|
|
30
30
|
showAuthTooltip?: boolean;
|
|
31
31
|
analyticsEvents?: AnalyticsFacade;
|
|
32
32
|
placeholder?: string;
|
|
33
|
-
useLegacyBlockCard?: boolean;
|
|
34
33
|
removeTextHighlightingFromTitle?: boolean;
|
|
35
34
|
resolvingPlaceholder?: string;
|
|
36
35
|
truncateInline?: boolean;
|
|
@@ -9,5 +9,5 @@ import { type PopupComponentProps } from '@atlaskit/popup';
|
|
|
9
9
|
* HoverCard border implementation is in ContentContainer where it can
|
|
10
10
|
* change between the default border and prism border during runtime.
|
|
11
11
|
*/
|
|
12
|
-
declare const CustomPopupContainer: React.ForwardRefExoticComponent<Pick<PopupComponentProps, "appearance" | "children" | "style" | "id" | "tabIndex" | "role" | "data-testid" | "
|
|
12
|
+
declare const CustomPopupContainer: React.ForwardRefExoticComponent<Pick<PopupComponentProps, "appearance" | "children" | "style" | "id" | "tabIndex" | "role" | "data-testid" | "xcss" | "shouldFitContainer" | "shouldRenderToParent" | "data-placement"> & React.RefAttributes<HTMLDivElement>>;
|
|
13
13
|
export default CustomPopupContainer;
|
|
@@ -11,7 +11,7 @@ export interface ResolvingProps {
|
|
|
11
11
|
/**
|
|
12
12
|
* Class name for selecting non-flexible resolving block card
|
|
13
13
|
*
|
|
14
|
-
* @deprecated {@link https://hello.
|
|
14
|
+
* @deprecated {@link https://hello.atlassian.net/browse/ENGHEALTH-6878 Internal documentation for deprecation (no external access)}
|
|
15
15
|
* Using this selctor is deprecated as once the flexible block card feature flag is removed, this class will no longer be used.
|
|
16
16
|
*/
|
|
17
17
|
export declare const blockCardResolvingViewClassName = "block-card-resolving-view";
|
|
@@ -3,5 +3,5 @@ import { type WrappedComponentProps } from 'react-intl-next';
|
|
|
3
3
|
import { type CardAppearance, type CardPlatform, type CardProps } from './types';
|
|
4
4
|
export declare const Card: React.ForwardRefExoticComponent<Pick<Omit<Omit<CardProps & WrappedComponentProps, "intl"> & {
|
|
5
5
|
forwardedRef?: React.Ref<any> | undefined;
|
|
6
|
-
}, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "url" | "appearance" | "container" | "children" | "key" | "id" | "placeholder" | "onError" | "onClick" | "testId" | "analyticsContext" | "isSelected" | "inheritDimensions" | "ui" | "actionOptions" | "hoverPreviewOptions" | "onResolve" | "showHoverPreview" | "showAuthTooltip" | "platform" | "forwardedRef" | "fallbackComponent" | "inlinePreloaderStyle" | "isHovered" | "removeTextHighlightingFromTitle" | "resolvingPlaceholder" | "truncateInline" | "
|
|
6
|
+
}, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "url" | "appearance" | "container" | "children" | "key" | "id" | "placeholder" | "onError" | "onClick" | "testId" | "analyticsContext" | "isSelected" | "inheritDimensions" | "ui" | "actionOptions" | "hoverPreviewOptions" | "onResolve" | "showHoverPreview" | "showAuthTooltip" | "platform" | "forwardedRef" | "fallbackComponent" | "inlinePreloaderStyle" | "isHovered" | "removeTextHighlightingFromTitle" | "resolvingPlaceholder" | "truncateInline" | "embedIframeRef" | "embedIframeUrlType" | "frameStyle"> & React.RefAttributes<any>>;
|
|
7
7
|
export type { CardAppearance, CardProps, CardPlatform };
|
|
@@ -138,13 +138,6 @@ export interface InlineProps extends HoverPreviewProps {
|
|
|
138
138
|
truncateInline?: boolean;
|
|
139
139
|
}
|
|
140
140
|
export interface BlockProps extends ActionProps {
|
|
141
|
-
/**
|
|
142
|
-
* When enabled the legacy block card is always used, even if the enableFlexibleBlockCard flag is set to true.
|
|
143
|
-
* Usage is strongly discouraged. This should only be used if there is a specific reason you're
|
|
144
|
-
* unable to use the new flexible block cards.
|
|
145
|
-
* @deprecated {@link https://hello.atlassian.net/browse/ENGHEALTH-15021 Internal documentation for deprecation (no external access)}
|
|
146
|
-
*/
|
|
147
|
-
useLegacyBlockCard?: boolean;
|
|
148
141
|
}
|
|
149
142
|
export interface EmbedProps {
|
|
150
143
|
/**
|
|
@@ -30,7 +30,6 @@ export type CardWithUrlContentProps = {
|
|
|
30
30
|
showAuthTooltip?: boolean;
|
|
31
31
|
analyticsEvents?: AnalyticsFacade;
|
|
32
32
|
placeholder?: string;
|
|
33
|
-
useLegacyBlockCard?: boolean;
|
|
34
33
|
removeTextHighlightingFromTitle?: boolean;
|
|
35
34
|
resolvingPlaceholder?: string;
|
|
36
35
|
truncateInline?: boolean;
|
|
@@ -9,5 +9,5 @@ import { type PopupComponentProps } from '@atlaskit/popup';
|
|
|
9
9
|
* HoverCard border implementation is in ContentContainer where it can
|
|
10
10
|
* change between the default border and prism border during runtime.
|
|
11
11
|
*/
|
|
12
|
-
declare const CustomPopupContainer: React.ForwardRefExoticComponent<Pick<PopupComponentProps, "appearance" | "children" | "style" | "id" | "tabIndex" | "role" | "data-testid" | "
|
|
12
|
+
declare const CustomPopupContainer: React.ForwardRefExoticComponent<Pick<PopupComponentProps, "appearance" | "children" | "style" | "id" | "tabIndex" | "role" | "data-testid" | "xcss" | "shouldFitContainer" | "shouldRenderToParent" | "data-placement"> & React.RefAttributes<HTMLDivElement>>;
|
|
13
13
|
export default CustomPopupContainer;
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|