@atlaskit/smart-card 43.25.6 → 43.25.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/dist/cjs/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-priority-blocker--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-priority-critical--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-priority-highest--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-priority-lowest--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-priority-major--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-priority-medium--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-priority-minor--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-priority-trivial--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/hover-card/hover-card-rovo-chat-action--default.png +3 -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/analytics/analytics.js +1 -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/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-priority-blocker--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-priority-critical--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-priority-highest--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-priority-lowest--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-priority-major--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-priority-medium--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-priority-minor--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-priority-trivial--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/hover-card/hover-card-rovo-chat-action--default.png +3 -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/analytics/analytics.js +1 -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/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-priority-blocker--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-priority-critical--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-priority-highest--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-priority-lowest--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-priority-major--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-priority-medium--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-priority-minor--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-priority-trivial--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/hover-card/hover-card-rovo-chat-action--default.png +3 -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/analytics/analytics.js +1 -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/esm/view/LinkUrl/index.js +1 -1
- 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 +8 -5
|
@@ -12,7 +12,7 @@ import LinkWarningModal from './LinkWarningModal';
|
|
|
12
12
|
import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
|
|
13
13
|
const PACKAGE_DATA = {
|
|
14
14
|
packageName: "@atlaskit/smart-card",
|
|
15
|
-
packageVersion: "43.25.
|
|
15
|
+
packageVersion: "43.25.7",
|
|
16
16
|
componentName: 'linkUrl'
|
|
17
17
|
};
|
|
18
18
|
const Anchor = withLinkClickedEvent('a');
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:d7f62a7a15b917ba7160429e5b90b36cba44ac0db64924b8d60e5db5774014a3
|
|
3
|
+
size 776
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:878d5fda5dc549b36bff523929b586218d98bfb484a37ffe52483b08df6b5f29
|
|
3
|
+
size 638
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:e1b64bcb54bd1238fb0758384ad24cb4adabf59c868468b5f8d308d3498d7d75
|
|
3
|
+
size 833
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:359e946bc74f48c8dda578d2702b2da0330a55830ccc3e67ffac227dbb4e478e
|
|
3
|
+
size 834
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:1ab74d3223550aed5febd01575576ab5b722530ee1307d94f1e12f99080c27f5
|
|
3
|
+
size 1031
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:6674f922c1e484df0ea2b0d4ceabfb5bec5ba1e5019746d342ef3e2d00e036e8
|
|
3
|
+
size 396
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:8bc1a13b57a0546b0a029b40f44eda530892f78a7085978f07e6a6f3daee70d0
|
|
3
|
+
size 1043
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:8dc2debbbad5b58e45f33ab05565f91eab9635f9a06c20927f6af694fb555691
|
|
3
|
+
size 1056
|
|
@@ -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;
|
|
@@ -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),
|