@atlaskit/smart-card 34.3.0 → 34.5.0
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 +24 -0
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/utils/index.js +204 -264
- package/dist/cjs/view/FlexibleCard/components/blocks/element-group/ElementGroupOld.js +115 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/element-group/index.compiled.css +46 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/element-group/index.js +58 -81
- package/dist/cjs/view/FlexibleCard/components/blocks/metadata-block/MetadataBlockOld.js +85 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/metadata-block/index.compiled.css +10 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/metadata-block/index.js +39 -29
- package/dist/cjs/view/FlexibleCard/components/blocks/title-block/TitleBlockOld.js +135 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/title-block/errored/TitleBlockErroredViewOld.js +108 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/title-block/errored/index.js +10 -57
- package/dist/cjs/view/FlexibleCard/components/blocks/title-block/index.compiled.css +2 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/title-block/index.js +38 -37
- package/dist/cjs/view/FlexibleCard/components/blocks/title-block/resolved/TitleBlockResolvedViewOld.js +58 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/title-block/resolved/index.compiled.css +1 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/title-block/resolved/index.js +24 -16
- package/dist/cjs/view/FlexibleCard/components/blocks/title-block/resolving/TitleBlockResolvingViewOld.js +48 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/title-block/resolving/index.compiled.css +55 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/title-block/resolving/index.js +23 -19
- package/dist/cjs/view/FlexibleCard/components/common/atlaskit-icon/index.js +14 -9
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/cjs/view/RelatedLinksModal/components/RelatedLinksBaseModal.js +15 -14
- package/dist/cjs/view/RelatedLinksModal/components/RelatedLinksBaseModalOld.js +63 -0
- package/dist/cjs/view/RelatedLinksModal/components/related-link-item/RelatedLinkItemOld.js +61 -0
- package/dist/cjs/view/RelatedLinksModal/components/related-link-item/index.js +20 -19
- package/dist/cjs/view/RelatedLinksModal/components/related-links-list/RelatedLinksListOld.js +51 -0
- package/dist/cjs/view/RelatedLinksModal/components/related-links-list/index.js +24 -24
- package/dist/cjs/view/RelatedLinksModal/views/errored/error-svg/ErrorSvgOld.js +66 -0
- package/dist/cjs/view/RelatedLinksModal/views/errored/error-svg/index.compiled.css +6 -0
- package/dist/cjs/view/RelatedLinksModal/views/errored/error-svg/index.js +31 -25
- package/dist/cjs/view/RelatedLinksModal/views/resolved/ResolvedOld.js +45 -0
- package/dist/cjs/view/RelatedLinksModal/views/resolved/index.js +16 -14
- package/dist/cjs/view/RelatedLinksModal/views/unavailable/unavailable-svg/UnavailableSvgOld.js +141 -0
- package/dist/cjs/view/RelatedLinksModal/views/unavailable/unavailable-svg/index.compiled.css +6 -0
- package/dist/cjs/view/RelatedLinksModal/views/unavailable/unavailable-svg/index.js +56 -50
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/utils/index.js +74 -56
- package/dist/es2019/view/FlexibleCard/components/blocks/element-group/ElementGroupOld.js +113 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/element-group/index.compiled.css +46 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/element-group/index.js +60 -95
- package/dist/es2019/view/FlexibleCard/components/blocks/metadata-block/MetadataBlockOld.js +75 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/metadata-block/index.compiled.css +10 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/metadata-block/index.js +29 -24
- package/dist/es2019/view/FlexibleCard/components/blocks/title-block/TitleBlockOld.js +118 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/title-block/errored/TitleBlockErroredViewOld.js +102 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/title-block/errored/index.js +11 -57
- package/dist/es2019/view/FlexibleCard/components/blocks/title-block/index.compiled.css +2 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/title-block/index.js +35 -36
- package/dist/es2019/view/FlexibleCard/components/blocks/title-block/resolved/TitleBlockResolvedViewOld.js +50 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/title-block/resolved/index.compiled.css +1 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/title-block/resolved/index.js +15 -11
- package/dist/es2019/view/FlexibleCard/components/blocks/title-block/resolving/TitleBlockResolvingViewOld.js +42 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/title-block/resolving/index.compiled.css +55 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/title-block/resolving/index.js +20 -18
- package/dist/es2019/view/FlexibleCard/components/common/atlaskit-icon/index.js +9 -2
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/es2019/view/RelatedLinksModal/components/RelatedLinksBaseModal.js +15 -14
- package/dist/es2019/view/RelatedLinksModal/components/RelatedLinksBaseModalOld.js +55 -0
- package/dist/es2019/view/RelatedLinksModal/components/related-link-item/RelatedLinkItemOld.js +55 -0
- package/dist/es2019/view/RelatedLinksModal/components/related-link-item/index.js +19 -18
- package/dist/es2019/view/RelatedLinksModal/components/related-links-list/RelatedLinksListOld.js +42 -0
- package/dist/es2019/view/RelatedLinksModal/components/related-links-list/index.js +23 -22
- package/dist/es2019/view/RelatedLinksModal/views/errored/error-svg/ErrorSvgOld.js +58 -0
- package/dist/es2019/view/RelatedLinksModal/views/errored/error-svg/index.compiled.css +6 -0
- package/dist/es2019/view/RelatedLinksModal/views/errored/error-svg/index.js +28 -24
- package/dist/es2019/view/RelatedLinksModal/views/resolved/ResolvedOld.js +36 -0
- package/dist/es2019/view/RelatedLinksModal/views/resolved/index.js +16 -13
- package/dist/es2019/view/RelatedLinksModal/views/unavailable/unavailable-svg/UnavailableSvgOld.js +133 -0
- package/dist/es2019/view/RelatedLinksModal/views/unavailable/unavailable-svg/index.compiled.css +6 -0
- package/dist/es2019/view/RelatedLinksModal/views/unavailable/unavailable-svg/index.js +53 -49
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/utils/index.js +119 -163
- package/dist/esm/view/FlexibleCard/components/blocks/element-group/ElementGroupOld.js +108 -0
- package/dist/esm/view/FlexibleCard/components/blocks/element-group/index.compiled.css +46 -0
- package/dist/esm/view/FlexibleCard/components/blocks/element-group/index.js +54 -79
- package/dist/esm/view/FlexibleCard/components/blocks/metadata-block/MetadataBlockOld.js +80 -0
- package/dist/esm/view/FlexibleCard/components/blocks/metadata-block/index.compiled.css +10 -0
- package/dist/esm/view/FlexibleCard/components/blocks/metadata-block/index.js +29 -24
- package/dist/esm/view/FlexibleCard/components/blocks/title-block/TitleBlockOld.js +127 -0
- package/dist/esm/view/FlexibleCard/components/blocks/title-block/errored/TitleBlockErroredViewOld.js +101 -0
- package/dist/esm/view/FlexibleCard/components/blocks/title-block/errored/index.js +11 -56
- package/dist/esm/view/FlexibleCard/components/blocks/title-block/index.compiled.css +2 -0
- package/dist/esm/view/FlexibleCard/components/blocks/title-block/index.js +36 -37
- package/dist/esm/view/FlexibleCard/components/blocks/title-block/resolved/TitleBlockResolvedViewOld.js +53 -0
- package/dist/esm/view/FlexibleCard/components/blocks/title-block/resolved/index.compiled.css +1 -0
- package/dist/esm/view/FlexibleCard/components/blocks/title-block/resolved/index.js +15 -11
- package/dist/esm/view/FlexibleCard/components/blocks/title-block/resolving/TitleBlockResolvingViewOld.js +42 -0
- package/dist/esm/view/FlexibleCard/components/blocks/title-block/resolving/index.compiled.css +55 -0
- package/dist/esm/view/FlexibleCard/components/blocks/title-block/resolving/index.js +20 -18
- package/dist/esm/view/FlexibleCard/components/common/atlaskit-icon/index.js +14 -9
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/esm/view/RelatedLinksModal/components/RelatedLinksBaseModal.js +15 -14
- package/dist/esm/view/RelatedLinksModal/components/RelatedLinksBaseModalOld.js +53 -0
- package/dist/esm/view/RelatedLinksModal/components/related-link-item/RelatedLinkItemOld.js +54 -0
- package/dist/esm/view/RelatedLinksModal/components/related-link-item/index.js +19 -18
- package/dist/esm/view/RelatedLinksModal/components/related-links-list/RelatedLinksListOld.js +43 -0
- package/dist/esm/view/RelatedLinksModal/components/related-links-list/index.js +24 -23
- package/dist/esm/view/RelatedLinksModal/views/errored/error-svg/ErrorSvgOld.js +58 -0
- package/dist/esm/view/RelatedLinksModal/views/errored/error-svg/index.compiled.css +6 -0
- package/dist/esm/view/RelatedLinksModal/views/errored/error-svg/index.js +28 -24
- package/dist/esm/view/RelatedLinksModal/views/resolved/ResolvedOld.js +37 -0
- package/dist/esm/view/RelatedLinksModal/views/resolved/index.js +16 -13
- package/dist/esm/view/RelatedLinksModal/views/unavailable/unavailable-svg/UnavailableSvgOld.js +133 -0
- package/dist/esm/view/RelatedLinksModal/views/unavailable/unavailable-svg/index.compiled.css +6 -0
- package/dist/esm/view/RelatedLinksModal/views/unavailable/unavailable-svg/index.js +53 -49
- package/dist/types/utils/index.d.ts +4 -0
- package/dist/types/view/FlexibleCard/components/blocks/element-group/ElementGroupOld.d.ts +17 -0
- package/dist/types/view/FlexibleCard/components/blocks/element-group/index.d.ts +5 -9
- package/dist/types/view/FlexibleCard/components/blocks/element-group/types.d.ts +1 -0
- package/dist/types/view/FlexibleCard/components/blocks/metadata-block/MetadataBlockOld.d.ts +11 -0
- package/dist/types/view/FlexibleCard/components/blocks/metadata-block/index.d.ts +2 -9
- package/dist/types/view/FlexibleCard/components/blocks/title-block/TitleBlockOld.d.ts +16 -0
- package/dist/types/view/FlexibleCard/components/blocks/title-block/errored/TitleBlockErroredViewOld.d.ts +15 -0
- package/dist/types/view/FlexibleCard/components/blocks/title-block/errored/index.d.ts +5 -7
- package/dist/types/view/FlexibleCard/components/blocks/title-block/index.d.ts +1 -13
- package/dist/types/view/FlexibleCard/components/blocks/title-block/resolved/TitleBlockResolvedViewOld.d.ts +9 -0
- package/dist/types/view/FlexibleCard/components/blocks/title-block/resolved/index.d.ts +8 -2
- package/dist/types/view/FlexibleCard/components/blocks/title-block/resolving/TitleBlockResolvingViewOld.d.ts +14 -0
- package/dist/types/view/FlexibleCard/components/blocks/title-block/resolving/index.d.ts +5 -3
- package/dist/types/view/FlexibleCard/components/blocks/types.d.ts +1 -0
- package/dist/types/view/RelatedLinksModal/components/RelatedLinksBaseModal.d.ts +3 -7
- package/dist/types/view/RelatedLinksModal/components/RelatedLinksBaseModalOld.d.ts +8 -0
- package/dist/types/view/RelatedLinksModal/components/related-link-item/RelatedLinkItemOld.d.ts +8 -0
- package/dist/types/view/RelatedLinksModal/components/related-link-item/index.d.ts +3 -7
- package/dist/types/view/RelatedLinksModal/components/related-links-list/RelatedLinksListOld.d.ts +8 -0
- package/dist/types/view/RelatedLinksModal/components/related-links-list/index.d.ts +3 -7
- package/dist/types/view/RelatedLinksModal/views/errored/error-svg/ErrorSvgOld.d.ts +6 -0
- package/dist/types/view/RelatedLinksModal/views/errored/error-svg/index.d.ts +2 -6
- package/dist/types/view/RelatedLinksModal/views/resolved/ResolvedOld.d.ts +8 -0
- package/dist/types/view/RelatedLinksModal/views/resolved/index.d.ts +3 -7
- package/dist/types/view/RelatedLinksModal/views/unavailable/unavailable-svg/UnavailableSvgOld.d.ts +6 -0
- package/dist/types/view/RelatedLinksModal/views/unavailable/unavailable-svg/index.d.ts +2 -6
- package/dist/types-ts4.5/utils/index.d.ts +4 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/element-group/ElementGroupOld.d.ts +17 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/element-group/index.d.ts +5 -9
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/element-group/types.d.ts +1 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/metadata-block/MetadataBlockOld.d.ts +11 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/metadata-block/index.d.ts +2 -9
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/title-block/TitleBlockOld.d.ts +16 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/title-block/errored/TitleBlockErroredViewOld.d.ts +15 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/title-block/errored/index.d.ts +5 -7
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/title-block/index.d.ts +1 -13
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/title-block/resolved/TitleBlockResolvedViewOld.d.ts +9 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/title-block/resolved/index.d.ts +8 -2
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/title-block/resolving/TitleBlockResolvingViewOld.d.ts +14 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/title-block/resolving/index.d.ts +5 -3
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/types.d.ts +1 -0
- package/dist/types-ts4.5/view/RelatedLinksModal/components/RelatedLinksBaseModal.d.ts +3 -7
- package/dist/types-ts4.5/view/RelatedLinksModal/components/RelatedLinksBaseModalOld.d.ts +8 -0
- package/dist/types-ts4.5/view/RelatedLinksModal/components/related-link-item/RelatedLinkItemOld.d.ts +8 -0
- package/dist/types-ts4.5/view/RelatedLinksModal/components/related-link-item/index.d.ts +3 -7
- package/dist/types-ts4.5/view/RelatedLinksModal/components/related-links-list/RelatedLinksListOld.d.ts +8 -0
- package/dist/types-ts4.5/view/RelatedLinksModal/components/related-links-list/index.d.ts +3 -7
- package/dist/types-ts4.5/view/RelatedLinksModal/views/errored/error-svg/ErrorSvgOld.d.ts +6 -0
- package/dist/types-ts4.5/view/RelatedLinksModal/views/errored/error-svg/index.d.ts +2 -6
- package/dist/types-ts4.5/view/RelatedLinksModal/views/resolved/ResolvedOld.d.ts +8 -0
- package/dist/types-ts4.5/view/RelatedLinksModal/views/resolved/index.d.ts +3 -7
- package/dist/types-ts4.5/view/RelatedLinksModal/views/unavailable/unavailable-svg/UnavailableSvgOld.d.ts +6 -0
- package/dist/types-ts4.5/view/RelatedLinksModal/views/unavailable/unavailable-svg/index.d.ts +2 -6
- package/package.json +5 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 34.5.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#99391](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/99391)
|
|
8
|
+
[`0ef7aea2187eb`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0ef7aea2187eb) -
|
|
9
|
+
[ux] Allow shift key to be considered a special key to allow Chromium-based browsers behave
|
|
10
|
+
natively when users click on smart links while holding the shift key.
|
|
11
|
+
|
|
12
|
+
## 34.4.0
|
|
13
|
+
|
|
14
|
+
### Minor Changes
|
|
15
|
+
|
|
16
|
+
- [#101678](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/101678)
|
|
17
|
+
[`b92bb44488ce7`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b92bb44488ce7) -
|
|
18
|
+
[ux] Migrating smart-card `RelatedLinksModal` and `FlexibleCard/TitleBlock` to use
|
|
19
|
+
`@compiled/react` instead of `@emotion/react`
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- [#103129](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/103129)
|
|
24
|
+
[`32b48493c0387`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/32b48493c0387) -
|
|
25
|
+
[ux] Update lazy loaded icons for block cards
|
|
26
|
+
|
|
3
27
|
## 34.3.0
|
|
4
28
|
|
|
5
29
|
### Minor Changes
|
|
@@ -11,7 +11,7 @@ var ANALYTICS_CHANNEL = exports.ANALYTICS_CHANNEL = 'media';
|
|
|
11
11
|
var context = exports.context = {
|
|
12
12
|
componentName: 'smart-cards',
|
|
13
13
|
packageName: "@atlaskit/smart-card",
|
|
14
|
-
packageVersion: "34.
|
|
14
|
+
packageVersion: "34.5.0"
|
|
15
15
|
};
|
|
16
16
|
var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
17
17
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
package/dist/cjs/utils/index.js
CHANGED
|
@@ -5,14 +5,17 @@ var _typeof = require("@babel/runtime/helpers/typeof");
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.sleep = exports.openUrl = exports.isSpecialKey = exports.isSpecialEvent = exports.isSpecialClick = exports.isIntersectionObserverSupported = exports.isIframe = exports.importWithRetry = exports.handleOnClick = exports.getPreviewUrlWithTheme = exports.getLabelForFileType = exports.getIframeSandboxAttribute = exports.getIconForFileType = exports.downloadUrl = void 0;
|
|
8
|
+
exports.sleep = exports.openUrl = exports.isSpecialKey = exports.isSpecialEvent = exports.isSpecialClick = exports.isIntersectionObserverSupported = exports.isIframe = exports.importWithRetry = exports.handleOnClick = exports.getPreviewUrlWithTheme = exports.getLazyIcons = exports.getLabelForFileType = exports.getIframeSandboxAttribute = exports.getIconForFileType = exports.downloadUrl = void 0;
|
|
9
9
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
10
10
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
11
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
11
12
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
12
13
|
var _react = _interopRequireDefault(require("react"));
|
|
13
14
|
var _reactLoadable = _interopRequireDefault(require("react-loadable"));
|
|
14
15
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
15
16
|
var _tokens = require("@atlaskit/tokens");
|
|
17
|
+
var _constants = require("../constants");
|
|
18
|
+
var _extractFileFormatIcon = _interopRequireDefault(require("../extractors/flexible/icon/extract-file-formatIcon"));
|
|
16
19
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
17
20
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
18
21
|
var isSpecialEvent = exports.isSpecialEvent = function isSpecialEvent(evt) {
|
|
@@ -26,13 +29,15 @@ var isIframe = exports.isIframe = function isIframe() {
|
|
|
26
29
|
* Meta key = cmd on mac, windows key on windows
|
|
27
30
|
* Ctrl key on mac by default triggers a right click instead of left click
|
|
28
31
|
* Ctrl key on Windows has the same behaviour of cmd key of mac (open in new tab)
|
|
32
|
+
* Shift key is also a "special" key because the default behavior of Chromium-based browsers is to open the
|
|
33
|
+
* link in a new window; Arc browser has custom logic to show links in its "peek" window when shift is held.
|
|
29
34
|
*
|
|
30
35
|
* `isSpecialKey` on a mouse event on mac with default behaviour should be equivalent to opening in new tab
|
|
31
36
|
* On Windows it will be equivalent to opening a new tab, unless its the Window key that is held
|
|
32
37
|
* in which case typically only a standard clickthrough will occur, this is likely a small portion of events
|
|
33
38
|
*/
|
|
34
39
|
var isSpecialKey = exports.isSpecialKey = function isSpecialKey(event) {
|
|
35
|
-
return event.metaKey || event.ctrlKey;
|
|
40
|
+
return (0, _platformFeatureFlags.fg)('platform-smart-card-shift-key') ? event.metaKey || event.ctrlKey || event.shiftKey : event.metaKey || event.ctrlKey;
|
|
36
41
|
};
|
|
37
42
|
var isSpecialClick = exports.isSpecialClick = function isSpecialClick(event) {
|
|
38
43
|
return event.button === 1;
|
|
@@ -41,7 +46,7 @@ var getIconForFileType = exports.getIconForFileType = function getIconForFileTyp
|
|
|
41
46
|
if (!fileMimeType) {
|
|
42
47
|
return;
|
|
43
48
|
}
|
|
44
|
-
var icon = (0, _platformFeatureFlags.fg)('platform-smart-card-icon-migration') ? getTypeToIconMap(
|
|
49
|
+
var icon = (0, _platformFeatureFlags.fg)('platform-smart-card-icon-migration') ? getTypeToIconMap(fileMimeType.toLowerCase()) : typeToIcon[fileMimeType.toLowerCase()];
|
|
45
50
|
if (!icon) {
|
|
46
51
|
return;
|
|
47
52
|
}
|
|
@@ -68,7 +73,7 @@ var getIconForFileType = exports.getIconForFileType = function getIconForFileTyp
|
|
|
68
73
|
});
|
|
69
74
|
};
|
|
70
75
|
var getLabelForFileType = exports.getLabelForFileType = function getLabelForFileType(fileMimeType) {
|
|
71
|
-
var icon = (0, _platformFeatureFlags.fg)('platform-smart-card-icon-migration') ? getTypeToIconMap(
|
|
76
|
+
var icon = (0, _platformFeatureFlags.fg)('platform-smart-card-icon-migration') ? getTypeToIconMap(fileMimeType.toLowerCase()) : typeToIcon[fileMimeType.toLowerCase()];
|
|
72
77
|
if (!icon) {
|
|
73
78
|
return;
|
|
74
79
|
}
|
|
@@ -329,260 +334,195 @@ var typeToIcon = {
|
|
|
329
334
|
});
|
|
330
335
|
}]
|
|
331
336
|
};
|
|
332
|
-
var
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
return
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
}
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
return
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
}
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
return
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
}
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
return
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
}
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
return
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
}
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
return
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
}
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
return
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
}
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
return
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
}
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
return
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
return _interopRequireWildcard(require('@atlaskit/icon-file-type/glyph/archive/16'));
|
|
522
|
-
});
|
|
523
|
-
}],
|
|
524
|
-
'application/x-gtar': ['Archive', function () {
|
|
525
|
-
return Promise.resolve().then(function () {
|
|
526
|
-
return _interopRequireWildcard(require('@atlaskit/icon-file-type/glyph/archive/16'));
|
|
527
|
-
});
|
|
528
|
-
}],
|
|
529
|
-
'application/x-7z-compressed': ['Archive', function () {
|
|
530
|
-
return Promise.resolve().then(function () {
|
|
531
|
-
return _interopRequireWildcard(require('@atlaskit/icon-file-type/glyph/archive/16'));
|
|
532
|
-
});
|
|
533
|
-
}],
|
|
534
|
-
'application/x-apple-diskimage': ['Archive', function () {
|
|
535
|
-
return Promise.resolve().then(function () {
|
|
536
|
-
return _interopRequireWildcard(require('@atlaskit/icon-file-type/glyph/archive/16'));
|
|
537
|
-
});
|
|
538
|
-
}],
|
|
539
|
-
'application/vnd.rar': ['Archive', function () {
|
|
540
|
-
return Promise.resolve().then(function () {
|
|
541
|
-
return _interopRequireWildcard(require('@atlaskit/icon-file-type/glyph/archive/16'));
|
|
542
|
-
});
|
|
543
|
-
}],
|
|
544
|
-
'application/dmg': ['Executable', function () {
|
|
545
|
-
return Promise.resolve().then(function () {
|
|
546
|
-
return _interopRequireWildcard(require('@atlaskit/icon-file-type/glyph/executable/16'));
|
|
547
|
-
});
|
|
548
|
-
}],
|
|
549
|
-
'text/css': ['Source Code', function () {
|
|
550
|
-
return Promise.resolve().then(function () {
|
|
551
|
-
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_angle-brackets-icon" */'../common/ui/icons/angle-brackets-icon'));
|
|
552
|
-
});
|
|
553
|
-
}],
|
|
554
|
-
'text/html': ['Source Code', function () {
|
|
555
|
-
return Promise.resolve().then(function () {
|
|
556
|
-
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_angle-brackets-icon" */'../common/ui/icons/angle-brackets-icon'));
|
|
557
|
-
});
|
|
558
|
-
}],
|
|
559
|
-
'application/javascript': ['Source Code', function () {
|
|
560
|
-
return Promise.resolve().then(function () {
|
|
561
|
-
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_angle-brackets-icon" */'../common/ui/icons/angle-brackets-icon'));
|
|
562
|
-
});
|
|
563
|
-
}],
|
|
564
|
-
'application/octet-stream': ['Binary file', function () {
|
|
565
|
-
return Promise.resolve().then(function () {
|
|
566
|
-
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_file-icon" */'../common/ui/icons/file-icon'));
|
|
567
|
-
});
|
|
568
|
-
}],
|
|
569
|
-
'application/invision.prototype': ['Prototype', function () {
|
|
570
|
-
return Promise.resolve().then(function () {
|
|
571
|
-
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_file-icon" */'../common/ui/icons/file-icon'));
|
|
572
|
-
});
|
|
573
|
-
}],
|
|
574
|
-
// TODO: Figure a way to detect those
|
|
575
|
-
'application/sketch': ['Sketch', function () {
|
|
576
|
-
return Promise.resolve().then(function () {
|
|
577
|
-
return _interopRequireWildcard(require('@atlaskit/icon-file-type/glyph/sketch/16'));
|
|
578
|
-
});
|
|
579
|
-
}],
|
|
580
|
-
folder: ['Folder', function () {
|
|
581
|
-
return Promise.resolve().then(function () {
|
|
582
|
-
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_folder-icon" */'../common/ui/icons/folder-icon'));
|
|
583
|
-
});
|
|
584
|
-
}]
|
|
585
|
-
};
|
|
337
|
+
var getLazyIcons = exports.getLazyIcons = function getLazyIcons() {
|
|
338
|
+
var _ref3;
|
|
339
|
+
return _ref3 = {}, (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)(_ref3, _constants.IconType.Document, function () {
|
|
340
|
+
return Promise.resolve().then(function () {
|
|
341
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_page-icon" */'../common/ui/icons/page-icon'));
|
|
342
|
+
});
|
|
343
|
+
}), _constants.IconType.Blog, function () {
|
|
344
|
+
return Promise.resolve().then(function () {
|
|
345
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_glyphBlock" */'@atlaskit/icon-object/glyph/blog/16'));
|
|
346
|
+
});
|
|
347
|
+
}), _constants.IconType.Audio, function () {
|
|
348
|
+
return Promise.resolve().then(function () {
|
|
349
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_audio-icon" */'../common/ui/icons/audio-icon'));
|
|
350
|
+
});
|
|
351
|
+
}), _constants.IconType.Code, function () {
|
|
352
|
+
return Promise.resolve().then(function () {
|
|
353
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_angle-brackets-icon" */'../common/ui/icons/angle-brackets-icon'));
|
|
354
|
+
});
|
|
355
|
+
}), _constants.IconType.File, function () {
|
|
356
|
+
return Promise.resolve().then(function () {
|
|
357
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_file-icon" */'../common/ui/icons/file-icon'));
|
|
358
|
+
});
|
|
359
|
+
}), _constants.IconType.Folder, function () {
|
|
360
|
+
return Promise.resolve().then(function () {
|
|
361
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_folder-icon" */'../common/ui/icons/folder-icon'));
|
|
362
|
+
});
|
|
363
|
+
}), _constants.IconType.Generic, function () {
|
|
364
|
+
return Promise.resolve().then(function () {
|
|
365
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_file-icon" */'../common/ui/icons/file-icon'));
|
|
366
|
+
});
|
|
367
|
+
}), _constants.IconType.Image, function () {
|
|
368
|
+
return Promise.resolve().then(function () {
|
|
369
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_image-icon" */'../common/ui/icons/image-icon'));
|
|
370
|
+
});
|
|
371
|
+
}), _constants.IconType.Presentation, function () {
|
|
372
|
+
return Promise.resolve().then(function () {
|
|
373
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_chart-bar-icon" */'../common/ui/icons/chart-bar-icon'));
|
|
374
|
+
});
|
|
375
|
+
}), _constants.IconType.Spreadsheet, function () {
|
|
376
|
+
return Promise.resolve().then(function () {
|
|
377
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_list-bullet-icon" */'../common/ui/icons/list-bullet-icon'));
|
|
378
|
+
});
|
|
379
|
+
}), (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)(_ref3, _constants.IconType.Video, function () {
|
|
380
|
+
return Promise.resolve().then(function () {
|
|
381
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_video-icon" */'../common/ui/icons/video-icon'));
|
|
382
|
+
});
|
|
383
|
+
}), _constants.IconType.Project, function () {
|
|
384
|
+
return Promise.resolve().then(function () {
|
|
385
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_glyphProject" */'@atlaskit/icon/core/migration/people-group'));
|
|
386
|
+
});
|
|
387
|
+
}), _constants.IconType.Template, function () {
|
|
388
|
+
return Promise.resolve().then(function () {
|
|
389
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_glyphTemplate" */'@atlaskit/icon/core/migration/file--document-filled'));
|
|
390
|
+
});
|
|
391
|
+
}), _constants.IconType.Forbidden, function () {
|
|
392
|
+
return Promise.resolve().then(function () {
|
|
393
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_glyphForbidden" */'@atlaskit/icon/core/migration/lock-locked--lock-filled'));
|
|
394
|
+
});
|
|
395
|
+
}), _constants.IconType.Default, function () {
|
|
396
|
+
return Promise.resolve().then(function () {
|
|
397
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_glyphDefault" */'@atlaskit/icon/core/migration/link'));
|
|
398
|
+
});
|
|
399
|
+
}), _constants.IconType.Archive, function () {
|
|
400
|
+
return Promise.resolve().then(function () {
|
|
401
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "glyphArchive" */'@atlaskit/icon-file-type/glyph/archive/16'));
|
|
402
|
+
});
|
|
403
|
+
}), _constants.IconType.Executable, function () {
|
|
404
|
+
return Promise.resolve().then(function () {
|
|
405
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "glyphExecutable" */'@atlaskit/icon-file-type/glyph/executable/16'));
|
|
406
|
+
});
|
|
407
|
+
}), _constants.IconType.GIF, function () {
|
|
408
|
+
return Promise.resolve().then(function () {
|
|
409
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "glyphGIF" */'@atlaskit/icon-file-type/glyph/gif/16'));
|
|
410
|
+
});
|
|
411
|
+
}), _constants.IconType.GoogleDocs, function () {
|
|
412
|
+
return Promise.resolve().then(function () {
|
|
413
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "glyphGoogleDocs" */'@atlaskit/icon-file-type/glyph/google-doc/16'));
|
|
414
|
+
});
|
|
415
|
+
}), _constants.IconType.GoogleForms, function () {
|
|
416
|
+
return Promise.resolve().then(function () {
|
|
417
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "glyphGoogleForms" */'@atlaskit/icon-file-type/glyph/google-form/16'));
|
|
418
|
+
});
|
|
419
|
+
}), (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)(_ref3, _constants.IconType.GoogleSheets, function () {
|
|
420
|
+
return Promise.resolve().then(function () {
|
|
421
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "glyphGoogleSheets" */'@atlaskit/icon-file-type/glyph/google-sheet/16'));
|
|
422
|
+
});
|
|
423
|
+
}), _constants.IconType.GoogleSlides, function () {
|
|
424
|
+
return Promise.resolve().then(function () {
|
|
425
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "glyphGoogleSlides" */'@atlaskit/icon-file-type/glyph/google-slide/16'));
|
|
426
|
+
});
|
|
427
|
+
}), _constants.IconType.MSExcel, function () {
|
|
428
|
+
return Promise.resolve().then(function () {
|
|
429
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "glyphMSExcel" */'@atlaskit/icon-file-type/glyph/excel-spreadsheet/16'));
|
|
430
|
+
});
|
|
431
|
+
}), _constants.IconType.MSPowerpoint, function () {
|
|
432
|
+
return Promise.resolve().then(function () {
|
|
433
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "glyphMSPowerpoint" */'@atlaskit/icon-file-type/glyph/powerpoint-presentation/16'));
|
|
434
|
+
});
|
|
435
|
+
}), _constants.IconType.MSWord, function () {
|
|
436
|
+
return Promise.resolve().then(function () {
|
|
437
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "glyphMSWord" */'@atlaskit/icon-file-type/glyph/word-document/16'));
|
|
438
|
+
});
|
|
439
|
+
}), _constants.IconType.PDF, function () {
|
|
440
|
+
return Promise.resolve().then(function () {
|
|
441
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "glyphPDF" */'@atlaskit/icon-file-type/glyph/pdf-document/16'));
|
|
442
|
+
});
|
|
443
|
+
}), _constants.IconType.Sketch, function () {
|
|
444
|
+
return Promise.resolve().then(function () {
|
|
445
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "glyphSketch" */'@atlaskit/icon-file-type/glyph/sketch/16'));
|
|
446
|
+
});
|
|
447
|
+
}), _constants.IconType.Branch, function () {
|
|
448
|
+
return Promise.resolve().then(function () {
|
|
449
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "glyphBranch" */'@atlaskit/icon-object/glyph/branch/16'));
|
|
450
|
+
});
|
|
451
|
+
}), _constants.IconType.Commit, function () {
|
|
452
|
+
return Promise.resolve().then(function () {
|
|
453
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "glyphCommit" */'@atlaskit/icon-object/glyph/commit/16'));
|
|
454
|
+
});
|
|
455
|
+
}), _constants.IconType.PullRequest, function () {
|
|
456
|
+
return Promise.resolve().then(function () {
|
|
457
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "glyphPullRequest" */'@atlaskit/icon-object/glyph/pull-request/16'));
|
|
458
|
+
});
|
|
459
|
+
}), (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)(_ref3, _constants.IconType.Repo, function () {
|
|
460
|
+
return Promise.resolve().then(function () {
|
|
461
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "glyphRepo" */'@atlaskit/icon-object/glyph/code/16'));
|
|
462
|
+
});
|
|
463
|
+
}), _constants.IconType.Bug, function () {
|
|
464
|
+
return Promise.resolve().then(function () {
|
|
465
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "glyphBug" */'@atlaskit/icon-object/glyph/bug/16'));
|
|
466
|
+
});
|
|
467
|
+
}), _constants.IconType.Change, function () {
|
|
468
|
+
return Promise.resolve().then(function () {
|
|
469
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "glyphChange" */'@atlaskit/icon-object/glyph/changes/16'));
|
|
470
|
+
});
|
|
471
|
+
}), _constants.IconType.Epic, function () {
|
|
472
|
+
return Promise.resolve().then(function () {
|
|
473
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "glyphEpic" */'@atlaskit/icon-object/glyph/epic/16'));
|
|
474
|
+
});
|
|
475
|
+
}), _constants.IconType.Incident, function () {
|
|
476
|
+
return Promise.resolve().then(function () {
|
|
477
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "glyphIncident" */'@atlaskit/icon-object/glyph/incident/16'));
|
|
478
|
+
});
|
|
479
|
+
}), _constants.IconType.Problem, function () {
|
|
480
|
+
return Promise.resolve().then(function () {
|
|
481
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "glyphProblem" */'@atlaskit/icon-object/glyph/problem/16'));
|
|
482
|
+
});
|
|
483
|
+
}), _constants.IconType.ServiceRequest, function () {
|
|
484
|
+
return Promise.resolve().then(function () {
|
|
485
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "glyphServiceRequest" */'@atlaskit/icon-object/glyph/issue/16'));
|
|
486
|
+
});
|
|
487
|
+
}), _constants.IconType.Story, function () {
|
|
488
|
+
return Promise.resolve().then(function () {
|
|
489
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "glyphStory" */'@atlaskit/icon-object/glyph/story/16'));
|
|
490
|
+
});
|
|
491
|
+
}), _constants.IconType.SubTask, function () {
|
|
492
|
+
return Promise.resolve().then(function () {
|
|
493
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "glyphSubTask" */'@atlaskit/icon-object/glyph/subtask/16'));
|
|
494
|
+
});
|
|
495
|
+
}), _constants.IconType.Task, function () {
|
|
496
|
+
return Promise.resolve().then(function () {
|
|
497
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "glyphTask" */'@atlaskit/icon-object/glyph/task/16'));
|
|
498
|
+
});
|
|
499
|
+
}), (0, _defineProperty2.default)((0, _defineProperty2.default)(_ref3, _constants.IconType.Confluence, function () {
|
|
500
|
+
return Promise.resolve().then(function () {
|
|
501
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "glyphConfluence" */'@atlaskit/logo/confluence-icon'));
|
|
502
|
+
}).then(function (_ref) {
|
|
503
|
+
var ConfluenceIcon = _ref.ConfluenceIcon;
|
|
504
|
+
return {
|
|
505
|
+
default: ConfluenceIcon
|
|
506
|
+
};
|
|
507
|
+
});
|
|
508
|
+
}), _constants.IconType.Jira, function () {
|
|
509
|
+
return Promise.resolve().then(function () {
|
|
510
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "glyphJira" */'@atlaskit/logo/jira-icon'));
|
|
511
|
+
}).then(function (_ref2) {
|
|
512
|
+
var JiraIcon = _ref2.JiraIcon;
|
|
513
|
+
return {
|
|
514
|
+
default: JiraIcon
|
|
515
|
+
};
|
|
516
|
+
});
|
|
517
|
+
});
|
|
518
|
+
};
|
|
519
|
+
var getTypeToIconMap = function getTypeToIconMap(fileFormat) {
|
|
520
|
+
var iconDescriptor = (0, _extractFileFormatIcon.default)(fileFormat);
|
|
521
|
+
if (!(iconDescriptor !== null && iconDescriptor !== void 0 && iconDescriptor.icon) || !iconDescriptor.label) {
|
|
522
|
+
return null;
|
|
523
|
+
}
|
|
524
|
+
var lazyIcons = getLazyIcons();
|
|
525
|
+
return [iconDescriptor.label, lazyIcons[iconDescriptor.icon]];
|
|
586
526
|
};
|
|
587
527
|
var getIframeSandboxAttribute = exports.getIframeSandboxAttribute = function getIframeSandboxAttribute(isTrusted) {
|
|
588
528
|
if (isTrusted) {
|
|
@@ -607,7 +547,7 @@ var sleep = exports.sleep = function sleep(ms) {
|
|
|
607
547
|
});
|
|
608
548
|
};
|
|
609
549
|
var importWithRetry = exports.importWithRetry = /*#__PURE__*/function () {
|
|
610
|
-
var
|
|
550
|
+
var _ref4 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(importFn) {
|
|
611
551
|
var retries,
|
|
612
552
|
interval,
|
|
613
553
|
_args = arguments;
|
|
@@ -641,11 +581,11 @@ var importWithRetry = exports.importWithRetry = /*#__PURE__*/function () {
|
|
|
641
581
|
}, _callee, null, [[2, 8]]);
|
|
642
582
|
}));
|
|
643
583
|
return function importWithRetry(_x) {
|
|
644
|
-
return
|
|
584
|
+
return _ref4.apply(this, arguments);
|
|
645
585
|
};
|
|
646
586
|
}();
|
|
647
587
|
var downloadUrl = exports.downloadUrl = /*#__PURE__*/function () {
|
|
648
|
-
var
|
|
588
|
+
var _ref5 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(url) {
|
|
649
589
|
var isIE11, isSafari, iframeName, link, iframe;
|
|
650
590
|
return _regenerator.default.wrap(function _callee2$(_context2) {
|
|
651
591
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -681,11 +621,11 @@ var downloadUrl = exports.downloadUrl = /*#__PURE__*/function () {
|
|
|
681
621
|
}, _callee2);
|
|
682
622
|
}));
|
|
683
623
|
return function downloadUrl(_x2) {
|
|
684
|
-
return
|
|
624
|
+
return _ref5.apply(this, arguments);
|
|
685
625
|
};
|
|
686
626
|
}();
|
|
687
627
|
var openUrl = exports.openUrl = /*#__PURE__*/function () {
|
|
688
|
-
var
|
|
628
|
+
var _ref6 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3(url) {
|
|
689
629
|
return _regenerator.default.wrap(function _callee3$(_context3) {
|
|
690
630
|
while (1) switch (_context3.prev = _context3.next) {
|
|
691
631
|
case 0:
|
|
@@ -703,7 +643,7 @@ var openUrl = exports.openUrl = /*#__PURE__*/function () {
|
|
|
703
643
|
}, _callee3);
|
|
704
644
|
}));
|
|
705
645
|
return function openUrl(_x3) {
|
|
706
|
-
return
|
|
646
|
+
return _ref6.apply(this, arguments);
|
|
707
647
|
};
|
|
708
648
|
}();
|
|
709
649
|
|