@atlaskit/smart-card 43.25.7 → 43.25.9
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 +20 -0
- package/dist/cjs/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-priority-blocker--default.png +0 -0
- package/dist/cjs/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-priority-critical--default.png +0 -0
- package/dist/cjs/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-priority-highest--default.png +0 -0
- package/dist/cjs/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-priority-lowest--default.png +0 -0
- package/dist/cjs/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-priority-major--default.png +0 -0
- package/dist/cjs/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-priority-medium--default.png +0 -0
- package/dist/cjs/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-priority-minor--default.png +0 -0
- package/dist/cjs/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-priority-trivial--default.png +0 -0
- package/dist/cjs/__tests__/vr-tests/__snapshots__/hover-card/hover-card-rovo-chat-action--default.png +0 -0
- package/dist/cjs/common/ui/icons/priority-blocker-icon.compiled.css +5 -0
- package/dist/cjs/common/ui/icons/priority-blocker-icon.js +44 -0
- package/dist/cjs/common/ui/icons/priority-critical-icon.compiled.css +5 -0
- package/dist/cjs/common/ui/icons/priority-critical-icon.js +44 -0
- package/dist/cjs/common/ui/icons/priority-high-icon.compiled.css +5 -0
- package/dist/cjs/common/ui/icons/priority-high-icon.js +44 -0
- package/dist/cjs/common/ui/icons/priority-highest-icon.compiled.css +5 -0
- package/dist/cjs/common/ui/icons/priority-highest-icon.js +47 -0
- package/dist/cjs/common/ui/icons/priority-low-icon.compiled.css +5 -0
- package/dist/cjs/common/ui/icons/priority-low-icon.js +44 -0
- package/dist/cjs/common/ui/icons/priority-lowest-icon.compiled.css +5 -0
- package/dist/cjs/common/ui/icons/priority-lowest-icon.js +47 -0
- package/dist/cjs/common/ui/icons/priority-major-icon.compiled.css +5 -0
- package/dist/cjs/common/ui/icons/priority-major-icon.js +50 -0
- package/dist/cjs/common/ui/icons/priority-medium-icon.compiled.css +5 -0
- package/dist/cjs/common/ui/icons/priority-medium-icon.js +44 -0
- package/dist/cjs/common/ui/icons/priority-minor-icon.compiled.css +5 -0
- package/dist/cjs/common/ui/icons/priority-minor-icon.js +50 -0
- package/dist/cjs/common/ui/icons/priority-trivial-icon.compiled.css +5 -0
- package/dist/cjs/common/ui/icons/priority-trivial-icon.js +44 -0
- package/dist/cjs/constants.js +1 -0
- package/dist/cjs/extractors/flexible/actions/extract-rovo-chat-action.js +27 -0
- package/dist/cjs/extractors/flexible/actions/index.js +7 -2
- package/dist/cjs/extractors/flexible/index.js +9 -4
- package/dist/cjs/state/hooks/use-rovo-chat/index.js +2 -1
- package/dist/cjs/utils/index.js +30 -10
- package/dist/cjs/utils/rovo.js +9 -0
- package/dist/cjs/view/Card/types.js +5 -0
- package/dist/cjs/view/CardWithUrl/component.js +17 -1
- package/dist/cjs/view/FlexibleCard/components/actions/index.js +7 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/action-block/index.js +7 -9
- package/dist/cjs/view/FlexibleCard/index.js +11 -4
- package/dist/cjs/view/HoverCard/components/views/resolved/index.js +1 -0
- package/dist/es2019/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-priority-blocker--default.png +0 -0
- package/dist/es2019/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-priority-critical--default.png +0 -0
- package/dist/es2019/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-priority-highest--default.png +0 -0
- package/dist/es2019/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-priority-lowest--default.png +0 -0
- package/dist/es2019/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-priority-major--default.png +0 -0
- package/dist/es2019/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-priority-medium--default.png +0 -0
- package/dist/es2019/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-priority-minor--default.png +0 -0
- package/dist/es2019/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-priority-trivial--default.png +0 -0
- package/dist/es2019/__tests__/vr-tests/__snapshots__/hover-card/hover-card-rovo-chat-action--default.png +0 -0
- package/dist/es2019/common/ui/icons/priority-blocker-icon.compiled.css +5 -0
- package/dist/es2019/common/ui/icons/priority-blocker-icon.js +32 -0
- package/dist/es2019/common/ui/icons/priority-critical-icon.compiled.css +5 -0
- package/dist/es2019/common/ui/icons/priority-critical-icon.js +32 -0
- package/dist/es2019/common/ui/icons/priority-high-icon.compiled.css +5 -0
- package/dist/es2019/common/ui/icons/priority-high-icon.js +32 -0
- package/dist/es2019/common/ui/icons/priority-highest-icon.compiled.css +5 -0
- package/dist/es2019/common/ui/icons/priority-highest-icon.js +35 -0
- package/dist/es2019/common/ui/icons/priority-low-icon.compiled.css +5 -0
- package/dist/es2019/common/ui/icons/priority-low-icon.js +32 -0
- package/dist/es2019/common/ui/icons/priority-lowest-icon.compiled.css +5 -0
- package/dist/es2019/common/ui/icons/priority-lowest-icon.js +35 -0
- package/dist/es2019/common/ui/icons/priority-major-icon.compiled.css +5 -0
- package/dist/es2019/common/ui/icons/priority-major-icon.js +38 -0
- package/dist/es2019/common/ui/icons/priority-medium-icon.compiled.css +5 -0
- package/dist/es2019/common/ui/icons/priority-medium-icon.js +32 -0
- package/dist/es2019/common/ui/icons/priority-minor-icon.compiled.css +5 -0
- package/dist/es2019/common/ui/icons/priority-minor-icon.js +38 -0
- package/dist/es2019/common/ui/icons/priority-trivial-icon.compiled.css +5 -0
- package/dist/es2019/common/ui/icons/priority-trivial-icon.js +32 -0
- package/dist/es2019/constants.js +1 -0
- package/dist/es2019/extractors/flexible/actions/extract-rovo-chat-action.js +21 -0
- package/dist/es2019/extractors/flexible/actions/index.js +6 -0
- package/dist/es2019/extractors/flexible/index.js +5 -0
- package/dist/es2019/state/hooks/use-rovo-chat/index.js +2 -1
- package/dist/es2019/utils/index.js +10 -10
- package/dist/es2019/utils/rovo.js +1 -0
- package/dist/es2019/view/Card/types.js +6 -0
- package/dist/es2019/view/CardWithUrl/component.js +15 -1
- package/dist/es2019/view/FlexibleCard/components/actions/index.js +1 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/action-block/index.js +6 -8
- package/dist/es2019/view/FlexibleCard/index.js +8 -1
- package/dist/es2019/view/HoverCard/components/views/resolved/index.js +1 -0
- package/dist/esm/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-priority-blocker--default.png +0 -0
- package/dist/esm/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-priority-critical--default.png +0 -0
- package/dist/esm/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-priority-highest--default.png +0 -0
- package/dist/esm/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-priority-lowest--default.png +0 -0
- package/dist/esm/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-priority-major--default.png +0 -0
- package/dist/esm/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-priority-medium--default.png +0 -0
- package/dist/esm/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-priority-minor--default.png +0 -0
- package/dist/esm/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-priority-trivial--default.png +0 -0
- package/dist/esm/__tests__/vr-tests/__snapshots__/hover-card/hover-card-rovo-chat-action--default.png +0 -0
- package/dist/esm/common/ui/icons/priority-blocker-icon.compiled.css +5 -0
- package/dist/esm/common/ui/icons/priority-blocker-icon.js +35 -0
- package/dist/esm/common/ui/icons/priority-critical-icon.compiled.css +5 -0
- package/dist/esm/common/ui/icons/priority-critical-icon.js +35 -0
- package/dist/esm/common/ui/icons/priority-high-icon.compiled.css +5 -0
- package/dist/esm/common/ui/icons/priority-high-icon.js +35 -0
- package/dist/esm/common/ui/icons/priority-highest-icon.compiled.css +5 -0
- package/dist/esm/common/ui/icons/priority-highest-icon.js +38 -0
- package/dist/esm/common/ui/icons/priority-low-icon.compiled.css +5 -0
- package/dist/esm/common/ui/icons/priority-low-icon.js +35 -0
- package/dist/esm/common/ui/icons/priority-lowest-icon.compiled.css +5 -0
- package/dist/esm/common/ui/icons/priority-lowest-icon.js +38 -0
- package/dist/esm/common/ui/icons/priority-major-icon.compiled.css +5 -0
- package/dist/esm/common/ui/icons/priority-major-icon.js +41 -0
- package/dist/esm/common/ui/icons/priority-medium-icon.compiled.css +5 -0
- package/dist/esm/common/ui/icons/priority-medium-icon.js +35 -0
- package/dist/esm/common/ui/icons/priority-minor-icon.compiled.css +5 -0
- package/dist/esm/common/ui/icons/priority-minor-icon.js +41 -0
- package/dist/esm/common/ui/icons/priority-trivial-icon.compiled.css +5 -0
- package/dist/esm/common/ui/icons/priority-trivial-icon.js +35 -0
- package/dist/esm/constants.js +1 -0
- package/dist/esm/extractors/flexible/actions/extract-rovo-chat-action.js +21 -0
- package/dist/esm/extractors/flexible/actions/index.js +7 -2
- package/dist/esm/extractors/flexible/index.js +9 -4
- package/dist/esm/state/hooks/use-rovo-chat/index.js +2 -1
- package/dist/esm/utils/index.js +10 -10
- package/dist/esm/utils/rovo.js +3 -0
- package/dist/esm/view/Card/types.js +6 -0
- package/dist/esm/view/CardWithUrl/component.js +17 -1
- package/dist/esm/view/FlexibleCard/components/actions/index.js +1 -0
- package/dist/esm/view/FlexibleCard/components/blocks/action-block/index.js +8 -10
- package/dist/esm/view/FlexibleCard/index.js +11 -4
- package/dist/esm/view/HoverCard/components/views/resolved/index.js +1 -0
- package/dist/types/common/ui/icons/priority-blocker-icon.d.ts +10 -0
- package/dist/types/common/ui/icons/priority-critical-icon.d.ts +10 -0
- package/dist/types/common/ui/icons/priority-high-icon.d.ts +10 -0
- package/dist/types/common/ui/icons/priority-highest-icon.d.ts +10 -0
- package/dist/types/common/ui/icons/priority-low-icon.d.ts +10 -0
- package/dist/types/common/ui/icons/priority-lowest-icon.d.ts +10 -0
- package/dist/types/common/ui/icons/priority-major-icon.d.ts +10 -0
- package/dist/types/common/ui/icons/priority-medium-icon.d.ts +10 -0
- package/dist/types/common/ui/icons/priority-minor-icon.d.ts +10 -0
- package/dist/types/common/ui/icons/priority-trivial-icon.d.ts +10 -0
- package/dist/types/constants.d.ts +1 -0
- package/dist/types/extractors/action/types.d.ts +1 -1
- package/dist/types/extractors/common/actions/types.d.ts +1 -1
- package/dist/types/extractors/flexible/actions/extract-ai-summary-action.d.ts +1 -1
- package/dist/types/extractors/flexible/actions/extract-follow-action.d.ts +1 -1
- package/dist/types/extractors/flexible/actions/extract-rovo-chat-action.d.ts +5 -0
- package/dist/types/extractors/flexible/actions/index.d.ts +4 -2
- package/dist/types/extractors/flexible/extract-state.d.ts +1 -1
- package/dist/types/extractors/flexible/index.d.ts +1 -1
- package/dist/types/state/flexible-ui-context/types.d.ts +1 -0
- package/dist/types/state/hooks/use-rovo-config/index.d.ts +3 -1
- package/dist/types/utils/actions/combine-action-options.d.ts +1 -1
- package/dist/types/utils/rovo.d.ts +2 -0
- package/dist/types/view/BlockCard/types.d.ts +1 -1
- package/dist/types/view/Card/types.d.ts +8 -0
- package/dist/types/view/CardWithUrl/types.d.ts +2 -2
- package/dist/types/view/EmbedCard/types.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/actions/index.d.ts +1 -0
- package/dist/types/view/FlexibleCard/components/blocks/action-block/index.d.ts +1 -1
- package/dist/types/view/FlexibleCard/types.d.ts +3 -1
- package/dist/types/view/HoverCard/index.d.ts +1 -1
- package/dist/types/view/HoverCard/types.d.ts +5 -4
- package/dist/types/view/InlineCard/ResolvedView/index.d.ts +1 -1
- package/dist/types/view/InlineCard/types.d.ts +1 -1
- package/dist/types-ts4.5/common/ui/icons/priority-blocker-icon.d.ts +10 -0
- package/dist/types-ts4.5/common/ui/icons/priority-critical-icon.d.ts +10 -0
- package/dist/types-ts4.5/common/ui/icons/priority-high-icon.d.ts +10 -0
- package/dist/types-ts4.5/common/ui/icons/priority-highest-icon.d.ts +10 -0
- package/dist/types-ts4.5/common/ui/icons/priority-low-icon.d.ts +10 -0
- package/dist/types-ts4.5/common/ui/icons/priority-lowest-icon.d.ts +10 -0
- package/dist/types-ts4.5/common/ui/icons/priority-major-icon.d.ts +10 -0
- package/dist/types-ts4.5/common/ui/icons/priority-medium-icon.d.ts +10 -0
- package/dist/types-ts4.5/common/ui/icons/priority-minor-icon.d.ts +10 -0
- package/dist/types-ts4.5/common/ui/icons/priority-trivial-icon.d.ts +10 -0
- package/dist/types-ts4.5/constants.d.ts +1 -0
- package/dist/types-ts4.5/extractors/action/types.d.ts +1 -1
- package/dist/types-ts4.5/extractors/common/actions/types.d.ts +1 -1
- package/dist/types-ts4.5/extractors/flexible/actions/extract-ai-summary-action.d.ts +1 -1
- package/dist/types-ts4.5/extractors/flexible/actions/extract-follow-action.d.ts +1 -1
- package/dist/types-ts4.5/extractors/flexible/actions/extract-rovo-chat-action.d.ts +5 -0
- package/dist/types-ts4.5/extractors/flexible/actions/index.d.ts +4 -2
- package/dist/types-ts4.5/extractors/flexible/extract-state.d.ts +1 -1
- package/dist/types-ts4.5/extractors/flexible/index.d.ts +1 -1
- package/dist/types-ts4.5/state/flexible-ui-context/types.d.ts +1 -0
- package/dist/types-ts4.5/state/hooks/use-rovo-config/index.d.ts +3 -1
- package/dist/types-ts4.5/utils/actions/combine-action-options.d.ts +1 -1
- package/dist/types-ts4.5/utils/rovo.d.ts +2 -0
- package/dist/types-ts4.5/view/BlockCard/types.d.ts +1 -1
- package/dist/types-ts4.5/view/Card/types.d.ts +8 -0
- package/dist/types-ts4.5/view/CardWithUrl/types.d.ts +2 -2
- package/dist/types-ts4.5/view/EmbedCard/types.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/index.d.ts +1 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/action-block/index.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/types.d.ts +3 -1
- package/dist/types-ts4.5/view/HoverCard/index.d.ts +1 -1
- package/dist/types-ts4.5/view/HoverCard/types.d.ts +5 -4
- package/dist/types-ts4.5/view/InlineCard/ResolvedView/index.d.ts +1 -1
- package/dist/types-ts4.5/view/InlineCard/types.d.ts +1 -1
- package/package.json +5 -2
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/* priority-high-icon.tsx generated by @compiled/babel-plugin v0.38.1 */
|
|
2
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
3
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
|
+
var _excluded = ["label", "testId"];
|
|
5
|
+
import "./priority-high-icon.compiled.css";
|
|
6
|
+
import * as React from 'react';
|
|
7
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
8
|
+
var style = {
|
|
9
|
+
span: "_1e0c1o8l _1o9zidpf",
|
|
10
|
+
svg: "_s7n4yfq0 _p12f1osq _c71l1osq"
|
|
11
|
+
};
|
|
12
|
+
var PriorityHighIcon = function PriorityHighIcon(_ref) {
|
|
13
|
+
var label = _ref.label,
|
|
14
|
+
testId = _ref.testId,
|
|
15
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
16
|
+
return /*#__PURE__*/React.createElement("span", _extends({
|
|
17
|
+
role: label ? 'img' : undefined,
|
|
18
|
+
"aria-label": label,
|
|
19
|
+
"aria-hidden": label ? undefined : true,
|
|
20
|
+
"data-testid": testId
|
|
21
|
+
}, props, {
|
|
22
|
+
className: ax([style.span])
|
|
23
|
+
}), /*#__PURE__*/React.createElement("svg", {
|
|
24
|
+
width: "24",
|
|
25
|
+
height: "24",
|
|
26
|
+
viewBox: "0 0 24 24",
|
|
27
|
+
role: "presentation",
|
|
28
|
+
className: ax([style.svg])
|
|
29
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
30
|
+
d: "M12.017 11.182l-6.454 3.865a1 1 0 11-1.027-1.716l6.97-4.174a1 1 0 011.03.003l6.906 4.173a1 1 0 01-1.035 1.712l-6.39-3.863z",
|
|
31
|
+
fill: "#FF5630"
|
|
32
|
+
})));
|
|
33
|
+
};
|
|
34
|
+
PriorityHighIcon.displayName = 'PriorityHighIcon';
|
|
35
|
+
export default PriorityHighIcon;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/* priority-highest-icon.tsx generated by @compiled/babel-plugin v0.38.1 */
|
|
2
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
3
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
|
+
var _excluded = ["label", "testId"];
|
|
5
|
+
import "./priority-highest-icon.compiled.css";
|
|
6
|
+
import * as React from 'react';
|
|
7
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
8
|
+
var style = {
|
|
9
|
+
span: "_1e0c1o8l _1o9zidpf",
|
|
10
|
+
svg: "_s7n4yfq0 _p12f1osq _c71l1osq"
|
|
11
|
+
};
|
|
12
|
+
var PriorityHighestIcon = function PriorityHighestIcon(_ref) {
|
|
13
|
+
var label = _ref.label,
|
|
14
|
+
testId = _ref.testId,
|
|
15
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
16
|
+
return /*#__PURE__*/React.createElement("span", _extends({
|
|
17
|
+
role: label ? 'img' : undefined,
|
|
18
|
+
"aria-label": label,
|
|
19
|
+
"aria-hidden": label ? undefined : true,
|
|
20
|
+
"data-testid": testId
|
|
21
|
+
}, props, {
|
|
22
|
+
className: ax([style.span])
|
|
23
|
+
}), /*#__PURE__*/React.createElement("svg", {
|
|
24
|
+
width: "24",
|
|
25
|
+
height: "24",
|
|
26
|
+
viewBox: "0 0 24 24",
|
|
27
|
+
role: "presentation",
|
|
28
|
+
className: ax([style.svg])
|
|
29
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
30
|
+
d: "M12.005 8.187l-6.453 3.865a1 1 0 01-1.028-1.716l6.97-4.174a1 1 0 011.031.002l6.906 4.174a1 1 0 11-1.035 1.712l-6.39-3.863z",
|
|
31
|
+
fill: "#FF5630"
|
|
32
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
33
|
+
d: "M5.552 18.054a1 1 0 11-1.028-1.715l6.97-4.174a1 1 0 011.031.002l6.906 4.174a1 1 0 11-1.035 1.711l-6.39-3.862-6.454 3.864z",
|
|
34
|
+
fill: "#FF7452"
|
|
35
|
+
})));
|
|
36
|
+
};
|
|
37
|
+
PriorityHighestIcon.displayName = 'PriorityHighestIcon';
|
|
38
|
+
export default PriorityHighestIcon;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/* priority-low-icon.tsx generated by @compiled/babel-plugin v0.38.1 */
|
|
2
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
3
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
|
+
var _excluded = ["label", "testId"];
|
|
5
|
+
import "./priority-low-icon.compiled.css";
|
|
6
|
+
import * as React from 'react';
|
|
7
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
8
|
+
var style = {
|
|
9
|
+
span: "_1e0c1o8l _1o9zidpf",
|
|
10
|
+
svg: "_s7n4yfq0 _p12f1osq _c71l1osq"
|
|
11
|
+
};
|
|
12
|
+
var PriorityLowIcon = function PriorityLowIcon(_ref) {
|
|
13
|
+
var label = _ref.label,
|
|
14
|
+
testId = _ref.testId,
|
|
15
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
16
|
+
return /*#__PURE__*/React.createElement("span", _extends({
|
|
17
|
+
role: label ? 'img' : undefined,
|
|
18
|
+
"aria-label": label,
|
|
19
|
+
"aria-hidden": label ? undefined : true,
|
|
20
|
+
"data-testid": testId
|
|
21
|
+
}, props, {
|
|
22
|
+
className: ax([style.span])
|
|
23
|
+
}), /*#__PURE__*/React.createElement("svg", {
|
|
24
|
+
width: "24",
|
|
25
|
+
height: "24",
|
|
26
|
+
viewBox: "0 0 24 24",
|
|
27
|
+
role: "presentation",
|
|
28
|
+
className: ax([style.svg])
|
|
29
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
30
|
+
d: "M11.996 13.861l6.454-3.865a1 1 0 111.027 1.716l-6.97 4.174a1 1 0 01-1.03-.002L4.57 11.71A1 1 0 015.606 10l6.39 3.862z",
|
|
31
|
+
fill: "#0065FF"
|
|
32
|
+
})));
|
|
33
|
+
};
|
|
34
|
+
PriorityLowIcon.displayName = 'PriorityLowIcon';
|
|
35
|
+
export default PriorityLowIcon;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/* priority-lowest-icon.tsx generated by @compiled/babel-plugin v0.38.1 */
|
|
2
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
3
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
|
+
var _excluded = ["label", "testId"];
|
|
5
|
+
import "./priority-lowest-icon.compiled.css";
|
|
6
|
+
import * as React from 'react';
|
|
7
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
8
|
+
var style = {
|
|
9
|
+
span: "_1e0c1o8l _1o9zidpf",
|
|
10
|
+
svg: "_s7n4yfq0 _p12f1osq _c71l1osq"
|
|
11
|
+
};
|
|
12
|
+
var PriorityLowestIcon = function PriorityLowestIcon(_ref) {
|
|
13
|
+
var label = _ref.label,
|
|
14
|
+
testId = _ref.testId,
|
|
15
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
16
|
+
return /*#__PURE__*/React.createElement("span", _extends({
|
|
17
|
+
role: label ? 'img' : undefined,
|
|
18
|
+
"aria-label": label,
|
|
19
|
+
"aria-hidden": label ? undefined : true,
|
|
20
|
+
"data-testid": testId
|
|
21
|
+
}, props, {
|
|
22
|
+
className: ax([style.span])
|
|
23
|
+
}), /*#__PURE__*/React.createElement("svg", {
|
|
24
|
+
width: "24",
|
|
25
|
+
height: "24",
|
|
26
|
+
viewBox: "0 0 24 24",
|
|
27
|
+
role: "presentation",
|
|
28
|
+
className: ax([style.svg])
|
|
29
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
30
|
+
d: "M18.46 11.936a1 1 0 111.028 1.716l-6.97 4.174a1 1 0 01-1.03-.002L4.581 13.65a1 1 0 011.034-1.711l6.391 3.862 6.454-3.865z",
|
|
31
|
+
fill: "#0065FF"
|
|
32
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
33
|
+
d: "M12.007 9.798l6.454-3.864a1 1 0 011.027 1.716l-6.97 4.173a1 1 0 01-1.03-.002L4.581 7.648a1 1 0 011.034-1.712l6.391 3.862z",
|
|
34
|
+
fill: "#2684FF"
|
|
35
|
+
})));
|
|
36
|
+
};
|
|
37
|
+
PriorityLowestIcon.displayName = 'PriorityLowestIcon';
|
|
38
|
+
export default PriorityLowestIcon;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/* priority-major-icon.tsx generated by @compiled/babel-plugin v0.38.1 */
|
|
2
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
3
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
|
+
var _excluded = ["label", "testId"];
|
|
5
|
+
import "./priority-major-icon.compiled.css";
|
|
6
|
+
import * as React from 'react';
|
|
7
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
8
|
+
var style = {
|
|
9
|
+
span: "_1e0c1o8l _1o9zidpf",
|
|
10
|
+
svg: "_s7n4yfq0 _p12f1osq _c71l1osq"
|
|
11
|
+
};
|
|
12
|
+
var PriorityMajorIcon = function PriorityMajorIcon(_ref) {
|
|
13
|
+
var label = _ref.label,
|
|
14
|
+
testId = _ref.testId,
|
|
15
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
16
|
+
return /*#__PURE__*/React.createElement("span", _extends({
|
|
17
|
+
role: label ? 'img' : undefined,
|
|
18
|
+
"aria-label": label,
|
|
19
|
+
"aria-hidden": label ? undefined : true,
|
|
20
|
+
"data-testid": testId
|
|
21
|
+
}, props, {
|
|
22
|
+
className: ax([style.span])
|
|
23
|
+
}), /*#__PURE__*/React.createElement("svg", {
|
|
24
|
+
width: "24",
|
|
25
|
+
height: "24",
|
|
26
|
+
viewBox: "0 0 24 24",
|
|
27
|
+
role: "presentation",
|
|
28
|
+
className: ax([style.svg])
|
|
29
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
30
|
+
d: "M12.02 5.187L5.567 9.05A1 1 0 114.54 7.335l6.97-4.173a1 1 0 011.03.002l6.906 4.173A1 1 0 1118.41 9.05l-6.39-3.862z",
|
|
31
|
+
fill: "#FF5630"
|
|
32
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
33
|
+
d: "M5.567 15.054a1 1 0 11-1.027-1.716l6.97-4.174a1 1 0 011.03.002l6.906 4.174a1 1 0 11-1.035 1.712l-6.39-3.863-6.454 3.865z",
|
|
34
|
+
fill: "#FF7452"
|
|
35
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
36
|
+
d: "M5.567 21.068a1 1 0 11-1.027-1.716l6.97-4.174a1 1 0 011.03.002l6.906 4.174a1 1 0 11-1.035 1.712l-6.39-3.863-6.454 3.865z",
|
|
37
|
+
fill: "#FF8F73"
|
|
38
|
+
})));
|
|
39
|
+
};
|
|
40
|
+
PriorityMajorIcon.displayName = 'PriorityMajorIcon';
|
|
41
|
+
export default PriorityMajorIcon;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/* priority-medium-icon.tsx generated by @compiled/babel-plugin v0.38.1 */
|
|
2
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
3
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
|
+
var _excluded = ["label", "testId"];
|
|
5
|
+
import "./priority-medium-icon.compiled.css";
|
|
6
|
+
import * as React from 'react';
|
|
7
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
8
|
+
var style = {
|
|
9
|
+
span: "_1e0c1o8l _1o9zidpf",
|
|
10
|
+
svg: "_s7n4yfq0 _p12f1osq _c71l1osq"
|
|
11
|
+
};
|
|
12
|
+
var PriorityMediumIcon = function PriorityMediumIcon(_ref) {
|
|
13
|
+
var label = _ref.label,
|
|
14
|
+
testId = _ref.testId,
|
|
15
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
16
|
+
return /*#__PURE__*/React.createElement("span", _extends({
|
|
17
|
+
role: label ? 'img' : undefined,
|
|
18
|
+
"aria-label": label,
|
|
19
|
+
"aria-hidden": label ? undefined : true,
|
|
20
|
+
"data-testid": testId
|
|
21
|
+
}, props, {
|
|
22
|
+
className: ax([style.span])
|
|
23
|
+
}), /*#__PURE__*/React.createElement("svg", {
|
|
24
|
+
width: "24",
|
|
25
|
+
height: "24",
|
|
26
|
+
viewBox: "0 0 24 24",
|
|
27
|
+
role: "presentation",
|
|
28
|
+
className: ax([style.svg])
|
|
29
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
30
|
+
d: "M5 8h14a1 1 0 010 2H5a1 1 0 110-2zm0 6h14a1 1 0 010 2H5a1 1 0 010-2z",
|
|
31
|
+
fill: "#FFAB00"
|
|
32
|
+
})));
|
|
33
|
+
};
|
|
34
|
+
PriorityMediumIcon.displayName = 'PriorityMediumIcon';
|
|
35
|
+
export default PriorityMediumIcon;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/* priority-minor-icon.tsx generated by @compiled/babel-plugin v0.38.1 */
|
|
2
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
3
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
|
+
var _excluded = ["label", "testId"];
|
|
5
|
+
import "./priority-minor-icon.compiled.css";
|
|
6
|
+
import * as React from 'react';
|
|
7
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
8
|
+
var style = {
|
|
9
|
+
span: "_1e0c1o8l _1o9zidpf",
|
|
10
|
+
svg: "_s7n4yfq0 _p12f1osq _c71l1osq"
|
|
11
|
+
};
|
|
12
|
+
var PriorityMinorIcon = function PriorityMinorIcon(_ref) {
|
|
13
|
+
var label = _ref.label,
|
|
14
|
+
testId = _ref.testId,
|
|
15
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
16
|
+
return /*#__PURE__*/React.createElement("span", _extends({
|
|
17
|
+
role: label ? 'img' : undefined,
|
|
18
|
+
"aria-label": label,
|
|
19
|
+
"aria-hidden": label ? undefined : true,
|
|
20
|
+
"data-testid": testId
|
|
21
|
+
}, props, {
|
|
22
|
+
className: ax([style.span])
|
|
23
|
+
}), /*#__PURE__*/React.createElement("svg", {
|
|
24
|
+
width: "24",
|
|
25
|
+
height: "24",
|
|
26
|
+
viewBox: "0 0 24 24",
|
|
27
|
+
role: "presentation",
|
|
28
|
+
className: ax([style.svg])
|
|
29
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
30
|
+
d: "M18.449 14.975a1 1 0 011.027 1.716l-6.97 4.173a1 1 0 01-1.03-.002L4.57 16.69a1 1 0 011.034-1.712l6.391 3.862 6.454-3.864z",
|
|
31
|
+
fill: "#0065FF"
|
|
32
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
33
|
+
d: "M11.995 12.837l6.454-3.865a1 1 0 011.027 1.716l-6.97 4.174a1 1 0 01-1.03-.002L4.57 10.686a1 1 0 011.034-1.712l6.391 3.863z",
|
|
34
|
+
fill: "#2684FF"
|
|
35
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
36
|
+
d: "M11.995 6.823l6.454-3.865a1 1 0 111.027 1.716l-6.97 4.174a1 1 0 01-1.03-.002L4.57 4.672A1 1 0 015.604 2.96l6.391 3.863z",
|
|
37
|
+
fill: "#4C9AFF"
|
|
38
|
+
})));
|
|
39
|
+
};
|
|
40
|
+
PriorityMinorIcon.displayName = 'PriorityMinorIcon';
|
|
41
|
+
export default PriorityMinorIcon;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/* priority-trivial-icon.tsx generated by @compiled/babel-plugin v0.38.1 */
|
|
2
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
3
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
|
+
var _excluded = ["label", "testId"];
|
|
5
|
+
import "./priority-trivial-icon.compiled.css";
|
|
6
|
+
import * as React from 'react';
|
|
7
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
8
|
+
var style = {
|
|
9
|
+
span: "_1e0c1o8l _1o9zidpf",
|
|
10
|
+
svg: "_s7n4yfq0 _p12f1osq _c71l1osq"
|
|
11
|
+
};
|
|
12
|
+
var PriorityTrivialIcon = function PriorityTrivialIcon(_ref) {
|
|
13
|
+
var label = _ref.label,
|
|
14
|
+
testId = _ref.testId,
|
|
15
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
16
|
+
return /*#__PURE__*/React.createElement("span", _extends({
|
|
17
|
+
role: label ? 'img' : undefined,
|
|
18
|
+
"aria-label": label,
|
|
19
|
+
"aria-hidden": label ? undefined : true,
|
|
20
|
+
"data-testid": testId
|
|
21
|
+
}, props, {
|
|
22
|
+
className: ax([style.span])
|
|
23
|
+
}), /*#__PURE__*/React.createElement("svg", {
|
|
24
|
+
width: "24",
|
|
25
|
+
height: "24",
|
|
26
|
+
viewBox: "0 0 24 24",
|
|
27
|
+
role: "presentation",
|
|
28
|
+
className: ax([style.svg])
|
|
29
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
30
|
+
d: "M12 20a8 8 0 100-16 8 8 0 000 16zm0 2C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10z",
|
|
31
|
+
fill: "#7A8699"
|
|
32
|
+
})));
|
|
33
|
+
};
|
|
34
|
+
PriorityTrivialIcon.displayName = 'PriorityTrivialIcon';
|
|
35
|
+
export default PriorityTrivialIcon;
|
package/dist/esm/constants.js
CHANGED
|
@@ -163,6 +163,7 @@ export var ActionName = /*#__PURE__*/function (ActionName) {
|
|
|
163
163
|
}({});
|
|
164
164
|
export var InternalActionName = /*#__PURE__*/function (InternalActionName) {
|
|
165
165
|
InternalActionName["AISummaryAction"] = "AISummaryAction";
|
|
166
|
+
InternalActionName["RovoChatAction"] = "RovoChatAction";
|
|
166
167
|
InternalActionName["UnresolvedAction"] = "UnresolvedAction";
|
|
167
168
|
InternalActionName["ViewRelatedLinksAction"] = "ViewRelatedLinksAction";
|
|
168
169
|
return InternalActionName;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { getExtensionKey } from '../../../state/helpers';
|
|
2
|
+
import { getIsRovoChatEnabled } from '../../../utils/rovo';
|
|
3
|
+
var extractRovoChatAction = function extractRovoChatAction(response, rovoConfig, actionOptions) {
|
|
4
|
+
// Experiment cleanup note: platform_sl_3p_auth_rovo_action
|
|
5
|
+
// If action is available by default, we need to allow RovoChatAction to be configurable to opt-out
|
|
6
|
+
// if (!canShowAction(CardAction.RovoChatAction, actionOptions)) {
|
|
7
|
+
// return;
|
|
8
|
+
// }
|
|
9
|
+
|
|
10
|
+
var isRovoChatEnabled = getIsRovoChatEnabled(rovoConfig);
|
|
11
|
+
if (!isRovoChatEnabled) {
|
|
12
|
+
return;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
// Experiment cleanup note: platform_sl_3p_auth_rovo_action
|
|
16
|
+
// If feature isn't support all 3P, this value should come from meta.supportedFeature
|
|
17
|
+
var isSupportedFeature = getExtensionKey(response) === 'google-object-provider';
|
|
18
|
+
var isOptIn = (actionOptions === null || actionOptions === void 0 ? void 0 : actionOptions.rovoChatAction) === true;
|
|
19
|
+
return isSupportedFeature && isOptIn ? true : undefined;
|
|
20
|
+
};
|
|
21
|
+
export default extractRovoChatAction;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
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; }
|
|
4
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
2
5
|
import { ActionName, InternalActionName } from '../../../constants';
|
|
3
6
|
import { extractAISummaryAction } from './extract-ai-summary-action';
|
|
4
7
|
import { extractAutomationAction } from './extract-automation-action';
|
|
@@ -6,6 +9,7 @@ import { extractCopyLinkClientAction } from './extract-copy-link-action';
|
|
|
6
9
|
import { extractDownloadClientAction } from './extract-download-action';
|
|
7
10
|
import extractFollowAction from './extract-follow-action';
|
|
8
11
|
import { extractPreviewClientAction } from './extract-preview-action';
|
|
12
|
+
import extractRovoChatAction from './extract-rovo-chat-action';
|
|
9
13
|
import { extractViewRelatedLinksAction } from './extract-view-related-links-action';
|
|
10
14
|
export var extractFlexibleCardActions = function extractFlexibleCardActions(_ref) {
|
|
11
15
|
var actionOptions = _ref.actionOptions,
|
|
@@ -15,10 +19,11 @@ export var extractFlexibleCardActions = function extractFlexibleCardActions(_ref
|
|
|
15
19
|
id = _ref.id,
|
|
16
20
|
origin = _ref.origin,
|
|
17
21
|
response = _ref.response,
|
|
22
|
+
rovoConfig = _ref.rovoConfig,
|
|
18
23
|
url = _ref.url,
|
|
19
24
|
isPreviewPanelAvailable = _ref.isPreviewPanelAvailable,
|
|
20
25
|
openPreviewPanel = _ref.openPreviewPanel;
|
|
21
|
-
var action =
|
|
26
|
+
var action = _objectSpread(_objectSpread(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, ActionName.CopyLinkAction, extractCopyLinkClientAction({
|
|
22
27
|
actionOptions: actionOptions,
|
|
23
28
|
appearance: appearance,
|
|
24
29
|
id: id,
|
|
@@ -37,7 +42,7 @@ export var extractFlexibleCardActions = function extractFlexibleCardActions(_ref
|
|
|
37
42
|
response: response,
|
|
38
43
|
isPreviewPanelAvailable: isPreviewPanelAvailable,
|
|
39
44
|
openPreviewPanel: openPreviewPanel
|
|
40
|
-
})), ActionName.AutomationAction, extractAutomationAction(response)), InternalActionName.AISummaryAction, extractAISummaryAction(response, url, actionOptions, aiSummaryConfig)), InternalActionName.ViewRelatedLinksAction, extractViewRelatedLinksAction(response));
|
|
45
|
+
})), ActionName.AutomationAction, extractAutomationAction(response)), InternalActionName.AISummaryAction, extractAISummaryAction(response, url, actionOptions, aiSummaryConfig)), fg('platform_sl_3p_auth_rovo_action_kill_switch') ? _defineProperty({}, InternalActionName.RovoChatAction, extractRovoChatAction(response, rovoConfig, actionOptions)) : undefined), {}, _defineProperty({}, InternalActionName.ViewRelatedLinksAction, extractViewRelatedLinksAction(response)));
|
|
41
46
|
return Object.values(action).some(function (value) {
|
|
42
47
|
return Boolean(value);
|
|
43
48
|
}) ? action : undefined;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
-
var _excluded = ["appearance", "fireEvent", "id", "onClick", "origin", "resolve", "actionOptions", "response", "status", "aiSummaryConfig", "isPreviewPanelAvailable", "openPreviewPanel"];
|
|
3
|
+
var _excluded = ["appearance", "fireEvent", "id", "onClick", "origin", "resolve", "rovoConfig", "actionOptions", "response", "status", "aiSummaryConfig", "isPreviewPanelAvailable", "openPreviewPanel"];
|
|
4
4
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
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 { extractPersonOwnedBy, extractSmartLinkAri, extractSmartLinkAuthorGroup, extractSmartLinkCreatedBy, extractSmartLinkCreatedOn, extractSmartLinkModifiedBy, extractSmartLinkModifiedOn, extractSmartLinkUrl, extractType } from '@atlaskit/link-extractors';
|
|
7
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
8
|
import { isNewBlockcardUnauthorizedRefreshExperimentEnabled } from '../../utils/experiments';
|
|
8
9
|
import { extractSmartLinkSummary } from '../common/primitives/extractSummary';
|
|
9
10
|
import { extractFlexibleCardActions } from './actions';
|
|
@@ -24,6 +25,7 @@ var extractFlexibleUiContext = function extractFlexibleUiContext() {
|
|
|
24
25
|
onClick = _ref.onClick,
|
|
25
26
|
origin = _ref.origin,
|
|
26
27
|
resolve = _ref.resolve,
|
|
28
|
+
rovoConfig = _ref.rovoConfig,
|
|
27
29
|
actionOptions = _ref.actionOptions,
|
|
28
30
|
response = _ref.response,
|
|
29
31
|
status = _ref.status,
|
|
@@ -38,19 +40,22 @@ var extractFlexibleUiContext = function extractFlexibleUiContext() {
|
|
|
38
40
|
var meta = response.meta;
|
|
39
41
|
var url = extractSmartLinkUrl(response);
|
|
40
42
|
return _objectSpread({
|
|
41
|
-
actions: extractFlexibleCardActions({
|
|
43
|
+
actions: extractFlexibleCardActions(_objectSpread(_objectSpread({
|
|
42
44
|
actionOptions: actionOptions,
|
|
43
45
|
aiSummaryConfig: aiSummaryConfig,
|
|
44
46
|
appearance: appearance,
|
|
45
47
|
fireEvent: fireEvent,
|
|
46
48
|
id: id,
|
|
47
|
-
origin: origin
|
|
49
|
+
origin: origin
|
|
50
|
+
}, fg('platform_sl_3p_auth_rovo_action_kill_switch') ? {
|
|
51
|
+
rovoConfig: rovoConfig
|
|
52
|
+
} : undefined), {}, {
|
|
48
53
|
response: response,
|
|
49
54
|
url: props.url,
|
|
50
55
|
// Use the original URL in edge cases, such as short links for AI summary and copy link actions.
|
|
51
56
|
isPreviewPanelAvailable: isPreviewPanelAvailable,
|
|
52
57
|
openPreviewPanel: openPreviewPanel
|
|
53
|
-
}),
|
|
58
|
+
})),
|
|
54
59
|
appliedToComponentsCount: extractAppliedToComponentsCount(data),
|
|
55
60
|
assignedToGroup: extractPersonAssignedToAsArray(data),
|
|
56
61
|
attachmentCount: extractAttachmentCount(data),
|
|
@@ -3,13 +3,14 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
3
3
|
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; }
|
|
4
4
|
import { useCallback, useMemo } from 'react';
|
|
5
5
|
import { useRovoPostMessageToPubsub } from '@atlaskit/rovo-triggers/post-message-to-pubsub';
|
|
6
|
+
import { getIsRovoChatEnabled } from '../../../utils/rovo';
|
|
6
7
|
import useRovoConfig from '../use-rovo-config';
|
|
7
8
|
var SMART_LINK_TO_ROVO_SOURCE = 'smart-link';
|
|
8
9
|
var useRovoChat = function useRovoChat() {
|
|
9
10
|
var config = useRovoConfig();
|
|
10
11
|
var _useRovoPostMessageTo = useRovoPostMessageToPubsub(),
|
|
11
12
|
publishWithPostMessage = _useRovoPostMessageTo.publishWithPostMessage;
|
|
12
|
-
var isRovoChatEnabled = config
|
|
13
|
+
var isRovoChatEnabled = getIsRovoChatEnabled(config);
|
|
13
14
|
var sendPromptMessage = useCallback(function (data) {
|
|
14
15
|
var _window$parent;
|
|
15
16
|
publishWithPostMessage({
|
package/dist/esm/utils/index.js
CHANGED
|
@@ -357,43 +357,43 @@ export var getLazyIcons = function getLazyIcons() {
|
|
|
357
357
|
}
|
|
358
358
|
}), IconType.PriorityBlocker, {
|
|
359
359
|
default: function _default() {
|
|
360
|
-
return import( /* webpackChunkName: "@atlaskit-internal_glyphBlocker" */'@atlaskit/icon-priority/glyph/priority-blocker');
|
|
360
|
+
return fg('smart-card-migrate-icon-priority') ? import( /* webpackChunkName: "@atlaskit-internal_glyphBlocker" */'../common/ui/icons/priority-blocker-icon') : import( /* webpackChunkName: "@atlaskit-internal_glyphBlocker" */'@atlaskit/icon-priority/glyph/priority-blocker');
|
|
361
361
|
}
|
|
362
362
|
}), IconType.PriorityCritical, {
|
|
363
363
|
default: function _default() {
|
|
364
|
-
return import( /* webpackChunkName: "@atlaskit-internal_glyphCritical" */'@atlaskit/icon-priority/glyph/priority-critical');
|
|
364
|
+
return fg('smart-card-migrate-icon-priority') ? import( /* webpackChunkName: "@atlaskit-internal_glyphCritical" */'../common/ui/icons/priority-critical-icon') : import( /* webpackChunkName: "@atlaskit-internal_glyphCritical" */'@atlaskit/icon-priority/glyph/priority-critical');
|
|
365
365
|
}
|
|
366
366
|
}), IconType.PriorityHigh, {
|
|
367
367
|
default: function _default() {
|
|
368
|
-
return import( /* webpackChunkName: "@atlaskit-internal_glyphHigh" */'@atlaskit/icon-priority/glyph/priority-high');
|
|
368
|
+
return fg('smart-card-migrate-icon-priority') ? import( /* webpackChunkName: "@atlaskit-internal_glyphHigh" */'../common/ui/icons/priority-high-icon') : import( /* webpackChunkName: "@atlaskit-internal_glyphHigh" */'@atlaskit/icon-priority/glyph/priority-high');
|
|
369
369
|
}
|
|
370
370
|
}), IconType.PriorityHighest, {
|
|
371
371
|
default: function _default() {
|
|
372
|
-
return import( /* webpackChunkName: "@atlaskit-internal_glyphHighest" */'@atlaskit/icon-priority/glyph/priority-highest');
|
|
372
|
+
return fg('smart-card-migrate-icon-priority') ? import( /* webpackChunkName: "@atlaskit-internal_glyphHighest" */'../common/ui/icons/priority-highest-icon') : import( /* webpackChunkName: "@atlaskit-internal_glyphHighest" */'@atlaskit/icon-priority/glyph/priority-highest');
|
|
373
373
|
}
|
|
374
374
|
}), IconType.PriorityLow, {
|
|
375
375
|
default: function _default() {
|
|
376
|
-
return import( /* webpackChunkName: "@atlaskit-internal_glyphLow" */'@atlaskit/icon-priority/glyph/priority-low');
|
|
376
|
+
return fg('smart-card-migrate-icon-priority') ? import( /* webpackChunkName: "@atlaskit-internal_glyphLow" */'../common/ui/icons/priority-low-icon') : import( /* webpackChunkName: "@atlaskit-internal_glyphLow" */'@atlaskit/icon-priority/glyph/priority-low');
|
|
377
377
|
}
|
|
378
378
|
}), IconType.PriorityLowest, {
|
|
379
379
|
default: function _default() {
|
|
380
|
-
return import( /* webpackChunkName: "@atlaskit-internal_glyphLowest" */'@atlaskit/icon-priority/glyph/priority-lowest');
|
|
380
|
+
return fg('smart-card-migrate-icon-priority') ? import( /* webpackChunkName: "@atlaskit-internal_glyphLowest" */'../common/ui/icons/priority-lowest-icon') : import( /* webpackChunkName: "@atlaskit-internal_glyphLowest" */'@atlaskit/icon-priority/glyph/priority-lowest');
|
|
381
381
|
}
|
|
382
382
|
}), IconType.PriorityMajor, {
|
|
383
383
|
default: function _default() {
|
|
384
|
-
return import( /* webpackChunkName: "@atlaskit-internal_glyphMajor" */'@atlaskit/icon-priority/glyph/priority-major');
|
|
384
|
+
return fg('smart-card-migrate-icon-priority') ? import( /* webpackChunkName: "@atlaskit-internal_glyphMajor" */'../common/ui/icons/priority-major-icon') : import( /* webpackChunkName: "@atlaskit-internal_glyphMajor" */'@atlaskit/icon-priority/glyph/priority-major');
|
|
385
385
|
}
|
|
386
386
|
}), IconType.PriorityMedium, {
|
|
387
387
|
default: function _default() {
|
|
388
|
-
return import( /* webpackChunkName: "@atlaskit-internal_glyphMedium" */'@atlaskit/icon-priority/glyph/priority-medium');
|
|
388
|
+
return fg('smart-card-migrate-icon-priority') ? import( /* webpackChunkName: "@atlaskit-internal_glyphMedium" */'../common/ui/icons/priority-medium-icon') : import( /* webpackChunkName: "@atlaskit-internal_glyphMedium" */'@atlaskit/icon-priority/glyph/priority-medium');
|
|
389
389
|
}
|
|
390
390
|
}), IconType.PriorityMinor, {
|
|
391
391
|
default: function _default() {
|
|
392
|
-
return import( /* webpackChunkName: "@atlaskit-internal_glyphMinor" */'@atlaskit/icon-priority/glyph/priority-minor');
|
|
392
|
+
return fg('smart-card-migrate-icon-priority') ? import( /* webpackChunkName: "@atlaskit-internal_glyphMinor" */'../common/ui/icons/priority-minor-icon') : import( /* webpackChunkName: "@atlaskit-internal_glyphMinor" */'@atlaskit/icon-priority/glyph/priority-minor');
|
|
393
393
|
}
|
|
394
394
|
}), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref3, IconType.PriorityTrivial, {
|
|
395
395
|
default: function _default() {
|
|
396
|
-
return import( /* webpackChunkName: "@atlaskit-internal_glyphTrivial" */'@atlaskit/icon-priority/glyph/priority-trivial');
|
|
396
|
+
return fg('smart-card-migrate-icon-priority') ? import( /* webpackChunkName: "@atlaskit-internal_glyphTrivial" */'../common/ui/icons/priority-trivial-icon') : import( /* webpackChunkName: "@atlaskit-internal_glyphTrivial" */'@atlaskit/icon-priority/glyph/priority-trivial');
|
|
397
397
|
}
|
|
398
398
|
}), IconType.PriorityUndefined, {
|
|
399
399
|
default: function _default() {
|
|
@@ -16,4 +16,10 @@ export var CardAction = /*#__PURE__*/function (CardAction) {
|
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* Determines which actions are visible on the card.
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Internal configuration for actionOptions.
|
|
23
|
+
* This can be used for experiment before the prop become public API after experiment is successful.
|
|
24
|
+
* Warning: Internal prop can be changed/refactored anytime without notice.
|
|
19
25
|
*/
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1
5
|
import React, { useCallback, useEffect, useMemo } from 'react';
|
|
2
6
|
import { useAnalyticsEvents as useAnalyticsEventsNext } from '@atlaskit/analytics-next';
|
|
3
7
|
import { extractSmartLinkEmbed } from '@atlaskit/link-extractors';
|
|
@@ -650,9 +654,21 @@ function ComponentUpdated(_ref2) {
|
|
|
650
654
|
var CardWithUrlContentComponent = componentWithFG('rovo_chat_embed_card_dwell_and_hover_metrics', ComponentUpdated, Component);
|
|
651
655
|
export var CardWithUrlContent = function CardWithUrlContent(props) {
|
|
652
656
|
var display = isFlexibleUiCard(props.children, props === null || props === void 0 ? void 0 : props.ui) ? CardDisplay.Flexible : props.appearance;
|
|
657
|
+
var actionOptions = fg('platform_sl_3p_auth_rovo_action_kill_switch') ?
|
|
658
|
+
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
659
|
+
useMemo(function () {
|
|
660
|
+
return props.actionOptions ? _objectSpread({
|
|
661
|
+
rovoChatAction: true
|
|
662
|
+
}, props === null || props === void 0 ? void 0 : props.actionOptions) : {
|
|
663
|
+
hide: false,
|
|
664
|
+
rovoChatAction: true
|
|
665
|
+
};
|
|
666
|
+
}, [props.actionOptions]) : undefined;
|
|
653
667
|
return /*#__PURE__*/React.createElement(SmartLinkModalProvider, null, /*#__PURE__*/React.createElement(SmartLinkAnalyticsContext, {
|
|
654
668
|
url: props.url,
|
|
655
669
|
id: props.id,
|
|
656
670
|
display: display
|
|
657
|
-
}, /*#__PURE__*/React.createElement(CardWithUrlContentComponent, props)
|
|
671
|
+
}, /*#__PURE__*/React.createElement(CardWithUrlContentComponent, _extends({}, props, fg('platform_sl_3p_auth_rovo_action_kill_switch') ? {
|
|
672
|
+
actionOptions: actionOptions
|
|
673
|
+
} : undefined))));
|
|
658
674
|
};
|
|
@@ -8,5 +8,6 @@ export { default as CopyLinkAction } from './copy-link-action';
|
|
|
8
8
|
export { default as UnresolvedAction } from './unresolved-action';
|
|
9
9
|
export { default as AISummaryAction } from './ai-summary-action';
|
|
10
10
|
export { default as AutomationAction } from './automation-action';
|
|
11
|
+
export { default as RovoChatAction } from './rovo-chat-action';
|
|
11
12
|
export { default as ViewRelatedLinksAction } from './view-related-links-action';
|
|
12
13
|
export { default as CustomUnresolvedAction } from './custom-unresolved-action';
|