@atlaskit/smart-card 26.57.3 → 26.58.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/FlexibleCard/components/blocks/ai-summary-block/resolved/index.js +6 -4
- 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/ai-summary-block/resolved/index.js +6 -4
- 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/ai-summary-block/resolved/index.js +6 -4
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/types/view/Card/index.d.ts +1 -1
- package/dist/types/view/LinkUrl/index.d.ts +1 -3
- package/dist/types-ts4.5/view/Card/index.d.ts +1 -1
- package/dist/types-ts4.5/view/LinkUrl/index.d.ts +1 -3
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 26.58.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#94308](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/94308) [`a76386ed89a1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a76386ed89a1) - Add the showFooterMetadata and showErrorIndicator props to AISummaryBlock
|
|
8
|
+
|
|
9
|
+
## 26.57.4
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#93295](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/93295) [`b27eaeee5884`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b27eaeee5884) - [ux] Sort ActionBlock actions with AISummary
|
|
14
|
+
- [#92007](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/92007) [`85525725cb0d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/85525725cb0d) - Migrated to the new button component
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 26.57.3
|
|
4
18
|
|
|
5
19
|
### 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: "26.
|
|
25
|
+
packageVersion: "26.58.0"
|
|
26
26
|
};
|
|
27
27
|
var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
28
28
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -30,6 +30,7 @@ var _react2 = require("@emotion/react");
|
|
|
30
30
|
var _featureDiscovery = _interopRequireDefault(require("../feature-discovery"));
|
|
31
31
|
var _flexibleUiContext = require("../../../../../../state/flexible-ui-context");
|
|
32
32
|
var _linkProvider = require("@atlaskit/link-provider");
|
|
33
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
33
34
|
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); }
|
|
34
35
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(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 && Object.prototype.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; }
|
|
35
36
|
var AISummaryBlockErrorIndicator = exports.AISummaryBlockErrorIndicator = function AISummaryBlockErrorIndicator(_ref) {
|
|
@@ -158,11 +159,12 @@ var AISummaryBlockResolvedView = function AISummaryBlockResolvedView(props) {
|
|
|
158
159
|
minHeight: aiSummaryMinHeight,
|
|
159
160
|
content: content,
|
|
160
161
|
showIcon: isSummarisedOnMountRef.current
|
|
161
|
-
})), /*#__PURE__*/_react.default.createElement(_primitives.Inline, {
|
|
162
|
+
})), !(0, _platformFeatureFlags.getBooleanFF)('platform.linking-platform.smart-card.hover-card-action-redesign') && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_primitives.Inline, {
|
|
162
163
|
alignBlock: "center",
|
|
163
164
|
alignInline: "end",
|
|
164
165
|
grow: "fill",
|
|
165
|
-
spread: "space-between"
|
|
166
|
+
spread: "space-between",
|
|
167
|
+
testId: "".concat(testId, "-footer-metadata")
|
|
166
168
|
}, /*#__PURE__*/_react.default.createElement(_primitives.Box, null, /*#__PURE__*/_react.default.createElement(AISummaryBlockStatusIndicator, {
|
|
167
169
|
metadata: metadata,
|
|
168
170
|
showStatusIndicator: !isSummarisedOnMountRef.current && (status === 'loading' || status === 'done'),
|
|
@@ -177,7 +179,7 @@ var AISummaryBlockResolvedView = function AISummaryBlockResolvedView(props) {
|
|
|
177
179
|
showErrorIndicator: !isErroredOnMountRef.current && status === 'error',
|
|
178
180
|
showTransition: !isErroredOnMountRef.current,
|
|
179
181
|
error: error,
|
|
180
|
-
testId: testId
|
|
181
|
-
}));
|
|
182
|
+
testId: "".concat(testId, "-error-indicator")
|
|
183
|
+
})));
|
|
182
184
|
};
|
|
183
185
|
var _default = exports.default = AISummaryBlockResolvedView;
|
|
@@ -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: "26.
|
|
20
|
+
packageVersion: "26.58.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: "26.
|
|
7
|
+
packageVersion: "26.58.0"
|
|
8
8
|
};
|
|
9
9
|
export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
10
10
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -21,6 +21,7 @@ import { css } from '@emotion/react';
|
|
|
21
21
|
import FeatureDiscovery from '../feature-discovery';
|
|
22
22
|
import { useFlexibleUiContext } from '../../../../../../state/flexible-ui-context';
|
|
23
23
|
import { useSmartLinkContext } from '@atlaskit/link-provider';
|
|
24
|
+
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
24
25
|
export const AISummaryBlockErrorIndicator = ({
|
|
25
26
|
showErrorIndicator,
|
|
26
27
|
error,
|
|
@@ -150,11 +151,12 @@ const AISummaryBlockResolvedView = props => {
|
|
|
150
151
|
minHeight: aiSummaryMinHeight,
|
|
151
152
|
content: content,
|
|
152
153
|
showIcon: isSummarisedOnMountRef.current
|
|
153
|
-
})), /*#__PURE__*/React.createElement(Inline, {
|
|
154
|
+
})), !getBooleanFF('platform.linking-platform.smart-card.hover-card-action-redesign') && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Inline, {
|
|
154
155
|
alignBlock: "center",
|
|
155
156
|
alignInline: "end",
|
|
156
157
|
grow: "fill",
|
|
157
|
-
spread: "space-between"
|
|
158
|
+
spread: "space-between",
|
|
159
|
+
testId: `${testId}-footer-metadata`
|
|
158
160
|
}, /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(AISummaryBlockStatusIndicator, {
|
|
159
161
|
metadata: metadata,
|
|
160
162
|
showStatusIndicator: !isSummarisedOnMountRef.current && (status === 'loading' || status === 'done'),
|
|
@@ -169,7 +171,7 @@ const AISummaryBlockResolvedView = props => {
|
|
|
169
171
|
showErrorIndicator: !isErroredOnMountRef.current && status === 'error',
|
|
170
172
|
showTransition: !isErroredOnMountRef.current,
|
|
171
173
|
error: error,
|
|
172
|
-
testId: testId
|
|
173
|
-
}));
|
|
174
|
+
testId: `${testId}-error-indicator`
|
|
175
|
+
})));
|
|
174
176
|
};
|
|
175
177
|
export default AISummaryBlockResolvedView;
|
|
@@ -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: "26.
|
|
10
|
+
packageVersion: "26.58.0",
|
|
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: "26.
|
|
18
|
+
packageVersion: "26.58.0"
|
|
19
19
|
};
|
|
20
20
|
export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
21
21
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -22,6 +22,7 @@ import { css } from '@emotion/react';
|
|
|
22
22
|
import FeatureDiscovery from '../feature-discovery';
|
|
23
23
|
import { useFlexibleUiContext } from '../../../../../../state/flexible-ui-context';
|
|
24
24
|
import { useSmartLinkContext } from '@atlaskit/link-provider';
|
|
25
|
+
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
25
26
|
export var AISummaryBlockErrorIndicator = function AISummaryBlockErrorIndicator(_ref) {
|
|
26
27
|
var showErrorIndicator = _ref.showErrorIndicator,
|
|
27
28
|
error = _ref.error,
|
|
@@ -148,11 +149,12 @@ var AISummaryBlockResolvedView = function AISummaryBlockResolvedView(props) {
|
|
|
148
149
|
minHeight: aiSummaryMinHeight,
|
|
149
150
|
content: content,
|
|
150
151
|
showIcon: isSummarisedOnMountRef.current
|
|
151
|
-
})), /*#__PURE__*/React.createElement(Inline, {
|
|
152
|
+
})), !getBooleanFF('platform.linking-platform.smart-card.hover-card-action-redesign') && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Inline, {
|
|
152
153
|
alignBlock: "center",
|
|
153
154
|
alignInline: "end",
|
|
154
155
|
grow: "fill",
|
|
155
|
-
spread: "space-between"
|
|
156
|
+
spread: "space-between",
|
|
157
|
+
testId: "".concat(testId, "-footer-metadata")
|
|
156
158
|
}, /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(AISummaryBlockStatusIndicator, {
|
|
157
159
|
metadata: metadata,
|
|
158
160
|
showStatusIndicator: !isSummarisedOnMountRef.current && (status === 'loading' || status === 'done'),
|
|
@@ -167,7 +169,7 @@ var AISummaryBlockResolvedView = function AISummaryBlockResolvedView(props) {
|
|
|
167
169
|
showErrorIndicator: !isErroredOnMountRef.current && status === 'error',
|
|
168
170
|
showTransition: !isErroredOnMountRef.current,
|
|
169
171
|
error: error,
|
|
170
|
-
testId: testId
|
|
171
|
-
}));
|
|
172
|
+
testId: "".concat(testId, "-error-indicator")
|
|
173
|
+
})));
|
|
172
174
|
};
|
|
173
175
|
export default AISummaryBlockResolvedView;
|
|
@@ -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: "26.
|
|
13
|
+
packageVersion: "26.58.0",
|
|
14
14
|
componentName: 'linkUrl'
|
|
15
15
|
};
|
|
16
16
|
var Link = withLinkClickedEvent('a');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { CardAppearance, CardPlatform, CardProps } from './types';
|
|
3
3
|
import { WrappedComponentProps } from 'react-intl-next';
|
|
4
|
-
export declare const Card: React.ForwardRefExoticComponent<Pick<Omit<
|
|
4
|
+
export declare const Card: React.ForwardRefExoticComponent<Pick<Omit<import("react-intl-next").WithIntlProps<CardProps & WrappedComponentProps>, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "url" | "children" | "data" | "key" | "id" | "placeholder" | "onError" | "onClick" | "appearance" | "container" | "testId" | "analyticsContext" | "isSelected" | "inheritDimensions" | "actionOptions" | "onResolve" | "ui" | "showHoverPreview" | "showAuthTooltip" | "platform" | "isHovered" | "isFrameVisible" | "frameStyle" | "importer" | "showActions" | "showServerActions" | "fallbackComponent" | "embedIframeRef" | "embedIframeUrlType" | "inlinePreloaderStyle" | "analyticsEvents" | "useLegacyBlockCard" | "forwardedRef"> & React.RefAttributes<any>>;
|
|
5
5
|
export type { CardAppearance, CardProps, CardPlatform };
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { LinkUrlProps } from './types';
|
|
3
|
-
declare const _default: React.ForwardRefExoticComponent<LinkUrlProps &
|
|
4
|
-
children?: React.ReactNode;
|
|
5
|
-
} & import("@atlaskit/analytics-next").WithContextProps & React.RefAttributes<any>>;
|
|
3
|
+
declare const _default: React.ForwardRefExoticComponent<LinkUrlProps & import("@atlaskit/analytics-next").WithContextProps & React.RefAttributes<any>>;
|
|
6
4
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { CardAppearance, CardPlatform, CardProps } from './types';
|
|
3
3
|
import { WrappedComponentProps } from 'react-intl-next';
|
|
4
|
-
export declare const Card: React.ForwardRefExoticComponent<Pick<Omit<
|
|
4
|
+
export declare const Card: React.ForwardRefExoticComponent<Pick<Omit<import("react-intl-next").WithIntlProps<CardProps & WrappedComponentProps>, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "url" | "children" | "data" | "key" | "id" | "placeholder" | "onError" | "onClick" | "appearance" | "container" | "testId" | "analyticsContext" | "isSelected" | "inheritDimensions" | "actionOptions" | "onResolve" | "ui" | "showHoverPreview" | "showAuthTooltip" | "platform" | "isHovered" | "isFrameVisible" | "frameStyle" | "importer" | "showActions" | "showServerActions" | "fallbackComponent" | "embedIframeRef" | "embedIframeUrlType" | "inlinePreloaderStyle" | "analyticsEvents" | "useLegacyBlockCard" | "forwardedRef"> & React.RefAttributes<any>>;
|
|
5
5
|
export type { CardAppearance, CardProps, CardPlatform };
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { LinkUrlProps } from './types';
|
|
3
|
-
declare const _default: React.ForwardRefExoticComponent<LinkUrlProps &
|
|
4
|
-
children?: React.ReactNode;
|
|
5
|
-
} & import("@atlaskit/analytics-next").WithContextProps & React.RefAttributes<any>>;
|
|
3
|
+
declare const _default: React.ForwardRefExoticComponent<LinkUrlProps & import("@atlaskit/analytics-next").WithContextProps & React.RefAttributes<any>>;
|
|
6
4
|
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/smart-card",
|
|
3
|
-
"version": "26.
|
|
3
|
+
"version": "26.58.0",
|
|
4
4
|
"description": "Smart card component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -29,11 +29,11 @@
|
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@atlaskit/analytics-gas-types": "^5.1.0",
|
|
32
|
-
"@atlaskit/analytics-next": "^9.
|
|
32
|
+
"@atlaskit/analytics-next": "^9.3.0",
|
|
33
33
|
"@atlaskit/avatar": "^21.5.0",
|
|
34
34
|
"@atlaskit/avatar-group": "^9.5.0",
|
|
35
35
|
"@atlaskit/badge": "^16.0.0",
|
|
36
|
-
"@atlaskit/button": "^17.
|
|
36
|
+
"@atlaskit/button": "^17.14.0",
|
|
37
37
|
"@atlaskit/dropdown-menu": "^12.9.0",
|
|
38
38
|
"@atlaskit/frontend-utilities": "^2.7.0",
|
|
39
39
|
"@atlaskit/icon": "^22.1.0",
|
|
@@ -47,12 +47,12 @@
|
|
|
47
47
|
"@atlaskit/linking-common": "^5.6.0",
|
|
48
48
|
"@atlaskit/linking-types": "^8.8.0",
|
|
49
49
|
"@atlaskit/logo": "^13.15.0",
|
|
50
|
-
"@atlaskit/lozenge": "^11.
|
|
50
|
+
"@atlaskit/lozenge": "^11.7.0",
|
|
51
51
|
"@atlaskit/modal-dialog": "^12.11.0",
|
|
52
52
|
"@atlaskit/outbound-auth-flow-client": "^3.4.0",
|
|
53
53
|
"@atlaskit/platform-feature-flags": "^0.2.1",
|
|
54
54
|
"@atlaskit/popup": "^1.14.0",
|
|
55
|
-
"@atlaskit/primitives": "^5.
|
|
55
|
+
"@atlaskit/primitives": "^5.6.0",
|
|
56
56
|
"@atlaskit/spinner": "^16.0.0",
|
|
57
57
|
"@atlaskit/theme": "^12.7.0",
|
|
58
58
|
"@atlaskit/tokens": "^1.43.0",
|