@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-lowest-icon.tsx generated by @compiled/babel-plugin v0.38.1 */
|
|
2
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
3
|
+
import "./priority-lowest-icon.compiled.css";
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
6
|
+
const style = {
|
|
7
|
+
span: "_1e0c1o8l _1o9zidpf",
|
|
8
|
+
svg: "_s7n4yfq0 _p12f1osq _c71l1osq"
|
|
9
|
+
};
|
|
10
|
+
const PriorityLowestIcon = ({
|
|
11
|
+
label,
|
|
12
|
+
testId,
|
|
13
|
+
...props
|
|
14
|
+
}) => /*#__PURE__*/React.createElement("span", _extends({
|
|
15
|
+
role: label ? 'img' : undefined,
|
|
16
|
+
"aria-label": label,
|
|
17
|
+
"aria-hidden": label ? undefined : true,
|
|
18
|
+
"data-testid": testId
|
|
19
|
+
}, props, {
|
|
20
|
+
className: ax([style.span])
|
|
21
|
+
}), /*#__PURE__*/React.createElement("svg", {
|
|
22
|
+
width: "24",
|
|
23
|
+
height: "24",
|
|
24
|
+
viewBox: "0 0 24 24",
|
|
25
|
+
role: "presentation",
|
|
26
|
+
className: ax([style.svg])
|
|
27
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
28
|
+
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",
|
|
29
|
+
fill: "#0065FF"
|
|
30
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
31
|
+
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",
|
|
32
|
+
fill: "#2684FF"
|
|
33
|
+
})));
|
|
34
|
+
PriorityLowestIcon.displayName = 'PriorityLowestIcon';
|
|
35
|
+
export default PriorityLowestIcon;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/* priority-major-icon.tsx generated by @compiled/babel-plugin v0.38.1 */
|
|
2
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
3
|
+
import "./priority-major-icon.compiled.css";
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
6
|
+
const style = {
|
|
7
|
+
span: "_1e0c1o8l _1o9zidpf",
|
|
8
|
+
svg: "_s7n4yfq0 _p12f1osq _c71l1osq"
|
|
9
|
+
};
|
|
10
|
+
const PriorityMajorIcon = ({
|
|
11
|
+
label,
|
|
12
|
+
testId,
|
|
13
|
+
...props
|
|
14
|
+
}) => /*#__PURE__*/React.createElement("span", _extends({
|
|
15
|
+
role: label ? 'img' : undefined,
|
|
16
|
+
"aria-label": label,
|
|
17
|
+
"aria-hidden": label ? undefined : true,
|
|
18
|
+
"data-testid": testId
|
|
19
|
+
}, props, {
|
|
20
|
+
className: ax([style.span])
|
|
21
|
+
}), /*#__PURE__*/React.createElement("svg", {
|
|
22
|
+
width: "24",
|
|
23
|
+
height: "24",
|
|
24
|
+
viewBox: "0 0 24 24",
|
|
25
|
+
role: "presentation",
|
|
26
|
+
className: ax([style.svg])
|
|
27
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
28
|
+
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",
|
|
29
|
+
fill: "#FF5630"
|
|
30
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
31
|
+
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",
|
|
32
|
+
fill: "#FF7452"
|
|
33
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
34
|
+
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",
|
|
35
|
+
fill: "#FF8F73"
|
|
36
|
+
})));
|
|
37
|
+
PriorityMajorIcon.displayName = 'PriorityMajorIcon';
|
|
38
|
+
export default PriorityMajorIcon;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/* priority-medium-icon.tsx generated by @compiled/babel-plugin v0.38.1 */
|
|
2
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
3
|
+
import "./priority-medium-icon.compiled.css";
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
6
|
+
const style = {
|
|
7
|
+
span: "_1e0c1o8l _1o9zidpf",
|
|
8
|
+
svg: "_s7n4yfq0 _p12f1osq _c71l1osq"
|
|
9
|
+
};
|
|
10
|
+
const PriorityMediumIcon = ({
|
|
11
|
+
label,
|
|
12
|
+
testId,
|
|
13
|
+
...props
|
|
14
|
+
}) => /*#__PURE__*/React.createElement("span", _extends({
|
|
15
|
+
role: label ? 'img' : undefined,
|
|
16
|
+
"aria-label": label,
|
|
17
|
+
"aria-hidden": label ? undefined : true,
|
|
18
|
+
"data-testid": testId
|
|
19
|
+
}, props, {
|
|
20
|
+
className: ax([style.span])
|
|
21
|
+
}), /*#__PURE__*/React.createElement("svg", {
|
|
22
|
+
width: "24",
|
|
23
|
+
height: "24",
|
|
24
|
+
viewBox: "0 0 24 24",
|
|
25
|
+
role: "presentation",
|
|
26
|
+
className: ax([style.svg])
|
|
27
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
28
|
+
d: "M5 8h14a1 1 0 010 2H5a1 1 0 110-2zm0 6h14a1 1 0 010 2H5a1 1 0 010-2z",
|
|
29
|
+
fill: "#FFAB00"
|
|
30
|
+
})));
|
|
31
|
+
PriorityMediumIcon.displayName = 'PriorityMediumIcon';
|
|
32
|
+
export default PriorityMediumIcon;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/* priority-minor-icon.tsx generated by @compiled/babel-plugin v0.38.1 */
|
|
2
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
3
|
+
import "./priority-minor-icon.compiled.css";
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
6
|
+
const style = {
|
|
7
|
+
span: "_1e0c1o8l _1o9zidpf",
|
|
8
|
+
svg: "_s7n4yfq0 _p12f1osq _c71l1osq"
|
|
9
|
+
};
|
|
10
|
+
const PriorityMinorIcon = ({
|
|
11
|
+
label,
|
|
12
|
+
testId,
|
|
13
|
+
...props
|
|
14
|
+
}) => /*#__PURE__*/React.createElement("span", _extends({
|
|
15
|
+
role: label ? 'img' : undefined,
|
|
16
|
+
"aria-label": label,
|
|
17
|
+
"aria-hidden": label ? undefined : true,
|
|
18
|
+
"data-testid": testId
|
|
19
|
+
}, props, {
|
|
20
|
+
className: ax([style.span])
|
|
21
|
+
}), /*#__PURE__*/React.createElement("svg", {
|
|
22
|
+
width: "24",
|
|
23
|
+
height: "24",
|
|
24
|
+
viewBox: "0 0 24 24",
|
|
25
|
+
role: "presentation",
|
|
26
|
+
className: ax([style.svg])
|
|
27
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
28
|
+
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",
|
|
29
|
+
fill: "#0065FF"
|
|
30
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
31
|
+
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",
|
|
32
|
+
fill: "#2684FF"
|
|
33
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
34
|
+
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",
|
|
35
|
+
fill: "#4C9AFF"
|
|
36
|
+
})));
|
|
37
|
+
PriorityMinorIcon.displayName = 'PriorityMinorIcon';
|
|
38
|
+
export default PriorityMinorIcon;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/* priority-trivial-icon.tsx generated by @compiled/babel-plugin v0.38.1 */
|
|
2
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
3
|
+
import "./priority-trivial-icon.compiled.css";
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
6
|
+
const style = {
|
|
7
|
+
span: "_1e0c1o8l _1o9zidpf",
|
|
8
|
+
svg: "_s7n4yfq0 _p12f1osq _c71l1osq"
|
|
9
|
+
};
|
|
10
|
+
const PriorityTrivialIcon = ({
|
|
11
|
+
label,
|
|
12
|
+
testId,
|
|
13
|
+
...props
|
|
14
|
+
}) => /*#__PURE__*/React.createElement("span", _extends({
|
|
15
|
+
role: label ? 'img' : undefined,
|
|
16
|
+
"aria-label": label,
|
|
17
|
+
"aria-hidden": label ? undefined : true,
|
|
18
|
+
"data-testid": testId
|
|
19
|
+
}, props, {
|
|
20
|
+
className: ax([style.span])
|
|
21
|
+
}), /*#__PURE__*/React.createElement("svg", {
|
|
22
|
+
width: "24",
|
|
23
|
+
height: "24",
|
|
24
|
+
viewBox: "0 0 24 24",
|
|
25
|
+
role: "presentation",
|
|
26
|
+
className: ax([style.svg])
|
|
27
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
28
|
+
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",
|
|
29
|
+
fill: "#7A8699"
|
|
30
|
+
})));
|
|
31
|
+
PriorityTrivialIcon.displayName = 'PriorityTrivialIcon';
|
|
32
|
+
export default PriorityTrivialIcon;
|
package/dist/es2019/constants.js
CHANGED
|
@@ -163,6 +163,7 @@ export let ActionName = /*#__PURE__*/function (ActionName) {
|
|
|
163
163
|
}({});
|
|
164
164
|
export let 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
|
+
const 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
|
+
const 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
|
+
const isSupportedFeature = getExtensionKey(response) === 'google-object-provider';
|
|
18
|
+
const isOptIn = (actionOptions === null || actionOptions === void 0 ? void 0 : actionOptions.rovoChatAction) === true;
|
|
19
|
+
return isSupportedFeature && isOptIn ? true : undefined;
|
|
20
|
+
};
|
|
21
|
+
export default extractRovoChatAction;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
1
2
|
import { ActionName, InternalActionName } from '../../../constants';
|
|
2
3
|
import { extractAISummaryAction } from './extract-ai-summary-action';
|
|
3
4
|
import { extractAutomationAction } from './extract-automation-action';
|
|
@@ -5,6 +6,7 @@ import { extractCopyLinkClientAction } from './extract-copy-link-action';
|
|
|
5
6
|
import { extractDownloadClientAction } from './extract-download-action';
|
|
6
7
|
import extractFollowAction from './extract-follow-action';
|
|
7
8
|
import { extractPreviewClientAction } from './extract-preview-action';
|
|
9
|
+
import extractRovoChatAction from './extract-rovo-chat-action';
|
|
8
10
|
import { extractViewRelatedLinksAction } from './extract-view-related-links-action';
|
|
9
11
|
export const extractFlexibleCardActions = ({
|
|
10
12
|
actionOptions,
|
|
@@ -14,6 +16,7 @@ export const extractFlexibleCardActions = ({
|
|
|
14
16
|
id,
|
|
15
17
|
origin,
|
|
16
18
|
response,
|
|
19
|
+
rovoConfig,
|
|
17
20
|
url,
|
|
18
21
|
isPreviewPanelAvailable,
|
|
19
22
|
openPreviewPanel
|
|
@@ -44,6 +47,9 @@ export const extractFlexibleCardActions = ({
|
|
|
44
47
|
}),
|
|
45
48
|
[ActionName.AutomationAction]: extractAutomationAction(response),
|
|
46
49
|
[InternalActionName.AISummaryAction]: extractAISummaryAction(response, url, actionOptions, aiSummaryConfig),
|
|
50
|
+
...(fg('platform_sl_3p_auth_rovo_action_kill_switch') ? {
|
|
51
|
+
[InternalActionName.RovoChatAction]: extractRovoChatAction(response, rovoConfig, actionOptions)
|
|
52
|
+
} : undefined),
|
|
47
53
|
[InternalActionName.ViewRelatedLinksAction]: extractViewRelatedLinksAction(response)
|
|
48
54
|
};
|
|
49
55
|
return Object.values(action).some(value => Boolean(value)) ? action : undefined;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { extractPersonOwnedBy, extractSmartLinkAri, extractSmartLinkAuthorGroup, extractSmartLinkCreatedBy, extractSmartLinkCreatedOn, extractSmartLinkModifiedBy, extractSmartLinkModifiedOn, extractSmartLinkUrl, extractType } from '@atlaskit/link-extractors';
|
|
2
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
2
3
|
import { isNewBlockcardUnauthorizedRefreshExperimentEnabled } from '../../utils/experiments';
|
|
3
4
|
import { extractSmartLinkSummary } from '../common/primitives/extractSummary';
|
|
4
5
|
import { extractFlexibleCardActions } from './actions';
|
|
@@ -18,6 +19,7 @@ const extractFlexibleUiContext = ({
|
|
|
18
19
|
onClick,
|
|
19
20
|
origin,
|
|
20
21
|
resolve,
|
|
22
|
+
rovoConfig,
|
|
21
23
|
actionOptions,
|
|
22
24
|
response,
|
|
23
25
|
status,
|
|
@@ -40,6 +42,9 @@ const extractFlexibleUiContext = ({
|
|
|
40
42
|
fireEvent,
|
|
41
43
|
id,
|
|
42
44
|
origin,
|
|
45
|
+
...(fg('platform_sl_3p_auth_rovo_action_kill_switch') ? {
|
|
46
|
+
rovoConfig
|
|
47
|
+
} : undefined),
|
|
43
48
|
response,
|
|
44
49
|
url: props.url,
|
|
45
50
|
// Use the original URL in edge cases, such as short links for AI summary and copy link actions.
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { useCallback, useMemo } from 'react';
|
|
2
2
|
import { useRovoPostMessageToPubsub } from '@atlaskit/rovo-triggers/post-message-to-pubsub';
|
|
3
|
+
import { getIsRovoChatEnabled } from '../../../utils/rovo';
|
|
3
4
|
import useRovoConfig from '../use-rovo-config';
|
|
4
5
|
const SMART_LINK_TO_ROVO_SOURCE = 'smart-link';
|
|
5
6
|
const useRovoChat = () => {
|
|
@@ -7,7 +8,7 @@ const useRovoChat = () => {
|
|
|
7
8
|
const {
|
|
8
9
|
publishWithPostMessage
|
|
9
10
|
} = useRovoPostMessageToPubsub();
|
|
10
|
-
const isRovoChatEnabled = config
|
|
11
|
+
const isRovoChatEnabled = getIsRovoChatEnabled(config);
|
|
11
12
|
const sendPromptMessage = useCallback(data => {
|
|
12
13
|
var _window$parent;
|
|
13
14
|
publishWithPostMessage({
|
|
@@ -239,34 +239,34 @@ export const getLazyIcons = () => {
|
|
|
239
239
|
default: () => import( /* webpackChunkName: "@atlaskit-internal_glyphComment" */'@atlaskit/icon/core/arrow-up')
|
|
240
240
|
},
|
|
241
241
|
[IconType.PriorityBlocker]: {
|
|
242
|
-
default: () => import( /* webpackChunkName: "@atlaskit-internal_glyphBlocker" */'@atlaskit/icon-priority/glyph/priority-blocker')
|
|
242
|
+
default: () => 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')
|
|
243
243
|
},
|
|
244
244
|
[IconType.PriorityCritical]: {
|
|
245
|
-
default: () => import( /* webpackChunkName: "@atlaskit-internal_glyphCritical" */'@atlaskit/icon-priority/glyph/priority-critical')
|
|
245
|
+
default: () => 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')
|
|
246
246
|
},
|
|
247
247
|
[IconType.PriorityHigh]: {
|
|
248
|
-
default: () => import( /* webpackChunkName: "@atlaskit-internal_glyphHigh" */'@atlaskit/icon-priority/glyph/priority-high')
|
|
248
|
+
default: () => 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')
|
|
249
249
|
},
|
|
250
250
|
[IconType.PriorityHighest]: {
|
|
251
|
-
default: () => import( /* webpackChunkName: "@atlaskit-internal_glyphHighest" */'@atlaskit/icon-priority/glyph/priority-highest')
|
|
251
|
+
default: () => 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')
|
|
252
252
|
},
|
|
253
253
|
[IconType.PriorityLow]: {
|
|
254
|
-
default: () => import( /* webpackChunkName: "@atlaskit-internal_glyphLow" */'@atlaskit/icon-priority/glyph/priority-low')
|
|
254
|
+
default: () => 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')
|
|
255
255
|
},
|
|
256
256
|
[IconType.PriorityLowest]: {
|
|
257
|
-
default: () => import( /* webpackChunkName: "@atlaskit-internal_glyphLowest" */'@atlaskit/icon-priority/glyph/priority-lowest')
|
|
257
|
+
default: () => 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')
|
|
258
258
|
},
|
|
259
259
|
[IconType.PriorityMajor]: {
|
|
260
|
-
default: () => import( /* webpackChunkName: "@atlaskit-internal_glyphMajor" */'@atlaskit/icon-priority/glyph/priority-major')
|
|
260
|
+
default: () => 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')
|
|
261
261
|
},
|
|
262
262
|
[IconType.PriorityMedium]: {
|
|
263
|
-
default: () => import( /* webpackChunkName: "@atlaskit-internal_glyphMedium" */'@atlaskit/icon-priority/glyph/priority-medium')
|
|
263
|
+
default: () => 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')
|
|
264
264
|
},
|
|
265
265
|
[IconType.PriorityMinor]: {
|
|
266
|
-
default: () => import( /* webpackChunkName: "@atlaskit-internal_glyphMinor" */'@atlaskit/icon-priority/glyph/priority-minor')
|
|
266
|
+
default: () => 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')
|
|
267
267
|
},
|
|
268
268
|
[IconType.PriorityTrivial]: {
|
|
269
|
-
default: () => import( /* webpackChunkName: "@atlaskit-internal_glyphTrivial" */'@atlaskit/icon-priority/glyph/priority-trivial')
|
|
269
|
+
default: () => 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')
|
|
270
270
|
},
|
|
271
271
|
[IconType.PriorityUndefined]: {
|
|
272
272
|
default: () => import( /* webpackChunkName: "@atlaskit-internal_glyphUndefined" */'@atlaskit/icon/core/question-circle')
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const getIsRovoChatEnabled = rovoConfig => rovoConfig !== null && rovoConfig !== void 0 && rovoConfig.isRovoEnabled && rovoConfig !== null && rovoConfig !== void 0 && rovoConfig.isRovoLLMEnabled ? true : false;
|
|
@@ -16,4 +16,10 @@ export let 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,4 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
1
2
|
import React, { useCallback, useEffect, useMemo } from 'react';
|
|
2
3
|
import { useAnalyticsEvents as useAnalyticsEventsNext } from '@atlaskit/analytics-next';
|
|
3
4
|
import { extractSmartLinkEmbed } from '@atlaskit/link-extractors';
|
|
@@ -646,9 +647,22 @@ function ComponentUpdated({
|
|
|
646
647
|
const CardWithUrlContentComponent = componentWithFG('rovo_chat_embed_card_dwell_and_hover_metrics', ComponentUpdated, Component);
|
|
647
648
|
export const CardWithUrlContent = props => {
|
|
648
649
|
const display = isFlexibleUiCard(props.children, props === null || props === void 0 ? void 0 : props.ui) ? CardDisplay.Flexible : props.appearance;
|
|
650
|
+
const actionOptions = fg('platform_sl_3p_auth_rovo_action_kill_switch') ?
|
|
651
|
+
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
652
|
+
useMemo(() => {
|
|
653
|
+
return props.actionOptions ? {
|
|
654
|
+
rovoChatAction: true,
|
|
655
|
+
...(props === null || props === void 0 ? void 0 : props.actionOptions)
|
|
656
|
+
} : {
|
|
657
|
+
hide: false,
|
|
658
|
+
rovoChatAction: true
|
|
659
|
+
};
|
|
660
|
+
}, [props.actionOptions]) : undefined;
|
|
649
661
|
return /*#__PURE__*/React.createElement(SmartLinkModalProvider, null, /*#__PURE__*/React.createElement(SmartLinkAnalyticsContext, {
|
|
650
662
|
url: props.url,
|
|
651
663
|
id: props.id,
|
|
652
664
|
display: display
|
|
653
|
-
}, /*#__PURE__*/React.createElement(CardWithUrlContentComponent, props)
|
|
665
|
+
}, /*#__PURE__*/React.createElement(CardWithUrlContentComponent, _extends({}, props, fg('platform_sl_3p_auth_rovo_action_kill_switch') ? {
|
|
666
|
+
actionOptions
|
|
667
|
+
} : undefined))));
|
|
654
668
|
};
|
|
@@ -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';
|
|
@@ -5,7 +5,7 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
5
5
|
import { useCallback, useMemo, useState } from 'react';
|
|
6
6
|
import { di } from 'react-magnetic-di';
|
|
7
7
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
|
-
import { SmartLinkSize } from '../../../../../constants';
|
|
8
|
+
import { InternalActionName, SmartLinkSize } from '../../../../../constants';
|
|
9
9
|
import { useFlexibleUiContext, useFlexibleUiOptionContext } from '../../../../../state/flexible-ui-context';
|
|
10
10
|
import * as Actions from '../../actions';
|
|
11
11
|
import { ActionFooter } from './action-footer';
|
|
@@ -46,11 +46,12 @@ const ActionBlock = ({
|
|
|
46
46
|
size,
|
|
47
47
|
spaceInline,
|
|
48
48
|
className,
|
|
49
|
-
testId = 'smart-block-action'
|
|
50
|
-
hideAISummaryAction
|
|
49
|
+
testId = 'smart-block-action'
|
|
51
50
|
}) => {
|
|
51
|
+
var _context$actions;
|
|
52
52
|
const context = useFlexibleUiContext();
|
|
53
53
|
const ui = useFlexibleUiOptionContext();
|
|
54
|
+
const isRovoChatActionAvailable = fg('platform_sl_3p_auth_rovo_action_kill_switch') ? (context === null || context === void 0 ? void 0 : (_context$actions = context.actions) === null || _context$actions === void 0 ? void 0 : _context$actions[InternalActionName.RovoChatAction]) === true : undefined;
|
|
54
55
|
const [message, setMessage] = useState();
|
|
55
56
|
const [isLoading, setIsLoading] = useState(false);
|
|
56
57
|
const onLoadingChange = useCallback(isLoading => {
|
|
@@ -68,10 +69,7 @@ const ActionBlock = ({
|
|
|
68
69
|
if (!(context !== null && context !== void 0 && context.actions)) {
|
|
69
70
|
return;
|
|
70
71
|
}
|
|
71
|
-
|
|
72
|
-
if (hideAISummaryAction && fg('platform_sl_3p_auth_rovo_action_kill_switch')) {
|
|
73
|
-
arr = arr.filter(name => name !== 'AISummaryAction');
|
|
74
|
-
}
|
|
72
|
+
const arr = fg('platform_sl_3p_auth_rovo_action_kill_switch') ? isRovoChatActionAvailable ? [InternalActionName.RovoChatAction] : Object.keys(context.actions).filter(name => name !== InternalActionName.RovoChatAction) : Object.keys(context.actions);
|
|
75
73
|
arr.sort(sort);
|
|
76
74
|
return arr.map(name => {
|
|
77
75
|
const Action = name in Actions ? Actions[name] : undefined;
|
|
@@ -91,7 +89,7 @@ const ActionBlock = ({
|
|
|
91
89
|
hideTooltip: isLoading
|
|
92
90
|
}) : null;
|
|
93
91
|
});
|
|
94
|
-
}, [context === null || context === void 0 ? void 0 : context.actions, spaceInline, onError, onLoadingChange, size, ui === null || ui === void 0 ? void 0 : ui.size, padding, isLoading, onClick
|
|
92
|
+
}, [context === null || context === void 0 ? void 0 : context.actions, isRovoChatActionAvailable, spaceInline, onError, onLoadingChange, size, ui === null || ui === void 0 ? void 0 : ui.size, padding, isLoading, onClick]);
|
|
95
93
|
return actions ? /*#__PURE__*/React.createElement("div", {
|
|
96
94
|
ref: blockRef,
|
|
97
95
|
"data-testid": testId
|
|
@@ -9,6 +9,7 @@ import { extractPlaceHolderCardState } from '../../extractors/flexible/extract-p
|
|
|
9
9
|
import { FlexibleCardContext } from '../../state/flexible-ui-context';
|
|
10
10
|
import { useAISummaryConfig } from '../../state/hooks/use-ai-summary-config';
|
|
11
11
|
import useResolve from '../../state/hooks/use-resolve';
|
|
12
|
+
import useRovoConfig from '../../state/hooks/use-rovo-config';
|
|
12
13
|
import Container from './components/container';
|
|
13
14
|
import { getContextByStatus } from './utils';
|
|
14
15
|
const PENDING_LINK_STATUSES = [SmartLinkStatus.Pending, SmartLinkStatus.Resolving];
|
|
@@ -45,6 +46,9 @@ const FlexibleCard = ({
|
|
|
45
46
|
isPreviewPanelAvailable,
|
|
46
47
|
openPreviewPanel
|
|
47
48
|
} = useSmartLinkContext();
|
|
49
|
+
const rovoConfig = fg('platform_sl_3p_auth_rovo_action_kill_switch') ?
|
|
50
|
+
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
51
|
+
useRovoConfig() : undefined;
|
|
48
52
|
const {
|
|
49
53
|
fireEvent
|
|
50
54
|
} = useAnalyticsEvents();
|
|
@@ -69,12 +73,15 @@ const FlexibleCard = ({
|
|
|
69
73
|
origin,
|
|
70
74
|
renderers,
|
|
71
75
|
resolve,
|
|
76
|
+
...(fg('platform_sl_3p_auth_rovo_action_kill_switch') ? {
|
|
77
|
+
rovoConfig
|
|
78
|
+
} : undefined),
|
|
72
79
|
actionOptions,
|
|
73
80
|
status: placeholderCardState ? placeHolderStatus : status,
|
|
74
81
|
url,
|
|
75
82
|
isPreviewPanelAvailable,
|
|
76
83
|
openPreviewPanel
|
|
77
|
-
}), [aiSummaryConfig, appearance, actionOptions, details, id, isPreviewPanelAvailable, onAuthorize, onClick, openPreviewPanel, origin, placeholderCardState, placeHolderStatus, renderers, resolve, status, url, fireEvent]);
|
|
84
|
+
}), [aiSummaryConfig, appearance, actionOptions, details, id, isPreviewPanelAvailable, onAuthorize, onClick, openPreviewPanel, origin, placeholderCardState, placeHolderStatus, renderers, resolve, rovoConfig, status, url, fireEvent]);
|
|
78
85
|
const flexibleCardContext = useMemo(() => ({
|
|
79
86
|
data: context,
|
|
80
87
|
status: placeHolderStatus !== null && placeHolderStatus !== void 0 ? placeHolderStatus : status,
|
|
@@ -3,6 +3,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
3
3
|
import "./index.compiled.css";
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import React, { useCallback, useEffect, useMemo, useRef } from 'react';
|
|
6
|
+
import { di } from 'react-magnetic-di';
|
|
6
7
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
8
|
import { useAnalyticsEvents } from '../../../../../common/analytics/generated/use-analytics-events';
|
|
8
9
|
import { CardDisplay, SmartLinkPosition, SmartLinkSize } from '../../../../../constants';
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/* priority-blocker-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-blocker-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 PriorityBlockerIcon = function PriorityBlockerIcon(_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 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zM6 11a1 1 0 000 2h12a1 1 0 000-2H6z",
|
|
31
|
+
fill: "#FF5630"
|
|
32
|
+
})));
|
|
33
|
+
};
|
|
34
|
+
PriorityBlockerIcon.displayName = 'PriorityBlockerIcon';
|
|
35
|
+
export default PriorityBlockerIcon;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/* priority-critical-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-critical-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 PriorityCriticalIcon = function PriorityCriticalIcon(_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: "M4.671 7.165l6.643-3.946a1.372 1.372 0 011.403.002l6.614 3.944c.415.247.669.695.669 1.178v11.253a1.372 1.372 0 01-2.074 1.179l-5.91-3.52-5.944 3.526A1.372 1.372 0 014 19.6V8.345c0-.484.255-.933.671-1.18z",
|
|
31
|
+
fill: "#FF5630"
|
|
32
|
+
})));
|
|
33
|
+
};
|
|
34
|
+
PriorityCriticalIcon.displayName = 'PriorityCriticalIcon';
|
|
35
|
+
export default PriorityCriticalIcon;
|