@atlaskit/smart-card 32.1.1 → 32.2.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 CHANGED
@@ -1,5 +1,13 @@
1
1
  # @atlaskit/smart-card
2
2
 
3
+ ## 32.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#168570](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/168570)
8
+ [`cd8f5fa3d2b57`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/cd8f5fa3d2b57) -
9
+ [ux] EDM-11342 Cleanup of AI summary agent FF
10
+
3
11
  ## 32.1.1
4
12
 
5
13
  ### 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: (0, _platformFeatureFlags.fg)('platform-smart-card-use-ai-smartlink-summary-agent') ? 'smartlink_summary_agent' : 'summary_agent',
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.1.1"
20
+ packageVersion: "32.2.0"
21
21
  };
22
22
  var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
23
23
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -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.1.1",
20
+ packageVersion: "32.2.0",
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: fg('platform-smart-card-use-ai-smartlink-summary-agent') ? 'smartlink_summary_agent' : 'summary_agent',
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.1.1"
7
+ packageVersion: "32.2.0"
8
8
  };
9
9
  export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
10
10
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -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.1.1",
10
+ packageVersion: "32.2.0",
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: fg('platform-smart-card-use-ai-smartlink-summary-agent') ? 'smartlink_summary_agent' : 'summary_agent',
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.1.1"
13
+ packageVersion: "32.2.0"
14
14
  };
15
15
  export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
16
16
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -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.1.1",
13
+ packageVersion: "32.2.0",
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' | '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' | '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.1.1",
3
+ "version": "32.2.0",
4
4
  "description": "Smart card component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -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
  },