@atlaskit/smart-card 40.17.0 → 40.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 +18 -0
- package/dist/cjs/state/hooks/use-ai-summary/ai-summary-service/index.js +5 -7
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/EmbedCard/components/ErrorFrame.compiled.css +1 -1
- package/dist/cjs/view/EmbedCard/components/ErrorFrame.js +2 -2
- package/dist/cjs/view/EmbedCard/components/Frame.compiled.css +1 -1
- package/dist/cjs/view/EmbedCard/components/Frame.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/ai-summary-block/feature-discovery/index.compiled.css +1 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/ai-summary-block/feature-discovery/index.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/container/layered-link/index.js +3 -0
- package/dist/cjs/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/lozenge-action-trigger/index.compiled.css +1 -1
- package/dist/cjs/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/lozenge-action-trigger/index.js +1 -1
- package/dist/cjs/view/InlineCard/Frame/styled.compiled.css +1 -1
- package/dist/cjs/view/InlineCard/Frame/styled.js +2 -2
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/state/hooks/use-ai-summary/ai-summary-service/index.js +5 -7
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/EmbedCard/components/ErrorFrame.compiled.css +1 -1
- package/dist/es2019/view/EmbedCard/components/ErrorFrame.js +2 -2
- package/dist/es2019/view/EmbedCard/components/Frame.compiled.css +1 -1
- package/dist/es2019/view/EmbedCard/components/Frame.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/ai-summary-block/feature-discovery/index.compiled.css +1 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/ai-summary-block/feature-discovery/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/container/layered-link/index.js +3 -0
- package/dist/es2019/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/lozenge-action-trigger/index.compiled.css +1 -1
- package/dist/es2019/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/lozenge-action-trigger/index.js +1 -1
- package/dist/es2019/view/InlineCard/Frame/styled.compiled.css +1 -1
- package/dist/es2019/view/InlineCard/Frame/styled.js +2 -2
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/state/hooks/use-ai-summary/ai-summary-service/index.js +5 -7
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/EmbedCard/components/ErrorFrame.compiled.css +1 -1
- package/dist/esm/view/EmbedCard/components/ErrorFrame.js +2 -2
- package/dist/esm/view/EmbedCard/components/Frame.compiled.css +1 -1
- package/dist/esm/view/EmbedCard/components/Frame.js +1 -1
- package/dist/esm/view/FlexibleCard/components/blocks/ai-summary-block/feature-discovery/index.compiled.css +1 -1
- package/dist/esm/view/FlexibleCard/components/blocks/ai-summary-block/feature-discovery/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/container/layered-link/index.js +3 -0
- package/dist/esm/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/lozenge-action-trigger/index.compiled.css +1 -1
- package/dist/esm/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/lozenge-action-trigger/index.js +1 -1
- package/dist/esm/view/InlineCard/Frame/styled.compiled.css +1 -1
- package/dist/esm/view/InlineCard/Frame/styled.js +2 -2
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 40.17.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`e6dbebe004a7f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e6dbebe004a7f) -
|
|
8
|
+
NAVX-1706 Adding aria-hidden attribute to LayeredLink component to be accessible to users
|
|
9
|
+
- [`6298cfc5a5088`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6298cfc5a5088) -
|
|
10
|
+
NAVX-1387 cleaning up platform-linking-ai-summary-migration-to-convo-ai
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
|
|
13
|
+
## 40.17.1
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- [`e5001e144b74e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e5001e144b74e) -
|
|
18
|
+
Internal changes to how border radius is applied.
|
|
19
|
+
- Updated dependencies
|
|
20
|
+
|
|
3
21
|
## 40.17.0
|
|
4
22
|
|
|
5
23
|
### Minor Changes
|
|
@@ -12,7 +12,6 @@ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/creat
|
|
|
12
12
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
13
13
|
var _uuid = _interopRequireDefault(require("uuid"));
|
|
14
14
|
var _linkingCommon = require("@atlaskit/linking-common");
|
|
15
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
16
15
|
var _readStream = require("./readStream");
|
|
17
16
|
var _types = require("./types");
|
|
18
17
|
var _utils = require("./utils");
|
|
@@ -35,12 +34,11 @@ var AISummaryService = exports.AISummaryService = /*#__PURE__*/function () {
|
|
|
35
34
|
});
|
|
36
35
|
(0, _defineProperty2.default)(this, "subscribedStateSetters", new Set());
|
|
37
36
|
(0, _defineProperty2.default)(this, "getRequestUrl", function (envKey, baseUrlOverride) {
|
|
38
|
-
var path = (0, _platformFeatureFlags.fg)('platform-linking-ai-summary-migration-to-convo-ai') ? CONVO_AI_ENDPOINT : 'assist/chat/v1/invoke_agent/stream';
|
|
39
37
|
if (baseUrlOverride || envKey) {
|
|
40
38
|
var baseUrl = baseUrlOverride || (0, _linkingCommon.getBaseUrl)(envKey);
|
|
41
|
-
return (0, _utils.addPath)(baseUrl,
|
|
39
|
+
return (0, _utils.addPath)(baseUrl, CONVO_AI_ENDPOINT);
|
|
42
40
|
}
|
|
43
|
-
return (0, _utils.addPath)('/gateway/api/',
|
|
41
|
+
return (0, _utils.addPath)('/gateway/api/', CONVO_AI_ENDPOINT);
|
|
44
42
|
});
|
|
45
43
|
(0, _defineProperty2.default)(this, "fetchStream", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
|
46
44
|
var payload, options, response;
|
|
@@ -57,11 +55,11 @@ var AISummaryService = exports.AISummaryService = /*#__PURE__*/function () {
|
|
|
57
55
|
locale: _this.locale
|
|
58
56
|
}
|
|
59
57
|
}, {
|
|
60
|
-
ai_feature_input:
|
|
58
|
+
ai_feature_input: {
|
|
61
59
|
content_url: _this.url,
|
|
62
60
|
content_ari: _this.ari,
|
|
63
61
|
locale: _this.locale
|
|
64
|
-
}
|
|
62
|
+
}
|
|
65
63
|
});
|
|
66
64
|
options = {
|
|
67
65
|
method: 'POST',
|
|
@@ -164,7 +162,7 @@ var AISummaryService = exports.AISummaryService = /*#__PURE__*/function () {
|
|
|
164
162
|
|
|
165
163
|
//if AI Mate service returns cached summary we get the summary text in one piece as the last message
|
|
166
164
|
if (chunk.type === 'FINAL_RESPONSE') {
|
|
167
|
-
bufferContent =
|
|
165
|
+
bufferContent = chunk.message.content;
|
|
168
166
|
}
|
|
169
167
|
if (!(chunk.type === 'ERROR')) {
|
|
170
168
|
_context2.next = 22;
|
|
@@ -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: "40.
|
|
14
|
+
packageVersion: "40.17.1"
|
|
15
15
|
};
|
|
16
16
|
var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
17
17
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -37,7 +37,7 @@ var ExpandedFrame = exports.ExpandedFrame = function ExpandedFrame(_ref) {
|
|
|
37
37
|
"data-testid": testId
|
|
38
38
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
39
39
|
,
|
|
40
|
-
className: (0, _runtime.ax)(["_1bsb1osq _1e0c1txw", "_p12fukw8 _bfhkhp5a", isHoverable && "_irr3uh3c _d0altlke", isFluidHeight ? "_1tkeidpf" : "_1tke68cl", isSelected ? "
|
|
40
|
+
className: (0, _runtime.ax)(["_1bsb1osq _1e0c1txw", "_p12fukw8 _bfhkhp5a", isHoverable && "_irr3uh3c _d0altlke", isFluidHeight ? "_1tkeidpf" : "_1tke68cl", isSelected ? "_2rkofajl _1h6d7a2i _1dqonqa1 _189eyh40" : "_2rko1lya _1h6d1j28 _1dqonqa1 _189eyh40", "_1reo15vq _18m915vq _1bah1yb4 _16qs1mq7", className]),
|
|
41
41
|
"data-trello-do-not-use-override": testId,
|
|
42
42
|
style: {
|
|
43
43
|
"--_1irqcwi": (0, _runtime.ix)("var(--ds-background-neutral-subtle-hovered, ".concat(_colors.N20A, ")")),
|
|
@@ -63,7 +63,7 @@ var CompactFrame = exports.CompactFrame = function CompactFrame(_ref2) {
|
|
|
63
63
|
"data-testid": testId
|
|
64
64
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
65
65
|
,
|
|
66
|
-
className: (0, _runtime.ax)(["_1bsb1osq _1e0c1txw", "_p12fukw8 _bfhkhp5a", isHoverable && "_irr3bfnf", isSelected && "
|
|
66
|
+
className: (0, _runtime.ax)(["_1bsb1osq _1e0c1txw", "_p12fukw8 _bfhkhp5a", isHoverable && "_irr3bfnf", isSelected && "_2rkofajl _1h6d7a2i _1dqonqa1 _189eyh40", !isSelected && "_2rko1lya", "_1bah1h6o _4cvr1h6o _bfhkkq2v", inheritDimensions ? "_4t3i1osq" : "_4t3i1ylp", "_ca0qidpf _u5f3idpf _n3tdidpf _19bvidpf _1bsb1osq", className]),
|
|
67
67
|
style: {
|
|
68
68
|
"--_6j4ewu": (0, _runtime.ix)("var(--ds-background-neutral-hovered, ".concat(_colors.N30A, ")")),
|
|
69
69
|
"--_d9gj9p": (0, _runtime.ix)("var(--ds-border-selected, ".concat(_colors.B200, ")")),
|
|
@@ -124,6 +124,6 @@ var Frame = exports.Frame = /*#__PURE__*/_react.default.forwardRef(function (_re
|
|
|
124
124
|
},
|
|
125
125
|
sandbox: (0, _utils.getIframeSandboxAttribute)(isTrusted),
|
|
126
126
|
title: title,
|
|
127
|
-
className: (0, _runtime.ax)(["_19itidpf _1reo15vq _18m915vq
|
|
127
|
+
className: (0, _runtime.ax)(["_19itidpf _1reo15vq _18m915vq _2rkofajl _154iidpf _1ltvidpf _1bsb1osq _4t3i1osq _kqswh2mm"])
|
|
128
128
|
}));
|
|
129
129
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
.
|
|
2
|
+
._2rkofajl{border-radius:var(--ds-radius-small,3px)}._16qs10kv{box-shadow:var(--_zsb6fb)}
|
|
3
3
|
._1e0c116y{display:inline-flex}
|
|
4
4
|
._1o511hrf{animation-fill-mode:both}
|
|
5
5
|
._1pgl1trn{animation-timing-function:cubic-bezier(.5,0,0,1)}
|
package/dist/cjs/view/FlexibleCard/components/blocks/ai-summary-block/feature-discovery/index.js
CHANGED
|
@@ -59,7 +59,7 @@ var FeatureDiscovery = function FeatureDiscovery(_ref) {
|
|
|
59
59
|
if (!discovered) {
|
|
60
60
|
return /*#__PURE__*/React.createElement("span", {
|
|
61
61
|
"data-testid": "".concat(testId, "-discovery"),
|
|
62
|
-
className: (0, _runtime.ax)(["
|
|
62
|
+
className: (0, _runtime.ax)(["_2rkofajl _1e0c116y _16qs10kv _j7hq8j16 _5sagymdr _1pgl1trn _ju251doz _1o511hrf _tip8cs5v"]),
|
|
63
63
|
style: {
|
|
64
64
|
"--_zsb6fb": (0, _runtime.ix)("0 0 0 0 ".concat("var(--ds-border-discovery, #8270DB)"))
|
|
65
65
|
}
|
|
@@ -9,6 +9,7 @@ exports.default = void 0;
|
|
|
9
9
|
require("./index.compiled.css");
|
|
10
10
|
var React = _interopRequireWildcard(require("react"));
|
|
11
11
|
var _runtime = require("@compiled/react/runtime");
|
|
12
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
12
13
|
var _useLinkClicked = require("../../../../../state/analytics/useLinkClicked");
|
|
13
14
|
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); }
|
|
14
15
|
var styles = null;
|
|
@@ -34,6 +35,8 @@ var LayeredLink = function LayeredLink(_ref) {
|
|
|
34
35
|
onMouseDown: onMouseDown,
|
|
35
36
|
target: target,
|
|
36
37
|
tabIndex: -1 // Hide tab index and let the title link be the link.
|
|
38
|
+
,
|
|
39
|
+
"aria-hidden": (0, _platformFeatureFlags.fg)('navx-1706-smart-link-layered-link-a11y-update') // This is to avoid screen readers reading out the link twice.
|
|
37
40
|
}, text);
|
|
38
41
|
};
|
|
39
42
|
var _default = exports.default = LayeredLink;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
._kkk2n7od{all:unset}
|
|
3
|
-
.
|
|
3
|
+
._2rko12b0{border-radius:var(--ds-radius-small,4px)}
|
|
4
4
|
._15vhn7od{font-variant:unset}
|
|
5
5
|
._189e1bk5{border-width:var(--ds-border-width-outline,2px)}
|
|
6
6
|
._189ee4h9{border-width:var(--ds-border-width,1px)}
|
|
@@ -24,7 +24,7 @@ var _excluded = ["appearance", "isOpen", "testId", "text", "triggerRef"];
|
|
|
24
24
|
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); }
|
|
25
25
|
var styles = {
|
|
26
26
|
chevronDown: "_18u012x7 _1e0c1txw",
|
|
27
|
-
lozengeContainer: "_kkk2n7od
|
|
27
|
+
lozengeContainer: "_kkk2n7od _2rko12b0 _1dqonqa1 _189ee4h9 _1h6d1j28 _bfhk1j28 _1e0c1txw _4cvr1h6o _4t3i7vkz",
|
|
28
28
|
lozengeContainerSelected: "_1reo15vq _18m915vq _1h6d1p6i"
|
|
29
29
|
};
|
|
30
30
|
var triggerLozengeStyles = null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
._19ith6cr{border:1px solid var(--ds-border,#dfe1e6)}
|
|
3
3
|
._1yt4x7n9{padding:var(--ds-space-025,2px) 0}
|
|
4
|
-
.
|
|
4
|
+
._2rko12b0{border-radius:var(--ds-radius-small,4px)}
|
|
5
5
|
._v56415x0{transition:all .1s ease-in-out}
|
|
6
6
|
._1h6dmr28{border-color:var(--ds-border-accent-blue,#2684ff)}._12ji1r31{outline-color:currentColor}
|
|
7
7
|
._12y31o36{outline-width:medium}
|
|
@@ -27,7 +27,7 @@ var WrapperSpan = exports.WrapperSpan = /*#__PURE__*/(0, _react.forwardRef)(func
|
|
|
27
27
|
return /*#__PURE__*/_react.default.createElement("span", (0, _extends2.default)({
|
|
28
28
|
ref: ref
|
|
29
29
|
}, props, {
|
|
30
|
-
className: (0, _runtime.ax)(["_1yt4x7n9
|
|
30
|
+
className: (0, _runtime.ax)(["_1yt4x7n9 _2rko12b0 _v56415x0 _1e0c1nu9 _16d9qvcn _syaz1y58 _1rkwglyw _4cvxmr28", truncateInline && "_1reo15vq _18m915vq _ca0qidpf _u5f3idpf _n3tdidpf _19bvidpf _1bto1l2s _1nmz9jpi _1e0c1abx _1yyjkb7n _sudp1e54 _nr8z1o8l _1voyv77o _3kwxidpf _jqg5v77o _6vwiidpf", withoutBackground ? "_19bvidpf _18u01i6y" : "_19ith6cr _bfhkhp5a _1a3b1r31 _4fprglyw _5goinqa1 _9oik1r31 _1bnxglyw _jf4cnqa1 _1nrm1r31 _c2waglyw _1iohnqa1", isHovered && "_1h6dmr28", isHovered && !withoutBackground && "_4bfu1r31 _1hmsglyw _ajmmnqa1", isSelected ? "_12ji1r31 _1qu2glyw _12y31o36 _80omtlke _16qscw00 _uiztglyw _1a3b1r31 _4fprglyw _5goinqa1 _9oik1r31 _1bnxglyw _jf4cnqa1 _bfw7h6cr _1nrm1r31 _c2waglyw _1iohnqa1" : "_uizt1kdv"])
|
|
31
31
|
}), props.children);
|
|
32
32
|
});
|
|
33
33
|
var WrapperAnchor = exports.WrapperAnchor = /*#__PURE__*/(0, _react.forwardRef)(function (_ref2, ref) {
|
|
@@ -42,7 +42,7 @@ var WrapperAnchor = exports.WrapperAnchor = /*#__PURE__*/(0, _react.forwardRef)(
|
|
|
42
42
|
href: href,
|
|
43
43
|
ref: ref
|
|
44
44
|
}, props, {
|
|
45
|
-
className: (0, _runtime.ax)(["_1yt4x7n9
|
|
45
|
+
className: (0, _runtime.ax)(["_1yt4x7n9 _2rko12b0 _v56415x0 _1e0c1nu9 _16d9qvcn _syaz1y58 _1rkwglyw _4cvxmr28", truncateInline && "_1reo15vq _18m915vq _ca0qidpf _u5f3idpf _n3tdidpf _19bvidpf _1bto1l2s _1nmz9jpi _1e0c1abx _1yyjkb7n _sudp1e54 _nr8z1o8l _1voyv77o _3kwxidpf _jqg5v77o _6vwiidpf", withoutBackground ? "_19bvidpf _18u01i6y" : "_19ith6cr _bfhkhp5a _1a3b1r31 _4fprglyw _5goinqa1 _9oik1r31 _1bnxglyw _jf4cnqa1 _1nrm1r31 _c2waglyw _1iohnqa1", isHovered && "_1h6dmr28", isHovered && !withoutBackground && "_4bfu1r31 _1hmsglyw _ajmmnqa1", isSelected ? "_12ji1r31 _1qu2glyw _12y31o36 _80omtlke _16qscw00 _uiztglyw _1a3b1r31 _4fprglyw _5goinqa1 _9oik1r31 _1bnxglyw _jf4cnqa1 _bfw7h6cr _1nrm1r31 _c2waglyw _1iohnqa1" : "_uizt1kdv", isInteractive && "_nt751r31 _49pcglyw _1hvw1o36 _1372tlke _7ehicw00 _1j5pglyw _1di629zg"])
|
|
46
46
|
}), props.children);
|
|
47
47
|
});
|
|
48
48
|
var baseWrapperStyles = null;
|
|
@@ -19,7 +19,7 @@ var _excluded = ["href", "children", "checkSafety", "onClick", "testId", "isLink
|
|
|
19
19
|
_excluded2 = ["isLinkSafe", "showSafetyWarningModal"];
|
|
20
20
|
var PACKAGE_DATA = {
|
|
21
21
|
packageName: "@atlaskit/smart-card",
|
|
22
|
-
packageVersion: "40.
|
|
22
|
+
packageVersion: "40.17.1",
|
|
23
23
|
componentName: 'linkUrl'
|
|
24
24
|
};
|
|
25
25
|
var Anchor = (0, _click.withLinkClickedEvent)('a');
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import uuid from 'uuid';
|
|
3
3
|
import { getBaseUrl } from '@atlaskit/linking-common';
|
|
4
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
5
4
|
import { readStream } from './readStream';
|
|
6
5
|
import { ChunkProcessingError } from './types';
|
|
7
6
|
import { addPath, getXProductHeaderValue } from './utils';
|
|
@@ -15,12 +14,11 @@ export class AISummaryService {
|
|
|
15
14
|
});
|
|
16
15
|
_defineProperty(this, "subscribedStateSetters", new Set());
|
|
17
16
|
_defineProperty(this, "getRequestUrl", (envKey, baseUrlOverride) => {
|
|
18
|
-
const path = fg('platform-linking-ai-summary-migration-to-convo-ai') ? CONVO_AI_ENDPOINT : 'assist/chat/v1/invoke_agent/stream';
|
|
19
17
|
if (baseUrlOverride || envKey) {
|
|
20
18
|
const baseUrl = baseUrlOverride || getBaseUrl(envKey);
|
|
21
|
-
return addPath(baseUrl,
|
|
19
|
+
return addPath(baseUrl, CONVO_AI_ENDPOINT);
|
|
22
20
|
}
|
|
23
|
-
return addPath('/gateway/api/',
|
|
21
|
+
return addPath('/gateway/api/', CONVO_AI_ENDPOINT);
|
|
24
22
|
});
|
|
25
23
|
_defineProperty(this, "fetchStream", async () => {
|
|
26
24
|
const payload = {
|
|
@@ -33,11 +31,11 @@ export class AISummaryService {
|
|
|
33
31
|
locale: this.locale
|
|
34
32
|
},
|
|
35
33
|
...{
|
|
36
|
-
ai_feature_input:
|
|
34
|
+
ai_feature_input: {
|
|
37
35
|
content_url: this.url,
|
|
38
36
|
content_ari: this.ari,
|
|
39
37
|
locale: this.locale
|
|
40
|
-
}
|
|
38
|
+
}
|
|
41
39
|
}
|
|
42
40
|
};
|
|
43
41
|
const options = {
|
|
@@ -95,7 +93,7 @@ export class AISummaryService {
|
|
|
95
93
|
|
|
96
94
|
//if AI Mate service returns cached summary we get the summary text in one piece as the last message
|
|
97
95
|
if (chunk.type === 'FINAL_RESPONSE') {
|
|
98
|
-
bufferContent =
|
|
96
|
+
bufferContent = chunk.message.content;
|
|
99
97
|
}
|
|
100
98
|
if (chunk.type === 'ERROR') {
|
|
101
99
|
var _chunk$message;
|
|
@@ -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: "40.
|
|
5
|
+
packageVersion: "40.17.1"
|
|
6
6
|
};
|
|
7
7
|
export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
8
8
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
._2rko1lya{border-radius:1.5px}
|
|
3
|
-
.
|
|
3
|
+
._2rkofajl{border-radius:var(--ds-radius-small,3px)}
|
|
4
4
|
._189eyh40{border-width:2px}
|
|
5
5
|
._1dqonqa1{border-style:solid}
|
|
6
6
|
._1h6d1can{border-color:var(--ds-border-selected,#2684ff)}
|
|
@@ -28,7 +28,7 @@ export const ExpandedFrame = ({
|
|
|
28
28
|
"data-testid": testId
|
|
29
29
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
30
30
|
,
|
|
31
|
-
className: ax(["_1bsb1osq _1e0c1txw", "_p12fukw8 _bfhkhp5a", isHoverable && "_irr3h3i3 _d0altlke", isFluidHeight ? "_1tkeidpf" : "_1tke68cl", isSelected ? "
|
|
31
|
+
className: ax(["_1bsb1osq _1e0c1txw", "_p12fukw8 _bfhkhp5a", isHoverable && "_irr3h3i3 _d0altlke", isFluidHeight ? "_1tkeidpf" : "_1tke68cl", isSelected ? "_2rkofajl _1h6d1can _1dqonqa1 _189eyh40" : "_2rko1lya _1h6d1j28 _1dqonqa1 _189eyh40", "_1reo15vq _18m915vq _1bah1yb4 _16qsy59s", className]),
|
|
32
32
|
"data-trello-do-not-use-override": testId
|
|
33
33
|
}, children);
|
|
34
34
|
};
|
|
@@ -50,6 +50,6 @@ export const CompactFrame = ({
|
|
|
50
50
|
"data-testid": testId
|
|
51
51
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
52
52
|
,
|
|
53
|
-
className: ax(["_1bsb1osq _1e0c1txw", "_p12fukw8 _bfhkhp5a", isHoverable && "_irr317ks", isSelected && "
|
|
53
|
+
className: ax(["_1bsb1osq _1e0c1txw", "_p12fukw8 _bfhkhp5a", isHoverable && "_irr317ks", isSelected && "_2rkofajl _1h6d1can _1dqonqa1 _189eyh40", !isSelected && "_2rko1lya", "_1bah1h6o _4cvr1h6o _bfhk1j54", inheritDimensions ? "_4t3i1osq" : "_4t3i1ylp", "_ca0qidpf _u5f3idpf _n3tdidpf _19bvidpf _1bsb1osq", className])
|
|
54
54
|
}, children);
|
|
55
55
|
};
|
|
@@ -96,6 +96,6 @@ export const Frame = /*#__PURE__*/React.forwardRef(({
|
|
|
96
96
|
},
|
|
97
97
|
sandbox: getIframeSandboxAttribute(isTrusted),
|
|
98
98
|
title: title,
|
|
99
|
-
className: ax(["_19itidpf _1reo15vq _18m915vq
|
|
99
|
+
className: ax(["_19itidpf _1reo15vq _18m915vq _2rkofajl _154iidpf _1ltvidpf _1bsb1osq _4t3i1osq _kqswh2mm"])
|
|
100
100
|
}));
|
|
101
101
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
.
|
|
2
|
+
._2rkofajl{border-radius:var(--ds-radius-small,3px)}._16qslqk2{box-shadow:0 0 0 0 var(--ds-border-discovery,#8270db)}
|
|
3
3
|
._1e0c116y{display:inline-flex}
|
|
4
4
|
._1o511hrf{animation-fill-mode:both}
|
|
5
5
|
._1pgl1trn{animation-timing-function:cubic-bezier(.5,0,0,1)}
|
package/dist/es2019/view/FlexibleCard/components/blocks/ai-summary-block/feature-discovery/index.js
CHANGED
|
@@ -50,7 +50,7 @@ const FeatureDiscovery = ({
|
|
|
50
50
|
if (!discovered) {
|
|
51
51
|
return /*#__PURE__*/React.createElement("span", {
|
|
52
52
|
"data-testid": `${testId}-discovery`,
|
|
53
|
-
className: ax(["
|
|
53
|
+
className: ax(["_2rkofajl _1e0c116y _16qslqk2 _j7hq8j16 _5sagymdr _1pgl1trn _ju251doz _1o511hrf _tip8cs5v"])
|
|
54
54
|
}, children);
|
|
55
55
|
}
|
|
56
56
|
}, [children, discovered, testId]);
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import "./index.compiled.css";
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
5
6
|
import { useMouseDownEvent } from '../../../../../state/analytics/useLinkClicked';
|
|
6
7
|
const styles = null;
|
|
7
8
|
|
|
@@ -27,6 +28,8 @@ const LayeredLink = ({
|
|
|
27
28
|
onMouseDown: onMouseDown,
|
|
28
29
|
target: target,
|
|
29
30
|
tabIndex: -1 // Hide tab index and let the title link be the link.
|
|
31
|
+
,
|
|
32
|
+
"aria-hidden": fg('navx-1706-smart-link-layered-link-a11y-update') // This is to avoid screen readers reading out the link twice.
|
|
30
33
|
}, text);
|
|
31
34
|
};
|
|
32
35
|
export default LayeredLink;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
._kkk2n7od{all:unset}
|
|
3
|
-
.
|
|
3
|
+
._2rko12b0{border-radius:var(--ds-radius-small,4px)}
|
|
4
4
|
._15vhn7od{font-variant:unset}
|
|
5
5
|
._189e1bk5{border-width:var(--ds-border-width-outline,2px)}
|
|
6
6
|
._189ee4h9{border-width:var(--ds-border-width,1px)}
|
|
@@ -13,7 +13,7 @@ import { fg } from '@atlaskit/platform-feature-flags';
|
|
|
13
13
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
14
14
|
const styles = {
|
|
15
15
|
chevronDown: "_18u012x7 _1e0c1txw",
|
|
16
|
-
lozengeContainer: "_kkk2n7od
|
|
16
|
+
lozengeContainer: "_kkk2n7od _2rko12b0 _1dqonqa1 _189ee4h9 _1h6d1j28 _bfhk1j28 _1e0c1txw _4cvr1h6o _4t3i7vkz",
|
|
17
17
|
lozengeContainerSelected: "_1reo15vq _18m915vq _1h6d1p6i"
|
|
18
18
|
};
|
|
19
19
|
const triggerLozengeStyles = null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
._19ith6cr{border:1px solid var(--ds-border,#dfe1e6)}
|
|
3
3
|
._1yt4x7n9{padding:var(--ds-space-025,2px) 0}
|
|
4
|
-
.
|
|
4
|
+
._2rko12b0{border-radius:var(--ds-radius-small,4px)}
|
|
5
5
|
._v56415x0{transition:all .1s ease-in-out}
|
|
6
6
|
._1h6dmr28{border-color:var(--ds-border-accent-blue,#2684ff)}._12ji1r31{outline-color:currentColor}
|
|
7
7
|
._12y31o36{outline-width:medium}
|
|
@@ -16,7 +16,7 @@ export const WrapperSpan = /*#__PURE__*/forwardRef(({
|
|
|
16
16
|
return /*#__PURE__*/React.createElement("span", _extends({
|
|
17
17
|
ref: ref
|
|
18
18
|
}, props, {
|
|
19
|
-
className: ax(["_1yt4x7n9
|
|
19
|
+
className: ax(["_1yt4x7n9 _2rko12b0 _v56415x0 _1e0c1nu9 _16d9qvcn _syaz1y58 _1rkwglyw _4cvxmr28", truncateInline && "_1reo15vq _18m915vq _ca0qidpf _u5f3idpf _n3tdidpf _19bvidpf _1bto1l2s _1nmz9jpi _1e0c1abx _1yyjkb7n _sudp1e54 _nr8z1o8l _1voyv77o _3kwxidpf _jqg5v77o _6vwiidpf", withoutBackground ? "_19bvidpf _18u01i6y" : "_19ith6cr _bfhkhp5a _1a3b1r31 _4fprglyw _5goinqa1 _9oik1r31 _1bnxglyw _jf4cnqa1 _1nrm1r31 _c2waglyw _1iohnqa1", isHovered && "_1h6dmr28", isHovered && !withoutBackground && "_4bfu1r31 _1hmsglyw _ajmmnqa1", isSelected ? "_12ji1r31 _1qu2glyw _12y31o36 _80omtlke _16qscw00 _uiztglyw _1a3b1r31 _4fprglyw _5goinqa1 _9oik1r31 _1bnxglyw _jf4cnqa1 _bfw7h6cr _1nrm1r31 _c2waglyw _1iohnqa1" : "_uizt1kdv"])
|
|
20
20
|
}), props.children);
|
|
21
21
|
});
|
|
22
22
|
export const WrapperAnchor = /*#__PURE__*/forwardRef(({
|
|
@@ -32,7 +32,7 @@ export const WrapperAnchor = /*#__PURE__*/forwardRef(({
|
|
|
32
32
|
href: href,
|
|
33
33
|
ref: ref
|
|
34
34
|
}, props, {
|
|
35
|
-
className: ax(["_1yt4x7n9
|
|
35
|
+
className: ax(["_1yt4x7n9 _2rko12b0 _v56415x0 _1e0c1nu9 _16d9qvcn _syaz1y58 _1rkwglyw _4cvxmr28", truncateInline && "_1reo15vq _18m915vq _ca0qidpf _u5f3idpf _n3tdidpf _19bvidpf _1bto1l2s _1nmz9jpi _1e0c1abx _1yyjkb7n _sudp1e54 _nr8z1o8l _1voyv77o _3kwxidpf _jqg5v77o _6vwiidpf", withoutBackground ? "_19bvidpf _18u01i6y" : "_19ith6cr _bfhkhp5a _1a3b1r31 _4fprglyw _5goinqa1 _9oik1r31 _1bnxglyw _jf4cnqa1 _1nrm1r31 _c2waglyw _1iohnqa1", isHovered && "_1h6dmr28", isHovered && !withoutBackground && "_4bfu1r31 _1hmsglyw _ajmmnqa1", isSelected ? "_12ji1r31 _1qu2glyw _12y31o36 _80omtlke _16qscw00 _uiztglyw _1a3b1r31 _4fprglyw _5goinqa1 _9oik1r31 _1bnxglyw _jf4cnqa1 _bfw7h6cr _1nrm1r31 _c2waglyw _1iohnqa1" : "_uizt1kdv", isInteractive && "_nt751r31 _49pcglyw _1hvw1o36 _1372tlke _7ehicw00 _1j5pglyw _1di629zg"])
|
|
36
36
|
}), props.children);
|
|
37
37
|
});
|
|
38
38
|
const baseWrapperStyles = null;
|
|
@@ -9,7 +9,7 @@ import LinkWarningModal from './LinkWarningModal';
|
|
|
9
9
|
import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
|
|
10
10
|
const PACKAGE_DATA = {
|
|
11
11
|
packageName: "@atlaskit/smart-card",
|
|
12
|
-
packageVersion: "40.
|
|
12
|
+
packageVersion: "40.17.1",
|
|
13
13
|
componentName: 'linkUrl'
|
|
14
14
|
};
|
|
15
15
|
const Anchor = withLinkClickedEvent('a');
|
|
@@ -12,7 +12,6 @@ function _asyncIterator(r) { var n, t, o, e = 2; for ("undefined" != typeof Symb
|
|
|
12
12
|
function AsyncFromSyncIterator(r) { function AsyncFromSyncIteratorContinuation(r) { if (Object(r) !== r) return Promise.reject(new TypeError(r + " is not an object.")); var n = r.done; return Promise.resolve(r.value).then(function (r) { return { value: r, done: n }; }); } return AsyncFromSyncIterator = function AsyncFromSyncIterator(r) { this.s = r, this.n = r.next; }, AsyncFromSyncIterator.prototype = { s: null, n: null, next: function next() { return AsyncFromSyncIteratorContinuation(this.n.apply(this.s, arguments)); }, return: function _return(r) { var n = this.s.return; return void 0 === n ? Promise.resolve({ value: r, done: !0 }) : AsyncFromSyncIteratorContinuation(n.apply(this.s, arguments)); }, throw: function _throw(r) { var n = this.s.return; return void 0 === n ? Promise.reject(r) : AsyncFromSyncIteratorContinuation(n.apply(this.s, arguments)); } }, new AsyncFromSyncIterator(r); }
|
|
13
13
|
import uuid from 'uuid';
|
|
14
14
|
import { getBaseUrl } from '@atlaskit/linking-common';
|
|
15
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
16
15
|
import { readStream } from './readStream';
|
|
17
16
|
import { ChunkProcessingError } from './types';
|
|
18
17
|
import { addPath, getXProductHeaderValue } from './utils';
|
|
@@ -28,12 +27,11 @@ export var AISummaryService = /*#__PURE__*/function () {
|
|
|
28
27
|
});
|
|
29
28
|
_defineProperty(this, "subscribedStateSetters", new Set());
|
|
30
29
|
_defineProperty(this, "getRequestUrl", function (envKey, baseUrlOverride) {
|
|
31
|
-
var path = fg('platform-linking-ai-summary-migration-to-convo-ai') ? CONVO_AI_ENDPOINT : 'assist/chat/v1/invoke_agent/stream';
|
|
32
30
|
if (baseUrlOverride || envKey) {
|
|
33
31
|
var baseUrl = baseUrlOverride || getBaseUrl(envKey);
|
|
34
|
-
return addPath(baseUrl,
|
|
32
|
+
return addPath(baseUrl, CONVO_AI_ENDPOINT);
|
|
35
33
|
}
|
|
36
|
-
return addPath('/gateway/api/',
|
|
34
|
+
return addPath('/gateway/api/', CONVO_AI_ENDPOINT);
|
|
37
35
|
});
|
|
38
36
|
_defineProperty(this, "fetchStream", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
39
37
|
var payload, options, response;
|
|
@@ -50,11 +48,11 @@ export var AISummaryService = /*#__PURE__*/function () {
|
|
|
50
48
|
locale: _this.locale
|
|
51
49
|
}
|
|
52
50
|
}, {
|
|
53
|
-
ai_feature_input:
|
|
51
|
+
ai_feature_input: {
|
|
54
52
|
content_url: _this.url,
|
|
55
53
|
content_ari: _this.ari,
|
|
56
54
|
locale: _this.locale
|
|
57
|
-
}
|
|
55
|
+
}
|
|
58
56
|
});
|
|
59
57
|
options = {
|
|
60
58
|
method: 'POST',
|
|
@@ -157,7 +155,7 @@ export var AISummaryService = /*#__PURE__*/function () {
|
|
|
157
155
|
|
|
158
156
|
//if AI Mate service returns cached summary we get the summary text in one piece as the last message
|
|
159
157
|
if (chunk.type === 'FINAL_RESPONSE') {
|
|
160
|
-
bufferContent =
|
|
158
|
+
bufferContent = chunk.message.content;
|
|
161
159
|
}
|
|
162
160
|
if (!(chunk.type === 'ERROR')) {
|
|
163
161
|
_context2.next = 22;
|
|
@@ -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: "40.
|
|
7
|
+
packageVersion: "40.17.1"
|
|
8
8
|
};
|
|
9
9
|
export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
10
10
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -30,7 +30,7 @@ export var ExpandedFrame = function ExpandedFrame(_ref) {
|
|
|
30
30
|
"data-testid": testId
|
|
31
31
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
32
32
|
,
|
|
33
|
-
className: ax(["_1bsb1osq _1e0c1txw", "_p12fukw8 _bfhkhp5a", isHoverable && "_irr3uh3c _d0altlke", isFluidHeight ? "_1tkeidpf" : "_1tke68cl", isSelected ? "
|
|
33
|
+
className: ax(["_1bsb1osq _1e0c1txw", "_p12fukw8 _bfhkhp5a", isHoverable && "_irr3uh3c _d0altlke", isFluidHeight ? "_1tkeidpf" : "_1tke68cl", isSelected ? "_2rkofajl _1h6d7a2i _1dqonqa1 _189eyh40" : "_2rko1lya _1h6d1j28 _1dqonqa1 _189eyh40", "_1reo15vq _18m915vq _1bah1yb4 _16qs1mq7", className]),
|
|
34
34
|
"data-trello-do-not-use-override": testId,
|
|
35
35
|
style: {
|
|
36
36
|
"--_1irqcwi": ix("var(--ds-background-neutral-subtle-hovered, ".concat(N20A, ")")),
|
|
@@ -56,7 +56,7 @@ export var CompactFrame = function CompactFrame(_ref2) {
|
|
|
56
56
|
"data-testid": testId
|
|
57
57
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
58
58
|
,
|
|
59
|
-
className: ax(["_1bsb1osq _1e0c1txw", "_p12fukw8 _bfhkhp5a", isHoverable && "_irr3bfnf", isSelected && "
|
|
59
|
+
className: ax(["_1bsb1osq _1e0c1txw", "_p12fukw8 _bfhkhp5a", isHoverable && "_irr3bfnf", isSelected && "_2rkofajl _1h6d7a2i _1dqonqa1 _189eyh40", !isSelected && "_2rko1lya", "_1bah1h6o _4cvr1h6o _bfhkkq2v", inheritDimensions ? "_4t3i1osq" : "_4t3i1ylp", "_ca0qidpf _u5f3idpf _n3tdidpf _19bvidpf _1bsb1osq", className]),
|
|
60
60
|
style: {
|
|
61
61
|
"--_6j4ewu": ix("var(--ds-background-neutral-hovered, ".concat(N30A, ")")),
|
|
62
62
|
"--_d9gj9p": ix("var(--ds-border-selected, ".concat(B200, ")")),
|
|
@@ -115,6 +115,6 @@ export var Frame = /*#__PURE__*/React.forwardRef(function (_ref, iframeRef) {
|
|
|
115
115
|
},
|
|
116
116
|
sandbox: getIframeSandboxAttribute(isTrusted),
|
|
117
117
|
title: title,
|
|
118
|
-
className: ax(["_19itidpf _1reo15vq _18m915vq
|
|
118
|
+
className: ax(["_19itidpf _1reo15vq _18m915vq _2rkofajl _154iidpf _1ltvidpf _1bsb1osq _4t3i1osq _kqswh2mm"])
|
|
119
119
|
}));
|
|
120
120
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
.
|
|
2
|
+
._2rkofajl{border-radius:var(--ds-radius-small,3px)}._16qs10kv{box-shadow:var(--_zsb6fb)}
|
|
3
3
|
._1e0c116y{display:inline-flex}
|
|
4
4
|
._1o511hrf{animation-fill-mode:both}
|
|
5
5
|
._1pgl1trn{animation-timing-function:cubic-bezier(.5,0,0,1)}
|
package/dist/esm/view/FlexibleCard/components/blocks/ai-summary-block/feature-discovery/index.js
CHANGED
|
@@ -51,7 +51,7 @@ var FeatureDiscovery = function FeatureDiscovery(_ref) {
|
|
|
51
51
|
if (!discovered) {
|
|
52
52
|
return /*#__PURE__*/React.createElement("span", {
|
|
53
53
|
"data-testid": "".concat(testId, "-discovery"),
|
|
54
|
-
className: ax(["
|
|
54
|
+
className: ax(["_2rkofajl _1e0c116y _16qs10kv _j7hq8j16 _5sagymdr _1pgl1trn _ju251doz _1o511hrf _tip8cs5v"]),
|
|
55
55
|
style: {
|
|
56
56
|
"--_zsb6fb": ix("0 0 0 0 ".concat("var(--ds-border-discovery, #8270DB)"))
|
|
57
57
|
}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import "./index.compiled.css";
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
5
6
|
import { useMouseDownEvent } from '../../../../../state/analytics/useLinkClicked';
|
|
6
7
|
var styles = null;
|
|
7
8
|
|
|
@@ -26,6 +27,8 @@ var LayeredLink = function LayeredLink(_ref) {
|
|
|
26
27
|
onMouseDown: onMouseDown,
|
|
27
28
|
target: target,
|
|
28
29
|
tabIndex: -1 // Hide tab index and let the title link be the link.
|
|
30
|
+
,
|
|
31
|
+
"aria-hidden": fg('navx-1706-smart-link-layered-link-a11y-update') // This is to avoid screen readers reading out the link twice.
|
|
29
32
|
}, text);
|
|
30
33
|
};
|
|
31
34
|
export default LayeredLink;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
._kkk2n7od{all:unset}
|
|
3
|
-
.
|
|
3
|
+
._2rko12b0{border-radius:var(--ds-radius-small,4px)}
|
|
4
4
|
._15vhn7od{font-variant:unset}
|
|
5
5
|
._189e1bk5{border-width:var(--ds-border-width-outline,2px)}
|
|
6
6
|
._189ee4h9{border-width:var(--ds-border-width,1px)}
|
|
@@ -16,7 +16,7 @@ import { fg } from '@atlaskit/platform-feature-flags';
|
|
|
16
16
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
17
17
|
var styles = {
|
|
18
18
|
chevronDown: "_18u012x7 _1e0c1txw",
|
|
19
|
-
lozengeContainer: "_kkk2n7od
|
|
19
|
+
lozengeContainer: "_kkk2n7od _2rko12b0 _1dqonqa1 _189ee4h9 _1h6d1j28 _bfhk1j28 _1e0c1txw _4cvr1h6o _4t3i7vkz",
|
|
20
20
|
lozengeContainerSelected: "_1reo15vq _18m915vq _1h6d1p6i"
|
|
21
21
|
};
|
|
22
22
|
var triggerLozengeStyles = null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
._19ith6cr{border:1px solid var(--ds-border,#dfe1e6)}
|
|
3
3
|
._1yt4x7n9{padding:var(--ds-space-025,2px) 0}
|
|
4
|
-
.
|
|
4
|
+
._2rko12b0{border-radius:var(--ds-radius-small,4px)}
|
|
5
5
|
._v56415x0{transition:all .1s ease-in-out}
|
|
6
6
|
._1h6dmr28{border-color:var(--ds-border-accent-blue,#2684ff)}._12ji1r31{outline-color:currentColor}
|
|
7
7
|
._12y31o36{outline-width:medium}
|
|
@@ -18,7 +18,7 @@ export var WrapperSpan = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
18
18
|
return /*#__PURE__*/React.createElement("span", _extends({
|
|
19
19
|
ref: ref
|
|
20
20
|
}, props, {
|
|
21
|
-
className: ax(["_1yt4x7n9
|
|
21
|
+
className: ax(["_1yt4x7n9 _2rko12b0 _v56415x0 _1e0c1nu9 _16d9qvcn _syaz1y58 _1rkwglyw _4cvxmr28", truncateInline && "_1reo15vq _18m915vq _ca0qidpf _u5f3idpf _n3tdidpf _19bvidpf _1bto1l2s _1nmz9jpi _1e0c1abx _1yyjkb7n _sudp1e54 _nr8z1o8l _1voyv77o _3kwxidpf _jqg5v77o _6vwiidpf", withoutBackground ? "_19bvidpf _18u01i6y" : "_19ith6cr _bfhkhp5a _1a3b1r31 _4fprglyw _5goinqa1 _9oik1r31 _1bnxglyw _jf4cnqa1 _1nrm1r31 _c2waglyw _1iohnqa1", isHovered && "_1h6dmr28", isHovered && !withoutBackground && "_4bfu1r31 _1hmsglyw _ajmmnqa1", isSelected ? "_12ji1r31 _1qu2glyw _12y31o36 _80omtlke _16qscw00 _uiztglyw _1a3b1r31 _4fprglyw _5goinqa1 _9oik1r31 _1bnxglyw _jf4cnqa1 _bfw7h6cr _1nrm1r31 _c2waglyw _1iohnqa1" : "_uizt1kdv"])
|
|
22
22
|
}), props.children);
|
|
23
23
|
});
|
|
24
24
|
export var WrapperAnchor = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
@@ -33,7 +33,7 @@ export var WrapperAnchor = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
33
33
|
href: href,
|
|
34
34
|
ref: ref
|
|
35
35
|
}, props, {
|
|
36
|
-
className: ax(["_1yt4x7n9
|
|
36
|
+
className: ax(["_1yt4x7n9 _2rko12b0 _v56415x0 _1e0c1nu9 _16d9qvcn _syaz1y58 _1rkwglyw _4cvxmr28", truncateInline && "_1reo15vq _18m915vq _ca0qidpf _u5f3idpf _n3tdidpf _19bvidpf _1bto1l2s _1nmz9jpi _1e0c1abx _1yyjkb7n _sudp1e54 _nr8z1o8l _1voyv77o _3kwxidpf _jqg5v77o _6vwiidpf", withoutBackground ? "_19bvidpf _18u01i6y" : "_19ith6cr _bfhkhp5a _1a3b1r31 _4fprglyw _5goinqa1 _9oik1r31 _1bnxglyw _jf4cnqa1 _1nrm1r31 _c2waglyw _1iohnqa1", isHovered && "_1h6dmr28", isHovered && !withoutBackground && "_4bfu1r31 _1hmsglyw _ajmmnqa1", isSelected ? "_12ji1r31 _1qu2glyw _12y31o36 _80omtlke _16qscw00 _uiztglyw _1a3b1r31 _4fprglyw _5goinqa1 _9oik1r31 _1bnxglyw _jf4cnqa1 _bfw7h6cr _1nrm1r31 _c2waglyw _1iohnqa1" : "_uizt1kdv", isInteractive && "_nt751r31 _49pcglyw _1hvw1o36 _1372tlke _7ehicw00 _1j5pglyw _1di629zg"])
|
|
37
37
|
}), props.children);
|
|
38
38
|
});
|
|
39
39
|
var baseWrapperStyles = null;
|
|
@@ -12,7 +12,7 @@ import LinkWarningModal from './LinkWarningModal';
|
|
|
12
12
|
import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
|
|
13
13
|
var PACKAGE_DATA = {
|
|
14
14
|
packageName: "@atlaskit/smart-card",
|
|
15
|
-
packageVersion: "40.
|
|
15
|
+
packageVersion: "40.17.1",
|
|
16
16
|
componentName: 'linkUrl'
|
|
17
17
|
};
|
|
18
18
|
var Anchor = withLinkClickedEvent('a');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/smart-card",
|
|
3
|
-
"version": "40.17.
|
|
3
|
+
"version": "40.17.2",
|
|
4
4
|
"description": "Smart card component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -62,13 +62,13 @@
|
|
|
62
62
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
63
63
|
"@atlaskit/popup": "^4.3.0",
|
|
64
64
|
"@atlaskit/primitives": "^14.12.0",
|
|
65
|
-
"@atlaskit/section-message": "^8.
|
|
65
|
+
"@atlaskit/section-message": "^8.7.0",
|
|
66
66
|
"@atlaskit/select": "^21.2.0",
|
|
67
67
|
"@atlaskit/spinner": "^19.0.0",
|
|
68
68
|
"@atlaskit/textarea": "^8.0.0",
|
|
69
69
|
"@atlaskit/textfield": "^8.0.0",
|
|
70
70
|
"@atlaskit/theme": "^20.0.0",
|
|
71
|
-
"@atlaskit/tmp-editor-statsig": "^12.
|
|
71
|
+
"@atlaskit/tmp-editor-statsig": "^12.2.0",
|
|
72
72
|
"@atlaskit/tokens": "^6.1.0",
|
|
73
73
|
"@atlaskit/tooltip": "^20.4.0",
|
|
74
74
|
"@atlaskit/ufo": "^0.4.0",
|
|
@@ -184,9 +184,6 @@
|
|
|
184
184
|
"confluence-issue-terminology-refresh": {
|
|
185
185
|
"type": "boolean"
|
|
186
186
|
},
|
|
187
|
-
"platform-linking-ai-summary-migration-to-convo-ai": {
|
|
188
|
-
"type": "boolean"
|
|
189
|
-
},
|
|
190
187
|
"dst-a11y__replace-anchor-with-link__linking-platfo": {
|
|
191
188
|
"type": "boolean"
|
|
192
189
|
},
|
|
@@ -231,6 +228,9 @@
|
|
|
231
228
|
},
|
|
232
229
|
"navx-1483-a11y-close-button-in-modal-updates": {
|
|
233
230
|
"type": "boolean"
|
|
231
|
+
},
|
|
232
|
+
"navx-1706-smart-link-layered-link-a11y-update": {
|
|
233
|
+
"type": "boolean"
|
|
234
234
|
}
|
|
235
235
|
},
|
|
236
236
|
"compassUnitTestMetricSourceId": "ari:cloud:compass:a436116f-02ce-4520-8fbb-7301462a1674:metric-source/c5751cc6-3513-4070-9deb-af31e86aed34/f74ef1bc-7240-4aac-9dc8-9dc43b502089"
|