@atlaskit/smart-card 35.2.9 → 35.2.11
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 +18 -0
- package/dist/cjs/messages.js +5 -0
- package/dist/cjs/state/hooks/use-ai-summary/ai-summary-service/index.js +5 -7
- package/dist/cjs/state/hooks/use-ai-summary/index.js +6 -16
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/HoverCard/components/HoverCardComponent.js +7 -2
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/messages.js +5 -0
- package/dist/es2019/state/hooks/use-ai-summary/ai-summary-service/index.js +1 -4
- package/dist/es2019/state/hooks/use-ai-summary/index.js +2 -9
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/HoverCard/components/HoverCardComponent.js +8 -2
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/messages.js +5 -0
- package/dist/esm/state/hooks/use-ai-summary/ai-summary-service/index.js +5 -7
- package/dist/esm/state/hooks/use-ai-summary/index.js +6 -16
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/HoverCard/components/HoverCardComponent.js +7 -2
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/types/messages.d.ts +1 -1
- package/dist/types-ts4.5/messages.d.ts +1 -1
- package/package.json +2 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 35.2.11
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#124681](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/124681)
|
|
8
|
+
[`e4d03e1fe300d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e4d03e1fe300d) -
|
|
9
|
+
EDM-11974 adding aria-label to hover card trigger wrapper for a11y
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 35.2.10
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- [#127235](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/127235)
|
|
17
|
+
[`b80e1ceb8e2fc`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b80e1ceb8e2fc) -
|
|
18
|
+
Clean up feature gate for locale summarise AI feature
|
|
19
|
+
- Updated dependencies
|
|
20
|
+
|
|
3
21
|
## 35.2.9
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
package/dist/cjs/messages.js
CHANGED
|
@@ -356,6 +356,11 @@ var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
|
|
|
356
356
|
defaultMessage: 'More actions',
|
|
357
357
|
description: 'Allows the users to see more link actions'
|
|
358
358
|
},
|
|
359
|
+
more_information_about_this_work_item: {
|
|
360
|
+
id: 'fabric.linking.more_information_about_this_work_item',
|
|
361
|
+
defaultMessage: 'More information about this work item',
|
|
362
|
+
description: 'Allows the users to see more about the work item'
|
|
363
|
+
},
|
|
359
364
|
open_issue_in_jira: {
|
|
360
365
|
id: 'fabric.linking.open_issue_in_jira',
|
|
361
366
|
defaultMessage: 'Open issue in Jira',
|
|
@@ -12,15 +12,14 @@ 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");
|
|
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; }
|
|
19
20
|
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; } } }; }
|
|
20
21
|
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; } }
|
|
21
22
|
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; }
|
|
24
23
|
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"); }
|
|
25
24
|
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
25
|
var AISummaryService = exports.AISummaryService = /*#__PURE__*/function () {
|
|
@@ -48,14 +47,13 @@ var AISummaryService = exports.AISummaryService = /*#__PURE__*/function () {
|
|
|
48
47
|
case 0:
|
|
49
48
|
payload = {
|
|
50
49
|
recipient_agent_named_id: 'smartlink_summary_agent',
|
|
51
|
-
agent_input_context:
|
|
50
|
+
agent_input_context: {
|
|
52
51
|
content_url: _this.url,
|
|
53
52
|
content_ari: _this.ari,
|
|
54
53
|
prompt_id: 'smart_links',
|
|
55
|
-
summary_output_mimetype: 'text/markdown'
|
|
56
|
-
}, (0, _platformFeatureFlags.fg)('send_locale_to_summarize_in_assistance-service') && {
|
|
54
|
+
summary_output_mimetype: 'text/markdown',
|
|
57
55
|
locale: _this.locale
|
|
58
|
-
}
|
|
56
|
+
}
|
|
59
57
|
};
|
|
60
58
|
options = {
|
|
61
59
|
method: 'POST',
|
|
@@ -5,15 +5,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.useAISummary = void 0;
|
|
8
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
8
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
10
9
|
var _react = require("react");
|
|
11
10
|
var _reactIntlNext = require("react-intl-next");
|
|
12
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
13
11
|
var _aiSummaryService = require("./ai-summary-service");
|
|
14
12
|
var _store = require("./ai-summary-service/store");
|
|
15
|
-
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; }
|
|
16
|
-
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; }
|
|
17
13
|
/**
|
|
18
14
|
* Stream AI summary for an url.
|
|
19
15
|
* For hook specific to AI summary on as a smart link, please see useAISummaryAction.
|
|
@@ -35,30 +31,24 @@ var useAISummary = exports.useAISummary = function useAISummary(props) {
|
|
|
35
31
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
36
32
|
state = _useState2[0],
|
|
37
33
|
setState = _useState2[1];
|
|
38
|
-
var
|
|
39
|
-
|
|
40
|
-
(0, _reactIntlNext.useIntl)() : {
|
|
41
|
-
locale: undefined
|
|
42
|
-
},
|
|
43
|
-
locale = _ref.locale;
|
|
34
|
+
var _useIntl = (0, _reactIntlNext.useIntl)(),
|
|
35
|
+
locale = _useIntl.locale;
|
|
44
36
|
(0, _react.useEffect)(function () {
|
|
45
37
|
var _AISummariesStore$get2;
|
|
46
38
|
//do not create a service for the empty URL string when the link data is not yet available,
|
|
47
39
|
//or the service has already been created and cached.
|
|
48
40
|
if (url && !_store.AISummariesStore.get(url)) {
|
|
49
|
-
_store.AISummariesStore.set(url, new _aiSummaryService.AISummaryService(
|
|
41
|
+
_store.AISummariesStore.set(url, new _aiSummaryService.AISummaryService({
|
|
50
42
|
url: url,
|
|
51
43
|
ari: ari,
|
|
52
44
|
baseUrl: baseUrl,
|
|
53
45
|
product: product,
|
|
54
|
-
envKey: envKey
|
|
55
|
-
|
|
56
|
-
locale: locale
|
|
57
|
-
}), {}, {
|
|
46
|
+
envKey: envKey,
|
|
47
|
+
locale: locale,
|
|
58
48
|
onError: onError,
|
|
59
49
|
onStart: onStart,
|
|
60
50
|
onSuccess: onSuccess
|
|
61
|
-
}))
|
|
51
|
+
}));
|
|
62
52
|
}
|
|
63
53
|
|
|
64
54
|
//returns function that calls unsubscribe method
|
|
@@ -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: "35.2.
|
|
14
|
+
packageVersion: "35.2.11"
|
|
15
15
|
};
|
|
16
16
|
var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
17
17
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -10,8 +10,10 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
10
10
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
11
11
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
12
12
|
var _react = _interopRequireWildcard(require("react"));
|
|
13
|
+
var _reactIntlNext = require("react-intl-next");
|
|
13
14
|
var _popup = _interopRequireDefault(require("@atlaskit/popup"));
|
|
14
15
|
var _constants = require("../../../constants");
|
|
16
|
+
var _messages = require("../../../messages");
|
|
15
17
|
var _actions = require("../../../state/actions");
|
|
16
18
|
var _renderers = require("../../../state/renderers");
|
|
17
19
|
var _store = require("../../../state/store");
|
|
@@ -58,6 +60,8 @@ var HoverCardComponent = exports.HoverCardComponent = function HoverCardComponen
|
|
|
58
60
|
var mousePos = (0, _react.useRef)();
|
|
59
61
|
var popupOffset = (0, _react.useRef)();
|
|
60
62
|
var parentSpan = (0, _react.useRef)(null);
|
|
63
|
+
var _useIntl = (0, _reactIntlNext.useIntl)(),
|
|
64
|
+
formatMessage = _useIntl.formatMessage;
|
|
61
65
|
var renderers = (0, _renderers.useSmartLinkRenderers)();
|
|
62
66
|
var linkState = (0, _store.useSmartCardState)(url);
|
|
63
67
|
var _useSmartCardActions = (0, _actions.useSmartCardActions)(id, url),
|
|
@@ -213,9 +217,10 @@ var HoverCardComponent = exports.HoverCardComponent = function HoverCardComponen
|
|
|
213
217
|
onMouseMove: setMousePosition,
|
|
214
218
|
onClick: onChildClick,
|
|
215
219
|
onContextMenu: onContextMenuClick,
|
|
216
|
-
"data-testid": "hover-card-trigger-wrapper"
|
|
220
|
+
"data-testid": "hover-card-trigger-wrapper",
|
|
221
|
+
"aria-label": formatMessage(_messages.messages.more_information_about_this_work_item)
|
|
217
222
|
}), children));
|
|
218
|
-
}, [children, initHideCard, initShowCard, onChildClick, onContextMenuClick, setMousePosition]);
|
|
223
|
+
}, [children, initHideCard, initShowCard, onChildClick, onContextMenuClick, setMousePosition, formatMessage]);
|
|
219
224
|
return /*#__PURE__*/_react.default.createElement(_popup.default, {
|
|
220
225
|
testId: "hover-card",
|
|
221
226
|
isOpen: isOpen && canOpen,
|
|
@@ -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: "35.2.
|
|
23
|
+
packageVersion: "35.2.11",
|
|
24
24
|
componentName: 'linkUrl'
|
|
25
25
|
};
|
|
26
26
|
var Anchor = (0, _click.withLinkClickedEvent)('a');
|
package/dist/es2019/messages.js
CHANGED
|
@@ -350,6 +350,11 @@ export const messages = defineMessages({
|
|
|
350
350
|
defaultMessage: 'More actions',
|
|
351
351
|
description: 'Allows the users to see more link actions'
|
|
352
352
|
},
|
|
353
|
+
more_information_about_this_work_item: {
|
|
354
|
+
id: 'fabric.linking.more_information_about_this_work_item',
|
|
355
|
+
defaultMessage: 'More information about this work item',
|
|
356
|
+
description: 'Allows the users to see more about the work item'
|
|
357
|
+
},
|
|
353
358
|
open_issue_in_jira: {
|
|
354
359
|
id: 'fabric.linking.open_issue_in_jira',
|
|
355
360
|
defaultMessage: 'Open issue in Jira',
|
|
@@ -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';
|
|
@@ -29,9 +28,7 @@ export class AISummaryService {
|
|
|
29
28
|
content_ari: this.ari,
|
|
30
29
|
prompt_id: 'smart_links',
|
|
31
30
|
summary_output_mimetype: 'text/markdown',
|
|
32
|
-
|
|
33
|
-
locale: this.locale
|
|
34
|
-
})
|
|
31
|
+
locale: this.locale
|
|
35
32
|
}
|
|
36
33
|
};
|
|
37
34
|
const options = {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { useEffect, useState } from 'react';
|
|
2
2
|
import { useIntl } from 'react-intl-next';
|
|
3
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
3
|
import { AISummaryService } from './ai-summary-service';
|
|
5
4
|
import { AISummariesStore } from './ai-summary-service/store';
|
|
6
5
|
/**
|
|
@@ -25,11 +24,7 @@ export const useAISummary = props => {
|
|
|
25
24
|
});
|
|
26
25
|
const {
|
|
27
26
|
locale
|
|
28
|
-
} =
|
|
29
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
30
|
-
useIntl() : {
|
|
31
|
-
locale: undefined
|
|
32
|
-
};
|
|
27
|
+
} = useIntl();
|
|
33
28
|
useEffect(() => {
|
|
34
29
|
var _AISummariesStore$get2;
|
|
35
30
|
//do not create a service for the empty URL string when the link data is not yet available,
|
|
@@ -41,9 +36,7 @@ export const useAISummary = props => {
|
|
|
41
36
|
baseUrl,
|
|
42
37
|
product,
|
|
43
38
|
envKey,
|
|
44
|
-
|
|
45
|
-
locale
|
|
46
|
-
}),
|
|
39
|
+
locale,
|
|
47
40
|
onError,
|
|
48
41
|
onStart,
|
|
49
42
|
onSuccess
|
|
@@ -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: "35.2.
|
|
5
|
+
packageVersion: "35.2.11"
|
|
6
6
|
};
|
|
7
7
|
export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
8
8
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React, { useCallback, useEffect, useRef } from 'react';
|
|
3
|
+
import { useIntl } from "react-intl-next";
|
|
3
4
|
import Popup from '@atlaskit/popup';
|
|
4
5
|
import { ActionName, CardDisplay } from '../../../constants';
|
|
6
|
+
import { messages } from '../../../messages';
|
|
5
7
|
import { useSmartCardActions } from '../../../state/actions';
|
|
6
8
|
import { useSmartLinkRenderers } from '../../../state/renderers';
|
|
7
9
|
import { useSmartCardState as useLinkState } from '../../../state/store';
|
|
@@ -37,6 +39,9 @@ export const HoverCardComponent = ({
|
|
|
37
39
|
const mousePos = useRef();
|
|
38
40
|
const popupOffset = useRef();
|
|
39
41
|
const parentSpan = useRef(null);
|
|
42
|
+
const {
|
|
43
|
+
formatMessage
|
|
44
|
+
} = useIntl();
|
|
40
45
|
const renderers = useSmartLinkRenderers();
|
|
41
46
|
const linkState = useLinkState(url);
|
|
42
47
|
const {
|
|
@@ -189,8 +194,9 @@ export const HoverCardComponent = ({
|
|
|
189
194
|
onMouseMove: setMousePosition,
|
|
190
195
|
onClick: onChildClick,
|
|
191
196
|
onContextMenu: onContextMenuClick,
|
|
192
|
-
"data-testid": "hover-card-trigger-wrapper"
|
|
193
|
-
|
|
197
|
+
"data-testid": "hover-card-trigger-wrapper",
|
|
198
|
+
"aria-label": formatMessage(messages.more_information_about_this_work_item)
|
|
199
|
+
}), children)), [children, initHideCard, initShowCard, onChildClick, onContextMenuClick, setMousePosition, formatMessage]);
|
|
194
200
|
return /*#__PURE__*/React.createElement(Popup, {
|
|
195
201
|
testId: "hover-card",
|
|
196
202
|
isOpen: isOpen && canOpen,
|
|
@@ -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: "35.2.
|
|
13
|
+
packageVersion: "35.2.11",
|
|
14
14
|
componentName: 'linkUrl'
|
|
15
15
|
};
|
|
16
16
|
const Anchor = withLinkClickedEvent('a');
|
package/dist/esm/messages.js
CHANGED
|
@@ -350,6 +350,11 @@ export var messages = defineMessages({
|
|
|
350
350
|
defaultMessage: 'More actions',
|
|
351
351
|
description: 'Allows the users to see more link actions'
|
|
352
352
|
},
|
|
353
|
+
more_information_about_this_work_item: {
|
|
354
|
+
id: 'fabric.linking.more_information_about_this_work_item',
|
|
355
|
+
defaultMessage: 'More information about this work item',
|
|
356
|
+
description: 'Allows the users to see more about the work item'
|
|
357
|
+
},
|
|
353
358
|
open_issue_in_jira: {
|
|
354
359
|
id: 'fabric.linking.open_issue_in_jira',
|
|
355
360
|
defaultMessage: 'Open issue in Jira',
|
|
@@ -2,17 +2,16 @@ 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; }
|
|
5
7
|
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; } } }; }
|
|
6
8
|
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; } }
|
|
7
9
|
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; }
|
|
8
10
|
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';
|
|
16
15
|
import { readStream } from './readStream';
|
|
17
16
|
import { ChunkProcessingError } from './types';
|
|
18
17
|
import { addPath, getXProductHeaderValue } from './utils';
|
|
@@ -41,14 +40,13 @@ export var AISummaryService = /*#__PURE__*/function () {
|
|
|
41
40
|
case 0:
|
|
42
41
|
payload = {
|
|
43
42
|
recipient_agent_named_id: 'smartlink_summary_agent',
|
|
44
|
-
agent_input_context:
|
|
43
|
+
agent_input_context: {
|
|
45
44
|
content_url: _this.url,
|
|
46
45
|
content_ari: _this.ari,
|
|
47
46
|
prompt_id: 'smart_links',
|
|
48
|
-
summary_output_mimetype: 'text/markdown'
|
|
49
|
-
}, fg('send_locale_to_summarize_in_assistance-service') && {
|
|
47
|
+
summary_output_mimetype: 'text/markdown',
|
|
50
48
|
locale: _this.locale
|
|
51
|
-
}
|
|
49
|
+
}
|
|
52
50
|
};
|
|
53
51
|
options = {
|
|
54
52
|
method: 'POST',
|
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
|
-
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; }
|
|
4
|
-
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; }
|
|
5
2
|
import { useEffect, useState } from 'react';
|
|
6
3
|
import { useIntl } from 'react-intl-next';
|
|
7
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
4
|
import { AISummaryService } from './ai-summary-service';
|
|
9
5
|
import { AISummariesStore } from './ai-summary-service/store';
|
|
10
6
|
/**
|
|
@@ -28,30 +24,24 @@ export var useAISummary = function useAISummary(props) {
|
|
|
28
24
|
_useState2 = _slicedToArray(_useState, 2),
|
|
29
25
|
state = _useState2[0],
|
|
30
26
|
setState = _useState2[1];
|
|
31
|
-
var
|
|
32
|
-
|
|
33
|
-
useIntl() : {
|
|
34
|
-
locale: undefined
|
|
35
|
-
},
|
|
36
|
-
locale = _ref.locale;
|
|
27
|
+
var _useIntl = useIntl(),
|
|
28
|
+
locale = _useIntl.locale;
|
|
37
29
|
useEffect(function () {
|
|
38
30
|
var _AISummariesStore$get2;
|
|
39
31
|
//do not create a service for the empty URL string when the link data is not yet available,
|
|
40
32
|
//or the service has already been created and cached.
|
|
41
33
|
if (url && !AISummariesStore.get(url)) {
|
|
42
|
-
AISummariesStore.set(url, new AISummaryService(
|
|
34
|
+
AISummariesStore.set(url, new AISummaryService({
|
|
43
35
|
url: url,
|
|
44
36
|
ari: ari,
|
|
45
37
|
baseUrl: baseUrl,
|
|
46
38
|
product: product,
|
|
47
|
-
envKey: envKey
|
|
48
|
-
|
|
49
|
-
locale: locale
|
|
50
|
-
}), {}, {
|
|
39
|
+
envKey: envKey,
|
|
40
|
+
locale: locale,
|
|
51
41
|
onError: onError,
|
|
52
42
|
onStart: onStart,
|
|
53
43
|
onSuccess: onSuccess
|
|
54
|
-
}))
|
|
44
|
+
}));
|
|
55
45
|
}
|
|
56
46
|
|
|
57
47
|
//returns function that calls unsubscribe method
|
|
@@ -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: "35.2.
|
|
7
|
+
packageVersion: "35.2.11"
|
|
8
8
|
};
|
|
9
9
|
export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
10
10
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -3,8 +3,10 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
|
|
|
3
3
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
4
4
|
var _excluded = ["aria-haspopup", "aria-expanded"];
|
|
5
5
|
import React, { useCallback, useEffect, useRef } from 'react';
|
|
6
|
+
import { useIntl } from "react-intl-next";
|
|
6
7
|
import Popup from '@atlaskit/popup';
|
|
7
8
|
import { ActionName, CardDisplay } from '../../../constants';
|
|
9
|
+
import { messages } from '../../../messages';
|
|
8
10
|
import { useSmartCardActions } from '../../../state/actions';
|
|
9
11
|
import { useSmartLinkRenderers } from '../../../state/renderers';
|
|
10
12
|
import { useSmartCardState as useLinkState } from '../../../state/store';
|
|
@@ -48,6 +50,8 @@ export var HoverCardComponent = function HoverCardComponent(_ref) {
|
|
|
48
50
|
var mousePos = useRef();
|
|
49
51
|
var popupOffset = useRef();
|
|
50
52
|
var parentSpan = useRef(null);
|
|
53
|
+
var _useIntl = useIntl(),
|
|
54
|
+
formatMessage = _useIntl.formatMessage;
|
|
51
55
|
var renderers = useSmartLinkRenderers();
|
|
52
56
|
var linkState = useLinkState(url);
|
|
53
57
|
var _useSmartCardActions = useSmartCardActions(id, url),
|
|
@@ -203,9 +207,10 @@ export var HoverCardComponent = function HoverCardComponent(_ref) {
|
|
|
203
207
|
onMouseMove: setMousePosition,
|
|
204
208
|
onClick: onChildClick,
|
|
205
209
|
onContextMenu: onContextMenuClick,
|
|
206
|
-
"data-testid": "hover-card-trigger-wrapper"
|
|
210
|
+
"data-testid": "hover-card-trigger-wrapper",
|
|
211
|
+
"aria-label": formatMessage(messages.more_information_about_this_work_item)
|
|
207
212
|
}), children));
|
|
208
|
-
}, [children, initHideCard, initShowCard, onChildClick, onContextMenuClick, setMousePosition]);
|
|
213
|
+
}, [children, initHideCard, initShowCard, onChildClick, onContextMenuClick, setMousePosition, formatMessage]);
|
|
209
214
|
return /*#__PURE__*/React.createElement(Popup, {
|
|
210
215
|
testId: "hover-card",
|
|
211
216
|
isOpen: isOpen && canOpen,
|
|
@@ -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: "35.2.
|
|
16
|
+
packageVersion: "35.2.11",
|
|
17
17
|
componentName: 'linkUrl'
|
|
18
18
|
};
|
|
19
19
|
var Anchor = withLinkClickedEvent('a');
|
package/dist/types/messages.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type MessageDescriptor } from 'react-intl-next';
|
|
2
2
|
export type RequestAccessMessageKey = 'click_to_join' | 'click_to_join_description' | 'forbidden_description' | 'request_access' | 'request_access_description' | 'request_access_pending' | 'request_access_pending_title' | 'request_access_pending_description' | 'request_denied_description' | 'default_no_access_title' | 'direct_access_title' | 'direct_access_description' | 'direct_access' | 'access_exists_description' | 'not_found_description' | 'not_found_title';
|
|
3
|
-
export type MessageKey = 'assigned_to' | 'ai_summarize' | 'ai_summarized' | 'ai_summarized_abbreviation' | 'ai_summarized_info' | 'ai_summarized_info_short' | 'ai_summarizing' | 'ai_summary_error_generic' | 'ai_summary_error_acceptable_use_violation' | 'ai_summary_error_hipaa_content_detected' | 'ai_summary_error_exceeding_context_length_error' | 'ai_summary_action' | 'ai_summary_action_description' | 'automation_action_title' | 'automation_action_tooltip' | 'automation_action_icon_label' | 'automation_action_confluence_page_modal_title' | 'automation_action_confluence_page_modal_description' | 'copy_summary_action' | 'copy_summary_action_description' | 'copied_summary_action_description' | 'beta' | 'cannot_find_link' | 'connect_link_account_card' | 'connect_link_account_card_name' | 'connect_link_account_card_description' | 'connect_unauthorised_account_action' | 'connect_unauthorised_account_description' | 'connect_unauthorised_account_description_no_provider' | 'continue' | 'copy_url_to_clipboard' | 'copied_url_to_clipboard' | 'could_not_load_link' | 'download' | 'download_description' | 'download_file' | 'follow' | 'follow_project_description' | 'follow_project' | 'follow_goal' | 'follow_goal_description' | 'follow_project_error' | 'follow_goal_error' | 'go_back' | 'invalid_permissions' | 'invalid_permissions_description' | 'join_to_view' | 'connect_link_account' | 'created_by' | 'created_on_relative' | 'created_on_absolute' | 'check_this_link' | 'delete' | 'edit' | 'learn_more_about_smart_links' | 'learn_more_about_connecting_account' | 'loading' | 'link_safety_warning_message' | 'modified_by' | 'modified_on_relative' | 'modified_on_absolute' | 'more_actions' | 'not_found_title' | 'not_found_description' | 'open_issue_in_jira' | 'open_link_in_a_new_tab' | 'owned_by' | 'preview_description' | 'preview_improved' | 'preview_close' | 'preview_max_size' | 'preview_min_size' | 'priority_blocker' | 'priority_critical' | 'priority_high' | 'priority_highest' | 'priority_low' | 'priority_lowest' | 'priority_major' | 'priority_medium' | 'priority_minor' | 'priority_trivial' | 'priority_undefined' | 'forbidden_access' | 'pending_request' | 'read_time' | 'restricted_link' | 'request_access_to_view' | 'request_denied' | 'sent_on_relative' | 'sent_on_absolute' | 'status_change_load_error' | 'status_change_permission_error' | 'status_change_update_error' | 'try_again' | 'try_another_account' | 'unauthorised_account_description' | 'unauthorised_account_description_no_provider' | 'unauthorised_account_name' | 'unauthorised_account_name_no_provider' | 'unassigned' | 'unfollow' | 'unfollow_project_description' | 'unfollow_project' | 'unfollow_project_error' | 'unfollow_goal' | 'unfollow_goal_description' | 'unfollow_goal_error' | 'view' | 'viewIn' | 'viewOriginal' | 'actions' | 'add_account' | 'cancel' | 'close' | 'connect_to' | 'connect_account_description' | 'retry' | 'save' | 'unlink_account' | RequestAccessMessageKey | 'related' | 'generic_error_message' | 'related_links_modal_error_header' | 'related_links_modal_error_message' | 'related_links_modal_unavailable_header' | 'related_links_modal_unavailable_message' | 'related_links_modal_title' | 'related_links_view_related_urls' | 'related_links_found_in' | 'related_links_includes_links_to' | 'related_links_not_found' | 'join_to_viewIssueTermRefresh' | 'open_issue_in_jiraIssueTermRefresh' | 'request_access_to_viewIssueTermRefresh' | 'status_change_permission_errorIssueTermRefresh';
|
|
3
|
+
export type MessageKey = 'assigned_to' | 'ai_summarize' | 'ai_summarized' | 'ai_summarized_abbreviation' | 'ai_summarized_info' | 'ai_summarized_info_short' | 'ai_summarizing' | 'ai_summary_error_generic' | 'ai_summary_error_acceptable_use_violation' | 'ai_summary_error_hipaa_content_detected' | 'ai_summary_error_exceeding_context_length_error' | 'ai_summary_action' | 'ai_summary_action_description' | 'automation_action_title' | 'automation_action_tooltip' | 'automation_action_icon_label' | 'automation_action_confluence_page_modal_title' | 'automation_action_confluence_page_modal_description' | 'copy_summary_action' | 'copy_summary_action_description' | 'copied_summary_action_description' | 'beta' | 'cannot_find_link' | 'connect_link_account_card' | 'connect_link_account_card_name' | 'connect_link_account_card_description' | 'connect_unauthorised_account_action' | 'connect_unauthorised_account_description' | 'connect_unauthorised_account_description_no_provider' | 'continue' | 'copy_url_to_clipboard' | 'copied_url_to_clipboard' | 'could_not_load_link' | 'download' | 'download_description' | 'download_file' | 'follow' | 'follow_project_description' | 'follow_project' | 'follow_goal' | 'follow_goal_description' | 'follow_project_error' | 'follow_goal_error' | 'go_back' | 'invalid_permissions' | 'invalid_permissions_description' | 'join_to_view' | 'connect_link_account' | 'created_by' | 'created_on_relative' | 'created_on_absolute' | 'check_this_link' | 'delete' | 'edit' | 'learn_more_about_smart_links' | 'learn_more_about_connecting_account' | 'loading' | 'link_safety_warning_message' | 'modified_by' | 'modified_on_relative' | 'modified_on_absolute' | 'more_actions' | 'more_information_about_this_work_item' | 'not_found_title' | 'not_found_description' | 'open_issue_in_jira' | 'open_link_in_a_new_tab' | 'owned_by' | 'preview_description' | 'preview_improved' | 'preview_close' | 'preview_max_size' | 'preview_min_size' | 'priority_blocker' | 'priority_critical' | 'priority_high' | 'priority_highest' | 'priority_low' | 'priority_lowest' | 'priority_major' | 'priority_medium' | 'priority_minor' | 'priority_trivial' | 'priority_undefined' | 'forbidden_access' | 'pending_request' | 'read_time' | 'restricted_link' | 'request_access_to_view' | 'request_denied' | 'sent_on_relative' | 'sent_on_absolute' | 'status_change_load_error' | 'status_change_permission_error' | 'status_change_update_error' | 'try_again' | 'try_another_account' | 'unauthorised_account_description' | 'unauthorised_account_description_no_provider' | 'unauthorised_account_name' | 'unauthorised_account_name_no_provider' | 'unassigned' | 'unfollow' | 'unfollow_project_description' | 'unfollow_project' | 'unfollow_project_error' | 'unfollow_goal' | 'unfollow_goal_description' | 'unfollow_goal_error' | 'view' | 'viewIn' | 'viewOriginal' | 'actions' | 'add_account' | 'cancel' | 'close' | 'connect_to' | 'connect_account_description' | 'retry' | 'save' | 'unlink_account' | RequestAccessMessageKey | 'related' | 'generic_error_message' | 'related_links_modal_error_header' | 'related_links_modal_error_message' | 'related_links_modal_unavailable_header' | 'related_links_modal_unavailable_message' | 'related_links_modal_title' | 'related_links_view_related_urls' | 'related_links_found_in' | 'related_links_includes_links_to' | 'related_links_not_found' | 'join_to_viewIssueTermRefresh' | 'open_issue_in_jiraIssueTermRefresh' | 'request_access_to_viewIssueTermRefresh' | 'status_change_permission_errorIssueTermRefresh';
|
|
4
4
|
type Messages = {
|
|
5
5
|
[K in MessageKey]: MessageDescriptor;
|
|
6
6
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type MessageDescriptor } from 'react-intl-next';
|
|
2
2
|
export type RequestAccessMessageKey = 'click_to_join' | 'click_to_join_description' | 'forbidden_description' | 'request_access' | 'request_access_description' | 'request_access_pending' | 'request_access_pending_title' | 'request_access_pending_description' | 'request_denied_description' | 'default_no_access_title' | 'direct_access_title' | 'direct_access_description' | 'direct_access' | 'access_exists_description' | 'not_found_description' | 'not_found_title';
|
|
3
|
-
export type MessageKey = 'assigned_to' | 'ai_summarize' | 'ai_summarized' | 'ai_summarized_abbreviation' | 'ai_summarized_info' | 'ai_summarized_info_short' | 'ai_summarizing' | 'ai_summary_error_generic' | 'ai_summary_error_acceptable_use_violation' | 'ai_summary_error_hipaa_content_detected' | 'ai_summary_error_exceeding_context_length_error' | 'ai_summary_action' | 'ai_summary_action_description' | 'automation_action_title' | 'automation_action_tooltip' | 'automation_action_icon_label' | 'automation_action_confluence_page_modal_title' | 'automation_action_confluence_page_modal_description' | 'copy_summary_action' | 'copy_summary_action_description' | 'copied_summary_action_description' | 'beta' | 'cannot_find_link' | 'connect_link_account_card' | 'connect_link_account_card_name' | 'connect_link_account_card_description' | 'connect_unauthorised_account_action' | 'connect_unauthorised_account_description' | 'connect_unauthorised_account_description_no_provider' | 'continue' | 'copy_url_to_clipboard' | 'copied_url_to_clipboard' | 'could_not_load_link' | 'download' | 'download_description' | 'download_file' | 'follow' | 'follow_project_description' | 'follow_project' | 'follow_goal' | 'follow_goal_description' | 'follow_project_error' | 'follow_goal_error' | 'go_back' | 'invalid_permissions' | 'invalid_permissions_description' | 'join_to_view' | 'connect_link_account' | 'created_by' | 'created_on_relative' | 'created_on_absolute' | 'check_this_link' | 'delete' | 'edit' | 'learn_more_about_smart_links' | 'learn_more_about_connecting_account' | 'loading' | 'link_safety_warning_message' | 'modified_by' | 'modified_on_relative' | 'modified_on_absolute' | 'more_actions' | 'not_found_title' | 'not_found_description' | 'open_issue_in_jira' | 'open_link_in_a_new_tab' | 'owned_by' | 'preview_description' | 'preview_improved' | 'preview_close' | 'preview_max_size' | 'preview_min_size' | 'priority_blocker' | 'priority_critical' | 'priority_high' | 'priority_highest' | 'priority_low' | 'priority_lowest' | 'priority_major' | 'priority_medium' | 'priority_minor' | 'priority_trivial' | 'priority_undefined' | 'forbidden_access' | 'pending_request' | 'read_time' | 'restricted_link' | 'request_access_to_view' | 'request_denied' | 'sent_on_relative' | 'sent_on_absolute' | 'status_change_load_error' | 'status_change_permission_error' | 'status_change_update_error' | 'try_again' | 'try_another_account' | 'unauthorised_account_description' | 'unauthorised_account_description_no_provider' | 'unauthorised_account_name' | 'unauthorised_account_name_no_provider' | 'unassigned' | 'unfollow' | 'unfollow_project_description' | 'unfollow_project' | 'unfollow_project_error' | 'unfollow_goal' | 'unfollow_goal_description' | 'unfollow_goal_error' | 'view' | 'viewIn' | 'viewOriginal' | 'actions' | 'add_account' | 'cancel' | 'close' | 'connect_to' | 'connect_account_description' | 'retry' | 'save' | 'unlink_account' | RequestAccessMessageKey | 'related' | 'generic_error_message' | 'related_links_modal_error_header' | 'related_links_modal_error_message' | 'related_links_modal_unavailable_header' | 'related_links_modal_unavailable_message' | 'related_links_modal_title' | 'related_links_view_related_urls' | 'related_links_found_in' | 'related_links_includes_links_to' | 'related_links_not_found' | 'join_to_viewIssueTermRefresh' | 'open_issue_in_jiraIssueTermRefresh' | 'request_access_to_viewIssueTermRefresh' | 'status_change_permission_errorIssueTermRefresh';
|
|
3
|
+
export type MessageKey = 'assigned_to' | 'ai_summarize' | 'ai_summarized' | 'ai_summarized_abbreviation' | 'ai_summarized_info' | 'ai_summarized_info_short' | 'ai_summarizing' | 'ai_summary_error_generic' | 'ai_summary_error_acceptable_use_violation' | 'ai_summary_error_hipaa_content_detected' | 'ai_summary_error_exceeding_context_length_error' | 'ai_summary_action' | 'ai_summary_action_description' | 'automation_action_title' | 'automation_action_tooltip' | 'automation_action_icon_label' | 'automation_action_confluence_page_modal_title' | 'automation_action_confluence_page_modal_description' | 'copy_summary_action' | 'copy_summary_action_description' | 'copied_summary_action_description' | 'beta' | 'cannot_find_link' | 'connect_link_account_card' | 'connect_link_account_card_name' | 'connect_link_account_card_description' | 'connect_unauthorised_account_action' | 'connect_unauthorised_account_description' | 'connect_unauthorised_account_description_no_provider' | 'continue' | 'copy_url_to_clipboard' | 'copied_url_to_clipboard' | 'could_not_load_link' | 'download' | 'download_description' | 'download_file' | 'follow' | 'follow_project_description' | 'follow_project' | 'follow_goal' | 'follow_goal_description' | 'follow_project_error' | 'follow_goal_error' | 'go_back' | 'invalid_permissions' | 'invalid_permissions_description' | 'join_to_view' | 'connect_link_account' | 'created_by' | 'created_on_relative' | 'created_on_absolute' | 'check_this_link' | 'delete' | 'edit' | 'learn_more_about_smart_links' | 'learn_more_about_connecting_account' | 'loading' | 'link_safety_warning_message' | 'modified_by' | 'modified_on_relative' | 'modified_on_absolute' | 'more_actions' | 'more_information_about_this_work_item' | 'not_found_title' | 'not_found_description' | 'open_issue_in_jira' | 'open_link_in_a_new_tab' | 'owned_by' | 'preview_description' | 'preview_improved' | 'preview_close' | 'preview_max_size' | 'preview_min_size' | 'priority_blocker' | 'priority_critical' | 'priority_high' | 'priority_highest' | 'priority_low' | 'priority_lowest' | 'priority_major' | 'priority_medium' | 'priority_minor' | 'priority_trivial' | 'priority_undefined' | 'forbidden_access' | 'pending_request' | 'read_time' | 'restricted_link' | 'request_access_to_view' | 'request_denied' | 'sent_on_relative' | 'sent_on_absolute' | 'status_change_load_error' | 'status_change_permission_error' | 'status_change_update_error' | 'try_again' | 'try_another_account' | 'unauthorised_account_description' | 'unauthorised_account_description_no_provider' | 'unauthorised_account_name' | 'unauthorised_account_name_no_provider' | 'unassigned' | 'unfollow' | 'unfollow_project_description' | 'unfollow_project' | 'unfollow_project_error' | 'unfollow_goal' | 'unfollow_goal_description' | 'unfollow_goal_error' | 'view' | 'viewIn' | 'viewOriginal' | 'actions' | 'add_account' | 'cancel' | 'close' | 'connect_to' | 'connect_account_description' | 'retry' | 'save' | 'unlink_account' | RequestAccessMessageKey | 'related' | 'generic_error_message' | 'related_links_modal_error_header' | 'related_links_modal_error_message' | 'related_links_modal_unavailable_header' | 'related_links_modal_unavailable_message' | 'related_links_modal_title' | 'related_links_view_related_urls' | 'related_links_found_in' | 'related_links_includes_links_to' | 'related_links_not_found' | 'join_to_viewIssueTermRefresh' | 'open_issue_in_jiraIssueTermRefresh' | 'request_access_to_viewIssueTermRefresh' | 'status_change_permission_errorIssueTermRefresh';
|
|
4
4
|
type Messages = {
|
|
5
5
|
[K in MessageKey]: MessageDescriptor;
|
|
6
6
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/smart-card",
|
|
3
|
-
"version": "35.2.
|
|
3
|
+
"version": "35.2.11",
|
|
4
4
|
"description": "Smart card component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"@atlaskit/logo": "^16.0.0",
|
|
55
55
|
"@atlaskit/lozenge": "^12.2.0",
|
|
56
56
|
"@atlaskit/menu": "^3.1.0",
|
|
57
|
-
"@atlaskit/modal-dialog": "^13.
|
|
57
|
+
"@atlaskit/modal-dialog": "^13.1.0",
|
|
58
58
|
"@atlaskit/outbound-auth-flow-client": "^3.4.0",
|
|
59
59
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
60
60
|
"@atlaskit/popup": "^2.0.0",
|
|
@@ -192,9 +192,6 @@
|
|
|
192
192
|
"platform_editor_hyperlink_underline": {
|
|
193
193
|
"type": "boolean"
|
|
194
194
|
},
|
|
195
|
-
"send_locale_to_summarize_in_assistance-service": {
|
|
196
|
-
"type": "boolean"
|
|
197
|
-
},
|
|
198
195
|
"bandicoots-compiled-migration-smartcard": {
|
|
199
196
|
"type": "boolean"
|
|
200
197
|
},
|