@atlaskit/smart-card 44.3.9 → 44.3.11
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 +15 -0
- package/analytics.spec.yaml +12 -0
- package/dist/cjs/__tests__/vr-tests/__snapshots__/block-card/block-card-error-view---linking-refresh-only--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/block-card/block-card-error-view-with-design-refresh-ff--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/block-card/block-card-resolved-icon-variations-resolvedclient-icontesturls-/342/200/224-flexible-extractsmartlinkicon-path---default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/block-card/block-card-with-lazy-load-icons-slice-1--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/block-card/block-card-with-lazy-load-icons-slice-5--default--navx-1895-new-logo-design-false.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/block-card/block-card-with-lazy-load-icons-slice-5--default--navx-1895-new-logo-design-true.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/block-card/block-card-with-lazy-load-icons-slice-6--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/flexible-card/flexible-ui-block-title--default--navx-1895-new-logo-design-false.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/flexible-card/flexible-ui-block-title--default--navx-1895-new-logo-design-true.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/flexible-card/flexible-ui-block-title--more-actions-hovered--default--navx-1895-new-logo-design-false.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/flexible-card/flexible-ui-block-title--more-actions-hovered--default--navx-1895-new-logo-design-true.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/flexible-card/flexible-ui-block-title--title-hovered--default--navx-1895-new-logo-design-false.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/flexible-card/flexible-ui-block-title--title-hovered--default--navx-1895-new-logo-design-true.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-attachment--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-check-item--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-comment--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-priority-high--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-priority-low--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-priority-undefined--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-programming-language--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-react--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-sub-tasks-progress--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-subscriber--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-view--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-vote--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/icon-element-variations/icon-element-all-variations-with-experiments--default--platform-sl-3p-preauth-better-hovercard-killswitch-false-platform-sl-3p-preauth-better-hovercard-false.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/icon-element-variations/icon-element-all-variations-with-experiments--default--platform-sl-3p-preauth-better-hovercard-killswitch-false-platform-sl-3p-preauth-better-hovercard-true.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/icon-element-variations/icon-element-all-variations-with-experiments--default--platform-sl-3p-preauth-better-hovercard-killswitch-true-platform-sl-3p-preauth-better-hovercard-false.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/icon-element-variations/icon-element-all-variations-with-experiments--default--platform-sl-3p-preauth-better-hovercard-killswitch-true-platform-sl-3p-preauth-better-hovercard-true.png +2 -2
- package/dist/cjs/common/ui/icons/blog-icon.js +3 -0
- package/dist/cjs/common/ui/icons/live-document-icon.js +3 -0
- package/dist/cjs/common/ui/icons/priority-blocker-icon.js +8 -3
- package/dist/cjs/common/ui/icons/priority-critical-icon.js +8 -3
- package/dist/cjs/common/ui/icons/priority-high-icon.js +8 -3
- package/dist/cjs/common/ui/icons/priority-highest-icon.js +11 -3
- package/dist/cjs/common/ui/icons/priority-icon.compiled.css +4 -0
- package/dist/cjs/common/ui/icons/priority-icon.js +49 -0
- package/dist/cjs/common/ui/icons/priority-low-icon.js +8 -3
- package/dist/cjs/common/ui/icons/priority-lowest-icon.js +11 -3
- package/dist/cjs/common/ui/icons/priority-major-icon.js +14 -3
- package/dist/cjs/common/ui/icons/priority-medium-icon.js +8 -3
- package/dist/cjs/common/ui/icons/priority-minor-icon.js +14 -3
- package/dist/cjs/common/ui/icons/priority-trivial-icon.js +8 -3
- package/dist/cjs/common/ui/icons/utils.js +13 -0
- package/dist/cjs/extractors/common/icon/extractIconFromDocument.js +10 -2
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/utils/index.js +124 -105
- package/dist/cjs/view/CardWithUrl/component.js +18 -6
- package/dist/cjs/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/test-utils.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/common/atlaskit-icon/index.js +66 -23
- package/dist/cjs/view/HoverCard/components/HoverCardContent.js +8 -3
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/__tests__/vr-tests/__snapshots__/block-card/block-card-error-view---linking-refresh-only--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/block-card/block-card-error-view-with-design-refresh-ff--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/block-card/block-card-resolved-icon-variations-resolvedclient-icontesturls-/342/200/224-flexible-extractsmartlinkicon-path---default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/block-card/block-card-with-lazy-load-icons-slice-1--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/block-card/block-card-with-lazy-load-icons-slice-5--default--navx-1895-new-logo-design-false.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/block-card/block-card-with-lazy-load-icons-slice-5--default--navx-1895-new-logo-design-true.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/block-card/block-card-with-lazy-load-icons-slice-6--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/flexible-card/flexible-ui-block-title--default--navx-1895-new-logo-design-false.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/flexible-card/flexible-ui-block-title--default--navx-1895-new-logo-design-true.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/flexible-card/flexible-ui-block-title--more-actions-hovered--default--navx-1895-new-logo-design-false.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/flexible-card/flexible-ui-block-title--more-actions-hovered--default--navx-1895-new-logo-design-true.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/flexible-card/flexible-ui-block-title--title-hovered--default--navx-1895-new-logo-design-false.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/flexible-card/flexible-ui-block-title--title-hovered--default--navx-1895-new-logo-design-true.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-attachment--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-check-item--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-comment--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-priority-high--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-priority-low--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-priority-undefined--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-programming-language--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-react--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-sub-tasks-progress--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-subscriber--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-view--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-vote--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/icon-element-variations/icon-element-all-variations-with-experiments--default--platform-sl-3p-preauth-better-hovercard-killswitch-false-platform-sl-3p-preauth-better-hovercard-false.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/icon-element-variations/icon-element-all-variations-with-experiments--default--platform-sl-3p-preauth-better-hovercard-killswitch-false-platform-sl-3p-preauth-better-hovercard-true.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/icon-element-variations/icon-element-all-variations-with-experiments--default--platform-sl-3p-preauth-better-hovercard-killswitch-true-platform-sl-3p-preauth-better-hovercard-false.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/icon-element-variations/icon-element-all-variations-with-experiments--default--platform-sl-3p-preauth-better-hovercard-killswitch-true-platform-sl-3p-preauth-better-hovercard-true.png +2 -2
- package/dist/es2019/common/ui/icons/blog-icon.js +3 -0
- package/dist/es2019/common/ui/icons/live-document-icon.js +3 -0
- package/dist/es2019/common/ui/icons/priority-blocker-icon.js +8 -3
- package/dist/es2019/common/ui/icons/priority-critical-icon.js +8 -3
- package/dist/es2019/common/ui/icons/priority-high-icon.js +8 -3
- package/dist/es2019/common/ui/icons/priority-highest-icon.js +11 -3
- package/dist/es2019/common/ui/icons/priority-icon.compiled.css +4 -0
- package/dist/es2019/common/ui/icons/priority-icon.js +35 -0
- package/dist/es2019/common/ui/icons/priority-low-icon.js +8 -3
- package/dist/es2019/common/ui/icons/priority-lowest-icon.js +11 -3
- package/dist/es2019/common/ui/icons/priority-major-icon.js +14 -3
- package/dist/es2019/common/ui/icons/priority-medium-icon.js +8 -3
- package/dist/es2019/common/ui/icons/priority-minor-icon.js +14 -3
- package/dist/es2019/common/ui/icons/priority-trivial-icon.js +8 -3
- package/dist/es2019/common/ui/icons/utils.js +13 -0
- package/dist/es2019/extractors/common/icon/extractIconFromDocument.js +12 -4
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/utils/index.js +57 -45
- package/dist/es2019/view/CardWithUrl/component.js +17 -4
- package/dist/es2019/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/test-utils.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/common/atlaskit-icon/index.js +63 -20
- package/dist/es2019/view/HoverCard/components/HoverCardContent.js +9 -3
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/__tests__/vr-tests/__snapshots__/block-card/block-card-error-view---linking-refresh-only--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/block-card/block-card-error-view-with-design-refresh-ff--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/block-card/block-card-resolved-icon-variations-resolvedclient-icontesturls-/342/200/224-flexible-extractsmartlinkicon-path---default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/block-card/block-card-with-lazy-load-icons-slice-1--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/block-card/block-card-with-lazy-load-icons-slice-5--default--navx-1895-new-logo-design-false.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/block-card/block-card-with-lazy-load-icons-slice-5--default--navx-1895-new-logo-design-true.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/block-card/block-card-with-lazy-load-icons-slice-6--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/flexible-card/flexible-ui-block-title--default--navx-1895-new-logo-design-false.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/flexible-card/flexible-ui-block-title--default--navx-1895-new-logo-design-true.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/flexible-card/flexible-ui-block-title--more-actions-hovered--default--navx-1895-new-logo-design-false.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/flexible-card/flexible-ui-block-title--more-actions-hovered--default--navx-1895-new-logo-design-true.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/flexible-card/flexible-ui-block-title--title-hovered--default--navx-1895-new-logo-design-false.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/flexible-card/flexible-ui-block-title--title-hovered--default--navx-1895-new-logo-design-true.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-attachment--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-check-item--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-comment--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-priority-high--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-priority-low--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-priority-undefined--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-programming-language--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-react--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-sub-tasks-progress--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-subscriber--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-view--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/flexible-card-icon/icon-type-vote--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/icon-element-variations/icon-element-all-variations-with-experiments--default--platform-sl-3p-preauth-better-hovercard-killswitch-false-platform-sl-3p-preauth-better-hovercard-false.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/icon-element-variations/icon-element-all-variations-with-experiments--default--platform-sl-3p-preauth-better-hovercard-killswitch-false-platform-sl-3p-preauth-better-hovercard-true.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/icon-element-variations/icon-element-all-variations-with-experiments--default--platform-sl-3p-preauth-better-hovercard-killswitch-true-platform-sl-3p-preauth-better-hovercard-false.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/icon-element-variations/icon-element-all-variations-with-experiments--default--platform-sl-3p-preauth-better-hovercard-killswitch-true-platform-sl-3p-preauth-better-hovercard-true.png +2 -2
- package/dist/esm/common/ui/icons/blog-icon.js +3 -0
- package/dist/esm/common/ui/icons/live-document-icon.js +3 -0
- package/dist/esm/common/ui/icons/priority-blocker-icon.js +8 -3
- package/dist/esm/common/ui/icons/priority-critical-icon.js +8 -3
- package/dist/esm/common/ui/icons/priority-high-icon.js +8 -3
- package/dist/esm/common/ui/icons/priority-highest-icon.js +11 -3
- package/dist/esm/common/ui/icons/priority-icon.compiled.css +4 -0
- package/dist/esm/common/ui/icons/priority-icon.js +40 -0
- package/dist/esm/common/ui/icons/priority-low-icon.js +8 -3
- package/dist/esm/common/ui/icons/priority-lowest-icon.js +11 -3
- package/dist/esm/common/ui/icons/priority-major-icon.js +14 -3
- package/dist/esm/common/ui/icons/priority-medium-icon.js +8 -3
- package/dist/esm/common/ui/icons/priority-minor-icon.js +14 -3
- package/dist/esm/common/ui/icons/priority-trivial-icon.js +8 -3
- package/dist/esm/common/ui/icons/utils.js +13 -0
- package/dist/esm/extractors/common/icon/extractIconFromDocument.js +12 -4
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/utils/index.js +90 -77
- package/dist/esm/view/CardWithUrl/component.js +18 -6
- package/dist/esm/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/test-utils.js +1 -1
- package/dist/esm/view/FlexibleCard/components/common/atlaskit-icon/index.js +63 -20
- package/dist/esm/view/HoverCard/components/HoverCardContent.js +8 -3
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/types/common/analytics/generated/analytics.types.d.ts +3 -0
- package/dist/types/common/ui/icons/priority-blocker-icon.d.ts +2 -5
- package/dist/types/common/ui/icons/priority-critical-icon.d.ts +2 -5
- package/dist/types/common/ui/icons/priority-high-icon.d.ts +2 -5
- package/dist/types/common/ui/icons/priority-highest-icon.d.ts +2 -5
- package/dist/types/common/ui/icons/priority-icon.d.ts +13 -0
- package/dist/types/common/ui/icons/priority-low-icon.d.ts +2 -5
- package/dist/types/common/ui/icons/priority-lowest-icon.d.ts +2 -5
- package/dist/types/common/ui/icons/priority-major-icon.d.ts +2 -5
- package/dist/types/common/ui/icons/priority-medium-icon.d.ts +2 -5
- package/dist/types/common/ui/icons/priority-minor-icon.d.ts +2 -5
- package/dist/types/common/ui/icons/priority-trivial-icon.d.ts +2 -5
- package/dist/types/common/ui/icons/utils.d.ts +3 -4
- package/dist/types/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/test-utils.d.ts +4 -1
- package/dist/types-ts4.5/common/analytics/generated/analytics.types.d.ts +3 -0
- package/dist/types-ts4.5/common/ui/icons/priority-blocker-icon.d.ts +2 -5
- package/dist/types-ts4.5/common/ui/icons/priority-critical-icon.d.ts +2 -5
- package/dist/types-ts4.5/common/ui/icons/priority-high-icon.d.ts +2 -5
- package/dist/types-ts4.5/common/ui/icons/priority-highest-icon.d.ts +2 -5
- package/dist/types-ts4.5/common/ui/icons/priority-icon.d.ts +13 -0
- package/dist/types-ts4.5/common/ui/icons/priority-low-icon.d.ts +2 -5
- package/dist/types-ts4.5/common/ui/icons/priority-lowest-icon.d.ts +2 -5
- package/dist/types-ts4.5/common/ui/icons/priority-major-icon.d.ts +2 -5
- package/dist/types-ts4.5/common/ui/icons/priority-medium-icon.d.ts +2 -5
- package/dist/types-ts4.5/common/ui/icons/priority-minor-icon.d.ts +2 -5
- package/dist/types-ts4.5/common/ui/icons/priority-trivial-icon.d.ts +2 -5
- package/dist/types-ts4.5/common/ui/icons/utils.d.ts +3 -4
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/test-utils.d.ts +4 -1
- package/package.json +10 -9
|
@@ -3,11 +3,13 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
3
3
|
import "./priority-major-icon.compiled.css";
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import { ax, ix } from "@compiled/react/runtime";
|
|
6
|
+
import { componentWithFG } from '@atlaskit/platform-feature-flags-react';
|
|
7
|
+
import { createPriorityIcon } from './priority-icon';
|
|
6
8
|
const style = {
|
|
7
9
|
span: "_1e0c1o8l _1o9zidpf",
|
|
8
10
|
svg: "_s7n4yfq0 _p12f1osq _c71l1osq"
|
|
9
11
|
};
|
|
10
|
-
const
|
|
12
|
+
const PriorityMajorIconLegacy = ({
|
|
11
13
|
label,
|
|
12
14
|
testId,
|
|
13
15
|
...props
|
|
@@ -34,5 +36,14 @@ const PriorityMajorIcon = ({
|
|
|
34
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",
|
|
35
37
|
fill: "#FF8F73"
|
|
36
38
|
})));
|
|
37
|
-
|
|
38
|
-
export default PriorityMajorIcon
|
|
39
|
+
PriorityMajorIconLegacy.displayName = 'PriorityMajorIcon';
|
|
40
|
+
export default componentWithFG('platform_sl_icons_refactor', createPriorityIcon('PriorityMajorIcon', [{
|
|
41
|
+
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',
|
|
42
|
+
fill: '#FF5630'
|
|
43
|
+
}, {
|
|
44
|
+
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',
|
|
45
|
+
fill: '#FF7452'
|
|
46
|
+
}, {
|
|
47
|
+
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',
|
|
48
|
+
fill: '#FF8F73'
|
|
49
|
+
}]), PriorityMajorIconLegacy);
|
|
@@ -3,11 +3,13 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
3
3
|
import "./priority-medium-icon.compiled.css";
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import { ax, ix } from "@compiled/react/runtime";
|
|
6
|
+
import { componentWithFG } from '@atlaskit/platform-feature-flags-react';
|
|
7
|
+
import { createPriorityIcon } from './priority-icon';
|
|
6
8
|
const style = {
|
|
7
9
|
span: "_1e0c1o8l _1o9zidpf",
|
|
8
10
|
svg: "_s7n4yfq0 _p12f1osq _c71l1osq"
|
|
9
11
|
};
|
|
10
|
-
const
|
|
12
|
+
const PriorityMediumIconLegacy = ({
|
|
11
13
|
label,
|
|
12
14
|
testId,
|
|
13
15
|
...props
|
|
@@ -28,5 +30,8 @@ const PriorityMediumIcon = ({
|
|
|
28
30
|
d: "M5 8h14a1 1 0 010 2H5a1 1 0 110-2zm0 6h14a1 1 0 010 2H5a1 1 0 010-2z",
|
|
29
31
|
fill: "#FFAB00"
|
|
30
32
|
})));
|
|
31
|
-
|
|
32
|
-
export default PriorityMediumIcon
|
|
33
|
+
PriorityMediumIconLegacy.displayName = 'PriorityMediumIcon';
|
|
34
|
+
export default componentWithFG('platform_sl_icons_refactor', createPriorityIcon('PriorityMediumIcon', [{
|
|
35
|
+
d: 'M5 8h14a1 1 0 010 2H5a1 1 0 110-2zm0 6h14a1 1 0 010 2H5a1 1 0 010-2z',
|
|
36
|
+
fill: '#FFAB00'
|
|
37
|
+
}]), PriorityMediumIconLegacy);
|
|
@@ -3,11 +3,13 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
3
3
|
import "./priority-minor-icon.compiled.css";
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import { ax, ix } from "@compiled/react/runtime";
|
|
6
|
+
import { componentWithFG } from '@atlaskit/platform-feature-flags-react';
|
|
7
|
+
import { createPriorityIcon } from './priority-icon';
|
|
6
8
|
const style = {
|
|
7
9
|
span: "_1e0c1o8l _1o9zidpf",
|
|
8
10
|
svg: "_s7n4yfq0 _p12f1osq _c71l1osq"
|
|
9
11
|
};
|
|
10
|
-
const
|
|
12
|
+
const PriorityMinorIconLegacy = ({
|
|
11
13
|
label,
|
|
12
14
|
testId,
|
|
13
15
|
...props
|
|
@@ -34,5 +36,14 @@ const PriorityMinorIcon = ({
|
|
|
34
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",
|
|
35
37
|
fill: "#4C9AFF"
|
|
36
38
|
})));
|
|
37
|
-
|
|
38
|
-
export default PriorityMinorIcon
|
|
39
|
+
PriorityMinorIconLegacy.displayName = 'PriorityMinorIcon';
|
|
40
|
+
export default componentWithFG('platform_sl_icons_refactor', createPriorityIcon('PriorityMinorIcon', [{
|
|
41
|
+
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',
|
|
42
|
+
fill: '#0065FF'
|
|
43
|
+
}, {
|
|
44
|
+
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',
|
|
45
|
+
fill: '#2684FF'
|
|
46
|
+
}, {
|
|
47
|
+
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',
|
|
48
|
+
fill: '#4C9AFF'
|
|
49
|
+
}]), PriorityMinorIconLegacy);
|
|
@@ -3,11 +3,13 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
3
3
|
import "./priority-trivial-icon.compiled.css";
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import { ax, ix } from "@compiled/react/runtime";
|
|
6
|
+
import { componentWithFG } from '@atlaskit/platform-feature-flags-react';
|
|
7
|
+
import { createPriorityIcon } from './priority-icon';
|
|
6
8
|
const style = {
|
|
7
9
|
span: "_1e0c1o8l _1o9zidpf",
|
|
8
10
|
svg: "_s7n4yfq0 _p12f1osq _c71l1osq"
|
|
9
11
|
};
|
|
10
|
-
const
|
|
12
|
+
const PriorityTrivialIconLegacy = ({
|
|
11
13
|
label,
|
|
12
14
|
testId,
|
|
13
15
|
...props
|
|
@@ -28,5 +30,8 @@ const PriorityTrivialIcon = ({
|
|
|
28
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",
|
|
29
31
|
fill: "#7A8699"
|
|
30
32
|
})));
|
|
31
|
-
|
|
32
|
-
export default PriorityTrivialIcon
|
|
33
|
+
PriorityTrivialIconLegacy.displayName = 'PriorityTrivialIcon';
|
|
34
|
+
export default componentWithFG('platform_sl_icons_refactor', createPriorityIcon('PriorityTrivialIcon', [{
|
|
35
|
+
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',
|
|
36
|
+
fill: '#7A8699'
|
|
37
|
+
}]), PriorityTrivialIconLegacy);
|
|
@@ -1,9 +1,22 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { IconTile } from '@atlaskit/icon';
|
|
4
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
5
|
import { SmartLinkSize } from '../../../constants';
|
|
5
6
|
import { isIconSizeLarge } from '../../../utils';
|
|
6
7
|
export const transformSmartLinkSizeToIconTileSize = size => {
|
|
8
|
+
if (fg('platform_sl_icons_refactor')) {
|
|
9
|
+
switch (size) {
|
|
10
|
+
case SmartLinkSize.Small:
|
|
11
|
+
case SmartLinkSize.Medium:
|
|
12
|
+
return '16';
|
|
13
|
+
case SmartLinkSize.XLarge:
|
|
14
|
+
case SmartLinkSize.Large:
|
|
15
|
+
return '24';
|
|
16
|
+
default:
|
|
17
|
+
return '16';
|
|
18
|
+
}
|
|
19
|
+
}
|
|
7
20
|
switch (size) {
|
|
8
21
|
case SmartLinkSize.XLarge:
|
|
9
22
|
case SmartLinkSize.Large:
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import BlogIconGlyph from '@atlaskit/icon-object/glyph/blog/16';
|
|
3
|
+
import LiveDocumentIconGlyph from '@atlaskit/icon-object/glyph/page-live-doc/16';
|
|
2
4
|
import DocumentFilledIcon from '@atlaskit/icon/core/file';
|
|
3
5
|
import { isConfluenceGenerator } from '@atlaskit/link-extractors';
|
|
4
6
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
5
|
-
import
|
|
7
|
+
import BlogIconWrapped from '../../../common/ui/icons/blog-icon';
|
|
6
8
|
import PresentationIcon from '../../../common/ui/icons/chart-bar-icon';
|
|
7
9
|
import FileIcon from '../../../common/ui/icons/file-icon';
|
|
8
10
|
import SpreadsheetIcon from '../../../common/ui/icons/list-bullet-icon';
|
|
9
|
-
import
|
|
11
|
+
import LiveDocumentIconWrapped from '../../../common/ui/icons/live-document-icon';
|
|
10
12
|
import DocumentIcon from '../../../common/ui/icons/page-icon';
|
|
11
13
|
import { getIconForFileType } from '../../../utils';
|
|
12
14
|
import { prioritiseIcon } from './prioritiseIcon';
|
|
@@ -43,7 +45,10 @@ const documentLabel = (opts, label) => {
|
|
|
43
45
|
const documentTypeToIcon = (type, opts) => {
|
|
44
46
|
switch (type) {
|
|
45
47
|
case 'schema:BlogPosting':
|
|
46
|
-
return /*#__PURE__*/React.createElement(
|
|
48
|
+
return fg('platform_sl_icons_refactor') ? /*#__PURE__*/React.createElement(BlogIconGlyph, {
|
|
49
|
+
label: documentLabel(opts, 'blog'),
|
|
50
|
+
testId: "blog-icon"
|
|
51
|
+
}) : /*#__PURE__*/React.createElement(BlogIconWrapped, {
|
|
47
52
|
label: documentLabel(opts, 'blog'),
|
|
48
53
|
testId: "blog-icon"
|
|
49
54
|
});
|
|
@@ -89,7 +94,10 @@ const documentTypeToIcon = (type, opts) => {
|
|
|
89
94
|
const digitalDocumentToIcon = opts => {
|
|
90
95
|
var _opts$provider;
|
|
91
96
|
if ((_opts$provider = opts.provider) !== null && _opts$provider !== void 0 && _opts$provider.id && isConfluenceGenerator(opts.provider.id)) {
|
|
92
|
-
return /*#__PURE__*/React.createElement(
|
|
97
|
+
return fg('platform_sl_icons_refactor') ? /*#__PURE__*/React.createElement(LiveDocumentIconGlyph, {
|
|
98
|
+
label: documentLabel(opts, 'live document'),
|
|
99
|
+
testId: "live-doc-icon"
|
|
100
|
+
}) : /*#__PURE__*/React.createElement(LiveDocumentIconWrapped, {
|
|
93
101
|
label: documentLabel(opts, 'live document'),
|
|
94
102
|
testId: "live-doc-icon"
|
|
95
103
|
});
|
|
@@ -2,7 +2,7 @@ export const ANALYTICS_CHANNEL = 'media';
|
|
|
2
2
|
export const context = {
|
|
3
3
|
componentName: 'smart-cards',
|
|
4
4
|
packageName: "@atlaskit/smart-card",
|
|
5
|
-
packageVersion: "44.3.
|
|
5
|
+
packageVersion: "44.3.10"
|
|
6
6
|
};
|
|
7
7
|
export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
8
8
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -55,12 +55,10 @@ export const getIconForFileType = (fileMimeType, showIconLabel) => {
|
|
|
55
55
|
// prettier-ignore
|
|
56
56
|
export const getLazyIcons = () => {
|
|
57
57
|
return {
|
|
58
|
+
// IconTile wrappers (@atlaskit/icon/core/* wrapped in <IconTile> with color)
|
|
58
59
|
[IconType.Document]: {
|
|
59
60
|
default: () => import( /* webpackChunkName: "@atlaskit-internal_page-icon" */'../common/ui/icons/page-icon')
|
|
60
61
|
},
|
|
61
|
-
[IconType.Blog]: {
|
|
62
|
-
default: () => import( /* webpackChunkName: "@atlaskit-internal_glyphBlock" */'../common/ui/icons/blog-icon')
|
|
63
|
-
},
|
|
64
62
|
[IconType.Audio]: {
|
|
65
63
|
default: () => import( /* webpackChunkName: "@atlaskit-internal_audio-icon" */'../common/ui/icons/audio-icon')
|
|
66
64
|
},
|
|
@@ -88,6 +86,7 @@ export const getLazyIcons = () => {
|
|
|
88
86
|
[IconType.Video]: {
|
|
89
87
|
default: () => import( /* webpackChunkName: "@atlaskit-internal_video-icon" */'../common/ui/icons/video-icon')
|
|
90
88
|
},
|
|
89
|
+
// @atlaskit/icon/core/* (plain monochrome icons)
|
|
91
90
|
[IconType.Project]: {
|
|
92
91
|
default: () => import( /* webpackChunkName: "@atlaskit-internal_glyphProject" */'@atlaskit/icon/core/people-group')
|
|
93
92
|
},
|
|
@@ -103,6 +102,41 @@ export const getLazyIcons = () => {
|
|
|
103
102
|
[IconType.Error]: {
|
|
104
103
|
default: () => import( /* webpackChunkName: "@atlaskit-internal_glyphDefault" */'@atlaskit/icon/core/status-error')
|
|
105
104
|
},
|
|
105
|
+
// @atlaskit/icon/core/* (badge icons)
|
|
106
|
+
[IconType.Attachment]: {
|
|
107
|
+
default: () => import( /* webpackChunkName: "@atlaskit-internal_glyphAttachment" */'@atlaskit/icon/core/attachment')
|
|
108
|
+
},
|
|
109
|
+
[IconType.CheckItem]: {
|
|
110
|
+
default: () => import( /* webpackChunkName: "@atlaskit-internal_glyphAttachment" */'@atlaskit/icon/core/task')
|
|
111
|
+
},
|
|
112
|
+
[IconType.Component]: {
|
|
113
|
+
default: () => import( /* webpackChunkName: "@atlaskit-internal_glyphComponent" */'@atlaskit/icon/core/component')
|
|
114
|
+
},
|
|
115
|
+
[IconType.Comment]: {
|
|
116
|
+
default: () => import( /* webpackChunkName: "@atlaskit-internal_glyphComment" */'@atlaskit/icon/core/comment')
|
|
117
|
+
},
|
|
118
|
+
[IconType.View]: {
|
|
119
|
+
default: () => import( /* webpackChunkName: "@atlaskit-internal_glyphComment" */'@atlaskit/icon/core/eye-open')
|
|
120
|
+
},
|
|
121
|
+
[IconType.React]: {
|
|
122
|
+
default: () => import( /* webpackChunkName: "@atlaskit-internal_glyphComment" */'@atlaskit/icon/core/thumbs-up')
|
|
123
|
+
},
|
|
124
|
+
[IconType.Vote]: {
|
|
125
|
+
default: () => import( /* webpackChunkName: "@atlaskit-internal_glyphComment" */'@atlaskit/icon/core/arrow-up')
|
|
126
|
+
},
|
|
127
|
+
[IconType.PriorityUndefined]: {
|
|
128
|
+
default: () => import( /* webpackChunkName: "@atlaskit-internal_glyphUndefined" */'@atlaskit/icon/core/question-circle')
|
|
129
|
+
},
|
|
130
|
+
[IconType.ProgrammingLanguage]: {
|
|
131
|
+
default: () => import( /* webpackChunkName: "@atlaskit-internal_glyphProgrammingLanguage" */'@atlaskit/icon/core/angle-brackets')
|
|
132
|
+
},
|
|
133
|
+
[IconType.Subscriber]: {
|
|
134
|
+
default: () => import( /* webpackChunkName: "@atlaskit-internal_glyphSubscriber" */'@atlaskit/icon/core/people-group')
|
|
135
|
+
},
|
|
136
|
+
[IconType.SubTasksProgress]: {
|
|
137
|
+
default: () => import( /* webpackChunkName: "@atlaskit-internal_glyphSubtaskProgress" */'@atlaskit/icon/core/subtasks')
|
|
138
|
+
},
|
|
139
|
+
// @atlaskit/icon-file-type/glyph/* (file type icons with 16/24 size variants)
|
|
106
140
|
[IconType.Archive]: {
|
|
107
141
|
default: () => import( /* webpackChunkName: "@atlaskit-internal_glyphArchive" */'@atlaskit/icon-file-type/glyph/archive/16'),
|
|
108
142
|
large: () => import( /* webpackChunkName: "@atlaskit-internal_glyphArchive" */'@atlaskit/icon-file-type/glyph/archive/24')
|
|
@@ -151,7 +185,24 @@ export const getLazyIcons = () => {
|
|
|
151
185
|
default: () => import( /* webpackChunkName: "@atlaskit-internal_glyphSketch" */'@atlaskit/icon-file-type/glyph/sketch/16'),
|
|
152
186
|
large: () => import( /* webpackChunkName: "@atlaskit-internal_glyphSketch" */'@atlaskit/icon-file-type/glyph/sketch/24')
|
|
153
187
|
},
|
|
154
|
-
//
|
|
188
|
+
// @atlaskit/icon-object/glyph/* (object icons with 16/24 size variants)
|
|
189
|
+
...(fg('platform_sl_icons_refactor') ? {
|
|
190
|
+
[IconType.Blog]: {
|
|
191
|
+
default: () => import( /* webpackChunkName: "@atlaskit-internal_glyphBlog" */'@atlaskit/icon-object/glyph/blog/16'),
|
|
192
|
+
large: () => import( /* webpackChunkName: "@atlaskit-internal_glyphBlog" */'@atlaskit/icon-object/glyph/blog/24')
|
|
193
|
+
},
|
|
194
|
+
[IconType.LiveDocument]: {
|
|
195
|
+
default: () => import( /* webpackChunkName: "@atlaskit-internal_glyphPageLiveDoc" */'@atlaskit/icon-object/glyph/page-live-doc/16'),
|
|
196
|
+
large: () => import( /* webpackChunkName: "@atlaskit-internal_glyphPageLiveDoc" */'@atlaskit/icon-object/glyph/page-live-doc/24')
|
|
197
|
+
}
|
|
198
|
+
} : {
|
|
199
|
+
[IconType.Blog]: {
|
|
200
|
+
default: () => import( /* webpackChunkName: "@atlaskit-internal_glyphBlock" */'../common/ui/icons/blog-icon')
|
|
201
|
+
},
|
|
202
|
+
[IconType.LiveDocument]: {
|
|
203
|
+
default: () => import( /* webpackChunkName: "@atlaskit-internal_glyphPageLiveDoc" */'../common/ui/icons/live-document-icon')
|
|
204
|
+
}
|
|
205
|
+
}),
|
|
155
206
|
[IconType.Branch]: {
|
|
156
207
|
default: () => import( /* webpackChunkName: "@atlaskit-internal_glyphBranch" */'@atlaskit/icon-object/glyph/branch/16'),
|
|
157
208
|
large: () => import( /* webpackChunkName: "@atlaskit-internal_glyphBranch" */'@atlaskit/icon-object/glyph/branch/24')
|
|
@@ -168,7 +219,6 @@ export const getLazyIcons = () => {
|
|
|
168
219
|
default: () => import( /* webpackChunkName: "@atlaskit-internal_glyphRepo" */'@atlaskit/icon-object/glyph/code/16'),
|
|
169
220
|
large: () => import( /* webpackChunkName: "@atlaskit-internal_glyphRepo" */'@atlaskit/icon-object/glyph/code/24')
|
|
170
221
|
},
|
|
171
|
-
// Jira icons
|
|
172
222
|
[IconType.Bug]: {
|
|
173
223
|
default: () => import( /* webpackChunkName: "@atlaskit-internal_glyphBug" */'@atlaskit/icon-object/glyph/bug/16'),
|
|
174
224
|
large: () => import( /* webpackChunkName: "@atlaskit-internal_glyphBug" */'@atlaskit/icon-object/glyph/bug/24')
|
|
@@ -205,12 +255,7 @@ export const getLazyIcons = () => {
|
|
|
205
255
|
default: () => import( /* webpackChunkName: "@atlaskit-internal_glyphTask" */'@atlaskit/icon-object/glyph/task/16'),
|
|
206
256
|
large: () => import( /* webpackChunkName: "@atlaskit-internal_glyphTask" */'@atlaskit/icon-object/glyph/task/24')
|
|
207
257
|
},
|
|
208
|
-
//
|
|
209
|
-
[IconType.LiveDocument]: {
|
|
210
|
-
default: () => import( /* webpackChunkName: "@atlaskit-internal_glyphPageLiveDoc" */'@atlaskit/icon-object/glyph/page-live-doc/16'),
|
|
211
|
-
large: () => import( /* webpackChunkName: "@atlaskit-internal_glyphPageLiveDoc" */'@atlaskit/icon-object/glyph/page-live-doc/24')
|
|
212
|
-
},
|
|
213
|
-
// Provider icons
|
|
258
|
+
// @atlaskit/logo/* (product logos)
|
|
214
259
|
[IconType.Confluence]: {
|
|
215
260
|
default: () => import( /* webpackChunkName: "@atlaskit-internal_glyphConfluence" */'@atlaskit/logo/confluence-icon').then(({
|
|
216
261
|
ConfluenceIcon
|
|
@@ -225,28 +270,7 @@ export const getLazyIcons = () => {
|
|
|
225
270
|
default: JiraIcon
|
|
226
271
|
}))
|
|
227
272
|
},
|
|
228
|
-
//
|
|
229
|
-
[IconType.Attachment]: {
|
|
230
|
-
default: () => import( /* webpackChunkName: "@atlaskit-internal_glyphAttachment" */'@atlaskit/icon/core/attachment')
|
|
231
|
-
},
|
|
232
|
-
[IconType.CheckItem]: {
|
|
233
|
-
default: () => import( /* webpackChunkName: "@atlaskit-internal_glyphAttachment" */'@atlaskit/icon/core/task')
|
|
234
|
-
},
|
|
235
|
-
[IconType.Component]: {
|
|
236
|
-
default: () => import( /* webpackChunkName: "@atlaskit-internal_glyphComponent" */'@atlaskit/icon/core/component')
|
|
237
|
-
},
|
|
238
|
-
[IconType.Comment]: {
|
|
239
|
-
default: () => import( /* webpackChunkName: "@atlaskit-internal_glyphComment" */'@atlaskit/icon/core/comment')
|
|
240
|
-
},
|
|
241
|
-
[IconType.View]: {
|
|
242
|
-
default: () => import( /* webpackChunkName: "@atlaskit-internal_glyphComment" */'@atlaskit/icon/core/eye-open')
|
|
243
|
-
},
|
|
244
|
-
[IconType.React]: {
|
|
245
|
-
default: () => import( /* webpackChunkName: "@atlaskit-internal_glyphComment" */'@atlaskit/icon/core/thumbs-up')
|
|
246
|
-
},
|
|
247
|
-
[IconType.Vote]: {
|
|
248
|
-
default: () => import( /* webpackChunkName: "@atlaskit-internal_glyphComment" */'@atlaskit/icon/core/arrow-up')
|
|
249
|
-
},
|
|
273
|
+
// Local priority icons (custom SVG components)
|
|
250
274
|
[IconType.PriorityBlocker]: {
|
|
251
275
|
default: () => import( /* webpackChunkName: "@atlaskit-internal_glyphBlocker" */'../common/ui/icons/priority-blocker-icon')
|
|
252
276
|
},
|
|
@@ -276,18 +300,6 @@ export const getLazyIcons = () => {
|
|
|
276
300
|
},
|
|
277
301
|
[IconType.PriorityTrivial]: {
|
|
278
302
|
default: () => import( /* webpackChunkName: "@atlaskit-internal_glyphTrivial" */'../common/ui/icons/priority-trivial-icon')
|
|
279
|
-
},
|
|
280
|
-
[IconType.PriorityUndefined]: {
|
|
281
|
-
default: () => import( /* webpackChunkName: "@atlaskit-internal_glyphUndefined" */'@atlaskit/icon/core/question-circle')
|
|
282
|
-
},
|
|
283
|
-
[IconType.ProgrammingLanguage]: {
|
|
284
|
-
default: () => import( /* webpackChunkName: "@atlaskit-internal_glyphProgrammingLanguage" */'@atlaskit/icon/core/angle-brackets')
|
|
285
|
-
},
|
|
286
|
-
[IconType.Subscriber]: {
|
|
287
|
-
default: () => import( /* webpackChunkName: "@atlaskit-internal_glyphSubscriber" */'@atlaskit/icon/core/people-group')
|
|
288
|
-
},
|
|
289
|
-
[IconType.SubTasksProgress]: {
|
|
290
|
-
default: () => import( /* webpackChunkName: "@atlaskit-internal_glyphSubtaskProgress" */'@atlaskit/icon/core/subtasks')
|
|
291
303
|
}
|
|
292
304
|
};
|
|
293
305
|
};
|
|
@@ -10,6 +10,7 @@ import { CardDisplay } from '../../constants';
|
|
|
10
10
|
import { useSmartLink } from '../../state';
|
|
11
11
|
import { succeedUfoExperience } from '../../state/analytics';
|
|
12
12
|
import { getClickUrl, getDefinitionId, getExtensionKey, getFirstPartyIdentifier, getObjectAri, getObjectIconUrl, getObjectName, getResourceType, getServices, getThirdPartyARI, isFinalState } from '../../state/helpers';
|
|
13
|
+
import useInlineActionNudgeExperiment from '../../state/hooks/use-inline-action-nudge-experiment';
|
|
13
14
|
import { SmartLinkModalProvider } from '../../state/modal';
|
|
14
15
|
import { isSpecialClick, isSpecialEvent, isSpecialKey } from '../../utils';
|
|
15
16
|
import { combineActionOptions } from '../../utils/actions/combine-action-options';
|
|
@@ -86,6 +87,9 @@ function Component({
|
|
|
86
87
|
actionOptions: actionOptionsProp,
|
|
87
88
|
platform
|
|
88
89
|
});
|
|
90
|
+
const {
|
|
91
|
+
isEnabled: rovoActionsCtaShown
|
|
92
|
+
} = useInlineActionNudgeExperiment(url, showHoverPreview, actionOptions);
|
|
89
93
|
const fire3PClickEvent = fg('platform_smartlink_3pclick_analytics') ?
|
|
90
94
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
91
95
|
useFire3PWorkflowsClickEvent(firstPartyIdentifier, thirdPartyARI) : undefined;
|
|
@@ -206,10 +210,13 @@ function Component({
|
|
|
206
210
|
display: isFlexibleUi ? 'flexible' : appearance
|
|
207
211
|
});
|
|
208
212
|
fireEvent('ui.smartLink.renderSuccess', {
|
|
209
|
-
display: isFlexibleUi ? 'flexible' : appearance
|
|
213
|
+
display: isFlexibleUi ? 'flexible' : appearance,
|
|
214
|
+
...(appearance === 'inline' && {
|
|
215
|
+
rovoActionsCtaShown
|
|
216
|
+
})
|
|
210
217
|
});
|
|
211
218
|
}
|
|
212
|
-
}, [appearance, extensionKey, fireEvent, id, isFlexibleUi, state.status]);
|
|
219
|
+
}, [appearance, extensionKey, fireEvent, id, isFlexibleUi, rovoActionsCtaShown, state.status]);
|
|
213
220
|
|
|
214
221
|
// Fire smartLink seen event once on a successful render card is in the viewport
|
|
215
222
|
useEffect(() => {
|
|
@@ -401,6 +408,9 @@ function ComponentUpdated({
|
|
|
401
408
|
actionOptions: actionOptionsProp,
|
|
402
409
|
platform
|
|
403
410
|
});
|
|
411
|
+
const {
|
|
412
|
+
isEnabled: rovoActionsCtaShown
|
|
413
|
+
} = useInlineActionNudgeExperiment(url, showHoverPreview, actionOptions);
|
|
404
414
|
const fire3PClickEvent = fg('platform_smartlink_3pclick_analytics') ?
|
|
405
415
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
406
416
|
useFire3PWorkflowsClickEvent(firstPartyIdentifier, thirdPartyARI) : undefined;
|
|
@@ -521,10 +531,13 @@ function ComponentUpdated({
|
|
|
521
531
|
display: isFlexibleUi ? 'flexible' : appearance
|
|
522
532
|
});
|
|
523
533
|
fireEvent('ui.smartLink.renderSuccess', {
|
|
524
|
-
display: isFlexibleUi ? 'flexible' : appearance
|
|
534
|
+
display: isFlexibleUi ? 'flexible' : appearance,
|
|
535
|
+
...(appearance === 'inline' && {
|
|
536
|
+
rovoActionsCtaShown
|
|
537
|
+
})
|
|
525
538
|
});
|
|
526
539
|
}
|
|
527
|
-
}, [appearance, extensionKey, fireEvent, id, isFlexibleUi, state.status]);
|
|
540
|
+
}, [appearance, extensionKey, fireEvent, id, isFlexibleUi, rovoActionsCtaShown, state.status]);
|
|
528
541
|
|
|
529
542
|
// Fire smartLink seen event once on a successful render card is in the viewport
|
|
530
543
|
useEffect(() => {
|
|
@@ -2,9 +2,9 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
2
2
|
import React, { Component, Fragment } from 'react';
|
|
3
3
|
|
|
4
4
|
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
5
|
-
import { render } from '@testing-library/react';
|
|
6
5
|
import { IntlProvider } from 'react-intl';
|
|
7
6
|
import { DiProvider } from 'react-magnetic-di';
|
|
7
|
+
import { render } from '@atlassian/testing-library';
|
|
8
8
|
/**
|
|
9
9
|
* Creates a stubbed invocation API call for triggering rules. Will return
|
|
10
10
|
* the supplied invocation result for all objects the rule was called
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import Loadable from 'react-loadable';
|
|
4
|
+
import { IconTile } from '@atlaskit/icon';
|
|
4
5
|
import { ConfluenceIcon, JiraIcon } from '@atlaskit/logo';
|
|
5
6
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
7
|
import BlogIcon from '../../../../../common/ui/icons/blog-icon';
|
|
7
8
|
import LiveDocumentIcon from '../../../../../common/ui/icons/live-document-icon';
|
|
8
9
|
import DocumentIcon from '../../../../../common/ui/icons/page-icon';
|
|
10
|
+
import { transformSmartLinkSizeToIconTileSize } from '../../../../../common/ui/icons/utils';
|
|
9
11
|
import { IconType, SmartLinkSize } from '../../../../../constants';
|
|
10
12
|
import { getLazyIcons, isIconSizeLarge } from '../../../../../utils';
|
|
11
13
|
const getIconImportFn = (icon, size) => {
|
|
@@ -21,38 +23,72 @@ const importIcon = importFn => {
|
|
|
21
23
|
loading: () => null
|
|
22
24
|
}); // Because we're using dynamic loading here, TS will not be able to infer the type.
|
|
23
25
|
};
|
|
26
|
+
const isCoreIcon = icon => {
|
|
27
|
+
return [IconType.Project, IconType.Template, IconType.Forbidden, IconType.Default, IconType.Error, IconType.Attachment, IconType.CheckItem, IconType.Component, IconType.Comment, IconType.View, IconType.React, IconType.Vote, IconType.PriorityUndefined, IconType.ProgrammingLanguage, IconType.Subscriber, IconType.SubTasksProgress].includes(icon);
|
|
28
|
+
};
|
|
24
29
|
const AtlaskitIcon = ({
|
|
25
30
|
icon,
|
|
26
31
|
label,
|
|
27
32
|
testId,
|
|
28
33
|
size = SmartLinkSize.Medium
|
|
29
34
|
}) => {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
35
|
+
if (!fg('platform_sl_icons_refactor')) {
|
|
36
|
+
// Check for synchonously loaded icons first for SSR purposes
|
|
37
|
+
switch (icon) {
|
|
38
|
+
case IconType.Document:
|
|
39
|
+
return /*#__PURE__*/React.createElement(DocumentIcon, {
|
|
40
|
+
label: label !== null && label !== void 0 ? label : 'document',
|
|
41
|
+
testId: testId,
|
|
42
|
+
size: size
|
|
43
|
+
});
|
|
44
|
+
case IconType.Blog:
|
|
45
|
+
return /*#__PURE__*/React.createElement(BlogIcon, {
|
|
46
|
+
label: label !== null && label !== void 0 ? label : 'blog',
|
|
47
|
+
testId: testId,
|
|
48
|
+
size: size
|
|
49
|
+
});
|
|
50
|
+
case IconType.LiveDocument:
|
|
51
|
+
return /*#__PURE__*/React.createElement(LiveDocumentIcon, {
|
|
52
|
+
label: label !== null && label !== void 0 ? label : 'live-doc',
|
|
53
|
+
testId: testId,
|
|
54
|
+
size: size
|
|
55
|
+
});
|
|
56
|
+
}
|
|
50
57
|
}
|
|
51
58
|
const importFn = getIconImportFn(icon, size);
|
|
52
59
|
if (!importFn) {
|
|
53
60
|
return null;
|
|
54
61
|
}
|
|
55
62
|
const ImportedIcon = importIcon(importFn);
|
|
63
|
+
if (isCoreIcon(icon) && fg('platform_sl_icons_refactor')) {
|
|
64
|
+
switch (size) {
|
|
65
|
+
case SmartLinkSize.Small:
|
|
66
|
+
case SmartLinkSize.Medium:
|
|
67
|
+
let color;
|
|
68
|
+
if (icon === IconType.Error || icon === IconType.Forbidden) {
|
|
69
|
+
color = "var(--ds-icon-danger, #C9372C)";
|
|
70
|
+
}
|
|
71
|
+
return /*#__PURE__*/React.createElement(ImportedIcon, {
|
|
72
|
+
label: label,
|
|
73
|
+
testId: testId,
|
|
74
|
+
color: color
|
|
75
|
+
});
|
|
76
|
+
case SmartLinkSize.Large:
|
|
77
|
+
case SmartLinkSize.XLarge:
|
|
78
|
+
let appearance;
|
|
79
|
+
if (icon === IconType.Error || icon === IconType.Forbidden) {
|
|
80
|
+
appearance = 'redBold';
|
|
81
|
+
} else {
|
|
82
|
+
appearance = 'grayBold';
|
|
83
|
+
}
|
|
84
|
+
return /*#__PURE__*/React.createElement(IconTile, {
|
|
85
|
+
appearance: appearance,
|
|
86
|
+
icon: ImportedIcon,
|
|
87
|
+
size: transformSmartLinkSizeToIconTileSize(size),
|
|
88
|
+
label: label !== null && label !== void 0 ? label : ''
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
}
|
|
56
92
|
switch (icon) {
|
|
57
93
|
case IconType.Confluence:
|
|
58
94
|
return /*#__PURE__*/React.createElement(ConfluenceIcon, _extends({
|
|
@@ -72,6 +108,13 @@ const AtlaskitIcon = ({
|
|
|
72
108
|
} : undefined));
|
|
73
109
|
case IconType.Error:
|
|
74
110
|
case IconType.Forbidden:
|
|
111
|
+
if (fg('platform_sl_icons_refactor')) {
|
|
112
|
+
return /*#__PURE__*/React.createElement(ImportedIcon, {
|
|
113
|
+
label: label,
|
|
114
|
+
testId: testId,
|
|
115
|
+
size: size
|
|
116
|
+
});
|
|
117
|
+
}
|
|
75
118
|
return /*#__PURE__*/React.createElement(ImportedIcon, {
|
|
76
119
|
label: label,
|
|
77
120
|
testId: testId,
|
|
@@ -10,6 +10,7 @@ import { useAnalyticsEvents } from '../../../common/analytics/generated/use-anal
|
|
|
10
10
|
import { CardDisplay, SmartLinkPosition, SmartLinkSize } from '../../../constants';
|
|
11
11
|
import extractRovoChatAction from '../../../extractors/flexible/actions/extract-rovo-chat-action';
|
|
12
12
|
import { getDefinitionId, getExtensionKey, getServices } from '../../../state/helpers';
|
|
13
|
+
import useInlineActionNudgeExperiment from '../../../state/hooks/use-inline-action-nudge-experiment';
|
|
13
14
|
import useRovoConfig from '../../../state/hooks/use-rovo-config';
|
|
14
15
|
import { useSmartCardState } from '../../../state/store';
|
|
15
16
|
import { isSpecialEvent } from '../../../utils';
|
|
@@ -303,7 +304,8 @@ const HoverCardContent = ({
|
|
|
303
304
|
const HoverCardContentWithViewVariant = props => {
|
|
304
305
|
const {
|
|
305
306
|
cardState,
|
|
306
|
-
actionOptions
|
|
307
|
+
actionOptions,
|
|
308
|
+
url
|
|
307
309
|
} = props;
|
|
308
310
|
const rovoConfig = useRovoConfig();
|
|
309
311
|
const isResolved = useIsResolvedView(props);
|
|
@@ -313,6 +315,9 @@ const HoverCardContentWithViewVariant = props => {
|
|
|
313
315
|
rovoConfig,
|
|
314
316
|
actionOptions
|
|
315
317
|
}) !== undefined, [actionOptions, cardState.details, rovoConfig, isResolved]);
|
|
318
|
+
const {
|
|
319
|
+
isEnabled: rovoActionsCtaShown
|
|
320
|
+
} = useInlineActionNudgeExperiment(url, true, actionOptions);
|
|
316
321
|
const data = useMemo(() => {
|
|
317
322
|
let viewVariant = 'default';
|
|
318
323
|
if (showRovoResolvedView && (expValEqualsNoExposure('platform_sl_3p_auth_rovo_action', 'isEnabled', true) || expValEqualsNoExposure('rovogrowth-640-inline-action-nudge-exp', 'isEnabled', true))) {
|
|
@@ -322,10 +327,11 @@ const HoverCardContentWithViewVariant = props => {
|
|
|
322
327
|
}
|
|
323
328
|
return {
|
|
324
329
|
attributes: {
|
|
325
|
-
viewVariant
|
|
330
|
+
viewVariant,
|
|
331
|
+
rovoActionsCtaShown
|
|
326
332
|
}
|
|
327
333
|
};
|
|
328
|
-
}, [showRovoResolvedView, showPreauthBetterHovercard]);
|
|
334
|
+
}, [showRovoResolvedView, showPreauthBetterHovercard, rovoActionsCtaShown]);
|
|
329
335
|
return /*#__PURE__*/React.createElement(AnalyticsContext, {
|
|
330
336
|
data: data
|
|
331
337
|
}, /*#__PURE__*/React.createElement(HoverCardContent, _extends({}, props, {
|
|
@@ -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: "44.3.
|
|
15
|
+
packageVersion: "44.3.10",
|
|
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:29715a0e137a7683491690f5e0b79b6bcd3e3570200a686d08aa6ef8e650904c
|
|
3
|
+
size 7006
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:29715a0e137a7683491690f5e0b79b6bcd3e3570200a686d08aa6ef8e650904c
|
|
3
|
+
size 7006
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:5d725fe406baf9184e3bf8bd9704760ce1414ca4c9f6658e779b757cde4a754e
|
|
3
|
+
size 251924
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:6e91d3ac67ba44126d749e029a5f05ac2716584e4834308f76cbda4a4e7a65d6
|
|
3
|
+
size 87318
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:dbebf1f1f7617af24b2611a97c2466e2c105b52ee8e3c05f2ce1e835f3a942e4
|
|
3
|
+
size 89434
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:51a3599023762f49ccf388dcc7ef779baf91a65b1389b71e7560f27a10807f21
|
|
3
|
+
size 89961
|