@atlaskit/smart-card 43.17.0 → 43.17.2
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 +25 -0
- package/dist/cjs/extractors/action/extract-invoke-preview-action.js +2 -3
- package/dist/cjs/messages.js +5 -0
- package/dist/cjs/state/hooks/use-incoming-outgoing-links/index.js +101 -17
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/EmbedModal/components/link-info/index.js +5 -4
- package/dist/cjs/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/lozenge-action-trigger/index.js +6 -0
- package/dist/cjs/view/InlineCard/common/inline-lozenge/index.js +1 -1
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/extractors/action/extract-invoke-preview-action.js +2 -3
- package/dist/es2019/messages.js +5 -0
- package/dist/es2019/state/hooks/use-incoming-outgoing-links/index.js +43 -2
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/EmbedModal/components/link-info/index.js +5 -4
- package/dist/es2019/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/lozenge-action-trigger/index.js +6 -0
- package/dist/es2019/view/InlineCard/common/inline-lozenge/index.js +1 -1
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/extractors/action/extract-invoke-preview-action.js +2 -3
- package/dist/esm/messages.js +5 -0
- package/dist/esm/state/hooks/use-incoming-outgoing-links/index.js +101 -17
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/EmbedModal/components/link-info/index.js +5 -4
- package/dist/esm/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/lozenge-action-trigger/index.js +6 -0
- package/dist/esm/view/InlineCard/common/inline-lozenge/index.js +1 -1
- 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 +12 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 43.17.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`53aef9589ca55`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/53aef9589ca55) -
|
|
8
|
+
[EDITOR-3786] Make sure that for any check of `cc_editor_ai_content_mode` &&
|
|
9
|
+
`platform_editor_content_mode_button_mvp` in the code we are also checking
|
|
10
|
+
`confluence_compact_text_format`
|
|
11
|
+
- [`91416449bc93e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/91416449bc93e) -
|
|
12
|
+
Removed feature flag linking_platform_hide_preview_action_blanket_prop
|
|
13
|
+
- [`0692ceeae7098`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0692ceeae7098) -
|
|
14
|
+
Add aria-label to status dropdown in flex card
|
|
15
|
+
- [`61261257a7653`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/61261257a7653) -
|
|
16
|
+
Remove embed modal unnecessary textual description on the icon button. Behind fg
|
|
17
|
+
platform_navx_flex_card_status_dropdown_a11y_fix
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
|
|
20
|
+
## 43.17.1
|
|
21
|
+
|
|
22
|
+
### Patch Changes
|
|
23
|
+
|
|
24
|
+
- [`a7c44eed85fa9`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a7c44eed85fa9) -
|
|
25
|
+
Send X-Query-Context header to UGS when calling AGG to server related links feature
|
|
26
|
+
- Updated dependencies
|
|
27
|
+
|
|
3
28
|
## 43.17.0
|
|
4
29
|
|
|
5
30
|
### Minor Changes
|
|
@@ -10,7 +10,6 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
10
10
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
11
11
|
var _linkExtractors = require("@atlaskit/link-extractors");
|
|
12
12
|
var _utils = require("@atlaskit/linking-common/utils");
|
|
13
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
14
13
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
15
14
|
var _index = require("../../index");
|
|
16
15
|
var _helpers = require("../../state/helpers");
|
|
@@ -117,8 +116,8 @@ var extractInvokePreviewAction = exports.extractInvokePreviewAction = function e
|
|
|
117
116
|
src: (_extractSmartLinkEmbe2 = (0, _linkExtractors.extractSmartLinkEmbed)(response)) === null || _extractSmartLinkEmbe2 === void 0 ? void 0 : _extractSmartLinkEmbe2.src,
|
|
118
117
|
title: (0, _linkExtractors.extractSmartLinkTitle)(response),
|
|
119
118
|
url: url,
|
|
120
|
-
|
|
121
|
-
|
|
119
|
+
size: actionOptions === null || actionOptions === void 0 || (_actionOptions$previe = actionOptions.previewAction) === null || _actionOptions$previe === void 0 ? void 0 : _actionOptions$previe.size,
|
|
120
|
+
isBlanketHidden: actionOptions === null || actionOptions === void 0 || (_actionOptions$previe2 = actionOptions.previewAction) === null || _actionOptions$previe2 === void 0 ? void 0 : _actionOptions$previe2.hideBlanket
|
|
122
121
|
}, (0, _expValEquals.expValEquals)('platform_hover_card_preview_panel', 'cohort', 'test') && {
|
|
123
122
|
isInPreviewPanel: isInPreviewPanel
|
|
124
123
|
}));
|
package/dist/cjs/messages.js
CHANGED
|
@@ -71,6 +71,11 @@ var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
|
|
|
71
71
|
defaultMessage: 'Assigned to {context}',
|
|
72
72
|
description: 'Indicates the person or entity that the resource is assigned to.'
|
|
73
73
|
},
|
|
74
|
+
change_status: {
|
|
75
|
+
id: 'fabric.linking.change_status',
|
|
76
|
+
defaultMessage: 'Change status: {status}',
|
|
77
|
+
description: 'Aria label for the button to change the status of a linked resource.'
|
|
78
|
+
},
|
|
74
79
|
automation_action_title: {
|
|
75
80
|
id: 'fabric.linking.automation-action.title',
|
|
76
81
|
defaultMessage: 'View automation rules',
|
|
@@ -9,6 +9,7 @@ var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"))
|
|
|
9
9
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
10
10
|
var _react = require("react");
|
|
11
11
|
var _linkingCommon = require("@atlaskit/linking-common");
|
|
12
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
12
13
|
var _query = require("./query");
|
|
13
14
|
/**
|
|
14
15
|
* @param baseUriWithNoTrailingSlash base url which will then be appended with /gateway/api/graphql to make requests to AGG
|
|
@@ -31,6 +32,66 @@ var useIncomingOutgoingAri = function useIncomingOutgoingAri() {
|
|
|
31
32
|
return _ref.apply(this, arguments);
|
|
32
33
|
};
|
|
33
34
|
}(), [baseUriWithNoTrailingSlash]);
|
|
35
|
+
var getCurrentSiteId = (0, _react.useCallback)( /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {
|
|
36
|
+
var response;
|
|
37
|
+
return _regenerator.default.wrap(function _callee2$(_context2) {
|
|
38
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
39
|
+
case 0:
|
|
40
|
+
_context2.prev = 0;
|
|
41
|
+
_context2.next = 3;
|
|
42
|
+
return (0, _linkingCommon.request)('get', baseUriWithNoTrailingSlash + '/_edge/tenant_info');
|
|
43
|
+
case 3:
|
|
44
|
+
response = _context2.sent;
|
|
45
|
+
return _context2.abrupt("return", response === null || response === void 0 ? void 0 : response.cloudId);
|
|
46
|
+
case 7:
|
|
47
|
+
_context2.prev = 7;
|
|
48
|
+
_context2.t0 = _context2["catch"](0);
|
|
49
|
+
return _context2.abrupt("return", undefined);
|
|
50
|
+
case 10:
|
|
51
|
+
case "end":
|
|
52
|
+
return _context2.stop();
|
|
53
|
+
}
|
|
54
|
+
}, _callee2, null, [[0, 7]]);
|
|
55
|
+
})), [baseUriWithNoTrailingSlash]);
|
|
56
|
+
var getSiteId = (0, _react.useCallback)( /*#__PURE__*/function () {
|
|
57
|
+
var _ref3 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3(resourceAri) {
|
|
58
|
+
var ariPattern, match;
|
|
59
|
+
return _regenerator.default.wrap(function _callee3$(_context3) {
|
|
60
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
61
|
+
case 0:
|
|
62
|
+
// ARI pattern that matches both formats:
|
|
63
|
+
// - New format: ari:cloud:<resource_owner>::<resource_type>/<resource_id>
|
|
64
|
+
// - Legacy format: ari:cloud:<resource_owner>:<cloud_id>:<resource_type>/<resource_id>
|
|
65
|
+
//
|
|
66
|
+
// Capture groups:
|
|
67
|
+
// 1: resource_owner - [a-z][a-z.-]+
|
|
68
|
+
// 2: cloud_id (siteId) - [a-zA-Z0-9_.-]+ (empty for new format, but since we need to return the siteId, we only use legacy one)
|
|
69
|
+
// 3: resource_type - [a-z][a-zA-Z.-]
|
|
70
|
+
// 4: resource_id
|
|
71
|
+
//
|
|
72
|
+
// See https://developer.atlassian.com/platform/atlassian-resource-identifier/spec/ari-latest/#syntax for more details
|
|
73
|
+
ariPattern = /^ari:cloud:([a-z][a-z.-]+):([a-zA-Z0-9_.-]+):([a-z][a-zA-Z.-]+)\/(.+)$/;
|
|
74
|
+
match = resourceAri.match(ariPattern);
|
|
75
|
+
if (!(match && match[2])) {
|
|
76
|
+
_context3.next = 4;
|
|
77
|
+
break;
|
|
78
|
+
}
|
|
79
|
+
return _context3.abrupt("return", match[2]);
|
|
80
|
+
case 4:
|
|
81
|
+
_context3.next = 6;
|
|
82
|
+
return getCurrentSiteId();
|
|
83
|
+
case 6:
|
|
84
|
+
return _context3.abrupt("return", _context3.sent);
|
|
85
|
+
case 7:
|
|
86
|
+
case "end":
|
|
87
|
+
return _context3.stop();
|
|
88
|
+
}
|
|
89
|
+
}, _callee3);
|
|
90
|
+
}));
|
|
91
|
+
return function (_x3) {
|
|
92
|
+
return _ref3.apply(this, arguments);
|
|
93
|
+
};
|
|
94
|
+
}(), [getCurrentSiteId]);
|
|
34
95
|
var getIncomingOutgoingAris = (0, _react.useCallback)(
|
|
35
96
|
/*#__PURE__*/
|
|
36
97
|
/**
|
|
@@ -42,20 +103,43 @@ var useIncomingOutgoingAri = function useIncomingOutgoingAri() {
|
|
|
42
103
|
*
|
|
43
104
|
*/
|
|
44
105
|
function () {
|
|
45
|
-
var
|
|
106
|
+
var _ref4 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4(ari) {
|
|
46
107
|
var _response$data$graphS, _response$data, _response$data$graphS2, _response$data2;
|
|
47
108
|
var firstIncoming,
|
|
48
109
|
firstOutgoing,
|
|
110
|
+
headers,
|
|
111
|
+
siteId,
|
|
49
112
|
response,
|
|
50
113
|
incomingAris,
|
|
51
114
|
outgoingAris,
|
|
52
|
-
|
|
53
|
-
return _regenerator.default.wrap(function
|
|
54
|
-
while (1) switch (
|
|
115
|
+
_args4 = arguments;
|
|
116
|
+
return _regenerator.default.wrap(function _callee4$(_context4) {
|
|
117
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
55
118
|
case 0:
|
|
56
|
-
firstIncoming =
|
|
57
|
-
firstOutgoing =
|
|
58
|
-
|
|
119
|
+
firstIncoming = _args4.length > 1 && _args4[1] !== undefined ? _args4[1] : 50;
|
|
120
|
+
firstOutgoing = _args4.length > 2 && _args4[2] !== undefined ? _args4[2] : 50;
|
|
121
|
+
if (!(0, _platformFeatureFlags.fg)('platform_navx_send_context_to_ugs_for_rel_links')) {
|
|
122
|
+
_context4.next = 9;
|
|
123
|
+
break;
|
|
124
|
+
}
|
|
125
|
+
_context4.next = 5;
|
|
126
|
+
return getSiteId(ari);
|
|
127
|
+
case 5:
|
|
128
|
+
siteId = _context4.sent;
|
|
129
|
+
if (siteId) {
|
|
130
|
+
_context4.next = 8;
|
|
131
|
+
break;
|
|
132
|
+
}
|
|
133
|
+
return _context4.abrupt("return", {
|
|
134
|
+
incomingAris: [],
|
|
135
|
+
outgoingAris: []
|
|
136
|
+
});
|
|
137
|
+
case 8:
|
|
138
|
+
headers = {
|
|
139
|
+
'X-Query-Context': "ari:cloud:platform::site/".concat(siteId)
|
|
140
|
+
};
|
|
141
|
+
case 9:
|
|
142
|
+
_context4.next = 11;
|
|
59
143
|
return aggRequestCall({
|
|
60
144
|
variables: {
|
|
61
145
|
id: ari,
|
|
@@ -63,9 +147,9 @@ var useIncomingOutgoingAri = function useIncomingOutgoingAri() {
|
|
|
63
147
|
firstOutgoing: firstOutgoing
|
|
64
148
|
},
|
|
65
149
|
query: _query.queryIncomingOutgoingLinks
|
|
66
|
-
});
|
|
67
|
-
case
|
|
68
|
-
response =
|
|
150
|
+
}, headers);
|
|
151
|
+
case 11:
|
|
152
|
+
response = _context4.sent;
|
|
69
153
|
incomingAris = (_response$data$graphS = response === null || response === void 0 || (_response$data = response.data) === null || _response$data === void 0 || (_response$data = _response$data.graphStore) === null || _response$data === void 0 || (_response$data = _response$data.incoming) === null || _response$data === void 0 || (_response$data = _response$data.aris) === null || _response$data === void 0 || (_response$data = _response$data.map(function (node) {
|
|
70
154
|
return node === null || node === void 0 ? void 0 : node.id;
|
|
71
155
|
})) === null || _response$data === void 0 ? void 0 : _response$data.filter(function (id) {
|
|
@@ -76,20 +160,20 @@ var useIncomingOutgoingAri = function useIncomingOutgoingAri() {
|
|
|
76
160
|
})) === null || _response$data2 === void 0 ? void 0 : _response$data2.filter(function (id) {
|
|
77
161
|
return !!id;
|
|
78
162
|
})) !== null && _response$data$graphS2 !== void 0 ? _response$data$graphS2 : [];
|
|
79
|
-
return
|
|
163
|
+
return _context4.abrupt("return", {
|
|
80
164
|
incomingAris: incomingAris,
|
|
81
165
|
outgoingAris: outgoingAris
|
|
82
166
|
});
|
|
83
|
-
case
|
|
167
|
+
case 15:
|
|
84
168
|
case "end":
|
|
85
|
-
return
|
|
169
|
+
return _context4.stop();
|
|
86
170
|
}
|
|
87
|
-
},
|
|
171
|
+
}, _callee4);
|
|
88
172
|
}));
|
|
89
|
-
return function (
|
|
90
|
-
return
|
|
173
|
+
return function (_x4) {
|
|
174
|
+
return _ref4.apply(this, arguments);
|
|
91
175
|
};
|
|
92
|
-
}(), [aggRequestCall]);
|
|
176
|
+
}(), [aggRequestCall, getSiteId]);
|
|
93
177
|
return (0, _react.useMemo)(function () {
|
|
94
178
|
return {
|
|
95
179
|
getIncomingOutgoingAris: getIncomingOutgoingAris
|
|
@@ -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: "43.
|
|
14
|
+
packageVersion: "43.17.1"
|
|
15
15
|
};
|
|
16
16
|
var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
17
17
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -17,6 +17,7 @@ var _fullscreenEnter = _interopRequireDefault(require("@atlaskit/icon/core/fulls
|
|
|
17
17
|
var _fullscreenExit = _interopRequireDefault(require("@atlaskit/icon/core/fullscreen-exit"));
|
|
18
18
|
var _linkExternal = _interopRequireDefault(require("@atlaskit/icon/core/link-external"));
|
|
19
19
|
var _modalDialog = require("@atlaskit/modal-dialog");
|
|
20
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
20
21
|
var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
|
|
21
22
|
var _messages = require("../../../../messages");
|
|
22
23
|
var _Icon = require("../../../common/Icon");
|
|
@@ -51,7 +52,7 @@ var LinkInfo = function LinkInfo(_ref) {
|
|
|
51
52
|
content: /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, _messages.messages.download),
|
|
52
53
|
icon: function icon() {
|
|
53
54
|
return /*#__PURE__*/_react.default.createElement(_download.default, {
|
|
54
|
-
label: _messages.messages.download.defaultMessage,
|
|
55
|
+
label: (0, _platformFeatureFlags.fg)('platform_navx_flex_card_status_dropdown_a11y_fix') ? '' : _messages.messages.download.defaultMessage,
|
|
55
56
|
spacing: "spacious",
|
|
56
57
|
color: "currentColor"
|
|
57
58
|
});
|
|
@@ -69,7 +70,7 @@ var LinkInfo = function LinkInfo(_ref) {
|
|
|
69
70
|
content: content,
|
|
70
71
|
icon: function icon() {
|
|
71
72
|
return /*#__PURE__*/_react.default.createElement(_linkExternal.default, {
|
|
72
|
-
label: _messages.messages.viewOriginal.defaultMessage,
|
|
73
|
+
label: (0, _platformFeatureFlags.fg)('platform_navx_flex_card_status_dropdown_a11y_fix') ? '' : _messages.messages.viewOriginal.defaultMessage,
|
|
73
74
|
spacing: "spacious",
|
|
74
75
|
color: "currentColor"
|
|
75
76
|
});
|
|
@@ -84,11 +85,11 @@ var LinkInfo = function LinkInfo(_ref) {
|
|
|
84
85
|
var isFullScreen = size === _constants.MAX_MODAL_SIZE;
|
|
85
86
|
var message = isFullScreen ? _messages.messages.preview_min_size : _messages.messages.preview_max_size;
|
|
86
87
|
var _icon = isFullScreen ? /*#__PURE__*/_react.default.createElement(_fullscreenExit.default, {
|
|
87
|
-
label: message.defaultMessage,
|
|
88
|
+
label: (0, _platformFeatureFlags.fg)('platform_navx_flex_card_status_dropdown_a11y_fix') ? '' : message.defaultMessage,
|
|
88
89
|
spacing: "spacious",
|
|
89
90
|
color: "currentColor"
|
|
90
91
|
}) : /*#__PURE__*/_react.default.createElement(_fullscreenEnter.default, {
|
|
91
|
-
label: message.defaultMessage,
|
|
92
|
+
label: (0, _platformFeatureFlags.fg)('platform_navx_flex_card_status_dropdown_a11y_fix') ? '' : message.defaultMessage,
|
|
92
93
|
spacing: "spacious",
|
|
93
94
|
color: "currentColor"
|
|
94
95
|
});
|
|
@@ -15,10 +15,12 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
15
15
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
16
16
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
17
17
|
var _react2 = require("@compiled/react");
|
|
18
|
+
var _reactIntlNext = require("react-intl-next");
|
|
18
19
|
var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/core/migration/chevron-down"));
|
|
19
20
|
var _lozenge = _interopRequireDefault(require("@atlaskit/lozenge"));
|
|
20
21
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
21
22
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
23
|
+
var _messages = require("../../../../../../../../messages");
|
|
22
24
|
var _excluded = ["appearance", "isOpen", "testId", "text", "triggerRef"];
|
|
23
25
|
/* eslint-disable @atlaskit/design-system/use-tokens-typography */
|
|
24
26
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
@@ -36,6 +38,7 @@ var LozengeActionTrigger = function LozengeActionTrigger(_ref) {
|
|
|
36
38
|
text = _ref.text,
|
|
37
39
|
triggerRef = _ref.triggerRef,
|
|
38
40
|
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
41
|
+
var intl = (0, _reactIntlNext.useIntl)();
|
|
39
42
|
var _useState = (0, _react.useState)(false),
|
|
40
43
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
41
44
|
isHovering = _useState2[0],
|
|
@@ -123,6 +126,9 @@ var LozengeActionTrigger = function LozengeActionTrigger(_ref) {
|
|
|
123
126
|
onKeyDown: onMouseOrKeyDown,
|
|
124
127
|
onKeyUp: onMouseOrKeyUp,
|
|
125
128
|
ref: triggerRef,
|
|
129
|
+
"aria-label": (0, _platformFeatureFlags.fg)('platform_navx_flex_card_status_dropdown_a11y_fix') ? intl.formatMessage(_messages.messages.change_status, {
|
|
130
|
+
status: text
|
|
131
|
+
}) : undefined,
|
|
126
132
|
className: (0, _runtime.ax)(["_kkk2n7od _ca0qidpf _u5f3idpf _n3tdidpf _19bvidpf _15vhn7od _1dqonqa1 _189e1dm9 _1h6d1j28 _bfhk1j28 _syazn7od _80omtlke _ect4n7od _1wybn7od _zg8ln7od _k48pn7od _vwz4idpf _1p1dn7od _19pkv77o _2hwxv77o _otyrv77o _18u0v77o _mizu1r31 _1guj1r31 _p8tl1r31 _ra3xglyw _pbhaglyw _1q2vglyw _128m1o36 _11ow1o36 _j8b81o36 _1bas1qi0 _19h61qi0 _1d391qi0 _1ejj1vm4 _1u6l1vm4 _6ssh1vm4"])
|
|
127
133
|
}), lozenge);
|
|
128
134
|
};
|
|
@@ -18,7 +18,7 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
|
|
|
18
18
|
var wrapperStylesOld = null;
|
|
19
19
|
var wrapperStylesNew = null;
|
|
20
20
|
var InlineLozenge = function InlineLozenge(props) {
|
|
21
|
-
var shouldAddLozengeAttribute = (0, _expValEquals.expValEquals)('cc_editor_ai_content_mode', 'variant', 'test') && (0, _platformFeatureFlags.fg)('platform_editor_content_mode_button_mvp');
|
|
21
|
+
var shouldAddLozengeAttribute = (0, _expValEquals.expValEquals)('confluence_compact_text_format', 'isEnabled', true) || (0, _expValEquals.expValEquals)('cc_editor_ai_content_mode', 'variant', 'test') && (0, _platformFeatureFlags.fg)('platform_editor_content_mode_button_mvp');
|
|
22
22
|
if ((0, _platformFeatureFlags.fg)('jfp-magma-platform-lozenge-jump-fix')) {
|
|
23
23
|
return /*#__PURE__*/React.createElement("span", (0, _extends2.default)({}, shouldAddLozengeAttribute && {
|
|
24
24
|
'data-inline-card-lozenge': true
|
|
@@ -22,7 +22,7 @@ var _excluded = ["href", "children", "checkSafety", "onClick", "testId", "isLink
|
|
|
22
22
|
_excluded2 = ["isLinkSafe", "showSafetyWarningModal"];
|
|
23
23
|
var PACKAGE_DATA = {
|
|
24
24
|
packageName: "@atlaskit/smart-card",
|
|
25
|
-
packageVersion: "43.
|
|
25
|
+
packageVersion: "43.17.1",
|
|
26
26
|
componentName: 'linkUrl'
|
|
27
27
|
};
|
|
28
28
|
var Anchor = (0, _click.withLinkClickedEvent)('a');
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { extractPreview as extractPreviewData, extractSmartLinkAri, extractSmartLinkEmbed, extractSmartLinkProvider, extractSmartLinkTitle, extractSmartLinkUrl } from '@atlaskit/link-extractors';
|
|
2
2
|
import { isWithinPreviewPanelIFrame } from '@atlaskit/linking-common/utils';
|
|
3
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
3
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
5
4
|
import { ActionName, CardAction } from '../../index';
|
|
6
5
|
import { getExtensionKey } from '../../state/helpers';
|
|
@@ -99,8 +98,8 @@ export const extractInvokePreviewAction = param => {
|
|
|
99
98
|
src: (_extractSmartLinkEmbe2 = extractSmartLinkEmbed(response)) === null || _extractSmartLinkEmbe2 === void 0 ? void 0 : _extractSmartLinkEmbe2.src,
|
|
100
99
|
title: extractSmartLinkTitle(response),
|
|
101
100
|
url,
|
|
102
|
-
|
|
103
|
-
|
|
101
|
+
size: actionOptions === null || actionOptions === void 0 ? void 0 : (_actionOptions$previe = actionOptions.previewAction) === null || _actionOptions$previe === void 0 ? void 0 : _actionOptions$previe.size,
|
|
102
|
+
isBlanketHidden: actionOptions === null || actionOptions === void 0 ? void 0 : (_actionOptions$previe2 = actionOptions.previewAction) === null || _actionOptions$previe2 === void 0 ? void 0 : _actionOptions$previe2.hideBlanket,
|
|
104
103
|
...(expValEquals('platform_hover_card_preview_panel', 'cohort', 'test') && {
|
|
105
104
|
isInPreviewPanel
|
|
106
105
|
})
|
package/dist/es2019/messages.js
CHANGED
|
@@ -65,6 +65,11 @@ export const messages = defineMessages({
|
|
|
65
65
|
defaultMessage: 'Assigned to {context}',
|
|
66
66
|
description: 'Indicates the person or entity that the resource is assigned to.'
|
|
67
67
|
},
|
|
68
|
+
change_status: {
|
|
69
|
+
id: 'fabric.linking.change_status',
|
|
70
|
+
defaultMessage: 'Change status: {status}',
|
|
71
|
+
description: 'Aria label for the button to change the status of a linked resource.'
|
|
72
|
+
},
|
|
68
73
|
automation_action_title: {
|
|
69
74
|
id: 'fabric.linking.automation-action.title',
|
|
70
75
|
defaultMessage: 'View automation rules',
|
|
@@ -1,11 +1,39 @@
|
|
|
1
1
|
import { useCallback, useMemo } from 'react';
|
|
2
2
|
import { request } from '@atlaskit/linking-common';
|
|
3
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
3
4
|
import { queryIncomingOutgoingLinks as queryIncomingOutgoingAris } from './query';
|
|
4
5
|
/**
|
|
5
6
|
* @param baseUriWithNoTrailingSlash base url which will then be appended with /gateway/api/graphql to make requests to AGG
|
|
6
7
|
*/
|
|
7
8
|
const useIncomingOutgoingAri = (baseUriWithNoTrailingSlash = '') => {
|
|
8
9
|
const aggRequestCall = useCallback(async (body, headers) => request('post', baseUriWithNoTrailingSlash + '/gateway/api/graphql', body, headers, [200]), [baseUriWithNoTrailingSlash]);
|
|
10
|
+
const getCurrentSiteId = useCallback(async () => {
|
|
11
|
+
try {
|
|
12
|
+
const response = await request('get', baseUriWithNoTrailingSlash + '/_edge/tenant_info');
|
|
13
|
+
return response === null || response === void 0 ? void 0 : response.cloudId;
|
|
14
|
+
} catch {
|
|
15
|
+
return undefined;
|
|
16
|
+
}
|
|
17
|
+
}, [baseUriWithNoTrailingSlash]);
|
|
18
|
+
const getSiteId = useCallback(async resourceAri => {
|
|
19
|
+
// ARI pattern that matches both formats:
|
|
20
|
+
// - New format: ari:cloud:<resource_owner>::<resource_type>/<resource_id>
|
|
21
|
+
// - Legacy format: ari:cloud:<resource_owner>:<cloud_id>:<resource_type>/<resource_id>
|
|
22
|
+
//
|
|
23
|
+
// Capture groups:
|
|
24
|
+
// 1: resource_owner - [a-z][a-z.-]+
|
|
25
|
+
// 2: cloud_id (siteId) - [a-zA-Z0-9_.-]+ (empty for new format, but since we need to return the siteId, we only use legacy one)
|
|
26
|
+
// 3: resource_type - [a-z][a-zA-Z.-]
|
|
27
|
+
// 4: resource_id
|
|
28
|
+
//
|
|
29
|
+
// See https://developer.atlassian.com/platform/atlassian-resource-identifier/spec/ari-latest/#syntax for more details
|
|
30
|
+
const ariPattern = /^ari:cloud:([a-z][a-z.-]+):([a-zA-Z0-9_.-]+):([a-z][a-zA-Z.-]+)\/(.+)$/;
|
|
31
|
+
const match = resourceAri.match(ariPattern);
|
|
32
|
+
if (match && match[2]) {
|
|
33
|
+
return match[2]; // Return the cloud_id (siteId)
|
|
34
|
+
}
|
|
35
|
+
return await getCurrentSiteId();
|
|
36
|
+
}, [getCurrentSiteId]);
|
|
9
37
|
const getIncomingOutgoingAris = useCallback(
|
|
10
38
|
/**
|
|
11
39
|
* Returning aris linking to (outgoing) and from (incoming) a given ari from AGS using
|
|
@@ -17,6 +45,19 @@ const useIncomingOutgoingAri = (baseUriWithNoTrailingSlash = '') => {
|
|
|
17
45
|
*/
|
|
18
46
|
async (ari, firstIncoming = 50, firstOutgoing = 50) => {
|
|
19
47
|
var _response$data$graphS, _response$data, _response$data$graphS2, _response$data$graphS3, _response$data$graphS4, _response$data$graphS5, _response$data$graphS6, _response$data2, _response$data2$graph, _response$data2$graph2, _response$data2$graph3, _response$data2$graph4;
|
|
48
|
+
let headers;
|
|
49
|
+
if (fg('platform_navx_send_context_to_ugs_for_rel_links')) {
|
|
50
|
+
const siteId = await getSiteId(ari);
|
|
51
|
+
if (!siteId) {
|
|
52
|
+
return {
|
|
53
|
+
incomingAris: [],
|
|
54
|
+
outgoingAris: []
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
headers = {
|
|
58
|
+
'X-Query-Context': `ari:cloud:platform::site/${siteId}`
|
|
59
|
+
};
|
|
60
|
+
}
|
|
20
61
|
const response = await aggRequestCall({
|
|
21
62
|
variables: {
|
|
22
63
|
id: ari,
|
|
@@ -24,14 +65,14 @@ const useIncomingOutgoingAri = (baseUriWithNoTrailingSlash = '') => {
|
|
|
24
65
|
firstOutgoing
|
|
25
66
|
},
|
|
26
67
|
query: queryIncomingOutgoingAris
|
|
27
|
-
});
|
|
68
|
+
}, headers);
|
|
28
69
|
const incomingAris = (_response$data$graphS = response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : (_response$data$graphS2 = _response$data.graphStore) === null || _response$data$graphS2 === void 0 ? void 0 : (_response$data$graphS3 = _response$data$graphS2.incoming) === null || _response$data$graphS3 === void 0 ? void 0 : (_response$data$graphS4 = _response$data$graphS3.aris) === null || _response$data$graphS4 === void 0 ? void 0 : (_response$data$graphS5 = _response$data$graphS4.map(node => node === null || node === void 0 ? void 0 : node.id)) === null || _response$data$graphS5 === void 0 ? void 0 : _response$data$graphS5.filter(id => !!id)) !== null && _response$data$graphS !== void 0 ? _response$data$graphS : [];
|
|
29
70
|
const outgoingAris = (_response$data$graphS6 = response === null || response === void 0 ? void 0 : (_response$data2 = response.data) === null || _response$data2 === void 0 ? void 0 : (_response$data2$graph = _response$data2.graphStore) === null || _response$data2$graph === void 0 ? void 0 : (_response$data2$graph2 = _response$data2$graph.outgoing) === null || _response$data2$graph2 === void 0 ? void 0 : (_response$data2$graph3 = _response$data2$graph2.aris) === null || _response$data2$graph3 === void 0 ? void 0 : (_response$data2$graph4 = _response$data2$graph3.map(node => node === null || node === void 0 ? void 0 : node.id)) === null || _response$data2$graph4 === void 0 ? void 0 : _response$data2$graph4.filter(id => !!id)) !== null && _response$data$graphS6 !== void 0 ? _response$data$graphS6 : [];
|
|
30
71
|
return {
|
|
31
72
|
incomingAris,
|
|
32
73
|
outgoingAris
|
|
33
74
|
};
|
|
34
|
-
}, [aggRequestCall]);
|
|
75
|
+
}, [aggRequestCall, getSiteId]);
|
|
35
76
|
return useMemo(() => ({
|
|
36
77
|
getIncomingOutgoingAris
|
|
37
78
|
}), [getIncomingOutgoingAris]);
|
|
@@ -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: "43.
|
|
5
|
+
packageVersion: "43.17.1"
|
|
6
6
|
};
|
|
7
7
|
export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
8
8
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -9,6 +9,7 @@ import VidFullScreenOnIcon from '@atlaskit/icon/core/fullscreen-enter';
|
|
|
9
9
|
import FullscreenExitIcon from '@atlaskit/icon/core/fullscreen-exit';
|
|
10
10
|
import ShortcutIcon from '@atlaskit/icon/core/link-external';
|
|
11
11
|
import { CloseButton, useModal } from '@atlaskit/modal-dialog';
|
|
12
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
12
13
|
import Tooltip from '@atlaskit/tooltip';
|
|
13
14
|
import { messages } from '../../../../messages';
|
|
14
15
|
import { Icon } from '../../../common/Icon';
|
|
@@ -44,7 +45,7 @@ const LinkInfo = ({
|
|
|
44
45
|
return /*#__PURE__*/React.createElement(LinkInfoButton, {
|
|
45
46
|
content: /*#__PURE__*/React.createElement(FormattedMessage, messages.download),
|
|
46
47
|
icon: () => /*#__PURE__*/React.createElement(DownloadIcon, {
|
|
47
|
-
label: messages.download.defaultMessage,
|
|
48
|
+
label: fg('platform_navx_flex_card_status_dropdown_a11y_fix') ? '' : messages.download.defaultMessage,
|
|
48
49
|
spacing: "spacious",
|
|
49
50
|
color: "currentColor"
|
|
50
51
|
}),
|
|
@@ -60,7 +61,7 @@ const LinkInfo = ({
|
|
|
60
61
|
return /*#__PURE__*/React.createElement(LinkInfoButton, {
|
|
61
62
|
content: content,
|
|
62
63
|
icon: () => /*#__PURE__*/React.createElement(ShortcutIcon, {
|
|
63
|
-
label: messages.viewOriginal.defaultMessage,
|
|
64
|
+
label: fg('platform_navx_flex_card_status_dropdown_a11y_fix') ? '' : messages.viewOriginal.defaultMessage,
|
|
64
65
|
spacing: "spacious",
|
|
65
66
|
color: "currentColor"
|
|
66
67
|
}),
|
|
@@ -74,11 +75,11 @@ const LinkInfo = ({
|
|
|
74
75
|
const isFullScreen = size === MAX_MODAL_SIZE;
|
|
75
76
|
const message = isFullScreen ? messages.preview_min_size : messages.preview_max_size;
|
|
76
77
|
const icon = isFullScreen ? /*#__PURE__*/React.createElement(FullscreenExitIcon, {
|
|
77
|
-
label: message.defaultMessage,
|
|
78
|
+
label: fg('platform_navx_flex_card_status_dropdown_a11y_fix') ? '' : message.defaultMessage,
|
|
78
79
|
spacing: "spacious",
|
|
79
80
|
color: "currentColor"
|
|
80
81
|
}) : /*#__PURE__*/React.createElement(VidFullScreenOnIcon, {
|
|
81
|
-
label: message.defaultMessage,
|
|
82
|
+
label: fg('platform_navx_flex_card_status_dropdown_a11y_fix') ? '' : message.defaultMessage,
|
|
82
83
|
spacing: "spacious",
|
|
83
84
|
color: "currentColor"
|
|
84
85
|
});
|
|
@@ -7,10 +7,12 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
7
7
|
|
|
8
8
|
import { useCallback, useEffect, useMemo, useState } from 'react';
|
|
9
9
|
import { cx } from '@compiled/react';
|
|
10
|
+
import { useIntl } from 'react-intl-next';
|
|
10
11
|
import ChevronDownIcon from '@atlaskit/icon/core/migration/chevron-down';
|
|
11
12
|
import Lozenge from '@atlaskit/lozenge';
|
|
12
13
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
13
14
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
15
|
+
import { messages } from '../../../../../../../../messages';
|
|
14
16
|
const styles = {
|
|
15
17
|
chevronDown: "_18u012x7 _1e0c1txw",
|
|
16
18
|
lozengeContainer: "_kkk2n7od _2rko12b0 _1dqonqa1 _189ee4h9 _1h6d1j28 _bfhk1j28 _1e0c1txw _4cvr1h6o _4t3i7vkz",
|
|
@@ -26,6 +28,7 @@ const LozengeActionTrigger = ({
|
|
|
26
28
|
triggerRef,
|
|
27
29
|
...props
|
|
28
30
|
}) => {
|
|
31
|
+
const intl = useIntl();
|
|
29
32
|
const [isHovering, setIsHovering] = useState(false);
|
|
30
33
|
const [isPressing, setIsPressing] = useState(false);
|
|
31
34
|
const [lozengeBackgroundColor, setLozengeBackgroundColor] = useState(undefined);
|
|
@@ -93,6 +96,9 @@ const LozengeActionTrigger = ({
|
|
|
93
96
|
onKeyDown: onMouseOrKeyDown,
|
|
94
97
|
onKeyUp: onMouseOrKeyUp,
|
|
95
98
|
ref: triggerRef,
|
|
99
|
+
"aria-label": fg('platform_navx_flex_card_status_dropdown_a11y_fix') ? intl.formatMessage(messages.change_status, {
|
|
100
|
+
status: text
|
|
101
|
+
}) : undefined,
|
|
96
102
|
className: ax(["_kkk2n7od _ca0qidpf _u5f3idpf _n3tdidpf _19bvidpf _15vhn7od _1dqonqa1 _189e1dm9 _1h6d1j28 _bfhk1j28 _syazn7od _80omtlke _ect4n7od _1wybn7od _zg8ln7od _k48pn7od _vwz4idpf _1p1dn7od _19pkv77o _2hwxv77o _otyrv77o _18u0v77o _mizu1r31 _1guj1r31 _p8tl1r31 _ra3xglyw _pbhaglyw _1q2vglyw _128m1o36 _11ow1o36 _j8b81o36 _1bas1qi0 _19h61qi0 _1d391qi0 _1ejj1vm4 _1u6l1vm4 _6ssh1vm4"])
|
|
97
103
|
}), lozenge);
|
|
98
104
|
};
|
|
@@ -9,7 +9,7 @@ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
|
9
9
|
const wrapperStylesOld = null;
|
|
10
10
|
const wrapperStylesNew = null;
|
|
11
11
|
const InlineLozenge = props => {
|
|
12
|
-
const shouldAddLozengeAttribute = expValEquals('cc_editor_ai_content_mode', 'variant', 'test') && fg('platform_editor_content_mode_button_mvp');
|
|
12
|
+
const shouldAddLozengeAttribute = expValEquals('confluence_compact_text_format', 'isEnabled', true) || expValEquals('cc_editor_ai_content_mode', 'variant', 'test') && fg('platform_editor_content_mode_button_mvp');
|
|
13
13
|
if (fg('jfp-magma-platform-lozenge-jump-fix')) {
|
|
14
14
|
return /*#__PURE__*/React.createElement("span", _extends({}, shouldAddLozengeAttribute && {
|
|
15
15
|
'data-inline-card-lozenge': true
|
|
@@ -12,7 +12,7 @@ import LinkWarningModal from './LinkWarningModal';
|
|
|
12
12
|
import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
|
|
13
13
|
const PACKAGE_DATA = {
|
|
14
14
|
packageName: "@atlaskit/smart-card",
|
|
15
|
-
packageVersion: "43.
|
|
15
|
+
packageVersion: "43.17.1",
|
|
16
16
|
componentName: 'linkUrl'
|
|
17
17
|
};
|
|
18
18
|
const Anchor = withLinkClickedEvent('a');
|
|
@@ -5,7 +5,6 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
5
5
|
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; }
|
|
6
6
|
import { extractPreview as extractPreviewData, extractSmartLinkAri, extractSmartLinkEmbed, extractSmartLinkProvider, extractSmartLinkTitle, extractSmartLinkUrl } from '@atlaskit/link-extractors';
|
|
7
7
|
import { isWithinPreviewPanelIFrame } from '@atlaskit/linking-common/utils';
|
|
8
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
9
8
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
10
9
|
import { ActionName, CardAction } from '../../index';
|
|
11
10
|
import { getExtensionKey } from '../../state/helpers';
|
|
@@ -110,8 +109,8 @@ export var extractInvokePreviewAction = function extractInvokePreviewAction(para
|
|
|
110
109
|
src: (_extractSmartLinkEmbe2 = extractSmartLinkEmbed(response)) === null || _extractSmartLinkEmbe2 === void 0 ? void 0 : _extractSmartLinkEmbe2.src,
|
|
111
110
|
title: extractSmartLinkTitle(response),
|
|
112
111
|
url: url,
|
|
113
|
-
|
|
114
|
-
|
|
112
|
+
size: actionOptions === null || actionOptions === void 0 || (_actionOptions$previe = actionOptions.previewAction) === null || _actionOptions$previe === void 0 ? void 0 : _actionOptions$previe.size,
|
|
113
|
+
isBlanketHidden: actionOptions === null || actionOptions === void 0 || (_actionOptions$previe2 = actionOptions.previewAction) === null || _actionOptions$previe2 === void 0 ? void 0 : _actionOptions$previe2.hideBlanket
|
|
115
114
|
}, expValEquals('platform_hover_card_preview_panel', 'cohort', 'test') && {
|
|
116
115
|
isInPreviewPanel: isInPreviewPanel
|
|
117
116
|
}));
|
package/dist/esm/messages.js
CHANGED
|
@@ -65,6 +65,11 @@ export var messages = defineMessages({
|
|
|
65
65
|
defaultMessage: 'Assigned to {context}',
|
|
66
66
|
description: 'Indicates the person or entity that the resource is assigned to.'
|
|
67
67
|
},
|
|
68
|
+
change_status: {
|
|
69
|
+
id: 'fabric.linking.change_status',
|
|
70
|
+
defaultMessage: 'Change status: {status}',
|
|
71
|
+
description: 'Aria label for the button to change the status of a linked resource.'
|
|
72
|
+
},
|
|
68
73
|
automation_action_title: {
|
|
69
74
|
id: 'fabric.linking.automation-action.title',
|
|
70
75
|
defaultMessage: 'View automation rules',
|
|
@@ -2,6 +2,7 @@ import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
|
2
2
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
3
3
|
import { useCallback, useMemo } from 'react';
|
|
4
4
|
import { request } from '@atlaskit/linking-common';
|
|
5
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
5
6
|
import { queryIncomingOutgoingLinks as queryIncomingOutgoingAris } from './query';
|
|
6
7
|
/**
|
|
7
8
|
* @param baseUriWithNoTrailingSlash base url which will then be appended with /gateway/api/graphql to make requests to AGG
|
|
@@ -24,6 +25,66 @@ var useIncomingOutgoingAri = function useIncomingOutgoingAri() {
|
|
|
24
25
|
return _ref.apply(this, arguments);
|
|
25
26
|
};
|
|
26
27
|
}(), [baseUriWithNoTrailingSlash]);
|
|
28
|
+
var getCurrentSiteId = useCallback( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
|
|
29
|
+
var response;
|
|
30
|
+
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
31
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
32
|
+
case 0:
|
|
33
|
+
_context2.prev = 0;
|
|
34
|
+
_context2.next = 3;
|
|
35
|
+
return request('get', baseUriWithNoTrailingSlash + '/_edge/tenant_info');
|
|
36
|
+
case 3:
|
|
37
|
+
response = _context2.sent;
|
|
38
|
+
return _context2.abrupt("return", response === null || response === void 0 ? void 0 : response.cloudId);
|
|
39
|
+
case 7:
|
|
40
|
+
_context2.prev = 7;
|
|
41
|
+
_context2.t0 = _context2["catch"](0);
|
|
42
|
+
return _context2.abrupt("return", undefined);
|
|
43
|
+
case 10:
|
|
44
|
+
case "end":
|
|
45
|
+
return _context2.stop();
|
|
46
|
+
}
|
|
47
|
+
}, _callee2, null, [[0, 7]]);
|
|
48
|
+
})), [baseUriWithNoTrailingSlash]);
|
|
49
|
+
var getSiteId = useCallback( /*#__PURE__*/function () {
|
|
50
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3(resourceAri) {
|
|
51
|
+
var ariPattern, match;
|
|
52
|
+
return _regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
53
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
54
|
+
case 0:
|
|
55
|
+
// ARI pattern that matches both formats:
|
|
56
|
+
// - New format: ari:cloud:<resource_owner>::<resource_type>/<resource_id>
|
|
57
|
+
// - Legacy format: ari:cloud:<resource_owner>:<cloud_id>:<resource_type>/<resource_id>
|
|
58
|
+
//
|
|
59
|
+
// Capture groups:
|
|
60
|
+
// 1: resource_owner - [a-z][a-z.-]+
|
|
61
|
+
// 2: cloud_id (siteId) - [a-zA-Z0-9_.-]+ (empty for new format, but since we need to return the siteId, we only use legacy one)
|
|
62
|
+
// 3: resource_type - [a-z][a-zA-Z.-]
|
|
63
|
+
// 4: resource_id
|
|
64
|
+
//
|
|
65
|
+
// See https://developer.atlassian.com/platform/atlassian-resource-identifier/spec/ari-latest/#syntax for more details
|
|
66
|
+
ariPattern = /^ari:cloud:([a-z][a-z.-]+):([a-zA-Z0-9_.-]+):([a-z][a-zA-Z.-]+)\/(.+)$/;
|
|
67
|
+
match = resourceAri.match(ariPattern);
|
|
68
|
+
if (!(match && match[2])) {
|
|
69
|
+
_context3.next = 4;
|
|
70
|
+
break;
|
|
71
|
+
}
|
|
72
|
+
return _context3.abrupt("return", match[2]);
|
|
73
|
+
case 4:
|
|
74
|
+
_context3.next = 6;
|
|
75
|
+
return getCurrentSiteId();
|
|
76
|
+
case 6:
|
|
77
|
+
return _context3.abrupt("return", _context3.sent);
|
|
78
|
+
case 7:
|
|
79
|
+
case "end":
|
|
80
|
+
return _context3.stop();
|
|
81
|
+
}
|
|
82
|
+
}, _callee3);
|
|
83
|
+
}));
|
|
84
|
+
return function (_x3) {
|
|
85
|
+
return _ref3.apply(this, arguments);
|
|
86
|
+
};
|
|
87
|
+
}(), [getCurrentSiteId]);
|
|
27
88
|
var getIncomingOutgoingAris = useCallback(
|
|
28
89
|
/*#__PURE__*/
|
|
29
90
|
/**
|
|
@@ -35,20 +96,43 @@ var useIncomingOutgoingAri = function useIncomingOutgoingAri() {
|
|
|
35
96
|
*
|
|
36
97
|
*/
|
|
37
98
|
function () {
|
|
38
|
-
var
|
|
99
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee4(ari) {
|
|
39
100
|
var _response$data$graphS, _response$data, _response$data$graphS2, _response$data2;
|
|
40
101
|
var firstIncoming,
|
|
41
102
|
firstOutgoing,
|
|
103
|
+
headers,
|
|
104
|
+
siteId,
|
|
42
105
|
response,
|
|
43
106
|
incomingAris,
|
|
44
107
|
outgoingAris,
|
|
45
|
-
|
|
46
|
-
return _regeneratorRuntime.wrap(function
|
|
47
|
-
while (1) switch (
|
|
108
|
+
_args4 = arguments;
|
|
109
|
+
return _regeneratorRuntime.wrap(function _callee4$(_context4) {
|
|
110
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
48
111
|
case 0:
|
|
49
|
-
firstIncoming =
|
|
50
|
-
firstOutgoing =
|
|
51
|
-
|
|
112
|
+
firstIncoming = _args4.length > 1 && _args4[1] !== undefined ? _args4[1] : 50;
|
|
113
|
+
firstOutgoing = _args4.length > 2 && _args4[2] !== undefined ? _args4[2] : 50;
|
|
114
|
+
if (!fg('platform_navx_send_context_to_ugs_for_rel_links')) {
|
|
115
|
+
_context4.next = 9;
|
|
116
|
+
break;
|
|
117
|
+
}
|
|
118
|
+
_context4.next = 5;
|
|
119
|
+
return getSiteId(ari);
|
|
120
|
+
case 5:
|
|
121
|
+
siteId = _context4.sent;
|
|
122
|
+
if (siteId) {
|
|
123
|
+
_context4.next = 8;
|
|
124
|
+
break;
|
|
125
|
+
}
|
|
126
|
+
return _context4.abrupt("return", {
|
|
127
|
+
incomingAris: [],
|
|
128
|
+
outgoingAris: []
|
|
129
|
+
});
|
|
130
|
+
case 8:
|
|
131
|
+
headers = {
|
|
132
|
+
'X-Query-Context': "ari:cloud:platform::site/".concat(siteId)
|
|
133
|
+
};
|
|
134
|
+
case 9:
|
|
135
|
+
_context4.next = 11;
|
|
52
136
|
return aggRequestCall({
|
|
53
137
|
variables: {
|
|
54
138
|
id: ari,
|
|
@@ -56,9 +140,9 @@ var useIncomingOutgoingAri = function useIncomingOutgoingAri() {
|
|
|
56
140
|
firstOutgoing: firstOutgoing
|
|
57
141
|
},
|
|
58
142
|
query: queryIncomingOutgoingAris
|
|
59
|
-
});
|
|
60
|
-
case
|
|
61
|
-
response =
|
|
143
|
+
}, headers);
|
|
144
|
+
case 11:
|
|
145
|
+
response = _context4.sent;
|
|
62
146
|
incomingAris = (_response$data$graphS = response === null || response === void 0 || (_response$data = response.data) === null || _response$data === void 0 || (_response$data = _response$data.graphStore) === null || _response$data === void 0 || (_response$data = _response$data.incoming) === null || _response$data === void 0 || (_response$data = _response$data.aris) === null || _response$data === void 0 || (_response$data = _response$data.map(function (node) {
|
|
63
147
|
return node === null || node === void 0 ? void 0 : node.id;
|
|
64
148
|
})) === null || _response$data === void 0 ? void 0 : _response$data.filter(function (id) {
|
|
@@ -69,20 +153,20 @@ var useIncomingOutgoingAri = function useIncomingOutgoingAri() {
|
|
|
69
153
|
})) === null || _response$data2 === void 0 ? void 0 : _response$data2.filter(function (id) {
|
|
70
154
|
return !!id;
|
|
71
155
|
})) !== null && _response$data$graphS2 !== void 0 ? _response$data$graphS2 : [];
|
|
72
|
-
return
|
|
156
|
+
return _context4.abrupt("return", {
|
|
73
157
|
incomingAris: incomingAris,
|
|
74
158
|
outgoingAris: outgoingAris
|
|
75
159
|
});
|
|
76
|
-
case
|
|
160
|
+
case 15:
|
|
77
161
|
case "end":
|
|
78
|
-
return
|
|
162
|
+
return _context4.stop();
|
|
79
163
|
}
|
|
80
|
-
},
|
|
164
|
+
}, _callee4);
|
|
81
165
|
}));
|
|
82
|
-
return function (
|
|
83
|
-
return
|
|
166
|
+
return function (_x4) {
|
|
167
|
+
return _ref4.apply(this, arguments);
|
|
84
168
|
};
|
|
85
|
-
}(), [aggRequestCall]);
|
|
169
|
+
}(), [aggRequestCall, getSiteId]);
|
|
86
170
|
return useMemo(function () {
|
|
87
171
|
return {
|
|
88
172
|
getIncomingOutgoingAris: getIncomingOutgoingAris
|
|
@@ -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: "43.
|
|
7
|
+
packageVersion: "43.17.1"
|
|
8
8
|
};
|
|
9
9
|
export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
10
10
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -9,6 +9,7 @@ import VidFullScreenOnIcon from '@atlaskit/icon/core/fullscreen-enter';
|
|
|
9
9
|
import FullscreenExitIcon from '@atlaskit/icon/core/fullscreen-exit';
|
|
10
10
|
import ShortcutIcon from '@atlaskit/icon/core/link-external';
|
|
11
11
|
import { CloseButton, useModal } from '@atlaskit/modal-dialog';
|
|
12
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
12
13
|
import Tooltip from '@atlaskit/tooltip';
|
|
13
14
|
import { messages } from '../../../../messages';
|
|
14
15
|
import { Icon } from '../../../common/Icon';
|
|
@@ -42,7 +43,7 @@ var LinkInfo = function LinkInfo(_ref) {
|
|
|
42
43
|
content: /*#__PURE__*/React.createElement(FormattedMessage, messages.download),
|
|
43
44
|
icon: function icon() {
|
|
44
45
|
return /*#__PURE__*/React.createElement(DownloadIcon, {
|
|
45
|
-
label: messages.download.defaultMessage,
|
|
46
|
+
label: fg('platform_navx_flex_card_status_dropdown_a11y_fix') ? '' : messages.download.defaultMessage,
|
|
46
47
|
spacing: "spacious",
|
|
47
48
|
color: "currentColor"
|
|
48
49
|
});
|
|
@@ -60,7 +61,7 @@ var LinkInfo = function LinkInfo(_ref) {
|
|
|
60
61
|
content: content,
|
|
61
62
|
icon: function icon() {
|
|
62
63
|
return /*#__PURE__*/React.createElement(ShortcutIcon, {
|
|
63
|
-
label: messages.viewOriginal.defaultMessage,
|
|
64
|
+
label: fg('platform_navx_flex_card_status_dropdown_a11y_fix') ? '' : messages.viewOriginal.defaultMessage,
|
|
64
65
|
spacing: "spacious",
|
|
65
66
|
color: "currentColor"
|
|
66
67
|
});
|
|
@@ -75,11 +76,11 @@ var LinkInfo = function LinkInfo(_ref) {
|
|
|
75
76
|
var isFullScreen = size === MAX_MODAL_SIZE;
|
|
76
77
|
var message = isFullScreen ? messages.preview_min_size : messages.preview_max_size;
|
|
77
78
|
var _icon = isFullScreen ? /*#__PURE__*/React.createElement(FullscreenExitIcon, {
|
|
78
|
-
label: message.defaultMessage,
|
|
79
|
+
label: fg('platform_navx_flex_card_status_dropdown_a11y_fix') ? '' : message.defaultMessage,
|
|
79
80
|
spacing: "spacious",
|
|
80
81
|
color: "currentColor"
|
|
81
82
|
}) : /*#__PURE__*/React.createElement(VidFullScreenOnIcon, {
|
|
82
|
-
label: message.defaultMessage,
|
|
83
|
+
label: fg('platform_navx_flex_card_status_dropdown_a11y_fix') ? '' : message.defaultMessage,
|
|
83
84
|
spacing: "spacious",
|
|
84
85
|
color: "currentColor"
|
|
85
86
|
});
|
|
@@ -10,10 +10,12 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
10
10
|
|
|
11
11
|
import { useCallback, useEffect, useMemo, useState } from 'react';
|
|
12
12
|
import { cx } from '@compiled/react';
|
|
13
|
+
import { useIntl } from 'react-intl-next';
|
|
13
14
|
import ChevronDownIcon from '@atlaskit/icon/core/migration/chevron-down';
|
|
14
15
|
import Lozenge from '@atlaskit/lozenge';
|
|
15
16
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
16
17
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
18
|
+
import { messages } from '../../../../../../../../messages';
|
|
17
19
|
var styles = {
|
|
18
20
|
chevronDown: "_18u012x7 _1e0c1txw",
|
|
19
21
|
lozengeContainer: "_kkk2n7od _2rko12b0 _1dqonqa1 _189ee4h9 _1h6d1j28 _bfhk1j28 _1e0c1txw _4cvr1h6o _4t3i7vkz",
|
|
@@ -28,6 +30,7 @@ var LozengeActionTrigger = function LozengeActionTrigger(_ref) {
|
|
|
28
30
|
text = _ref.text,
|
|
29
31
|
triggerRef = _ref.triggerRef,
|
|
30
32
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
33
|
+
var intl = useIntl();
|
|
31
34
|
var _useState = useState(false),
|
|
32
35
|
_useState2 = _slicedToArray(_useState, 2),
|
|
33
36
|
isHovering = _useState2[0],
|
|
@@ -115,6 +118,9 @@ var LozengeActionTrigger = function LozengeActionTrigger(_ref) {
|
|
|
115
118
|
onKeyDown: onMouseOrKeyDown,
|
|
116
119
|
onKeyUp: onMouseOrKeyUp,
|
|
117
120
|
ref: triggerRef,
|
|
121
|
+
"aria-label": fg('platform_navx_flex_card_status_dropdown_a11y_fix') ? intl.formatMessage(messages.change_status, {
|
|
122
|
+
status: text
|
|
123
|
+
}) : undefined,
|
|
118
124
|
className: ax(["_kkk2n7od _ca0qidpf _u5f3idpf _n3tdidpf _19bvidpf _15vhn7od _1dqonqa1 _189e1dm9 _1h6d1j28 _bfhk1j28 _syazn7od _80omtlke _ect4n7od _1wybn7od _zg8ln7od _k48pn7od _vwz4idpf _1p1dn7od _19pkv77o _2hwxv77o _otyrv77o _18u0v77o _mizu1r31 _1guj1r31 _p8tl1r31 _ra3xglyw _pbhaglyw _1q2vglyw _128m1o36 _11ow1o36 _j8b81o36 _1bas1qi0 _19h61qi0 _1d391qi0 _1ejj1vm4 _1u6l1vm4 _6ssh1vm4"])
|
|
119
125
|
}), lozenge);
|
|
120
126
|
};
|
|
@@ -9,7 +9,7 @@ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
|
9
9
|
var wrapperStylesOld = null;
|
|
10
10
|
var wrapperStylesNew = null;
|
|
11
11
|
var InlineLozenge = function InlineLozenge(props) {
|
|
12
|
-
var shouldAddLozengeAttribute = expValEquals('cc_editor_ai_content_mode', 'variant', 'test') && fg('platform_editor_content_mode_button_mvp');
|
|
12
|
+
var shouldAddLozengeAttribute = expValEquals('confluence_compact_text_format', 'isEnabled', true) || expValEquals('cc_editor_ai_content_mode', 'variant', 'test') && fg('platform_editor_content_mode_button_mvp');
|
|
13
13
|
if (fg('jfp-magma-platform-lozenge-jump-fix')) {
|
|
14
14
|
return /*#__PURE__*/React.createElement("span", _extends({}, shouldAddLozengeAttribute && {
|
|
15
15
|
'data-inline-card-lozenge': true
|
|
@@ -15,7 +15,7 @@ import LinkWarningModal from './LinkWarningModal';
|
|
|
15
15
|
import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
|
|
16
16
|
var PACKAGE_DATA = {
|
|
17
17
|
packageName: "@atlaskit/smart-card",
|
|
18
|
-
packageVersion: "43.
|
|
18
|
+
packageVersion: "43.17.1",
|
|
19
19
|
componentName: 'linkUrl'
|
|
20
20
|
};
|
|
21
21
|
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' | 'compass_applied_components_count' | '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_descriptionGalaxia' | 'follow_project' | 'follow_goal' | 'follow_goal_description' | 'follow_project_error' | 'follow_project_errorGalaxia' | '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' | 'owned_by_override' | 'preview_description' | 'preview_improved' | 'preview_modal' | 'preview_panel' | '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_descriptionGalaxia' | 'unfollow_project' | 'unfollow_project_error' | 'unfollow_project_errorGalaxia' | 'unfollow_goal' | 'unfollow_goal_description' | 'unfollow_goal_error' | 'user_attributes' | '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_title' | 'related_links_modal_error_description' | 'related_links_modal_unavailable_title' | 'related_links_modal_unavailable_description' | 'related_links_modal_title' | 'related_links_view_related_urls' | 'related_links_view_related_links' | 'related_links_found_in' | 'related_links_includes_links_to' | 'related_links_not_found' | 'join_to_viewIssueTermRefresh' | 'open_issue_in_jiraIssueTermRefresh' | 'request_access_to_viewIssueTermRefresh' | 'team_members_count' | 'status_change_permission_errorIssueTermRefresh' | 'connect_unauthorised_account_description_appify' | 'connect_unauthorised_account_description_no_provider_appify' | 'learn_more_about_connecting_account_experiment_shorter' | 'learn_more_about_connecting_account_appify';
|
|
3
|
+
export type MessageKey = 'assigned_to' | 'ai_summarize' | 'change_status' | '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' | 'compass_applied_components_count' | '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_descriptionGalaxia' | 'follow_project' | 'follow_goal' | 'follow_goal_description' | 'follow_project_error' | 'follow_project_errorGalaxia' | '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' | 'owned_by_override' | 'preview_description' | 'preview_improved' | 'preview_modal' | 'preview_panel' | '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_descriptionGalaxia' | 'unfollow_project' | 'unfollow_project_error' | 'unfollow_project_errorGalaxia' | 'unfollow_goal' | 'unfollow_goal_description' | 'unfollow_goal_error' | 'user_attributes' | '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_title' | 'related_links_modal_error_description' | 'related_links_modal_unavailable_title' | 'related_links_modal_unavailable_description' | 'related_links_modal_title' | 'related_links_view_related_urls' | 'related_links_view_related_links' | 'related_links_found_in' | 'related_links_includes_links_to' | 'related_links_not_found' | 'join_to_viewIssueTermRefresh' | 'open_issue_in_jiraIssueTermRefresh' | 'request_access_to_viewIssueTermRefresh' | 'team_members_count' | 'status_change_permission_errorIssueTermRefresh' | 'connect_unauthorised_account_description_appify' | 'connect_unauthorised_account_description_no_provider_appify' | 'learn_more_about_connecting_account_experiment_shorter' | 'learn_more_about_connecting_account_appify';
|
|
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' | 'compass_applied_components_count' | '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_descriptionGalaxia' | 'follow_project' | 'follow_goal' | 'follow_goal_description' | 'follow_project_error' | 'follow_project_errorGalaxia' | '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' | 'owned_by_override' | 'preview_description' | 'preview_improved' | 'preview_modal' | 'preview_panel' | '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_descriptionGalaxia' | 'unfollow_project' | 'unfollow_project_error' | 'unfollow_project_errorGalaxia' | 'unfollow_goal' | 'unfollow_goal_description' | 'unfollow_goal_error' | 'user_attributes' | '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_title' | 'related_links_modal_error_description' | 'related_links_modal_unavailable_title' | 'related_links_modal_unavailable_description' | 'related_links_modal_title' | 'related_links_view_related_urls' | 'related_links_view_related_links' | 'related_links_found_in' | 'related_links_includes_links_to' | 'related_links_not_found' | 'join_to_viewIssueTermRefresh' | 'open_issue_in_jiraIssueTermRefresh' | 'request_access_to_viewIssueTermRefresh' | 'team_members_count' | 'status_change_permission_errorIssueTermRefresh' | 'connect_unauthorised_account_description_appify' | 'connect_unauthorised_account_description_no_provider_appify' | 'learn_more_about_connecting_account_experiment_shorter' | 'learn_more_about_connecting_account_appify';
|
|
3
|
+
export type MessageKey = 'assigned_to' | 'ai_summarize' | 'change_status' | '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' | 'compass_applied_components_count' | '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_descriptionGalaxia' | 'follow_project' | 'follow_goal' | 'follow_goal_description' | 'follow_project_error' | 'follow_project_errorGalaxia' | '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' | 'owned_by_override' | 'preview_description' | 'preview_improved' | 'preview_modal' | 'preview_panel' | '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_descriptionGalaxia' | 'unfollow_project' | 'unfollow_project_error' | 'unfollow_project_errorGalaxia' | 'unfollow_goal' | 'unfollow_goal_description' | 'unfollow_goal_error' | 'user_attributes' | '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_title' | 'related_links_modal_error_description' | 'related_links_modal_unavailable_title' | 'related_links_modal_unavailable_description' | 'related_links_modal_title' | 'related_links_view_related_urls' | 'related_links_view_related_links' | 'related_links_found_in' | 'related_links_includes_links_to' | 'related_links_not_found' | 'join_to_viewIssueTermRefresh' | 'open_issue_in_jiraIssueTermRefresh' | 'request_access_to_viewIssueTermRefresh' | 'team_members_count' | 'status_change_permission_errorIssueTermRefresh' | 'connect_unauthorised_account_description_appify' | 'connect_unauthorised_account_description_no_provider_appify' | 'learn_more_about_connecting_account_experiment_shorter' | 'learn_more_about_connecting_account_appify';
|
|
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": "43.17.
|
|
3
|
+
"version": "43.17.2",
|
|
4
4
|
"description": "Smart card component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -39,10 +39,10 @@
|
|
|
39
39
|
"@atlaskit/dropdown-menu": "^16.3.0",
|
|
40
40
|
"@atlaskit/embedded-confluence": "^4.3.0",
|
|
41
41
|
"@atlaskit/feature-gate-js-client": "^5.5.0",
|
|
42
|
-
"@atlaskit/form": "^15.
|
|
42
|
+
"@atlaskit/form": "^15.1.0",
|
|
43
43
|
"@atlaskit/frontend-utilities": "^3.2.0",
|
|
44
44
|
"@atlaskit/heading": "^5.2.0",
|
|
45
|
-
"@atlaskit/icon": "^29.
|
|
45
|
+
"@atlaskit/icon": "^29.3.0",
|
|
46
46
|
"@atlaskit/icon-file-type": "^7.0.0",
|
|
47
47
|
"@atlaskit/icon-object": "^7.4.0",
|
|
48
48
|
"@atlaskit/icon-priority": "^6.3.0",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"@atlaskit/outbound-auth-flow-client": "^3.4.0",
|
|
63
63
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
64
64
|
"@atlaskit/platform-feature-flags-react": "^0.4.0",
|
|
65
|
-
"@atlaskit/popup": "^4.
|
|
65
|
+
"@atlaskit/popup": "^4.8.0",
|
|
66
66
|
"@atlaskit/primitives": "^16.4.0",
|
|
67
67
|
"@atlaskit/section-message": "^8.11.0",
|
|
68
68
|
"@atlaskit/select": "^21.6.0",
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"@atlaskit/textfield": "^8.2.0",
|
|
72
72
|
"@atlaskit/theme": "^21.0.0",
|
|
73
73
|
"@atlaskit/tile": "^1.0.0",
|
|
74
|
-
"@atlaskit/tmp-editor-statsig": "^15.
|
|
74
|
+
"@atlaskit/tmp-editor-statsig": "^15.15.0",
|
|
75
75
|
"@atlaskit/tokens": "^8.6.0",
|
|
76
76
|
"@atlaskit/tooltip": "^20.11.0",
|
|
77
77
|
"@atlaskit/ufo": "^0.4.0",
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
"@atlaskit/ssr": "workspace:^",
|
|
106
106
|
"@atlassian/analytics-tooling": "workspace:^",
|
|
107
107
|
"@atlassian/feature-flags-test-utils": "^1.0.0",
|
|
108
|
-
"@atlassian/gemini": "^1.
|
|
108
|
+
"@atlassian/gemini": "^1.25.0",
|
|
109
109
|
"@atlassian/testing-library": "^0.4.0",
|
|
110
110
|
"@testing-library/dom": "^10.1.0",
|
|
111
111
|
"@testing-library/jest-dom": "^6.4.5",
|
|
@@ -162,9 +162,6 @@
|
|
|
162
162
|
}
|
|
163
163
|
},
|
|
164
164
|
"platform-feature-flags": {
|
|
165
|
-
"linking_platform_hide_preview_action_blanket_prop": {
|
|
166
|
-
"type": "boolean"
|
|
167
|
-
},
|
|
168
165
|
"platform-visual-refresh-icons": {
|
|
169
166
|
"type": "boolean"
|
|
170
167
|
},
|
|
@@ -228,8 +225,14 @@
|
|
|
228
225
|
"platform-linking-smart-card-layered-link-a11y": {
|
|
229
226
|
"type": "boolean"
|
|
230
227
|
},
|
|
228
|
+
"platform_navx_flex_card_status_dropdown_a11y_fix": {
|
|
229
|
+
"type": "boolean"
|
|
230
|
+
},
|
|
231
231
|
"navx-2825-eslint-translation-fix-linking-platform": {
|
|
232
232
|
"type": "boolean"
|
|
233
|
+
},
|
|
234
|
+
"platform_navx_send_context_to_ugs_for_rel_links": {
|
|
235
|
+
"type": "boolean"
|
|
233
236
|
}
|
|
234
237
|
},
|
|
235
238
|
"compassUnitTestMetricSourceId": "ari:cloud:compass:a436116f-02ce-4520-8fbb-7301462a1674:metric-source/c5751cc6-3513-4070-9deb-af31e86aed34/f74ef1bc-7240-4aac-9dc8-9dc43b502089"
|