@atlaskit/smart-card 28.1.1 → 28.1.3
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/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/action-group/index.js +0 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/ai-footer-block/resolved/ai-footer-metadata.js +0 -1
- package/dist/cjs/view/FlexibleCard/components/container/index.js +0 -1
- package/dist/cjs/view/HoverCard/components/HoverCardContent.js +2 -2
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/action-group/index.js +0 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/ai-footer-block/resolved/ai-footer-metadata.js +0 -1
- package/dist/es2019/view/FlexibleCard/components/container/index.js +0 -1
- package/dist/es2019/view/HoverCard/components/HoverCardContent.js +2 -2
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/FlexibleCard/components/blocks/action-group/index.js +0 -1
- package/dist/esm/view/FlexibleCard/components/blocks/ai-footer-block/resolved/ai-footer-metadata.js +0 -1
- package/dist/esm/view/FlexibleCard/components/container/index.js +0 -1
- package/dist/esm/view/HoverCard/components/HoverCardContent.js +2 -2
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/package.json +5 -5
- /package/dist/cjs/view/HoverCard/components/views/resolved/{redesign.js → index.js} +0 -0
- /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
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 28.1.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#136861](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/136861)
|
|
8
|
+
[`d640bacacaa13`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d640bacacaa13) -
|
|
9
|
+
bumped react-magnetic-di to 3.1.4
|
|
10
|
+
|
|
11
|
+
## 28.1.2
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [#140089](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/140089)
|
|
16
|
+
[`5377b7d8df2f4`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5377b7d8df2f4) -
|
|
17
|
+
Hover card redesign file rename
|
|
18
|
+
|
|
3
19
|
## 28.1.1
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -22,7 +22,7 @@ var ANALYTICS_CHANNEL = exports.ANALYTICS_CHANNEL = 'media';
|
|
|
22
22
|
var context = exports.context = {
|
|
23
23
|
componentName: 'smart-cards',
|
|
24
24
|
packageName: "@atlaskit/smart-card",
|
|
25
|
-
packageVersion: "28.1.
|
|
25
|
+
packageVersion: "28.1.3"
|
|
26
26
|
};
|
|
27
27
|
var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
28
28
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -22,7 +22,6 @@ var _messages = require("../../../../../messages");
|
|
|
22
22
|
var _flexibleUiContext = require("../../../../../state/flexible-ui-context");
|
|
23
23
|
var _actionGroupItem = _interopRequireDefault(require("./action-group-item"));
|
|
24
24
|
var _utils2 = require("../utils");
|
|
25
|
-
var _reactMagneticDi = require("react-magnetic-di");
|
|
26
25
|
var _excluded = ["triggerRef"];
|
|
27
26
|
/**
|
|
28
27
|
* @jsxRuntime classic
|
package/dist/cjs/view/FlexibleCard/components/blocks/ai-footer-block/resolved/ai-footer-metadata.js
CHANGED
|
@@ -7,7 +7,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.AIFooterMetadata = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
|
|
10
|
-
var _reactMagneticDi = require("react-magnetic-di");
|
|
11
10
|
var _reactIntlNext = require("react-intl-next");
|
|
12
11
|
var _primitives = require("@atlaskit/primitives");
|
|
13
12
|
var _aiIcon = _interopRequireDefault(require("../../../../../common/ai-icon"));
|
|
@@ -16,7 +16,6 @@ var _layeredLink = _interopRequireDefault(require("./layered-link"));
|
|
|
16
16
|
var _hoverCardControl = _interopRequireDefault(require("./hover-card-control"));
|
|
17
17
|
var _utils = require("../../../../state/flexible-ui-context/utils");
|
|
18
18
|
var _colors = require("@atlaskit/theme/colors");
|
|
19
|
-
var _reactMagneticDi = require("react-magnetic-di");
|
|
20
19
|
var _templateObject;
|
|
21
20
|
/**
|
|
22
21
|
* @jsxRuntime classic
|
|
@@ -18,7 +18,7 @@ var _styled = require("../styled");
|
|
|
18
18
|
var _utils2 = require("../utils");
|
|
19
19
|
var _resolving = _interopRequireDefault(require("./views/resolving"));
|
|
20
20
|
var _unauthorised = _interopRequireDefault(require("./views/unauthorised"));
|
|
21
|
-
var
|
|
21
|
+
var _resolved = _interopRequireDefault(require("./views/resolved"));
|
|
22
22
|
var _click = require("../../../utils/analytics/click");
|
|
23
23
|
var _store = require("../../../state/store");
|
|
24
24
|
var _forbidden = _interopRequireDefault(require("./views/forbidden"));
|
|
@@ -151,7 +151,7 @@ var HoverCardContent = function HoverCardContent(_ref) {
|
|
|
151
151
|
});
|
|
152
152
|
}
|
|
153
153
|
if (cardState.status === 'resolved') {
|
|
154
|
-
return (0, _react.jsx)(
|
|
154
|
+
return (0, _react.jsx)(_resolved.default, {
|
|
155
155
|
analytics: analytics,
|
|
156
156
|
cardState: cardState,
|
|
157
157
|
extensionKey: extensionKey,
|
|
@@ -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: "28.1.
|
|
20
|
+
packageVersion: "28.1.3",
|
|
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: "28.1.
|
|
7
|
+
packageVersion: "28.1.3"
|
|
8
8
|
};
|
|
9
9
|
export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
10
10
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -19,7 +19,6 @@ import { messages } from '../../../../../messages';
|
|
|
19
19
|
import { useFlexibleUiContext, useFlexibleUiOptionContext } from '../../../../../state/flexible-ui-context';
|
|
20
20
|
import ActionGroupItem from './action-group-item';
|
|
21
21
|
import { filterActionItems } from '../utils';
|
|
22
|
-
import { di } from 'react-magnetic-di';
|
|
23
22
|
const styles = css({
|
|
24
23
|
display: 'inline-flex',
|
|
25
24
|
lineHeight: '1rem',
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import Tooltip from '@atlaskit/tooltip';
|
|
3
|
-
import { di } from 'react-magnetic-di';
|
|
4
3
|
import { FormattedMessage } from 'react-intl-next';
|
|
5
4
|
import { Box, Inline } from '@atlaskit/primitives';
|
|
6
5
|
import AIIcon from '../../../../../common/ai-icon';
|
|
@@ -12,7 +12,6 @@ import LayeredLink from './layered-link';
|
|
|
12
12
|
import HoverCardControl from './hover-card-control';
|
|
13
13
|
import { isFlexUiPreviewPresent } from '../../../../state/flexible-ui-context/utils';
|
|
14
14
|
import { N40 } from '@atlaskit/theme/colors';
|
|
15
|
-
import { di } from 'react-magnetic-di';
|
|
16
15
|
const elevationStyles = css({
|
|
17
16
|
border: `1px solid ${`var(--ds-border, ${N40})`}`,
|
|
18
17
|
borderRadius: "var(--ds-border-radius-200, 8px)",
|
|
@@ -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';
|
|
@@ -139,7 +139,7 @@ const HoverCardContent = ({
|
|
|
139
139
|
});
|
|
140
140
|
}
|
|
141
141
|
if (cardState.status === 'resolved') {
|
|
142
|
-
return jsx(
|
|
142
|
+
return jsx(HoverCardResolvedView, {
|
|
143
143
|
analytics: analytics,
|
|
144
144
|
cardState: cardState,
|
|
145
145
|
extensionKey: extensionKey,
|
|
@@ -7,7 +7,7 @@ import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-m
|
|
|
7
7
|
import LinkWarningModal from './LinkWarningModal';
|
|
8
8
|
const PACKAGE_DATA = {
|
|
9
9
|
packageName: "@atlaskit/smart-card",
|
|
10
|
-
packageVersion: "28.1.
|
|
10
|
+
packageVersion: "28.1.3",
|
|
11
11
|
componentName: 'linkUrl'
|
|
12
12
|
};
|
|
13
13
|
const Link = withLinkClickedEvent('a');
|
|
@@ -15,7 +15,7 @@ export var ANALYTICS_CHANNEL = 'media';
|
|
|
15
15
|
export var context = {
|
|
16
16
|
componentName: 'smart-cards',
|
|
17
17
|
packageName: "@atlaskit/smart-card",
|
|
18
|
-
packageVersion: "28.1.
|
|
18
|
+
packageVersion: "28.1.3"
|
|
19
19
|
};
|
|
20
20
|
export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
21
21
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -22,7 +22,6 @@ import { messages } from '../../../../../messages';
|
|
|
22
22
|
import { useFlexibleUiContext, useFlexibleUiOptionContext } from '../../../../../state/flexible-ui-context';
|
|
23
23
|
import ActionGroupItem from './action-group-item';
|
|
24
24
|
import { filterActionItems } from '../utils';
|
|
25
|
-
import { di } from 'react-magnetic-di';
|
|
26
25
|
var styles = css({
|
|
27
26
|
display: 'inline-flex',
|
|
28
27
|
lineHeight: '1rem',
|
package/dist/esm/view/FlexibleCard/components/blocks/ai-footer-block/resolved/ai-footer-metadata.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import Tooltip from '@atlaskit/tooltip';
|
|
3
|
-
import { di } from 'react-magnetic-di';
|
|
4
3
|
import { FormattedMessage } from 'react-intl-next';
|
|
5
4
|
import { Box, Inline } from '@atlaskit/primitives';
|
|
6
5
|
import AIIcon from '../../../../../common/ai-icon';
|
|
@@ -14,7 +14,6 @@ import LayeredLink from './layered-link';
|
|
|
14
14
|
import HoverCardControl from './hover-card-control';
|
|
15
15
|
import { isFlexUiPreviewPresent } from '../../../../state/flexible-ui-context/utils';
|
|
16
16
|
import { N40 } from '@atlaskit/theme/colors';
|
|
17
|
-
import { di } from 'react-magnetic-di';
|
|
18
17
|
var elevationStyles = css({
|
|
19
18
|
border: "1px solid ".concat("var(--ds-border, ".concat(N40, ")")),
|
|
20
19
|
borderRadius: "var(--ds-border-radius-200, 8px)",
|
|
@@ -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,
|
|
@@ -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.3",
|
|
14
14
|
componentName: 'linkUrl'
|
|
15
15
|
};
|
|
16
16
|
var Link = withLinkClickedEvent('a');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/smart-card",
|
|
3
|
-
"version": "28.1.
|
|
3
|
+
"version": "28.1.3",
|
|
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.18.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",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"react-error-boundary": "^3.1.3",
|
|
74
74
|
"react-lazily-render": "^1.2.0",
|
|
75
75
|
"react-loadable": "^5.1.0",
|
|
76
|
-
"react-magnetic-di": "^
|
|
76
|
+
"react-magnetic-di": "^3.1.4",
|
|
77
77
|
"react-render-image": "^1.1.3",
|
|
78
78
|
"use-sync-external-store": "^1.2.0",
|
|
79
79
|
"uuid": "^3.1.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": "*",
|
|
File without changes
|
|
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
|