@atlaskit/smart-card 44.3.9 → 44.3.10
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 +7 -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/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/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/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/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/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/LinkUrl/index.js +1 -1
- 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/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
|
@@ -5,11 +5,13 @@ var _excluded = ["label", "testId"];
|
|
|
5
5
|
import "./priority-highest-icon.compiled.css";
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import { ax, ix } from "@compiled/react/runtime";
|
|
8
|
+
import { componentWithFG } from '@atlaskit/platform-feature-flags-react';
|
|
9
|
+
import { createPriorityIcon } from './priority-icon';
|
|
8
10
|
var style = {
|
|
9
11
|
span: "_1e0c1o8l _1o9zidpf",
|
|
10
12
|
svg: "_s7n4yfq0 _p12f1osq _c71l1osq"
|
|
11
13
|
};
|
|
12
|
-
var
|
|
14
|
+
var PriorityHighestIconLegacy = function PriorityHighestIconLegacy(_ref) {
|
|
13
15
|
var label = _ref.label,
|
|
14
16
|
testId = _ref.testId,
|
|
15
17
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
@@ -34,5 +36,11 @@ var PriorityHighestIcon = function PriorityHighestIcon(_ref) {
|
|
|
34
36
|
fill: "#FF7452"
|
|
35
37
|
})));
|
|
36
38
|
};
|
|
37
|
-
|
|
38
|
-
export default PriorityHighestIcon
|
|
39
|
+
PriorityHighestIconLegacy.displayName = 'PriorityHighestIcon';
|
|
40
|
+
export default componentWithFG('platform_sl_icons_refactor', createPriorityIcon('PriorityHighestIcon', [{
|
|
41
|
+
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',
|
|
42
|
+
fill: '#FF5630'
|
|
43
|
+
}, {
|
|
44
|
+
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',
|
|
45
|
+
fill: '#FF7452'
|
|
46
|
+
}]), PriorityHighestIconLegacy);
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/* priority-icon.tsx generated by @compiled/babel-plugin v0.39.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-icon.compiled.css";
|
|
6
|
+
import * as React from 'react';
|
|
7
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
8
|
+
var style = {
|
|
9
|
+
span: "_1e0c1o8l",
|
|
10
|
+
svg: "_s7n4yfq0 _p12f1osq _c71l1osq"
|
|
11
|
+
};
|
|
12
|
+
export var createPriorityIcon = function createPriorityIcon(displayName, paths) {
|
|
13
|
+
var Icon = function Icon(_ref) {
|
|
14
|
+
var label = _ref.label,
|
|
15
|
+
testId = _ref.testId,
|
|
16
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
17
|
+
return /*#__PURE__*/React.createElement("span", _extends({
|
|
18
|
+
role: label ? 'img' : undefined,
|
|
19
|
+
"aria-label": label,
|
|
20
|
+
"aria-hidden": label ? undefined : true,
|
|
21
|
+
"data-testid": testId
|
|
22
|
+
}, props, {
|
|
23
|
+
className: ax([style.span])
|
|
24
|
+
}), /*#__PURE__*/React.createElement("svg", {
|
|
25
|
+
width: "24",
|
|
26
|
+
height: "24",
|
|
27
|
+
viewBox: "0 0 24 24",
|
|
28
|
+
role: "presentation",
|
|
29
|
+
className: ax([style.svg])
|
|
30
|
+
}, paths.map(function (p, i) {
|
|
31
|
+
return /*#__PURE__*/React.createElement("path", {
|
|
32
|
+
key: i,
|
|
33
|
+
d: p.d,
|
|
34
|
+
fill: p.fill
|
|
35
|
+
});
|
|
36
|
+
})));
|
|
37
|
+
};
|
|
38
|
+
Icon.displayName = displayName;
|
|
39
|
+
return Icon;
|
|
40
|
+
};
|
|
@@ -5,11 +5,13 @@ var _excluded = ["label", "testId"];
|
|
|
5
5
|
import "./priority-low-icon.compiled.css";
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import { ax, ix } from "@compiled/react/runtime";
|
|
8
|
+
import { componentWithFG } from '@atlaskit/platform-feature-flags-react';
|
|
9
|
+
import { createPriorityIcon } from './priority-icon';
|
|
8
10
|
var style = {
|
|
9
11
|
span: "_1e0c1o8l _1o9zidpf",
|
|
10
12
|
svg: "_s7n4yfq0 _p12f1osq _c71l1osq"
|
|
11
13
|
};
|
|
12
|
-
var
|
|
14
|
+
var PriorityLowIconLegacy = function PriorityLowIconLegacy(_ref) {
|
|
13
15
|
var label = _ref.label,
|
|
14
16
|
testId = _ref.testId,
|
|
15
17
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
@@ -31,5 +33,8 @@ var PriorityLowIcon = function PriorityLowIcon(_ref) {
|
|
|
31
33
|
fill: "#0065FF"
|
|
32
34
|
})));
|
|
33
35
|
};
|
|
34
|
-
|
|
35
|
-
export default PriorityLowIcon
|
|
36
|
+
PriorityLowIconLegacy.displayName = 'PriorityLowIcon';
|
|
37
|
+
export default componentWithFG('platform_sl_icons_refactor', createPriorityIcon('PriorityLowIcon', [{
|
|
38
|
+
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',
|
|
39
|
+
fill: '#0065FF'
|
|
40
|
+
}]), PriorityLowIconLegacy);
|
|
@@ -5,11 +5,13 @@ var _excluded = ["label", "testId"];
|
|
|
5
5
|
import "./priority-lowest-icon.compiled.css";
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import { ax, ix } from "@compiled/react/runtime";
|
|
8
|
+
import { componentWithFG } from '@atlaskit/platform-feature-flags-react';
|
|
9
|
+
import { createPriorityIcon } from './priority-icon';
|
|
8
10
|
var style = {
|
|
9
11
|
span: "_1e0c1o8l _1o9zidpf",
|
|
10
12
|
svg: "_s7n4yfq0 _p12f1osq _c71l1osq"
|
|
11
13
|
};
|
|
12
|
-
var
|
|
14
|
+
var PriorityLowestIconLegacy = function PriorityLowestIconLegacy(_ref) {
|
|
13
15
|
var label = _ref.label,
|
|
14
16
|
testId = _ref.testId,
|
|
15
17
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
@@ -34,5 +36,11 @@ var PriorityLowestIcon = function PriorityLowestIcon(_ref) {
|
|
|
34
36
|
fill: "#2684FF"
|
|
35
37
|
})));
|
|
36
38
|
};
|
|
37
|
-
|
|
38
|
-
export default PriorityLowestIcon
|
|
39
|
+
PriorityLowestIconLegacy.displayName = 'PriorityLowestIcon';
|
|
40
|
+
export default componentWithFG('platform_sl_icons_refactor', createPriorityIcon('PriorityLowestIcon', [{
|
|
41
|
+
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',
|
|
42
|
+
fill: '#0065FF'
|
|
43
|
+
}, {
|
|
44
|
+
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',
|
|
45
|
+
fill: '#2684FF'
|
|
46
|
+
}]), PriorityLowestIconLegacy);
|
|
@@ -5,11 +5,13 @@ var _excluded = ["label", "testId"];
|
|
|
5
5
|
import "./priority-major-icon.compiled.css";
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import { ax, ix } from "@compiled/react/runtime";
|
|
8
|
+
import { componentWithFG } from '@atlaskit/platform-feature-flags-react';
|
|
9
|
+
import { createPriorityIcon } from './priority-icon';
|
|
8
10
|
var style = {
|
|
9
11
|
span: "_1e0c1o8l _1o9zidpf",
|
|
10
12
|
svg: "_s7n4yfq0 _p12f1osq _c71l1osq"
|
|
11
13
|
};
|
|
12
|
-
var
|
|
14
|
+
var PriorityMajorIconLegacy = function PriorityMajorIconLegacy(_ref) {
|
|
13
15
|
var label = _ref.label,
|
|
14
16
|
testId = _ref.testId,
|
|
15
17
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
@@ -37,5 +39,14 @@ var PriorityMajorIcon = function PriorityMajorIcon(_ref) {
|
|
|
37
39
|
fill: "#FF8F73"
|
|
38
40
|
})));
|
|
39
41
|
};
|
|
40
|
-
|
|
41
|
-
export default PriorityMajorIcon
|
|
42
|
+
PriorityMajorIconLegacy.displayName = 'PriorityMajorIcon';
|
|
43
|
+
export default componentWithFG('platform_sl_icons_refactor', createPriorityIcon('PriorityMajorIcon', [{
|
|
44
|
+
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',
|
|
45
|
+
fill: '#FF5630'
|
|
46
|
+
}, {
|
|
47
|
+
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',
|
|
48
|
+
fill: '#FF7452'
|
|
49
|
+
}, {
|
|
50
|
+
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',
|
|
51
|
+
fill: '#FF8F73'
|
|
52
|
+
}]), PriorityMajorIconLegacy);
|
|
@@ -5,11 +5,13 @@ var _excluded = ["label", "testId"];
|
|
|
5
5
|
import "./priority-medium-icon.compiled.css";
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import { ax, ix } from "@compiled/react/runtime";
|
|
8
|
+
import { componentWithFG } from '@atlaskit/platform-feature-flags-react';
|
|
9
|
+
import { createPriorityIcon } from './priority-icon';
|
|
8
10
|
var style = {
|
|
9
11
|
span: "_1e0c1o8l _1o9zidpf",
|
|
10
12
|
svg: "_s7n4yfq0 _p12f1osq _c71l1osq"
|
|
11
13
|
};
|
|
12
|
-
var
|
|
14
|
+
var PriorityMediumIconLegacy = function PriorityMediumIconLegacy(_ref) {
|
|
13
15
|
var label = _ref.label,
|
|
14
16
|
testId = _ref.testId,
|
|
15
17
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
@@ -31,5 +33,8 @@ var PriorityMediumIcon = function PriorityMediumIcon(_ref) {
|
|
|
31
33
|
fill: "#FFAB00"
|
|
32
34
|
})));
|
|
33
35
|
};
|
|
34
|
-
|
|
35
|
-
export default PriorityMediumIcon
|
|
36
|
+
PriorityMediumIconLegacy.displayName = 'PriorityMediumIcon';
|
|
37
|
+
export default componentWithFG('platform_sl_icons_refactor', createPriorityIcon('PriorityMediumIcon', [{
|
|
38
|
+
d: 'M5 8h14a1 1 0 010 2H5a1 1 0 110-2zm0 6h14a1 1 0 010 2H5a1 1 0 010-2z',
|
|
39
|
+
fill: '#FFAB00'
|
|
40
|
+
}]), PriorityMediumIconLegacy);
|
|
@@ -5,11 +5,13 @@ var _excluded = ["label", "testId"];
|
|
|
5
5
|
import "./priority-minor-icon.compiled.css";
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import { ax, ix } from "@compiled/react/runtime";
|
|
8
|
+
import { componentWithFG } from '@atlaskit/platform-feature-flags-react';
|
|
9
|
+
import { createPriorityIcon } from './priority-icon';
|
|
8
10
|
var style = {
|
|
9
11
|
span: "_1e0c1o8l _1o9zidpf",
|
|
10
12
|
svg: "_s7n4yfq0 _p12f1osq _c71l1osq"
|
|
11
13
|
};
|
|
12
|
-
var
|
|
14
|
+
var PriorityMinorIconLegacy = function PriorityMinorIconLegacy(_ref) {
|
|
13
15
|
var label = _ref.label,
|
|
14
16
|
testId = _ref.testId,
|
|
15
17
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
@@ -37,5 +39,14 @@ var PriorityMinorIcon = function PriorityMinorIcon(_ref) {
|
|
|
37
39
|
fill: "#4C9AFF"
|
|
38
40
|
})));
|
|
39
41
|
};
|
|
40
|
-
|
|
41
|
-
export default PriorityMinorIcon
|
|
42
|
+
PriorityMinorIconLegacy.displayName = 'PriorityMinorIcon';
|
|
43
|
+
export default componentWithFG('platform_sl_icons_refactor', createPriorityIcon('PriorityMinorIcon', [{
|
|
44
|
+
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',
|
|
45
|
+
fill: '#0065FF'
|
|
46
|
+
}, {
|
|
47
|
+
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',
|
|
48
|
+
fill: '#2684FF'
|
|
49
|
+
}, {
|
|
50
|
+
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',
|
|
51
|
+
fill: '#4C9AFF'
|
|
52
|
+
}]), PriorityMinorIconLegacy);
|
|
@@ -5,11 +5,13 @@ var _excluded = ["label", "testId"];
|
|
|
5
5
|
import "./priority-trivial-icon.compiled.css";
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import { ax, ix } from "@compiled/react/runtime";
|
|
8
|
+
import { componentWithFG } from '@atlaskit/platform-feature-flags-react';
|
|
9
|
+
import { createPriorityIcon } from './priority-icon';
|
|
8
10
|
var style = {
|
|
9
11
|
span: "_1e0c1o8l _1o9zidpf",
|
|
10
12
|
svg: "_s7n4yfq0 _p12f1osq _c71l1osq"
|
|
11
13
|
};
|
|
12
|
-
var
|
|
14
|
+
var PriorityTrivialIconLegacy = function PriorityTrivialIconLegacy(_ref) {
|
|
13
15
|
var label = _ref.label,
|
|
14
16
|
testId = _ref.testId,
|
|
15
17
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
@@ -31,5 +33,8 @@ var PriorityTrivialIcon = function PriorityTrivialIcon(_ref) {
|
|
|
31
33
|
fill: "#7A8699"
|
|
32
34
|
})));
|
|
33
35
|
};
|
|
34
|
-
|
|
35
|
-
export default PriorityTrivialIcon
|
|
36
|
+
PriorityTrivialIconLegacy.displayName = 'PriorityTrivialIcon';
|
|
37
|
+
export default componentWithFG('platform_sl_icons_refactor', createPriorityIcon('PriorityTrivialIcon', [{
|
|
38
|
+
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',
|
|
39
|
+
fill: '#7A8699'
|
|
40
|
+
}]), PriorityTrivialIconLegacy);
|
|
@@ -4,9 +4,22 @@ var _excluded = ["size"],
|
|
|
4
4
|
_excluded2 = ["size"];
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { IconTile } from '@atlaskit/icon';
|
|
7
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
8
|
import { SmartLinkSize } from '../../../constants';
|
|
8
9
|
import { isIconSizeLarge } from '../../../utils';
|
|
9
10
|
export var transformSmartLinkSizeToIconTileSize = function transformSmartLinkSizeToIconTileSize(size) {
|
|
11
|
+
if (fg('platform_sl_icons_refactor')) {
|
|
12
|
+
switch (size) {
|
|
13
|
+
case SmartLinkSize.Small:
|
|
14
|
+
case SmartLinkSize.Medium:
|
|
15
|
+
return '16';
|
|
16
|
+
case SmartLinkSize.XLarge:
|
|
17
|
+
case SmartLinkSize.Large:
|
|
18
|
+
return '24';
|
|
19
|
+
default:
|
|
20
|
+
return '16';
|
|
21
|
+
}
|
|
22
|
+
}
|
|
10
23
|
switch (size) {
|
|
11
24
|
case SmartLinkSize.XLarge:
|
|
12
25
|
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 @@ var documentLabel = function documentLabel(opts, label) {
|
|
|
43
45
|
var documentTypeToIcon = function 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 @@ var documentTypeToIcon = function documentTypeToIcon(type, opts) {
|
|
|
89
94
|
var digitalDocumentToIcon = function 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
|
});
|
|
@@ -4,7 +4,7 @@ export var ANALYTICS_CHANNEL = 'media';
|
|
|
4
4
|
export var context = {
|
|
5
5
|
componentName: 'smart-cards',
|
|
6
6
|
packageName: "@atlaskit/smart-card",
|
|
7
|
-
packageVersion: "44.3.
|
|
7
|
+
packageVersion: "44.3.9"
|
|
8
8
|
};
|
|
9
9
|
export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
10
10
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
package/dist/esm/utils/index.js
CHANGED
|
@@ -2,6 +2,8 @@ import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
4
4
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
5
|
+
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; }
|
|
6
|
+
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; }
|
|
5
7
|
import React from 'react';
|
|
6
8
|
import Loadable from 'react-loadable';
|
|
7
9
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
@@ -71,15 +73,11 @@ export var getIconForFileType = function getIconForFileType(fileMimeType, showIc
|
|
|
71
73
|
};
|
|
72
74
|
// prettier-ignore
|
|
73
75
|
export var getLazyIcons = function getLazyIcons() {
|
|
74
|
-
var
|
|
75
|
-
return
|
|
76
|
+
var _objectSpread2, _objectSpread3;
|
|
77
|
+
return _objectSpread(_objectSpread((_objectSpread2 = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_objectSpread2, IconType.Document, {
|
|
76
78
|
default: function _default() {
|
|
77
79
|
return import( /* webpackChunkName: "@atlaskit-internal_page-icon" */'../common/ui/icons/page-icon');
|
|
78
80
|
}
|
|
79
|
-
}), IconType.Blog, {
|
|
80
|
-
default: function _default() {
|
|
81
|
-
return import( /* webpackChunkName: "@atlaskit-internal_glyphBlock" */'../common/ui/icons/blog-icon');
|
|
82
|
-
}
|
|
83
81
|
}), IconType.Audio, {
|
|
84
82
|
default: function _default() {
|
|
85
83
|
return import( /* webpackChunkName: "@atlaskit-internal_audio-icon" */'../common/ui/icons/audio-icon');
|
|
@@ -112,11 +110,11 @@ export var getLazyIcons = function getLazyIcons() {
|
|
|
112
110
|
default: function _default() {
|
|
113
111
|
return import( /* webpackChunkName: "@atlaskit-internal_list-bullet-icon" */'../common/ui/icons/list-bullet-icon');
|
|
114
112
|
}
|
|
115
|
-
}),
|
|
113
|
+
}), IconType.Video, {
|
|
116
114
|
default: function _default() {
|
|
117
115
|
return import( /* webpackChunkName: "@atlaskit-internal_video-icon" */'../common/ui/icons/video-icon');
|
|
118
116
|
}
|
|
119
|
-
}), IconType.Project, {
|
|
117
|
+
}), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_objectSpread2, IconType.Project, {
|
|
120
118
|
default: function _default() {
|
|
121
119
|
return import( /* webpackChunkName: "@atlaskit-internal_glyphProject" */'@atlaskit/icon/core/people-group');
|
|
122
120
|
}
|
|
@@ -136,6 +134,50 @@ export var getLazyIcons = function getLazyIcons() {
|
|
|
136
134
|
default: function _default() {
|
|
137
135
|
return import( /* webpackChunkName: "@atlaskit-internal_glyphDefault" */'@atlaskit/icon/core/status-error');
|
|
138
136
|
}
|
|
137
|
+
}), IconType.Attachment, {
|
|
138
|
+
default: function _default() {
|
|
139
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphAttachment" */'@atlaskit/icon/core/attachment');
|
|
140
|
+
}
|
|
141
|
+
}), IconType.CheckItem, {
|
|
142
|
+
default: function _default() {
|
|
143
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphAttachment" */'@atlaskit/icon/core/task');
|
|
144
|
+
}
|
|
145
|
+
}), IconType.Component, {
|
|
146
|
+
default: function _default() {
|
|
147
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphComponent" */'@atlaskit/icon/core/component');
|
|
148
|
+
}
|
|
149
|
+
}), IconType.Comment, {
|
|
150
|
+
default: function _default() {
|
|
151
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphComment" */'@atlaskit/icon/core/comment');
|
|
152
|
+
}
|
|
153
|
+
}), IconType.View, {
|
|
154
|
+
default: function _default() {
|
|
155
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphComment" */'@atlaskit/icon/core/eye-open');
|
|
156
|
+
}
|
|
157
|
+
}), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_objectSpread2, IconType.React, {
|
|
158
|
+
default: function _default() {
|
|
159
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphComment" */'@atlaskit/icon/core/thumbs-up');
|
|
160
|
+
}
|
|
161
|
+
}), IconType.Vote, {
|
|
162
|
+
default: function _default() {
|
|
163
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphComment" */'@atlaskit/icon/core/arrow-up');
|
|
164
|
+
}
|
|
165
|
+
}), IconType.PriorityUndefined, {
|
|
166
|
+
default: function _default() {
|
|
167
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphUndefined" */'@atlaskit/icon/core/question-circle');
|
|
168
|
+
}
|
|
169
|
+
}), IconType.ProgrammingLanguage, {
|
|
170
|
+
default: function _default() {
|
|
171
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphProgrammingLanguage" */'@atlaskit/icon/core/angle-brackets');
|
|
172
|
+
}
|
|
173
|
+
}), IconType.Subscriber, {
|
|
174
|
+
default: function _default() {
|
|
175
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphSubscriber" */'@atlaskit/icon/core/people-group');
|
|
176
|
+
}
|
|
177
|
+
}), IconType.SubTasksProgress, {
|
|
178
|
+
default: function _default() {
|
|
179
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphSubtaskProgress" */'@atlaskit/icon/core/subtasks');
|
|
180
|
+
}
|
|
139
181
|
}), IconType.Archive, {
|
|
140
182
|
default: function _default() {
|
|
141
183
|
return import( /* webpackChunkName: "@atlaskit-internal_glyphArchive" */'@atlaskit/icon-file-type/glyph/archive/16');
|
|
@@ -164,7 +206,7 @@ export var getLazyIcons = function getLazyIcons() {
|
|
|
164
206
|
large: function large() {
|
|
165
207
|
return import( /* webpackChunkName: "@atlaskit-internal_glyphGoogleDocs" */'@atlaskit/icon-file-type/glyph/google-doc/24');
|
|
166
208
|
}
|
|
167
|
-
}), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(
|
|
209
|
+
}), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_objectSpread2, IconType.GoogleForms, {
|
|
168
210
|
default: function _default() {
|
|
169
211
|
return import( /* webpackChunkName: "@atlaskit-internal_glyphGoogleForms" */'@atlaskit/icon-file-type/glyph/google-form/16');
|
|
170
212
|
},
|
|
@@ -220,7 +262,29 @@ export var getLazyIcons = function getLazyIcons() {
|
|
|
220
262
|
large: function large() {
|
|
221
263
|
return import( /* webpackChunkName: "@atlaskit-internal_glyphSketch" */'@atlaskit/icon-file-type/glyph/sketch/24');
|
|
222
264
|
}
|
|
223
|
-
}), IconType.
|
|
265
|
+
})), fg('platform_sl_icons_refactor') ? _defineProperty(_defineProperty({}, IconType.Blog, {
|
|
266
|
+
default: function _default() {
|
|
267
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphBlog" */'@atlaskit/icon-object/glyph/blog/16');
|
|
268
|
+
},
|
|
269
|
+
large: function large() {
|
|
270
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphBlog" */'@atlaskit/icon-object/glyph/blog/24');
|
|
271
|
+
}
|
|
272
|
+
}), IconType.LiveDocument, {
|
|
273
|
+
default: function _default() {
|
|
274
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphPageLiveDoc" */'@atlaskit/icon-object/glyph/page-live-doc/16');
|
|
275
|
+
},
|
|
276
|
+
large: function large() {
|
|
277
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphPageLiveDoc" */'@atlaskit/icon-object/glyph/page-live-doc/24');
|
|
278
|
+
}
|
|
279
|
+
}) : _defineProperty(_defineProperty({}, IconType.Blog, {
|
|
280
|
+
default: function _default() {
|
|
281
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphBlock" */'../common/ui/icons/blog-icon');
|
|
282
|
+
}
|
|
283
|
+
}), IconType.LiveDocument, {
|
|
284
|
+
default: function _default() {
|
|
285
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphPageLiveDoc" */'../common/ui/icons/live-document-icon');
|
|
286
|
+
}
|
|
287
|
+
})), {}, (_objectSpread3 = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_objectSpread3, IconType.Branch, {
|
|
224
288
|
default: function _default() {
|
|
225
289
|
return import( /* webpackChunkName: "@atlaskit-internal_glyphBranch" */'@atlaskit/icon-object/glyph/branch/16');
|
|
226
290
|
},
|
|
@@ -234,7 +298,7 @@ export var getLazyIcons = function getLazyIcons() {
|
|
|
234
298
|
large: function large() {
|
|
235
299
|
return import( /* webpackChunkName: "@atlaskit-internal_glyphCommit" */'@atlaskit/icon-object/glyph/commit/24');
|
|
236
300
|
}
|
|
237
|
-
}),
|
|
301
|
+
}), IconType.PullRequest, {
|
|
238
302
|
default: function _default() {
|
|
239
303
|
return import( /* webpackChunkName: "@atlaskit-internal_glyphPullRequest" */'@atlaskit/icon-object/glyph/pull-request/16');
|
|
240
304
|
},
|
|
@@ -290,7 +354,7 @@ export var getLazyIcons = function getLazyIcons() {
|
|
|
290
354
|
large: function large() {
|
|
291
355
|
return import( /* webpackChunkName: "@atlaskit-internal_glyphServiceRequest" */'@atlaskit/icon-object/glyph/issue/24');
|
|
292
356
|
}
|
|
293
|
-
}), IconType.Story, {
|
|
357
|
+
}), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_objectSpread3, IconType.Story, {
|
|
294
358
|
default: function _default() {
|
|
295
359
|
return import( /* webpackChunkName: "@atlaskit-internal_glyphStory" */'@atlaskit/icon-object/glyph/story/16');
|
|
296
360
|
},
|
|
@@ -304,24 +368,17 @@ export var getLazyIcons = function getLazyIcons() {
|
|
|
304
368
|
large: function large() {
|
|
305
369
|
return import( /* webpackChunkName: "@atlaskit-internal_glyphSubTask" */'@atlaskit/icon-object/glyph/subtask/24');
|
|
306
370
|
}
|
|
307
|
-
}),
|
|
371
|
+
}), IconType.Task, {
|
|
308
372
|
default: function _default() {
|
|
309
373
|
return import( /* webpackChunkName: "@atlaskit-internal_glyphTask" */'@atlaskit/icon-object/glyph/task/16');
|
|
310
374
|
},
|
|
311
375
|
large: function large() {
|
|
312
376
|
return import( /* webpackChunkName: "@atlaskit-internal_glyphTask" */'@atlaskit/icon-object/glyph/task/24');
|
|
313
377
|
}
|
|
314
|
-
}), IconType.LiveDocument, {
|
|
315
|
-
default: function _default() {
|
|
316
|
-
return import( /* webpackChunkName: "@atlaskit-internal_glyphPageLiveDoc" */'@atlaskit/icon-object/glyph/page-live-doc/16');
|
|
317
|
-
},
|
|
318
|
-
large: function large() {
|
|
319
|
-
return import( /* webpackChunkName: "@atlaskit-internal_glyphPageLiveDoc" */'@atlaskit/icon-object/glyph/page-live-doc/24');
|
|
320
|
-
}
|
|
321
378
|
}), IconType.Confluence, {
|
|
322
379
|
default: function _default() {
|
|
323
|
-
return import( /* webpackChunkName: "@atlaskit-internal_glyphConfluence" */'@atlaskit/logo/confluence-icon').then(function (
|
|
324
|
-
var ConfluenceIcon =
|
|
380
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphConfluence" */'@atlaskit/logo/confluence-icon').then(function (_ref3) {
|
|
381
|
+
var ConfluenceIcon = _ref3.ConfluenceIcon;
|
|
325
382
|
return {
|
|
326
383
|
default: ConfluenceIcon
|
|
327
384
|
};
|
|
@@ -329,41 +386,13 @@ export var getLazyIcons = function getLazyIcons() {
|
|
|
329
386
|
}
|
|
330
387
|
}), IconType.Jira, {
|
|
331
388
|
default: function _default() {
|
|
332
|
-
return import( /* webpackChunkName: "@atlaskit-internal_glyphJira" */'@atlaskit/logo/jira-icon').then(function (
|
|
333
|
-
var JiraIcon =
|
|
389
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphJira" */'@atlaskit/logo/jira-icon').then(function (_ref4) {
|
|
390
|
+
var JiraIcon = _ref4.JiraIcon;
|
|
334
391
|
return {
|
|
335
392
|
default: JiraIcon
|
|
336
393
|
};
|
|
337
394
|
});
|
|
338
395
|
}
|
|
339
|
-
}), IconType.Attachment, {
|
|
340
|
-
default: function _default() {
|
|
341
|
-
return import( /* webpackChunkName: "@atlaskit-internal_glyphAttachment" */'@atlaskit/icon/core/attachment');
|
|
342
|
-
}
|
|
343
|
-
}), IconType.CheckItem, {
|
|
344
|
-
default: function _default() {
|
|
345
|
-
return import( /* webpackChunkName: "@atlaskit-internal_glyphAttachment" */'@atlaskit/icon/core/task');
|
|
346
|
-
}
|
|
347
|
-
}), IconType.Component, {
|
|
348
|
-
default: function _default() {
|
|
349
|
-
return import( /* webpackChunkName: "@atlaskit-internal_glyphComponent" */'@atlaskit/icon/core/component');
|
|
350
|
-
}
|
|
351
|
-
}), IconType.Comment, {
|
|
352
|
-
default: function _default() {
|
|
353
|
-
return import( /* webpackChunkName: "@atlaskit-internal_glyphComment" */'@atlaskit/icon/core/comment');
|
|
354
|
-
}
|
|
355
|
-
}), IconType.View, {
|
|
356
|
-
default: function _default() {
|
|
357
|
-
return import( /* webpackChunkName: "@atlaskit-internal_glyphComment" */'@atlaskit/icon/core/eye-open');
|
|
358
|
-
}
|
|
359
|
-
}), IconType.React, {
|
|
360
|
-
default: function _default() {
|
|
361
|
-
return import( /* webpackChunkName: "@atlaskit-internal_glyphComment" */'@atlaskit/icon/core/thumbs-up');
|
|
362
|
-
}
|
|
363
|
-
}), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref3, IconType.Vote, {
|
|
364
|
-
default: function _default() {
|
|
365
|
-
return import( /* webpackChunkName: "@atlaskit-internal_glyphComment" */'@atlaskit/icon/core/arrow-up');
|
|
366
|
-
}
|
|
367
396
|
}), IconType.PriorityBlocker, {
|
|
368
397
|
default: function _default() {
|
|
369
398
|
return import( /* webpackChunkName: "@atlaskit-internal_glyphBlocker" */'../common/ui/icons/priority-blocker-icon');
|
|
@@ -384,7 +413,7 @@ export var getLazyIcons = function getLazyIcons() {
|
|
|
384
413
|
default: function _default() {
|
|
385
414
|
return import( /* webpackChunkName: "@atlaskit-internal_glyphLow" */'../common/ui/icons/priority-low-icon');
|
|
386
415
|
}
|
|
387
|
-
}), IconType.PriorityLowest, {
|
|
416
|
+
}), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_objectSpread3, IconType.PriorityLowest, {
|
|
388
417
|
default: function _default() {
|
|
389
418
|
return import( /* webpackChunkName: "@atlaskit-internal_glyphLowest" */'../common/ui/icons/priority-lowest-icon');
|
|
390
419
|
}
|
|
@@ -400,27 +429,11 @@ export var getLazyIcons = function getLazyIcons() {
|
|
|
400
429
|
default: function _default() {
|
|
401
430
|
return import( /* webpackChunkName: "@atlaskit-internal_glyphMinor" */'../common/ui/icons/priority-minor-icon');
|
|
402
431
|
}
|
|
403
|
-
}),
|
|
432
|
+
}), IconType.PriorityTrivial, {
|
|
404
433
|
default: function _default() {
|
|
405
434
|
return import( /* webpackChunkName: "@atlaskit-internal_glyphTrivial" */'../common/ui/icons/priority-trivial-icon');
|
|
406
435
|
}
|
|
407
|
-
})
|
|
408
|
-
default: function _default() {
|
|
409
|
-
return import( /* webpackChunkName: "@atlaskit-internal_glyphUndefined" */'@atlaskit/icon/core/question-circle');
|
|
410
|
-
}
|
|
411
|
-
}), IconType.ProgrammingLanguage, {
|
|
412
|
-
default: function _default() {
|
|
413
|
-
return import( /* webpackChunkName: "@atlaskit-internal_glyphProgrammingLanguage" */'@atlaskit/icon/core/angle-brackets');
|
|
414
|
-
}
|
|
415
|
-
}), IconType.Subscriber, {
|
|
416
|
-
default: function _default() {
|
|
417
|
-
return import( /* webpackChunkName: "@atlaskit-internal_glyphSubscriber" */'@atlaskit/icon/core/people-group');
|
|
418
|
-
}
|
|
419
|
-
}), IconType.SubTasksProgress, {
|
|
420
|
-
default: function _default() {
|
|
421
|
-
return import( /* webpackChunkName: "@atlaskit-internal_glyphSubtaskProgress" */'@atlaskit/icon/core/subtasks');
|
|
422
|
-
}
|
|
423
|
-
});
|
|
436
|
+
})));
|
|
424
437
|
};
|
|
425
438
|
var getTypeToIconMap = function getTypeToIconMap(fileFormat) {
|
|
426
439
|
var iconDescriptor = extractFileFormatIcon(fileFormat);
|
|
@@ -459,7 +472,7 @@ export var sleep = function sleep(ms) {
|
|
|
459
472
|
});
|
|
460
473
|
};
|
|
461
474
|
var _importWithRetry = /*#__PURE__*/function () {
|
|
462
|
-
var
|
|
475
|
+
var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(importFn) {
|
|
463
476
|
var retries,
|
|
464
477
|
interval,
|
|
465
478
|
_args = arguments;
|
|
@@ -493,12 +506,12 @@ var _importWithRetry = /*#__PURE__*/function () {
|
|
|
493
506
|
}, _callee, null, [[2, 8]]);
|
|
494
507
|
}));
|
|
495
508
|
return function importWithRetry(_x) {
|
|
496
|
-
return
|
|
509
|
+
return _ref5.apply(this, arguments);
|
|
497
510
|
};
|
|
498
511
|
}();
|
|
499
512
|
export { _importWithRetry as importWithRetry };
|
|
500
513
|
export var downloadUrl = /*#__PURE__*/function () {
|
|
501
|
-
var
|
|
514
|
+
var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(url) {
|
|
502
515
|
var isIE11, isSafari, iframeName, link, iframe;
|
|
503
516
|
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
504
517
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -534,11 +547,11 @@ export var downloadUrl = /*#__PURE__*/function () {
|
|
|
534
547
|
}, _callee2);
|
|
535
548
|
}));
|
|
536
549
|
return function downloadUrl(_x2) {
|
|
537
|
-
return
|
|
550
|
+
return _ref6.apply(this, arguments);
|
|
538
551
|
};
|
|
539
552
|
}();
|
|
540
553
|
export var openUrl = /*#__PURE__*/function () {
|
|
541
|
-
var
|
|
554
|
+
var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3(url) {
|
|
542
555
|
return _regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
543
556
|
while (1) switch (_context3.prev = _context3.next) {
|
|
544
557
|
case 0:
|
|
@@ -556,7 +569,7 @@ export var openUrl = /*#__PURE__*/function () {
|
|
|
556
569
|
}, _callee3);
|
|
557
570
|
}));
|
|
558
571
|
return function openUrl(_x3) {
|
|
559
|
-
return
|
|
572
|
+
return _ref7.apply(this, arguments);
|
|
560
573
|
};
|
|
561
574
|
}();
|
|
562
575
|
|
|
@@ -14,9 +14,9 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
14
14
|
import React, { Component, Fragment } from 'react';
|
|
15
15
|
|
|
16
16
|
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
17
|
-
import { render } from '@testing-library/react';
|
|
18
17
|
import { IntlProvider } from 'react-intl';
|
|
19
18
|
import { DiProvider } from 'react-magnetic-di';
|
|
19
|
+
import { render } from '@atlassian/testing-library';
|
|
20
20
|
/**
|
|
21
21
|
* Creates a stubbed invocation API call for triggering rules. Will return
|
|
22
22
|
* the supplied invocation result for all objects the rule was called
|