@atlaskit/smart-card 38.14.2 → 38.15.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 +15 -0
- package/dist/cjs/state/hooks/use-ai-summary/ai-summary-service/index.js +13 -5
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/state/hooks/use-ai-summary/ai-summary-service/index.js +10 -1
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/state/hooks/use-ai-summary/ai-summary-service/index.js +13 -5
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/types/state/hooks/use-ai-summary/ai-summary-service/types.d.ts +6 -0
- package/dist/types-ts4.5/state/hooks/use-ai-summary/ai-summary-service/types.d.ts +6 -0
- package/package.json +6 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 38.15.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#176835](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/176835)
|
|
8
|
+
[`0b00de2560126`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0b00de2560126) -
|
|
9
|
+
Move test utility mocks to @atlaskit/link-test-helpers to reduce future duplications
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#170012](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/170012)
|
|
14
|
+
[`0dc5dd2eb0dc8`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0dc5dd2eb0dc8) -
|
|
15
|
+
Update ai summary endpoint to convo-ai (fg: platform-linking-ai-summary-migration-to-convo-ai)
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 38.14.2
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -12,16 +12,18 @@ 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");
|
|
15
16
|
var _readStream = require("./readStream");
|
|
16
17
|
var _types = require("./types");
|
|
17
18
|
var _utils = require("./utils");
|
|
18
|
-
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; }
|
|
19
|
-
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) { (0, _defineProperty2.default)(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; }
|
|
20
19
|
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; } } }; }
|
|
21
20
|
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; } }
|
|
22
21
|
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; }
|
|
22
|
+
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; }
|
|
23
|
+
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) { (0, _defineProperty2.default)(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; }
|
|
23
24
|
function _asyncIterator(r) { var n, t, o, e = 2; for ("undefined" != typeof Symbol && (t = Symbol.asyncIterator, o = Symbol.iterator); e--;) { if (t && null != (n = r[t])) return n.call(r); if (o && null != (n = r[o])) return new AsyncFromSyncIterator(n.call(r)); t = "@@asyncIterator", o = "@@iterator"; } throw new TypeError("Object is not async iterable"); }
|
|
24
25
|
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); }
|
|
26
|
+
var CONVO_AI_ENDPOINT = 'ai/v2/ai-feature/smartlinksummary/stream';
|
|
25
27
|
var AISummaryService = exports.AISummaryService = /*#__PURE__*/function () {
|
|
26
28
|
function AISummaryService(props) {
|
|
27
29
|
var _this = this,
|
|
@@ -33,7 +35,7 @@ var AISummaryService = exports.AISummaryService = /*#__PURE__*/function () {
|
|
|
33
35
|
});
|
|
34
36
|
(0, _defineProperty2.default)(this, "subscribedStateSetters", new Set());
|
|
35
37
|
(0, _defineProperty2.default)(this, "getRequestUrl", function (envKey, baseUrlOverride) {
|
|
36
|
-
var path = 'assist/chat/v1/invoke_agent/stream';
|
|
38
|
+
var path = (0, _platformFeatureFlags.fg)('platform-linking-ai-summary-migration-to-convo-ai') ? CONVO_AI_ENDPOINT : 'assist/chat/v1/invoke_agent/stream';
|
|
37
39
|
if (baseUrlOverride || envKey) {
|
|
38
40
|
var baseUrl = baseUrlOverride || (0, _linkingCommon.getBaseUrl)(envKey);
|
|
39
41
|
return (0, _utils.addPath)(baseUrl, path);
|
|
@@ -45,7 +47,7 @@ var AISummaryService = exports.AISummaryService = /*#__PURE__*/function () {
|
|
|
45
47
|
return _regenerator.default.wrap(function _callee$(_context) {
|
|
46
48
|
while (1) switch (_context.prev = _context.next) {
|
|
47
49
|
case 0:
|
|
48
|
-
payload = {
|
|
50
|
+
payload = _objectSpread({
|
|
49
51
|
recipient_agent_named_id: 'smartlink_summary_agent',
|
|
50
52
|
agent_input_context: {
|
|
51
53
|
content_url: _this.url,
|
|
@@ -54,7 +56,13 @@ var AISummaryService = exports.AISummaryService = /*#__PURE__*/function () {
|
|
|
54
56
|
summary_output_mimetype: 'text/markdown',
|
|
55
57
|
locale: _this.locale
|
|
56
58
|
}
|
|
57
|
-
}
|
|
59
|
+
}, {
|
|
60
|
+
ai_feature_input: (0, _platformFeatureFlags.fg)('platform-linking-ai-summary-migration-to-convo-ai') ? {
|
|
61
|
+
content_url: _this.url,
|
|
62
|
+
content_ari: _this.ari,
|
|
63
|
+
locale: _this.locale
|
|
64
|
+
} : undefined
|
|
65
|
+
});
|
|
58
66
|
options = {
|
|
59
67
|
method: 'POST',
|
|
60
68
|
headers: _this.config.headers,
|
|
@@ -11,7 +11,7 @@ var ANALYTICS_CHANNEL = exports.ANALYTICS_CHANNEL = 'media';
|
|
|
11
11
|
var context = exports.context = {
|
|
12
12
|
componentName: 'smart-cards',
|
|
13
13
|
packageName: "@atlaskit/smart-card",
|
|
14
|
-
packageVersion: "38.14.
|
|
14
|
+
packageVersion: "38.14.2"
|
|
15
15
|
};
|
|
16
16
|
var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
17
17
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -20,7 +20,7 @@ var _excluded = ["href", "children", "checkSafety", "onClick", "testId", "isLink
|
|
|
20
20
|
_excluded2 = ["isLinkSafe", "showSafetyWarningModal"];
|
|
21
21
|
var PACKAGE_DATA = {
|
|
22
22
|
packageName: "@atlaskit/smart-card",
|
|
23
|
-
packageVersion: "38.14.
|
|
23
|
+
packageVersion: "38.14.2",
|
|
24
24
|
componentName: 'linkUrl'
|
|
25
25
|
};
|
|
26
26
|
var Anchor = (0, _click.withLinkClickedEvent)('a');
|
|
@@ -1,9 +1,11 @@
|
|
|
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';
|
|
4
5
|
import { readStream } from './readStream';
|
|
5
6
|
import { ChunkProcessingError } from './types';
|
|
6
7
|
import { addPath, getXProductHeaderValue } from './utils';
|
|
8
|
+
const CONVO_AI_ENDPOINT = 'ai/v2/ai-feature/smartlinksummary/stream';
|
|
7
9
|
export class AISummaryService {
|
|
8
10
|
constructor(props) {
|
|
9
11
|
var _getXProductHeaderVal;
|
|
@@ -13,7 +15,7 @@ export class AISummaryService {
|
|
|
13
15
|
});
|
|
14
16
|
_defineProperty(this, "subscribedStateSetters", new Set());
|
|
15
17
|
_defineProperty(this, "getRequestUrl", (envKey, baseUrlOverride) => {
|
|
16
|
-
const path = 'assist/chat/v1/invoke_agent/stream';
|
|
18
|
+
const path = fg('platform-linking-ai-summary-migration-to-convo-ai') ? CONVO_AI_ENDPOINT : 'assist/chat/v1/invoke_agent/stream';
|
|
17
19
|
if (baseUrlOverride || envKey) {
|
|
18
20
|
const baseUrl = baseUrlOverride || getBaseUrl(envKey);
|
|
19
21
|
return addPath(baseUrl, path);
|
|
@@ -29,6 +31,13 @@ export class AISummaryService {
|
|
|
29
31
|
prompt_id: 'smart_links',
|
|
30
32
|
summary_output_mimetype: 'text/markdown',
|
|
31
33
|
locale: this.locale
|
|
34
|
+
},
|
|
35
|
+
...{
|
|
36
|
+
ai_feature_input: fg('platform-linking-ai-summary-migration-to-convo-ai') ? {
|
|
37
|
+
content_url: this.url,
|
|
38
|
+
content_ari: this.ari,
|
|
39
|
+
locale: this.locale
|
|
40
|
+
} : undefined
|
|
32
41
|
}
|
|
33
42
|
};
|
|
34
43
|
const options = {
|
|
@@ -2,7 +2,7 @@ export const ANALYTICS_CHANNEL = 'media';
|
|
|
2
2
|
export const context = {
|
|
3
3
|
componentName: 'smart-cards',
|
|
4
4
|
packageName: "@atlaskit/smart-card",
|
|
5
|
-
packageVersion: "38.14.
|
|
5
|
+
packageVersion: "38.14.2"
|
|
6
6
|
};
|
|
7
7
|
export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
8
8
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -10,7 +10,7 @@ import LinkWarningModal from './LinkWarningModal';
|
|
|
10
10
|
import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
|
|
11
11
|
const PACKAGE_DATA = {
|
|
12
12
|
packageName: "@atlaskit/smart-card",
|
|
13
|
-
packageVersion: "38.14.
|
|
13
|
+
packageVersion: "38.14.2",
|
|
14
14
|
componentName: 'linkUrl'
|
|
15
15
|
};
|
|
16
16
|
const Anchor = withLinkClickedEvent('a');
|
|
@@ -2,19 +2,21 @@ import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
|
2
2
|
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
3
3
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
4
4
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
5
|
-
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; }
|
|
6
|
-
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; }
|
|
7
5
|
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; } } }; }
|
|
8
6
|
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; } }
|
|
9
7
|
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; }
|
|
10
8
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
9
|
+
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; }
|
|
10
|
+
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; }
|
|
11
11
|
function _asyncIterator(r) { var n, t, o, e = 2; for ("undefined" != typeof Symbol && (t = Symbol.asyncIterator, o = Symbol.iterator); e--;) { if (t && null != (n = r[t])) return n.call(r); if (o && null != (n = r[o])) return new AsyncFromSyncIterator(n.call(r)); t = "@@asyncIterator", o = "@@iterator"; } throw new TypeError("Object is not async iterable"); }
|
|
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';
|
|
15
16
|
import { readStream } from './readStream';
|
|
16
17
|
import { ChunkProcessingError } from './types';
|
|
17
18
|
import { addPath, getXProductHeaderValue } from './utils';
|
|
19
|
+
var CONVO_AI_ENDPOINT = 'ai/v2/ai-feature/smartlinksummary/stream';
|
|
18
20
|
export var AISummaryService = /*#__PURE__*/function () {
|
|
19
21
|
function AISummaryService(props) {
|
|
20
22
|
var _this = this,
|
|
@@ -26,7 +28,7 @@ export var AISummaryService = /*#__PURE__*/function () {
|
|
|
26
28
|
});
|
|
27
29
|
_defineProperty(this, "subscribedStateSetters", new Set());
|
|
28
30
|
_defineProperty(this, "getRequestUrl", function (envKey, baseUrlOverride) {
|
|
29
|
-
var path = 'assist/chat/v1/invoke_agent/stream';
|
|
31
|
+
var path = fg('platform-linking-ai-summary-migration-to-convo-ai') ? CONVO_AI_ENDPOINT : 'assist/chat/v1/invoke_agent/stream';
|
|
30
32
|
if (baseUrlOverride || envKey) {
|
|
31
33
|
var baseUrl = baseUrlOverride || getBaseUrl(envKey);
|
|
32
34
|
return addPath(baseUrl, path);
|
|
@@ -38,7 +40,7 @@ export var AISummaryService = /*#__PURE__*/function () {
|
|
|
38
40
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
39
41
|
while (1) switch (_context.prev = _context.next) {
|
|
40
42
|
case 0:
|
|
41
|
-
payload = {
|
|
43
|
+
payload = _objectSpread({
|
|
42
44
|
recipient_agent_named_id: 'smartlink_summary_agent',
|
|
43
45
|
agent_input_context: {
|
|
44
46
|
content_url: _this.url,
|
|
@@ -47,7 +49,13 @@ export var AISummaryService = /*#__PURE__*/function () {
|
|
|
47
49
|
summary_output_mimetype: 'text/markdown',
|
|
48
50
|
locale: _this.locale
|
|
49
51
|
}
|
|
50
|
-
}
|
|
52
|
+
}, {
|
|
53
|
+
ai_feature_input: fg('platform-linking-ai-summary-migration-to-convo-ai') ? {
|
|
54
|
+
content_url: _this.url,
|
|
55
|
+
content_ari: _this.ari,
|
|
56
|
+
locale: _this.locale
|
|
57
|
+
} : undefined
|
|
58
|
+
});
|
|
51
59
|
options = {
|
|
52
60
|
method: 'POST',
|
|
53
61
|
headers: _this.config.headers,
|
|
@@ -4,7 +4,7 @@ export var ANALYTICS_CHANNEL = 'media';
|
|
|
4
4
|
export var context = {
|
|
5
5
|
componentName: 'smart-cards',
|
|
6
6
|
packageName: "@atlaskit/smart-card",
|
|
7
|
-
packageVersion: "38.14.
|
|
7
|
+
packageVersion: "38.14.2"
|
|
8
8
|
};
|
|
9
9
|
export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
10
10
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -13,7 +13,7 @@ import LinkWarningModal from './LinkWarningModal';
|
|
|
13
13
|
import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
|
|
14
14
|
var PACKAGE_DATA = {
|
|
15
15
|
packageName: "@atlaskit/smart-card",
|
|
16
|
-
packageVersion: "38.14.
|
|
16
|
+
packageVersion: "38.14.2",
|
|
17
17
|
componentName: 'linkUrl'
|
|
18
18
|
};
|
|
19
19
|
var Anchor = withLinkClickedEvent('a');
|
|
@@ -33,6 +33,7 @@ export type PostAgentPayload = {
|
|
|
33
33
|
recipient_agent_named_id: 'smartlink_summary_agent';
|
|
34
34
|
agent_input_context: AgentInputContext;
|
|
35
35
|
user_intent?: string;
|
|
36
|
+
ai_feature_input?: FeatureInputContext;
|
|
36
37
|
};
|
|
37
38
|
export type AgentInputContext = {
|
|
38
39
|
content_url: string;
|
|
@@ -41,6 +42,11 @@ export type AgentInputContext = {
|
|
|
41
42
|
summary_output_mimetype?: SummaryOutputMimeType;
|
|
42
43
|
locale?: string;
|
|
43
44
|
};
|
|
45
|
+
export type FeatureInputContext = {
|
|
46
|
+
content_url: string;
|
|
47
|
+
content_ari?: string;
|
|
48
|
+
locale?: string;
|
|
49
|
+
};
|
|
44
50
|
export type PromptId = 'smart_links';
|
|
45
51
|
export type SummaryOutputMimeType = 'text/adf' | 'text/markdown' | 'text/json';
|
|
46
52
|
export declare const errorMessages: readonly ["NETWORK_ERROR", "NO_ANSWER", "RATE_LIMIT", "NO_AGENT", "PLUGIN_ERRORED", "OPENAI_RATE_LIMIT_USER_ABUSE", "ACCEPTABLE_USE_VIOLATIONS", "AI_DISABLED", "UNEXPECTED", "HIPAA_CONTENT_DETECTED", "EXCEEDING_CONTEXT_LENGTH_ERROR"];
|
|
@@ -33,6 +33,7 @@ export type PostAgentPayload = {
|
|
|
33
33
|
recipient_agent_named_id: 'smartlink_summary_agent';
|
|
34
34
|
agent_input_context: AgentInputContext;
|
|
35
35
|
user_intent?: string;
|
|
36
|
+
ai_feature_input?: FeatureInputContext;
|
|
36
37
|
};
|
|
37
38
|
export type AgentInputContext = {
|
|
38
39
|
content_url: string;
|
|
@@ -41,6 +42,11 @@ export type AgentInputContext = {
|
|
|
41
42
|
summary_output_mimetype?: SummaryOutputMimeType;
|
|
42
43
|
locale?: string;
|
|
43
44
|
};
|
|
45
|
+
export type FeatureInputContext = {
|
|
46
|
+
content_url: string;
|
|
47
|
+
content_ari?: string;
|
|
48
|
+
locale?: string;
|
|
49
|
+
};
|
|
44
50
|
export type PromptId = 'smart_links';
|
|
45
51
|
export type SummaryOutputMimeType = 'text/adf' | 'text/markdown' | 'text/json';
|
|
46
52
|
export declare const errorMessages: readonly [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/smart-card",
|
|
3
|
-
"version": "38.
|
|
3
|
+
"version": "38.15.0",
|
|
4
4
|
"description": "Smart card component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -51,9 +51,10 @@
|
|
|
51
51
|
"@atlaskit/link-analytics": "^10.0.0",
|
|
52
52
|
"@atlaskit/link-client-extension": "^5.0.0",
|
|
53
53
|
"@atlaskit/link-extractors": "^2.4.0",
|
|
54
|
+
"@atlaskit/link-test-helpers": "^8.1.0",
|
|
54
55
|
"@atlaskit/linking-common": "^9.1.0",
|
|
55
56
|
"@atlaskit/linking-types": "^13.0.0",
|
|
56
|
-
"@atlaskit/logo": "^19.
|
|
57
|
+
"@atlaskit/logo": "^19.3.0",
|
|
57
58
|
"@atlaskit/lozenge": "^13.0.0",
|
|
58
59
|
"@atlaskit/menu": "^8.0.0",
|
|
59
60
|
"@atlaskit/modal-dialog": "^14.2.0",
|
|
@@ -95,7 +96,6 @@
|
|
|
95
96
|
"@af/visual-regression": "workspace:^",
|
|
96
97
|
"@atlaskit/analytics-listeners": "^9.0.0",
|
|
97
98
|
"@atlaskit/css-reset": "^7.3.0",
|
|
98
|
-
"@atlaskit/link-test-helpers": "^8.0.0",
|
|
99
99
|
"@atlaskit/media-test-helpers": "^37.0.0",
|
|
100
100
|
"@atlaskit/react-ufo": "^3.14.0",
|
|
101
101
|
"@atlaskit/ssr": "workspace:^",
|
|
@@ -234,6 +234,9 @@
|
|
|
234
234
|
"platform-linking-additional-flexible-element-props": {
|
|
235
235
|
"type": "boolean"
|
|
236
236
|
},
|
|
237
|
+
"platform-linking-ai-summary-migration-to-convo-ai": {
|
|
238
|
+
"type": "boolean"
|
|
239
|
+
},
|
|
237
240
|
"platform-linking-flexible-card-context": {
|
|
238
241
|
"type": "boolean"
|
|
239
242
|
},
|