@atlaskit/smart-card 44.3.8 → 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 +20 -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-unauthorised-multiple-providers--default.png +3 -0
- package/dist/cjs/__tests__/vr-tests/__snapshots__/block-card/block-card-unauthorised-view--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/block-card/block-card-unauthorised-view-with-no-auth--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__/embed-card/embed-card-unauthorised-view--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/embed-card/embed-card-unauthorised-view-frame-hide--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/embed-card/embed-card-unauthorised-view-with-provider-image--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/flexible-card/flexible-ui-block-card-errored-states--default--navx-1895-new-logo-design-false.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/flexible-card/flexible-ui-block-card-errored-states--default--navx-1895-new-logo-design-true.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__/hover-card/hover-card-unauthorised--default--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-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/extractors/flexible/index.js +3 -5
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/utils/index.js +124 -105
- package/dist/cjs/view/BlockCard/views/UnauthorisedView.compiled.css +0 -1
- package/dist/cjs/view/BlockCard/views/UnauthorisedView.js +22 -28
- 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/FlexibleCard/components/elements/common/base-icon-element/index.js +1 -2
- package/dist/cjs/view/FlexibleCard/components/elements/common/base-link-element/index.js +1 -2
- package/dist/cjs/view/FlexibleCard/utils.js +3 -7
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/cjs/view/common/UnauthorisedViewContent.js +2 -3
- 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-unauthorised-multiple-providers--default.png +3 -0
- package/dist/es2019/__tests__/vr-tests/__snapshots__/block-card/block-card-unauthorised-view--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/block-card/block-card-unauthorised-view-with-no-auth--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__/embed-card/embed-card-unauthorised-view--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/embed-card/embed-card-unauthorised-view-frame-hide--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/embed-card/embed-card-unauthorised-view-with-provider-image--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/flexible-card/flexible-ui-block-card-errored-states--default--navx-1895-new-logo-design-false.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/flexible-card/flexible-ui-block-card-errored-states--default--navx-1895-new-logo-design-true.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__/hover-card/hover-card-unauthorised--default--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-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/extractors/flexible/index.js +1 -4
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/utils/index.js +57 -45
- package/dist/es2019/view/BlockCard/views/UnauthorisedView.compiled.css +0 -1
- package/dist/es2019/view/BlockCard/views/UnauthorisedView.js +22 -28
- 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/FlexibleCard/components/elements/common/base-icon-element/index.js +1 -2
- package/dist/es2019/view/FlexibleCard/components/elements/common/base-link-element/index.js +1 -2
- package/dist/es2019/view/FlexibleCard/utils.js +1 -4
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/es2019/view/common/UnauthorisedViewContent.js +2 -3
- 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-unauthorised-multiple-providers--default.png +3 -0
- package/dist/esm/__tests__/vr-tests/__snapshots__/block-card/block-card-unauthorised-view--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/block-card/block-card-unauthorised-view-with-no-auth--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__/embed-card/embed-card-unauthorised-view--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/embed-card/embed-card-unauthorised-view-frame-hide--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/embed-card/embed-card-unauthorised-view-with-provider-image--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/flexible-card/flexible-ui-block-card-errored-states--default--navx-1895-new-logo-design-false.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/flexible-card/flexible-ui-block-card-errored-states--default--navx-1895-new-logo-design-true.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__/hover-card/hover-card-unauthorised--default--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-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/extractors/flexible/index.js +3 -5
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/utils/index.js +90 -77
- package/dist/esm/view/BlockCard/views/UnauthorisedView.compiled.css +0 -1
- package/dist/esm/view/BlockCard/views/UnauthorisedView.js +22 -28
- 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/FlexibleCard/components/elements/common/base-icon-element/index.js +1 -2
- package/dist/esm/view/FlexibleCard/components/elements/common/base-link-element/index.js +1 -2
- package/dist/esm/view/FlexibleCard/utils.js +3 -7
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/esm/view/common/UnauthorisedViewContent.js +2 -3
- 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
- package/dist/cjs/__tests__/vr-tests/__snapshots__/block-card/block-card-unauthorised-view-with-experiment--default--platform-sl-3p-unauth-paste-as-block-card-card-by-default-and-new-design.png +0 -3
- package/dist/cjs/__tests__/vr-tests/__snapshots__/block-card/block-card-unauthorised-view-with-experiment--default--platform-sl-3p-unauth-paste-as-block-card-card-by-default-only.png +0 -3
- package/dist/cjs/__tests__/vr-tests/__snapshots__/block-card/block-card-unauthorised-view-with-experiment--default--platform-sl-3p-unauth-paste-as-block-card-control.png +0 -3
- package/dist/cjs/utils/experiments.js +0 -16
- package/dist/es2019/__tests__/vr-tests/__snapshots__/block-card/block-card-unauthorised-view-with-experiment--default--platform-sl-3p-unauth-paste-as-block-card-card-by-default-and-new-design.png +0 -3
- package/dist/es2019/__tests__/vr-tests/__snapshots__/block-card/block-card-unauthorised-view-with-experiment--default--platform-sl-3p-unauth-paste-as-block-card-card-by-default-only.png +0 -3
- package/dist/es2019/__tests__/vr-tests/__snapshots__/block-card/block-card-unauthorised-view-with-experiment--default--platform-sl-3p-unauth-paste-as-block-card-control.png +0 -3
- package/dist/es2019/utils/experiments.js +0 -9
- package/dist/esm/__tests__/vr-tests/__snapshots__/block-card/block-card-unauthorised-view-with-experiment--default--platform-sl-3p-unauth-paste-as-block-card-card-by-default-and-new-design.png +0 -3
- package/dist/esm/__tests__/vr-tests/__snapshots__/block-card/block-card-unauthorised-view-with-experiment--default--platform-sl-3p-unauth-paste-as-block-card-card-by-default-only.png +0 -3
- package/dist/esm/__tests__/vr-tests/__snapshots__/block-card/block-card-unauthorised-view-with-experiment--default--platform-sl-3p-unauth-paste-as-block-card-control.png +0 -3
- package/dist/esm/utils/experiments.js +0 -10
- package/dist/types/utils/experiments.d.ts +0 -1
- package/dist/types-ts4.5/utils/experiments.d.ts +0 -1
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
|
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
._11c8fhey{font:var(--ds-font-body,normal 400 14px/20px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
|
-
._11c8wadc{font:var(--ds-font-body-small,normal 400 9pt/1pc "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
3
2
|
._zulpidpf{gap:0}
|
|
4
3
|
._zulputpp{gap:var(--ds-space-150,9pt)}
|
|
5
4
|
._12vemgnk{background-repeat:no-repeat}
|
|
@@ -14,7 +14,6 @@ import { ElementName, SmartLinkDirection, SmartLinkSize, SmartLinkWidth } from '
|
|
|
14
14
|
import { messages } from '../../../messages';
|
|
15
15
|
import { useFlexibleCardContext } from '../../../state/flexible-ui-context';
|
|
16
16
|
import { hasAuthScopeOverrides } from '../../../state/helpers';
|
|
17
|
-
import { isNewBlockcardUnauthorizedRefreshExperimentEnabled } from '../../../utils/experiments';
|
|
18
17
|
import UnauthorisedViewContent from '../../common/UnauthorisedViewContent';
|
|
19
18
|
import FlexibleCard from '../../FlexibleCard';
|
|
20
19
|
import ActionGroup from '../../FlexibleCard/components/blocks/action-group';
|
|
@@ -24,11 +23,9 @@ import { renderElementItems } from '../../FlexibleCard/components/blocks/utils';
|
|
|
24
23
|
import { LinkIcon, Title } from '../../FlexibleCard/components/elements';
|
|
25
24
|
import { AuthorizeAction } from '../actions/AuthorizeAction';
|
|
26
25
|
import unauthIllustrationGeneral from './assets/general@2x.png';
|
|
27
|
-
import UnresolvedView from './unresolved-view';
|
|
28
26
|
import { FlexibleCardUiOptions, titleBlockOptions } from './utils';
|
|
29
27
|
import { withFlexibleUIBlockCardStyle } from './utils/withFlexibleUIBlockCardStyle';
|
|
30
28
|
var contentStyles = null;
|
|
31
|
-
var newContentStyles = null;
|
|
32
29
|
var contentAdditionalStyles = null;
|
|
33
30
|
var newTitleBlockStyles = null;
|
|
34
31
|
var intermediumGapStyles = null;
|
|
@@ -80,14 +77,18 @@ var getBetterTitle = function getBetterTitle(url) {
|
|
|
80
77
|
search = _URL.search;
|
|
81
78
|
if (pathname.length > 1) {
|
|
82
79
|
return pathname.substring(1);
|
|
83
|
-
}
|
|
80
|
+
}
|
|
81
|
+
if (search) {
|
|
84
82
|
return search;
|
|
85
83
|
}
|
|
84
|
+
// Fall back to the full URL when there is no useful path/search to display,
|
|
85
|
+
// so the title (and the underlying link) always has accessible text.
|
|
86
|
+
return url;
|
|
86
87
|
} catch (_unused) {
|
|
87
88
|
return url;
|
|
88
89
|
}
|
|
89
90
|
};
|
|
90
|
-
var
|
|
91
|
+
var UnauthorisedBlock = function UnauthorisedBlock(_ref) {
|
|
91
92
|
var _useFlexibleCardConte, _data$preview$url, _data$preview;
|
|
92
93
|
var actions = _ref.actions,
|
|
93
94
|
children = _ref.children,
|
|
@@ -191,29 +192,22 @@ var UnauthorisedView = function UnauthorisedView(_ref3) {
|
|
|
191
192
|
var actions = useMemo(function () {
|
|
192
193
|
return onAuthorize ? [AuthorizeAction(handleAuthorize, providerName)] : [];
|
|
193
194
|
}, [handleAuthorize, onAuthorize, providerName]);
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
actions: actions,
|
|
211
|
-
testId: testId
|
|
212
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
213
|
-
"data-testid": "".concat(testId, "-content"),
|
|
214
|
-
className: ax(["_11c8wadc _syazi7uo _19pku2gc"])
|
|
215
|
-
}, content));
|
|
216
|
-
}
|
|
195
|
+
return /*#__PURE__*/React.createElement(FlexibleCard, _extends({
|
|
196
|
+
appearance: "block",
|
|
197
|
+
onAuthorize: onAuthorize,
|
|
198
|
+
origin: "smartLinkCard",
|
|
199
|
+
testId: testId,
|
|
200
|
+
ui: FlexibleCardUiOptions
|
|
201
|
+
}, props), /*#__PURE__*/React.createElement(UnauthorisedBlock, {
|
|
202
|
+
actions: actions,
|
|
203
|
+
cardState: props.cardState,
|
|
204
|
+
CompetitorPrompt: props.CompetitorPrompt,
|
|
205
|
+
testId: testId,
|
|
206
|
+
url: props.url
|
|
207
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
208
|
+
"data-testid": "".concat(testId, "-content"),
|
|
209
|
+
className: ax(["_11c8fhey _syazi7uo _19pku2gc", actions.length > 0 && "_1reo15vq _18m915vq _otyrpxbi _p12f1osq _o5721q9c _1bto1l2s"])
|
|
210
|
+
}, content)));
|
|
217
211
|
};
|
|
218
212
|
var _default_1 = withFlexibleUIBlockCardStyle(UnauthorisedView);
|
|
219
213
|
export default _default_1;
|
|
@@ -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
|
|
@@ -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
|
var getIconImportFn = function getIconImportFn(icon, size) {
|
|
@@ -27,38 +29,72 @@ var importIcon = function importIcon(importFn) {
|
|
|
27
29
|
}
|
|
28
30
|
}); // Because we're using dynamic loading here, TS will not be able to infer the type.
|
|
29
31
|
};
|
|
32
|
+
var isCoreIcon = function isCoreIcon(icon) {
|
|
33
|
+
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);
|
|
34
|
+
};
|
|
30
35
|
var AtlaskitIcon = function AtlaskitIcon(_ref) {
|
|
31
36
|
var icon = _ref.icon,
|
|
32
37
|
label = _ref.label,
|
|
33
38
|
testId = _ref.testId,
|
|
34
39
|
_ref$size = _ref.size,
|
|
35
40
|
size = _ref$size === void 0 ? SmartLinkSize.Medium : _ref$size;
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
41
|
+
if (!fg('platform_sl_icons_refactor')) {
|
|
42
|
+
// Check for synchonously loaded icons first for SSR purposes
|
|
43
|
+
switch (icon) {
|
|
44
|
+
case IconType.Document:
|
|
45
|
+
return /*#__PURE__*/React.createElement(DocumentIcon, {
|
|
46
|
+
label: label !== null && label !== void 0 ? label : 'document',
|
|
47
|
+
testId: testId,
|
|
48
|
+
size: size
|
|
49
|
+
});
|
|
50
|
+
case IconType.Blog:
|
|
51
|
+
return /*#__PURE__*/React.createElement(BlogIcon, {
|
|
52
|
+
label: label !== null && label !== void 0 ? label : 'blog',
|
|
53
|
+
testId: testId,
|
|
54
|
+
size: size
|
|
55
|
+
});
|
|
56
|
+
case IconType.LiveDocument:
|
|
57
|
+
return /*#__PURE__*/React.createElement(LiveDocumentIcon, {
|
|
58
|
+
label: label !== null && label !== void 0 ? label : 'live-doc',
|
|
59
|
+
testId: testId,
|
|
60
|
+
size: size
|
|
61
|
+
});
|
|
62
|
+
}
|
|
56
63
|
}
|
|
57
64
|
var importFn = getIconImportFn(icon, size);
|
|
58
65
|
if (!importFn) {
|
|
59
66
|
return null;
|
|
60
67
|
}
|
|
61
68
|
var ImportedIcon = importIcon(importFn);
|
|
69
|
+
if (isCoreIcon(icon) && fg('platform_sl_icons_refactor')) {
|
|
70
|
+
switch (size) {
|
|
71
|
+
case SmartLinkSize.Small:
|
|
72
|
+
case SmartLinkSize.Medium:
|
|
73
|
+
var color;
|
|
74
|
+
if (icon === IconType.Error || icon === IconType.Forbidden) {
|
|
75
|
+
color = "var(--ds-icon-danger, #C9372C)";
|
|
76
|
+
}
|
|
77
|
+
return /*#__PURE__*/React.createElement(ImportedIcon, {
|
|
78
|
+
label: label,
|
|
79
|
+
testId: testId,
|
|
80
|
+
color: color
|
|
81
|
+
});
|
|
82
|
+
case SmartLinkSize.Large:
|
|
83
|
+
case SmartLinkSize.XLarge:
|
|
84
|
+
var appearance;
|
|
85
|
+
if (icon === IconType.Error || icon === IconType.Forbidden) {
|
|
86
|
+
appearance = 'redBold';
|
|
87
|
+
} else {
|
|
88
|
+
appearance = 'grayBold';
|
|
89
|
+
}
|
|
90
|
+
return /*#__PURE__*/React.createElement(IconTile, {
|
|
91
|
+
appearance: appearance,
|
|
92
|
+
icon: ImportedIcon,
|
|
93
|
+
size: transformSmartLinkSizeToIconTileSize(size),
|
|
94
|
+
label: label !== null && label !== void 0 ? label : ''
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
}
|
|
62
98
|
switch (icon) {
|
|
63
99
|
case IconType.Confluence:
|
|
64
100
|
return /*#__PURE__*/React.createElement(ConfluenceIcon, _extends({
|
|
@@ -78,6 +114,13 @@ var AtlaskitIcon = function AtlaskitIcon(_ref) {
|
|
|
78
114
|
} : undefined));
|
|
79
115
|
case IconType.Error:
|
|
80
116
|
case IconType.Forbidden:
|
|
117
|
+
if (fg('platform_sl_icons_refactor')) {
|
|
118
|
+
return /*#__PURE__*/React.createElement(ImportedIcon, {
|
|
119
|
+
label: label,
|
|
120
|
+
testId: testId,
|
|
121
|
+
size: size
|
|
122
|
+
});
|
|
123
|
+
}
|
|
81
124
|
return /*#__PURE__*/React.createElement(ImportedIcon, {
|
|
82
125
|
label: label,
|
|
83
126
|
testId: testId,
|
|
@@ -18,7 +18,6 @@ import { Box } from '@atlaskit/primitives/compiled';
|
|
|
18
18
|
import Tile from '@atlaskit/tile';
|
|
19
19
|
import { SmartLinkPosition, SmartLinkSize } from '../../../../../../constants';
|
|
20
20
|
import { isProfileType } from '../../../../../../utils';
|
|
21
|
-
import { isNewBlockcardUnauthorizedRefreshExperimentEnabled } from '../../../../../../utils/experiments';
|
|
22
21
|
import AtlaskitIcon from '../../../common/atlaskit-icon';
|
|
23
22
|
import ImageIcon from '../../../common/image-icon';
|
|
24
23
|
import { getIconWidth } from '../../../utils';
|
|
@@ -152,7 +151,7 @@ var IconElement = function IconElement(_ref) {
|
|
|
152
151
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
|
|
153
152
|
,
|
|
154
153
|
className: ax([styles.container, positionStyleMap[position], render && customRenderStyleMap[size], className])
|
|
155
|
-
}, isTiledIcon
|
|
154
|
+
}, isTiledIcon ? /*#__PURE__*/React.createElement(Tile, {
|
|
156
155
|
size: size,
|
|
157
156
|
hasBorder: true,
|
|
158
157
|
backgroundColor: "white",
|
|
@@ -9,7 +9,6 @@ import React, { useMemo } from 'react';
|
|
|
9
9
|
import Tooltip from '@atlaskit/tooltip';
|
|
10
10
|
import { SmartLinkSize, SmartLinkTheme } from '../../../../../../constants';
|
|
11
11
|
import { useMouseDownEvent } from '../../../../../../state/analytics/useLinkClicked';
|
|
12
|
-
import { isNewBlockcardUnauthorizedRefreshExperimentEnabled } from '../../../../../../utils/experiments';
|
|
13
12
|
import { hasWhiteSpace } from '../../../utils';
|
|
14
13
|
var DEFAULT_MAX_LINES = 2;
|
|
15
14
|
var MAXIMUM_MAX_LINES = 2;
|
|
@@ -111,7 +110,7 @@ var BaseLinkElement = function BaseLinkElement(_ref) {
|
|
|
111
110
|
}), text);
|
|
112
111
|
return /*#__PURE__*/React.createElement("span", {
|
|
113
112
|
className: ax(["_16jlkb7n _1o9zkb7n _i0dl1wug"])
|
|
114
|
-
}, hideTooltip || text === undefined ? anchor : withTooltip(anchor, url !== null && url !== void 0 && url.includes(text)
|
|
113
|
+
}, hideTooltip || text === undefined ? anchor : withTooltip(anchor, url !== null && url !== void 0 && url.includes(text) ? url : text, testId));
|
|
115
114
|
};
|
|
116
115
|
export default BaseLinkElement;
|
|
117
116
|
export var toLinkProps = function toLinkProps(text, url) {
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
2
|
import { extractSmartLinkProvider } from '@atlaskit/link-extractors';
|
|
5
3
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
4
|
import { InternalActionName, SmartLinkStatus } from '../../constants';
|
|
@@ -13,7 +11,6 @@ import { extractSmartLinkProviderIcon } from '../../extractors/flexible/icon/ext
|
|
|
13
11
|
import { extractHostName } from '../../extractors/flexible/utils';
|
|
14
12
|
import { messages } from '../../messages';
|
|
15
13
|
import { handleOnClick } from '../../utils';
|
|
16
|
-
import { isNewBlockcardUnauthorizedRefreshExperimentEnabled } from '../../utils/experiments';
|
|
17
14
|
import { getForbiddenJsonLd } from '../../utils/jsonld';
|
|
18
15
|
export var getContextByStatus = function getContextByStatus(params) {
|
|
19
16
|
var _response$meta;
|
|
@@ -37,7 +34,7 @@ export var getContextByStatus = function getContextByStatus(params) {
|
|
|
37
34
|
case SmartLinkStatus.Errored:
|
|
38
35
|
case SmartLinkStatus.Fallback:
|
|
39
36
|
default:
|
|
40
|
-
return
|
|
37
|
+
return {
|
|
41
38
|
url: url,
|
|
42
39
|
linkIcon: extractErrorIcon(response, status),
|
|
43
40
|
linkTitle: extractLinkTitle(status, url, response, onClick),
|
|
@@ -46,10 +43,9 @@ export var getContextByStatus = function getContextByStatus(params) {
|
|
|
46
43
|
actions: _defineProperty({}, InternalActionName.UnresolvedAction, getRetryOptions(url, status, response, params.onAuthorize)),
|
|
47
44
|
meta: {
|
|
48
45
|
accessType: response === null || response === void 0 || (_response$meta = response.meta) === null || _response$meta === void 0 || (_response$meta = _response$meta.requestAccess) === null || _response$meta === void 0 ? void 0 : _response$meta.accessType
|
|
49
|
-
}
|
|
50
|
-
}, isNewBlockcardUnauthorizedRefreshExperimentEnabled() && {
|
|
46
|
+
},
|
|
51
47
|
hostName: extractHostName(response)
|
|
52
|
-
}
|
|
48
|
+
};
|
|
53
49
|
}
|
|
54
50
|
};
|
|
55
51
|
var getForbiddenMessageKey = function getForbiddenMessageKey(meta) {
|
|
@@ -15,7 +15,7 @@ import LinkWarningModal from './LinkWarningModal';
|
|
|
15
15
|
import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
|
|
16
16
|
var PACKAGE_DATA = {
|
|
17
17
|
packageName: "@atlaskit/smart-card",
|
|
18
|
-
packageVersion: "44.3.
|
|
18
|
+
packageVersion: "44.3.9",
|
|
19
19
|
componentName: 'linkUrl'
|
|
20
20
|
};
|
|
21
21
|
var Anchor = withLinkClickedEvent('a');
|
|
@@ -6,7 +6,6 @@ import { Anchor } from '@atlaskit/primitives/compiled';
|
|
|
6
6
|
import { useAnalyticsEvents } from '../../common/analytics/generated/use-analytics-events';
|
|
7
7
|
import { CONTENT_URL_3P_ACCOUNT_AUTH, CONTENT_URL_SECURITY_AND_PERMISSIONS } from '../../constants';
|
|
8
8
|
import { messages } from '../../messages';
|
|
9
|
-
import { isNewBlockcardUnauthorizedRefreshExperimentEnabled } from '../../utils/experiments';
|
|
10
9
|
/**
|
|
11
10
|
* This component is used in unauthorized views of a smart link.
|
|
12
11
|
* It represents the main text that provides a user with information on how to connect their account
|
|
@@ -22,12 +21,12 @@ var UnauthorisedViewContent = function UnauthorisedViewContent(_ref) {
|
|
|
22
21
|
fireEvent('ui.button.clicked.learnMore', {});
|
|
23
22
|
}, [fireEvent]);
|
|
24
23
|
var learnMoreMessage = isProductIntegrationSupported ? fg('product-terminology-refresh') ? messages.learn_more_about_connecting_account_appify : messages.learn_more_about_connecting_account : messages.learn_more_about_smart_links;
|
|
25
|
-
var unauthorizedAccountDescriptionMessage =
|
|
24
|
+
var unauthorizedAccountDescriptionMessage = messages.learn_more_about_connecting_account_experiment_shorter;
|
|
26
25
|
return /*#__PURE__*/React.createElement(React.Fragment, null, providerName ? /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, unauthorizedAccountDescriptionMessage, {
|
|
27
26
|
values: {
|
|
28
27
|
context: providerName
|
|
29
28
|
}
|
|
30
|
-
})) : /*#__PURE__*/React.createElement(FormattedMessage, fg('product-terminology-refresh') ? messages.connect_unauthorised_account_description_no_provider_appify : messages.connect_unauthorised_account_description_no_provider),
|
|
29
|
+
})) : /*#__PURE__*/React.createElement(FormattedMessage, fg('product-terminology-refresh') ? messages.connect_unauthorised_account_description_no_provider_appify : messages.connect_unauthorised_account_description_no_provider), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement(Anchor, {
|
|
31
30
|
href: isProductIntegrationSupported ? CONTENT_URL_3P_ACCOUNT_AUTH : CONTENT_URL_SECURITY_AND_PERMISSIONS,
|
|
32
31
|
target: "_blank",
|
|
33
32
|
testId: "".concat(testId, "-learn-more"),
|