@atlaskit/smart-card 32.1.1 → 32.2.1
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 +17 -0
- package/dist/cjs/state/hooks/use-ai-summary/ai-summary-service/index.js +1 -2
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/BlockCard/components/Name.js +6 -2
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/state/hooks/use-ai-summary/ai-summary-service/index.js +1 -2
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/BlockCard/components/Name.js +6 -2
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/state/hooks/use-ai-summary/ai-summary-service/index.js +1 -2
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/BlockCard/components/Name.js +6 -2
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/types/state/hooks/use-ai-summary/ai-summary-service/types.d.ts +1 -8
- package/dist/types-ts4.5/state/hooks/use-ai-summary/ai-summary-service/types.d.ts +1 -8
- package/package.json +3 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 32.2.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#167504](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/167504)
|
|
8
|
+
[`83a2ce1f5117e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/83a2ce1f5117e) -
|
|
9
|
+
Replaced deprecated typography styles with new components and tokens.
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 32.2.0
|
|
13
|
+
|
|
14
|
+
### Minor Changes
|
|
15
|
+
|
|
16
|
+
- [#168570](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/168570)
|
|
17
|
+
[`cd8f5fa3d2b57`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/cd8f5fa3d2b57) -
|
|
18
|
+
[ux] EDM-11342 Cleanup of AI summary agent FF
|
|
19
|
+
|
|
3
20
|
## 32.1.1
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
|
@@ -12,7 +12,6 @@ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/creat
|
|
|
12
12
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
13
13
|
var _uuid = _interopRequireDefault(require("uuid"));
|
|
14
14
|
var _linkingCommon = require("@atlaskit/linking-common");
|
|
15
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
16
15
|
var _readStream = require("./readStream");
|
|
17
16
|
var _types = require("./types");
|
|
18
17
|
var _utils = require("./utils");
|
|
@@ -47,7 +46,7 @@ var AISummaryService = exports.AISummaryService = /*#__PURE__*/function () {
|
|
|
47
46
|
while (1) switch (_context.prev = _context.next) {
|
|
48
47
|
case 0:
|
|
49
48
|
payload = {
|
|
50
|
-
recipient_agent_named_id:
|
|
49
|
+
recipient_agent_named_id: 'smartlink_summary_agent',
|
|
51
50
|
agent_input_context: {
|
|
52
51
|
content_url: _this.url,
|
|
53
52
|
content_ari: _this.ari,
|
|
@@ -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: "32.
|
|
20
|
+
packageVersion: "32.2.1"
|
|
21
21
|
};
|
|
22
22
|
var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
23
23
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -21,8 +21,12 @@ var _utils = require("../../common/utils");
|
|
|
21
21
|
var blockCardContentHeaderNameClassName = exports.blockCardContentHeaderNameClassName = 'block-card-content-header-name';
|
|
22
22
|
var baseStyles = (0, _react.css)({
|
|
23
23
|
font: "var(--ds-font-heading-xsmall, normal 600 14px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
/**
|
|
25
|
+
* The xsmall heading token has a line height of 20px in the modernized/refreshed themes,
|
|
26
|
+
* but 16px in legacy theme which causes alignment issues.
|
|
27
|
+
* Remove this lineHeight once all consuming apps are using modernized/refreshed themes.
|
|
28
|
+
*/
|
|
29
|
+
lineHeight: '20px',
|
|
26
30
|
// Spec: show max two lines.
|
|
27
31
|
display: '-webkit-box',
|
|
28
32
|
overflow: 'hidden',
|
|
@@ -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: "32.
|
|
20
|
+
packageVersion: "32.2.1",
|
|
21
21
|
componentName: 'linkUrl'
|
|
22
22
|
};
|
|
23
23
|
var Link = (0, _click.withLinkClickedEvent)('a');
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import uuid from 'uuid';
|
|
3
3
|
import { getBaseUrl } from '@atlaskit/linking-common';
|
|
4
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
5
4
|
import { readStream } from './readStream';
|
|
6
5
|
import { ChunkProcessingError } from './types';
|
|
7
6
|
import { addPath, getXProductHeaderValue } from './utils';
|
|
@@ -23,7 +22,7 @@ export class AISummaryService {
|
|
|
23
22
|
});
|
|
24
23
|
_defineProperty(this, "fetchStream", async () => {
|
|
25
24
|
const payload = {
|
|
26
|
-
recipient_agent_named_id:
|
|
25
|
+
recipient_agent_named_id: 'smartlink_summary_agent',
|
|
27
26
|
agent_input_context: {
|
|
28
27
|
content_url: this.url,
|
|
29
28
|
content_ari: this.ari,
|
|
@@ -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: "32.
|
|
7
|
+
packageVersion: "32.2.1"
|
|
8
8
|
};
|
|
9
9
|
export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
10
10
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -14,8 +14,12 @@ import { gs } from '../../common/utils';
|
|
|
14
14
|
export const blockCardContentHeaderNameClassName = 'block-card-content-header-name';
|
|
15
15
|
const baseStyles = css({
|
|
16
16
|
font: "var(--ds-font-heading-xsmall, normal 600 14px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
/**
|
|
18
|
+
* The xsmall heading token has a line height of 20px in the modernized/refreshed themes,
|
|
19
|
+
* but 16px in legacy theme which causes alignment issues.
|
|
20
|
+
* Remove this lineHeight once all consuming apps are using modernized/refreshed themes.
|
|
21
|
+
*/
|
|
22
|
+
lineHeight: '20px',
|
|
19
23
|
// Spec: show max two lines.
|
|
20
24
|
display: '-webkit-box',
|
|
21
25
|
overflow: 'hidden',
|
|
@@ -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: "32.
|
|
10
|
+
packageVersion: "32.2.1",
|
|
11
11
|
componentName: 'linkUrl'
|
|
12
12
|
};
|
|
13
13
|
const Link = withLinkClickedEvent('a');
|
|
@@ -12,7 +12,6 @@ function _asyncIterator(r) { var n, t, o, e = 2; for ("undefined" != typeof Symb
|
|
|
12
12
|
function AsyncFromSyncIterator(r) { function AsyncFromSyncIteratorContinuation(r) { if (Object(r) !== r) return Promise.reject(new TypeError(r + " is not an object.")); var n = r.done; return Promise.resolve(r.value).then(function (r) { return { value: r, done: n }; }); } return AsyncFromSyncIterator = function AsyncFromSyncIterator(r) { this.s = r, this.n = r.next; }, AsyncFromSyncIterator.prototype = { s: null, n: null, next: function next() { return AsyncFromSyncIteratorContinuation(this.n.apply(this.s, arguments)); }, return: function _return(r) { var n = this.s.return; return void 0 === n ? Promise.resolve({ value: r, done: !0 }) : AsyncFromSyncIteratorContinuation(n.apply(this.s, arguments)); }, throw: function _throw(r) { var n = this.s.return; return void 0 === n ? Promise.reject(r) : AsyncFromSyncIteratorContinuation(n.apply(this.s, arguments)); } }, new AsyncFromSyncIterator(r); }
|
|
13
13
|
import uuid from 'uuid';
|
|
14
14
|
import { getBaseUrl } from '@atlaskit/linking-common';
|
|
15
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
16
15
|
import { readStream } from './readStream';
|
|
17
16
|
import { ChunkProcessingError } from './types';
|
|
18
17
|
import { addPath, getXProductHeaderValue } from './utils';
|
|
@@ -40,7 +39,7 @@ export var AISummaryService = /*#__PURE__*/function () {
|
|
|
40
39
|
while (1) switch (_context.prev = _context.next) {
|
|
41
40
|
case 0:
|
|
42
41
|
payload = {
|
|
43
|
-
recipient_agent_named_id:
|
|
42
|
+
recipient_agent_named_id: 'smartlink_summary_agent',
|
|
44
43
|
agent_input_context: {
|
|
45
44
|
content_url: _this.url,
|
|
46
45
|
content_ari: _this.ari,
|
|
@@ -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: "32.
|
|
13
|
+
packageVersion: "32.2.1"
|
|
14
14
|
};
|
|
15
15
|
export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
16
16
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -14,8 +14,12 @@ import { gs } from '../../common/utils';
|
|
|
14
14
|
export var blockCardContentHeaderNameClassName = 'block-card-content-header-name';
|
|
15
15
|
var baseStyles = css({
|
|
16
16
|
font: "var(--ds-font-heading-xsmall, normal 600 14px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
/**
|
|
18
|
+
* The xsmall heading token has a line height of 20px in the modernized/refreshed themes,
|
|
19
|
+
* but 16px in legacy theme which causes alignment issues.
|
|
20
|
+
* Remove this lineHeight once all consuming apps are using modernized/refreshed themes.
|
|
21
|
+
*/
|
|
22
|
+
lineHeight: '20px',
|
|
19
23
|
// Spec: show max two lines.
|
|
20
24
|
display: '-webkit-box',
|
|
21
25
|
overflow: 'hidden',
|
|
@@ -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: "32.
|
|
13
|
+
packageVersion: "32.2.1",
|
|
14
14
|
componentName: 'linkUrl'
|
|
15
15
|
};
|
|
16
16
|
var Link = withLinkClickedEvent('a');
|
|
@@ -28,15 +28,8 @@ export type AISummaryStatus = 'ready' | 'loading' | 'error' | 'done';
|
|
|
28
28
|
export type PostAgentPayload = {
|
|
29
29
|
/**
|
|
30
30
|
* Which agent in `assistance_service` to use.
|
|
31
|
-
*
|
|
32
|
-
* The AI mate team requested Linking Platform to move away from the default
|
|
33
|
-
* summary agent and create our own.
|
|
34
|
-
*
|
|
35
|
-
* There is likely to be a future migration from `assistance-service`
|
|
36
|
-
* to `convo-ai` which is currently unclear:
|
|
37
|
-
* https://atlassian.slack.com/archives/C05S4PH8YAY/p1728528096549549
|
|
38
31
|
*/
|
|
39
|
-
recipient_agent_named_id: 'smartlink_summary_agent'
|
|
32
|
+
recipient_agent_named_id: 'smartlink_summary_agent';
|
|
40
33
|
agent_input_context: AgentInputContext;
|
|
41
34
|
user_intent?: string;
|
|
42
35
|
};
|
|
@@ -28,15 +28,8 @@ export type AISummaryStatus = 'ready' | 'loading' | 'error' | 'done';
|
|
|
28
28
|
export type PostAgentPayload = {
|
|
29
29
|
/**
|
|
30
30
|
* Which agent in `assistance_service` to use.
|
|
31
|
-
*
|
|
32
|
-
* The AI mate team requested Linking Platform to move away from the default
|
|
33
|
-
* summary agent and create our own.
|
|
34
|
-
*
|
|
35
|
-
* There is likely to be a future migration from `assistance-service`
|
|
36
|
-
* to `convo-ai` which is currently unclear:
|
|
37
|
-
* https://atlassian.slack.com/archives/C05S4PH8YAY/p1728528096549549
|
|
38
31
|
*/
|
|
39
|
-
recipient_agent_named_id: 'smartlink_summary_agent'
|
|
32
|
+
recipient_agent_named_id: 'smartlink_summary_agent';
|
|
40
33
|
agent_input_context: AgentInputContext;
|
|
41
34
|
user_intent?: string;
|
|
42
35
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/smart-card",
|
|
3
|
-
"version": "32.
|
|
3
|
+
"version": "32.2.1",
|
|
4
4
|
"description": "Smart card component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -36,9 +36,9 @@
|
|
|
36
36
|
"@atlaskit/form": "^10.6.0",
|
|
37
37
|
"@atlaskit/frontend-utilities": "^2.7.0",
|
|
38
38
|
"@atlaskit/heading": "^3.1.0",
|
|
39
|
-
"@atlaskit/icon": "^22.
|
|
39
|
+
"@atlaskit/icon": "^22.28.0",
|
|
40
40
|
"@atlaskit/icon-file-type": "^6.7.0",
|
|
41
|
-
"@atlaskit/icon-object": "^6.
|
|
41
|
+
"@atlaskit/icon-object": "^6.8.0",
|
|
42
42
|
"@atlaskit/icon-priority": "^6.3.0",
|
|
43
43
|
"@atlaskit/legacy-custom-icons": "^0.20.0",
|
|
44
44
|
"@atlaskit/link-analytics": "^8.5.0",
|
|
@@ -165,9 +165,6 @@
|
|
|
165
165
|
"send-smart-link-rendered-ufo-event-half-time": {
|
|
166
166
|
"type": "boolean"
|
|
167
167
|
},
|
|
168
|
-
"platform-smart-card-use-ai-smartlink-summary-agent": {
|
|
169
|
-
"type": "boolean"
|
|
170
|
-
},
|
|
171
168
|
"platform-visual-refresh-icons": {
|
|
172
169
|
"type": "boolean"
|
|
173
170
|
},
|