@atlaskit/smart-card 28.1.0 → 28.1.2
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 +16 -0
- package/dist/cjs/extractors/index.js +8 -8
- package/dist/cjs/ssr.js +1 -1
- package/dist/cjs/state/hooks/use-ai-summary/ai-summary-service/index.js +3 -3
- package/dist/cjs/state/hooks/use-ai-summary/ai-summary-service/readStream.js +3 -3
- package/dist/cjs/state/hooks/use-invoke-client-action/index.js +1 -1
- package/dist/cjs/state/modal/index.js +1 -1
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/utils/flexible.js +1 -1
- package/dist/cjs/utils/index.js +1 -1
- package/dist/cjs/utils/mocks.js +1 -1
- package/dist/cjs/view/BlockCard/components/ActionList.js +1 -1
- package/dist/cjs/view/BlockCard/views/flexible/FlexibleErroredView.js +1 -1
- package/dist/cjs/view/BlockCard/views/flexible/FlexibleForbiddenView.js +1 -1
- package/dist/cjs/view/BlockCard/views/flexible/FlexibleNotFoundView.js +1 -1
- package/dist/cjs/view/BlockCard/views/flexible/FlexibleResolvedView.js +1 -1
- package/dist/cjs/view/Card/index.js +1 -1
- package/dist/cjs/view/CardWithData/component.js +1 -1
- package/dist/cjs/view/CardWithData/loader.js +2 -2
- package/dist/cjs/view/CardWithUrl/component-lazy/LazyIntersectionObserverCard.js +1 -1
- package/dist/cjs/view/CardWithUrl/component-lazy/LazyLazilyRenderCard.js +1 -1
- package/dist/cjs/view/CardWithUrl/component.js +1 -1
- package/dist/cjs/view/CardWithUrl/loader.js +1 -1
- package/dist/cjs/view/EmbedCard/EmbedResizeMessageListener.js +1 -1
- package/dist/cjs/view/EmbedCard/components/Frame.js +1 -1
- package/dist/cjs/view/EmbedCard/components/styled.js +1 -1
- package/dist/cjs/view/EmbedCard/views/forbidden-view/index.js +1 -1
- package/dist/cjs/view/EmbedCard/views/not-found-view/index.js +1 -1
- package/dist/cjs/view/EmbedCard/views/unauthorized-view/index.js +1 -1
- package/dist/cjs/view/EmbedCard/views/unresolved-view/index.js +1 -1
- package/dist/cjs/view/EmbedModal/components/analytics/index.js +1 -1
- package/dist/cjs/view/EmbedModal/components/error-boundary/index.js +1 -1
- package/dist/cjs/view/EmbedModal/components/link-info/index.js +1 -1
- package/dist/cjs/view/EmbedModal/index.js +1 -1
- package/dist/cjs/view/EmbedModal/utils.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/actions/action/action-button/index.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/actions/action/server-action/index.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/actions/ai-summary-action/ai-summarise-action.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/actions/ai-summary-action/ai-summary-action-component.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/actions/ai-summary-action/copy-summary-action.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/test-utils.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/main.js +5 -5
- package/dist/cjs/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/manual-triggers-form/main.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/main.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/menu-context/main.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/body/main.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/actions/automation-action/index.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/actions/copy-link-action/index.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/actions/download-action/index.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/actions/follow-action/index.js +2 -19
- package/dist/cjs/view/FlexibleCard/components/actions/preview-action/index.js +5 -16
- package/dist/cjs/view/FlexibleCard/components/actions/view-related-links-action/index.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/action-block/index.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/action-group/action-group-item/index.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/ai-summary-block/resolved/index.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/footer-block/resolved/index.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/related-urls-block/index.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/related-urls-block/resolved/related-url-list/index.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/related-urls-block/resolved/related-url-list/related-url-item/index.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/related-urls-block/resolved/related-url-list/resolved-result-stack/index.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/title-block/index.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/utils.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/common/atlaskit-icon/index.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/common/motion-wrapper/index.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/container/hover-card-control/index.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/container/index.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/elements/icon/index.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/elements/link/index.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/error-boundary/index.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-item/index.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/elements/utils.js +1 -1
- package/dist/cjs/view/FlexibleCard/index.js +1 -1
- package/dist/cjs/view/HoverCard/components/HoverCardComponent.js +1 -1
- package/dist/cjs/view/HoverCard/components/HoverCardContent.js +3 -3
- package/dist/cjs/view/HoverCard/components/ImagePreview.js +1 -1
- package/dist/cjs/view/HoverCard/components/views/resolved/{redesign.js → index.js} +1 -1
- package/dist/cjs/view/HoverCard/components/views/unauthorised/index.js +1 -1
- package/dist/cjs/view/InlineCard/ErroredView/index.js +1 -1
- package/dist/cjs/view/InlineCard/ForbiddenView/index.js +1 -1
- package/dist/cjs/view/InlineCard/Frame/index.js +1 -1
- package/dist/cjs/view/InlineCard/IconAndTitleLayout/index.js +1 -1
- package/dist/cjs/view/InlineCard/ResolvedView/index.js +1 -1
- package/dist/cjs/view/InlineCard/ResolvingView/index.js +1 -1
- package/dist/cjs/view/InlineCard/UnauthorisedView/index.js +1 -1
- package/dist/cjs/view/InlineCard/index.js +1 -1
- package/dist/cjs/view/LinkUrl/LinkWarningModal/index.js +1 -1
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/cjs/view/LinkView/index.js +1 -1
- package/dist/cjs/view/RelatedLinksModal/components/RelatedLinksBaseModal.js +1 -1
- package/dist/cjs/view/RelatedLinksModal/index.js +4 -4
- package/dist/cjs/view/common/UnauthorisedViewContent.js +1 -1
- package/dist/cjs/view/common/stop-propagation/index.js +1 -1
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/actions/follow-action/index.js +1 -18
- package/dist/es2019/view/FlexibleCard/components/actions/preview-action/index.js +4 -15
- package/dist/es2019/view/HoverCard/components/HoverCardContent.js +2 -2
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/extractors/index.js +8 -8
- package/dist/esm/state/hooks/use-ai-summary/ai-summary-service/index.js +3 -3
- package/dist/esm/state/hooks/use-ai-summary/ai-summary-service/readStream.js +3 -3
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/utils/mocks.js +1 -1
- package/dist/esm/view/Card/index.js +1 -1
- package/dist/esm/view/CardWithData/component.js +1 -1
- package/dist/esm/view/CardWithData/loader.js +1 -1
- package/dist/esm/view/EmbedCard/EmbedResizeMessageListener.js +1 -1
- package/dist/esm/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/test-utils.js +1 -1
- package/dist/esm/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/main.js +4 -4
- package/dist/esm/view/FlexibleCard/components/actions/follow-action/index.js +1 -18
- package/dist/esm/view/FlexibleCard/components/actions/preview-action/index.js +4 -15
- package/dist/esm/view/HoverCard/components/HoverCardContent.js +2 -2
- package/dist/esm/view/InlineCard/ErroredView/index.js +1 -1
- package/dist/esm/view/InlineCard/ForbiddenView/index.js +1 -1
- package/dist/esm/view/InlineCard/IconAndTitleLayout/index.js +1 -1
- package/dist/esm/view/InlineCard/ResolvedView/index.js +1 -1
- package/dist/esm/view/InlineCard/ResolvingView/index.js +1 -1
- package/dist/esm/view/InlineCard/UnauthorisedView/index.js +1 -1
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/esm/view/LinkView/index.js +1 -1
- package/dist/esm/view/RelatedLinksModal/index.js +3 -3
- package/package.json +4 -7
- /package/dist/es2019/view/HoverCard/components/views/resolved/{redesign.js → index.js} +0 -0
- /package/dist/esm/view/HoverCard/components/views/resolved/{redesign.js → index.js} +0 -0
- /package/dist/types/view/HoverCard/components/views/resolved/{redesign.d.ts → index.d.ts} +0 -0
- /package/dist/types-ts4.5/view/HoverCard/components/views/resolved/{redesign.d.ts → index.d.ts} +0 -0
|
@@ -5,7 +5,7 @@ import _inherits from "@babel/runtime/helpers/inherits";
|
|
|
5
5
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
6
6
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
7
7
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
8
|
-
function _createSuper(
|
|
8
|
+
function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
|
|
9
9
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
10
10
|
import React from 'react';
|
|
11
11
|
import { embedHeaderHeight } from './components/styled';
|
|
@@ -6,7 +6,7 @@ import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
|
6
6
|
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
7
7
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
8
8
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
9
|
-
function _createSuper(
|
|
9
|
+
function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
|
|
10
10
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
11
11
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
12
12
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
@@ -152,7 +152,7 @@ export var ManualRulesContainer = function ManualRulesContainer(props) {
|
|
|
152
152
|
};
|
|
153
153
|
var invokeRule = /*#__PURE__*/function () {
|
|
154
154
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(ruleId, objects, userInputs) {
|
|
155
|
-
var rule, response,
|
|
155
|
+
var rule, response, failedObjects, successfulObjects;
|
|
156
156
|
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
157
157
|
while (1) switch (_context2.prev = _context2.next) {
|
|
158
158
|
case 0:
|
|
@@ -170,15 +170,15 @@ export var ManualRulesContainer = function ManualRulesContainer(props) {
|
|
|
170
170
|
return invokeManuallyTriggeredRule(site, ruleId, objects, userInputs);
|
|
171
171
|
case 7:
|
|
172
172
|
response = _context2.sent;
|
|
173
|
-
|
|
173
|
+
failedObjects = getFailedObjects(response);
|
|
174
174
|
setInvokingRuleId(null);
|
|
175
|
-
if (
|
|
175
|
+
if (failedObjects.length === 0) {
|
|
176
176
|
if (onRuleInvocationSuccess) {
|
|
177
177
|
onRuleInvocationSuccess(ruleId, objects);
|
|
178
178
|
}
|
|
179
179
|
} else {
|
|
180
180
|
successfulObjects = getSuccessfulObjects(response);
|
|
181
|
-
handleInvocationFailure(ruleId, successfulObjects,
|
|
181
|
+
handleInvocationFailure(ruleId, successfulObjects, failedObjects);
|
|
182
182
|
}
|
|
183
183
|
_context2.next = 17;
|
|
184
184
|
break;
|
|
@@ -1,15 +1,12 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
var _excluded = ["value", "isProject"];
|
|
4
|
-
import InviteTeamIcon from '@atlaskit/icon/glyph/invite-team';
|
|
5
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
4
|
import React from 'react';
|
|
7
5
|
import { FormattedMessage } from 'react-intl-next';
|
|
8
6
|
import { ActionName } from '../../../../../constants';
|
|
9
7
|
import { messages } from '../../../../../messages';
|
|
10
8
|
import { useFlexibleUiContext } from '../../../../../state/flexible-ui-context';
|
|
11
9
|
import ServerAction from '../action/server-action';
|
|
12
|
-
import UnfollowIcon from './unfollow-icon';
|
|
13
10
|
import { importIcon } from '../../utils';
|
|
14
11
|
import { getFollowActionErrorMessage } from './utils';
|
|
15
12
|
var importIconMapper = {
|
|
@@ -37,12 +34,6 @@ var getIcon = function getIcon(stackIconType) {
|
|
|
37
34
|
}
|
|
38
35
|
return importIcon(importFn);
|
|
39
36
|
};
|
|
40
|
-
var getIconFF = function getIconFF(iconFFEnabled, defaultIcon) {
|
|
41
|
-
if (fg('platform.linking-platform.smart-card.action-icon-redesign')) {
|
|
42
|
-
return iconFFEnabled;
|
|
43
|
-
}
|
|
44
|
-
return defaultIcon;
|
|
45
|
-
};
|
|
46
37
|
var FollowAction = function FollowAction(props) {
|
|
47
38
|
var _context$actions;
|
|
48
39
|
var context = useFlexibleUiContext();
|
|
@@ -63,20 +54,12 @@ var FollowAction = function FollowAction(props) {
|
|
|
63
54
|
var goalTooltipMessage = value ? messages.follow_goal_description : messages.unfollow_goal_description;
|
|
64
55
|
var stackTooltipMessage = isProject ? projectTooltipMessage : goalTooltipMessage;
|
|
65
56
|
var tooltipMessage = isStackItem ? stackTooltipMessage : message;
|
|
66
|
-
|
|
67
|
-
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19716
|
|
68
|
-
var icon = value ? /*#__PURE__*/React.createElement(InviteTeamIcon, {
|
|
69
|
-
label: "Follow"
|
|
70
|
-
}) : /*#__PURE__*/React.createElement(UnfollowIcon, {
|
|
71
|
-
label: "Unfollow"
|
|
72
|
-
});
|
|
73
57
|
var stackIconType = isProject ? 'projects' : 'goal';
|
|
74
58
|
var ImportedIcon = getIcon(stackIconType);
|
|
75
|
-
var
|
|
59
|
+
var followIcon = /*#__PURE__*/React.createElement(ImportedIcon, {
|
|
76
60
|
label: "Follow",
|
|
77
61
|
testId: "smart-action-follow-action-".concat(stackIconType, "-icon")
|
|
78
62
|
});
|
|
79
|
-
var followIcon = isStackItem ? stackIcon : getIconFF(stackIcon, icon);
|
|
80
63
|
var handleError = function handleError() {
|
|
81
64
|
var onErrorCallback = props.onError;
|
|
82
65
|
var errorMessage = getFollowActionErrorMessage(isProject, value);
|
|
@@ -6,9 +6,7 @@ var _excluded = ["onClick"];
|
|
|
6
6
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
7
7
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
8
8
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
9
|
-
import VidFullScreenOnIcon from '@atlaskit/icon/glyph/vid-full-screen-on';
|
|
10
9
|
import MediaServicesActualSizeIcon from '@atlaskit/icon/glyph/media-services/actual-size';
|
|
11
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
12
10
|
import React, { useCallback } from 'react';
|
|
13
11
|
import { FormattedMessage } from 'react-intl-next';
|
|
14
12
|
import { ActionName } from '../../../../../constants';
|
|
@@ -17,15 +15,6 @@ import { useFlexibleUiAnalyticsContext, useFlexibleUiContext } from '../../../..
|
|
|
17
15
|
import useInvokeClientAction from '../../../../../state/hooks/use-invoke-client-action';
|
|
18
16
|
import { openEmbedModalWithFlexibleUiIcon } from '../../utils';
|
|
19
17
|
import Action from '../action';
|
|
20
|
-
var getIconFF = function getIconFF() {
|
|
21
|
-
if (fg('platform.linking-platform.smart-card.action-icon-redesign')) {
|
|
22
|
-
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-20003
|
|
23
|
-
return MediaServicesActualSizeIcon;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-20003
|
|
27
|
-
return VidFullScreenOnIcon;
|
|
28
|
-
};
|
|
29
18
|
var PreviewAction = function PreviewAction(_ref) {
|
|
30
19
|
var _context$actions;
|
|
31
20
|
var onClickCallback = _ref.onClick,
|
|
@@ -72,12 +61,12 @@ var PreviewAction = function PreviewAction(_ref) {
|
|
|
72
61
|
}
|
|
73
62
|
}, [analytics, data, invoke, onClickCallback]);
|
|
74
63
|
var isStackItem = props.as === 'stack-item';
|
|
75
|
-
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-20003
|
|
76
|
-
var Icon = isStackItem ? MediaServicesActualSizeIcon : getIconFF();
|
|
77
64
|
var tooltipMessage = isStackItem ? messages.preview_description : messages.preview_improved;
|
|
78
65
|
return data ? /*#__PURE__*/React.createElement(Action, _extends({
|
|
79
|
-
content: /*#__PURE__*/React.createElement(FormattedMessage, messages.preview_improved)
|
|
80
|
-
|
|
66
|
+
content: /*#__PURE__*/React.createElement(FormattedMessage, messages.preview_improved)
|
|
67
|
+
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-20003
|
|
68
|
+
,
|
|
69
|
+
icon: /*#__PURE__*/React.createElement(MediaServicesActualSizeIcon, {
|
|
81
70
|
label: "Open preview"
|
|
82
71
|
}),
|
|
83
72
|
onClick: onClick,
|
|
@@ -15,7 +15,7 @@ import { flexibleUiOptions, titleBlockCss } from '../styled';
|
|
|
15
15
|
import { getMetadata } from '../utils';
|
|
16
16
|
import HoverCardLoadingView from './views/resolving';
|
|
17
17
|
import HoverCardUnauthorisedView from './views/unauthorised';
|
|
18
|
-
import
|
|
18
|
+
import HoverCardResolvedView from './views/resolved';
|
|
19
19
|
import { fireLinkClickedEvent } from '../../../utils/analytics/click';
|
|
20
20
|
import { useSmartCardState } from '../../../state/store';
|
|
21
21
|
import HoverCardForbiddenView from './views/forbidden';
|
|
@@ -140,7 +140,7 @@ var HoverCardContent = function HoverCardContent(_ref) {
|
|
|
140
140
|
});
|
|
141
141
|
}
|
|
142
142
|
if (cardState.status === 'resolved') {
|
|
143
|
-
return jsx(
|
|
143
|
+
return jsx(HoverCardResolvedView, {
|
|
144
144
|
analytics: analytics,
|
|
145
145
|
cardState: cardState,
|
|
146
146
|
extensionKey: extensionKey,
|
|
@@ -5,7 +5,7 @@ import _inherits from "@babel/runtime/helpers/inherits";
|
|
|
5
5
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
6
6
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
7
7
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
8
|
-
function _createSuper(
|
|
8
|
+
function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
|
|
9
9
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
10
10
|
import React from 'react';
|
|
11
11
|
import { R300 } from '@atlaskit/theme/colors';
|
|
@@ -6,7 +6,7 @@ import _inherits from "@babel/runtime/helpers/inherits";
|
|
|
6
6
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
7
7
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
8
8
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
9
|
-
function _createSuper(
|
|
9
|
+
function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
|
|
10
10
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
11
11
|
import React from 'react';
|
|
12
12
|
import { R400, N500 } from '@atlaskit/theme/colors';
|
|
@@ -5,7 +5,7 @@ import _inherits from "@babel/runtime/helpers/inherits";
|
|
|
5
5
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
6
6
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
7
7
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
8
|
-
function _createSuper(
|
|
8
|
+
function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
|
|
9
9
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
10
10
|
import React from 'react';
|
|
11
11
|
import ImageLoader from 'react-render-image';
|
|
@@ -3,7 +3,7 @@ import _createClass from "@babel/runtime/helpers/createClass";
|
|
|
3
3
|
import _inherits from "@babel/runtime/helpers/inherits";
|
|
4
4
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
5
5
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
6
|
-
function _createSuper(
|
|
6
|
+
function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
|
|
7
7
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
8
8
|
import React from 'react';
|
|
9
9
|
import { Frame } from '../Frame';
|
|
@@ -3,7 +3,7 @@ import _createClass from "@babel/runtime/helpers/createClass";
|
|
|
3
3
|
import _inherits from "@babel/runtime/helpers/inherits";
|
|
4
4
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
5
5
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
6
|
-
function _createSuper(
|
|
6
|
+
function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
|
|
7
7
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
8
8
|
import React from 'react';
|
|
9
9
|
import { Frame } from '../Frame';
|
|
@@ -6,7 +6,7 @@ import _inherits from "@babel/runtime/helpers/inherits";
|
|
|
6
6
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
7
7
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
8
8
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
9
|
-
function _createSuper(
|
|
9
|
+
function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
|
|
10
10
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
11
11
|
import Button from '@atlaskit/button';
|
|
12
12
|
import LockIcon from '@atlaskit/icon/glyph/lock-filled';
|
|
@@ -10,7 +10,7 @@ import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-m
|
|
|
10
10
|
import LinkWarningModal from './LinkWarningModal';
|
|
11
11
|
var PACKAGE_DATA = {
|
|
12
12
|
packageName: "@atlaskit/smart-card",
|
|
13
|
-
packageVersion: "28.1.
|
|
13
|
+
packageVersion: "28.1.2",
|
|
14
14
|
componentName: 'linkUrl'
|
|
15
15
|
};
|
|
16
16
|
var Link = withLinkClickedEvent('a');
|
|
@@ -4,7 +4,7 @@ import _createClass from "@babel/runtime/helpers/createClass";
|
|
|
4
4
|
import _inherits from "@babel/runtime/helpers/inherits";
|
|
5
5
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
6
6
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
7
|
-
function _createSuper(
|
|
7
|
+
function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
|
|
8
8
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
9
9
|
import React from 'react';
|
|
10
10
|
import { Frame } from '../InlineCard/Frame';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
2
2
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
3
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
4
|
-
function _createForOfIteratorHelper(
|
|
5
|
-
function _unsupportedIterableToArray(
|
|
6
|
-
function _arrayLikeToArray(
|
|
4
|
+
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
|
|
5
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
6
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
7
7
|
import React, { useCallback, useEffect, useState } from 'react';
|
|
8
8
|
import { unstable_batchedUpdates } from 'react-dom';
|
|
9
9
|
import { extractLink } from '@atlaskit/link-extractors';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/smart-card",
|
|
3
|
-
"version": "28.1.
|
|
3
|
+
"version": "28.1.2",
|
|
4
4
|
"description": "Smart card component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"@atlaskit/form": "^10.5.0",
|
|
37
37
|
"@atlaskit/frontend-utilities": "^2.7.0",
|
|
38
38
|
"@atlaskit/heading": "^2.4.0",
|
|
39
|
-
"@atlaskit/icon": "^22.
|
|
39
|
+
"@atlaskit/icon": "^22.17.0",
|
|
40
40
|
"@atlaskit/icon-file-type": "^6.5.0",
|
|
41
41
|
"@atlaskit/icon-object": "^6.5.0",
|
|
42
42
|
"@atlaskit/icon-priority": "^6.3.0",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"@atlaskit/popup": "^1.25.0",
|
|
55
55
|
"@atlaskit/primitives": "^12.1.0",
|
|
56
56
|
"@atlaskit/section-message": "^6.6.0",
|
|
57
|
-
"@atlaskit/select": "^17.
|
|
57
|
+
"@atlaskit/select": "^17.17.0",
|
|
58
58
|
"@atlaskit/spinner": "^16.3.0",
|
|
59
59
|
"@atlaskit/textarea": "^5.6.0",
|
|
60
60
|
"@atlaskit/textfield": "^6.5.0",
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
"@atlaskit/analytics-listeners": "^8.11.0",
|
|
91
91
|
"@atlaskit/css-reset": "^6.10.0",
|
|
92
92
|
"@atlaskit/link-test-helpers": "^7.5.0",
|
|
93
|
-
"@atlaskit/media-test-helpers": "^34.
|
|
93
|
+
"@atlaskit/media-test-helpers": "^34.2.0",
|
|
94
94
|
"@atlaskit/ssr": "*",
|
|
95
95
|
"@atlaskit/visual-regression": "*",
|
|
96
96
|
"@atlassian/analytics-tooling": "*",
|
|
@@ -150,9 +150,6 @@
|
|
|
150
150
|
".": "./src/index.ts"
|
|
151
151
|
},
|
|
152
152
|
"platform-feature-flags": {
|
|
153
|
-
"platform.linking-platform.smart-card.action-icon-redesign": {
|
|
154
|
-
"type": "boolean"
|
|
155
|
-
},
|
|
156
153
|
"platform.linking-platform.smart-card.enable-view-related-urls-action": {
|
|
157
154
|
"type": "boolean"
|
|
158
155
|
},
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/types-ts4.5/view/HoverCard/components/views/resolved/{redesign.d.ts → index.d.ts}
RENAMED
|
File without changes
|