@atlaskit/smart-card 34.3.0 → 34.4.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 +15 -0
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/utils/index.js +201 -263
- 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/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 +69 -55
- 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/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 +116 -162
- 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/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 +2 -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/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 +2 -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/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 +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 34.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#101678](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/101678)
|
|
8
|
+
[`b92bb44488ce7`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b92bb44488ce7) -
|
|
9
|
+
[ux] Migrating smart-card `RelatedLinksModal` and `FlexibleCard/TitleBlock` to use
|
|
10
|
+
`@compiled/react` instead of `@emotion/react`
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- [#103129](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/103129)
|
|
15
|
+
[`32b48493c0387`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/32b48493c0387) -
|
|
16
|
+
[ux] Update lazy loaded icons for block cards
|
|
17
|
+
|
|
3
18
|
## 34.3.0
|
|
4
19
|
|
|
5
20
|
### 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.4.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) {
|
|
@@ -41,7 +44,7 @@ var getIconForFileType = exports.getIconForFileType = function getIconForFileTyp
|
|
|
41
44
|
if (!fileMimeType) {
|
|
42
45
|
return;
|
|
43
46
|
}
|
|
44
|
-
var icon = (0, _platformFeatureFlags.fg)('platform-smart-card-icon-migration') ? getTypeToIconMap(
|
|
47
|
+
var icon = (0, _platformFeatureFlags.fg)('platform-smart-card-icon-migration') ? getTypeToIconMap(fileMimeType.toLowerCase()) : typeToIcon[fileMimeType.toLowerCase()];
|
|
45
48
|
if (!icon) {
|
|
46
49
|
return;
|
|
47
50
|
}
|
|
@@ -68,7 +71,7 @@ var getIconForFileType = exports.getIconForFileType = function getIconForFileTyp
|
|
|
68
71
|
});
|
|
69
72
|
};
|
|
70
73
|
var getLabelForFileType = exports.getLabelForFileType = function getLabelForFileType(fileMimeType) {
|
|
71
|
-
var icon = (0, _platformFeatureFlags.fg)('platform-smart-card-icon-migration') ? getTypeToIconMap(
|
|
74
|
+
var icon = (0, _platformFeatureFlags.fg)('platform-smart-card-icon-migration') ? getTypeToIconMap(fileMimeType.toLowerCase()) : typeToIcon[fileMimeType.toLowerCase()];
|
|
72
75
|
if (!icon) {
|
|
73
76
|
return;
|
|
74
77
|
}
|
|
@@ -329,260 +332,195 @@ var typeToIcon = {
|
|
|
329
332
|
});
|
|
330
333
|
}]
|
|
331
334
|
};
|
|
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
|
-
};
|
|
335
|
+
var getLazyIcons = exports.getLazyIcons = function getLazyIcons() {
|
|
336
|
+
var _ref3;
|
|
337
|
+
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 () {
|
|
338
|
+
return Promise.resolve().then(function () {
|
|
339
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_page-icon" */'../common/ui/icons/page-icon'));
|
|
340
|
+
});
|
|
341
|
+
}), _constants.IconType.Blog, function () {
|
|
342
|
+
return Promise.resolve().then(function () {
|
|
343
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_glyphBlock" */'@atlaskit/icon-object/glyph/blog/16'));
|
|
344
|
+
});
|
|
345
|
+
}), _constants.IconType.Audio, function () {
|
|
346
|
+
return Promise.resolve().then(function () {
|
|
347
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_audio-icon" */'../common/ui/icons/audio-icon'));
|
|
348
|
+
});
|
|
349
|
+
}), _constants.IconType.Code, function () {
|
|
350
|
+
return Promise.resolve().then(function () {
|
|
351
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_angle-brackets-icon" */'../common/ui/icons/angle-brackets-icon'));
|
|
352
|
+
});
|
|
353
|
+
}), _constants.IconType.File, function () {
|
|
354
|
+
return Promise.resolve().then(function () {
|
|
355
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_file-icon" */'../common/ui/icons/file-icon'));
|
|
356
|
+
});
|
|
357
|
+
}), _constants.IconType.Folder, function () {
|
|
358
|
+
return Promise.resolve().then(function () {
|
|
359
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_folder-icon" */'../common/ui/icons/folder-icon'));
|
|
360
|
+
});
|
|
361
|
+
}), _constants.IconType.Generic, function () {
|
|
362
|
+
return Promise.resolve().then(function () {
|
|
363
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_file-icon" */'../common/ui/icons/file-icon'));
|
|
364
|
+
});
|
|
365
|
+
}), _constants.IconType.Image, function () {
|
|
366
|
+
return Promise.resolve().then(function () {
|
|
367
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_image-icon" */'../common/ui/icons/image-icon'));
|
|
368
|
+
});
|
|
369
|
+
}), _constants.IconType.Presentation, function () {
|
|
370
|
+
return Promise.resolve().then(function () {
|
|
371
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_chart-bar-icon" */'../common/ui/icons/chart-bar-icon'));
|
|
372
|
+
});
|
|
373
|
+
}), _constants.IconType.Spreadsheet, function () {
|
|
374
|
+
return Promise.resolve().then(function () {
|
|
375
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_list-bullet-icon" */'../common/ui/icons/list-bullet-icon'));
|
|
376
|
+
});
|
|
377
|
+
}), (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 () {
|
|
378
|
+
return Promise.resolve().then(function () {
|
|
379
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_video-icon" */'../common/ui/icons/video-icon'));
|
|
380
|
+
});
|
|
381
|
+
}), _constants.IconType.Project, function () {
|
|
382
|
+
return Promise.resolve().then(function () {
|
|
383
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_glyphProject" */'@atlaskit/icon/core/migration/people-group'));
|
|
384
|
+
});
|
|
385
|
+
}), _constants.IconType.Template, function () {
|
|
386
|
+
return Promise.resolve().then(function () {
|
|
387
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_glyphTemplate" */'@atlaskit/icon/core/migration/file--document-filled'));
|
|
388
|
+
});
|
|
389
|
+
}), _constants.IconType.Forbidden, function () {
|
|
390
|
+
return Promise.resolve().then(function () {
|
|
391
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_glyphForbidden" */'@atlaskit/icon/core/migration/lock-locked--lock-filled'));
|
|
392
|
+
});
|
|
393
|
+
}), _constants.IconType.Default, function () {
|
|
394
|
+
return Promise.resolve().then(function () {
|
|
395
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_glyphDefault" */'@atlaskit/icon/core/migration/link'));
|
|
396
|
+
});
|
|
397
|
+
}), _constants.IconType.Archive, function () {
|
|
398
|
+
return Promise.resolve().then(function () {
|
|
399
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "glyphArchive" */'@atlaskit/icon-file-type/glyph/archive/16'));
|
|
400
|
+
});
|
|
401
|
+
}), _constants.IconType.Executable, function () {
|
|
402
|
+
return Promise.resolve().then(function () {
|
|
403
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "glyphExecutable" */'@atlaskit/icon-file-type/glyph/executable/16'));
|
|
404
|
+
});
|
|
405
|
+
}), _constants.IconType.GIF, function () {
|
|
406
|
+
return Promise.resolve().then(function () {
|
|
407
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "glyphGIF" */'@atlaskit/icon-file-type/glyph/gif/16'));
|
|
408
|
+
});
|
|
409
|
+
}), _constants.IconType.GoogleDocs, function () {
|
|
410
|
+
return Promise.resolve().then(function () {
|
|
411
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "glyphGoogleDocs" */'@atlaskit/icon-file-type/glyph/google-doc/16'));
|
|
412
|
+
});
|
|
413
|
+
}), _constants.IconType.GoogleForms, function () {
|
|
414
|
+
return Promise.resolve().then(function () {
|
|
415
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "glyphGoogleForms" */'@atlaskit/icon-file-type/glyph/google-form/16'));
|
|
416
|
+
});
|
|
417
|
+
}), (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 () {
|
|
418
|
+
return Promise.resolve().then(function () {
|
|
419
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "glyphGoogleSheets" */'@atlaskit/icon-file-type/glyph/google-sheet/16'));
|
|
420
|
+
});
|
|
421
|
+
}), _constants.IconType.GoogleSlides, function () {
|
|
422
|
+
return Promise.resolve().then(function () {
|
|
423
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "glyphGoogleSlides" */'@atlaskit/icon-file-type/glyph/google-slide/16'));
|
|
424
|
+
});
|
|
425
|
+
}), _constants.IconType.MSExcel, function () {
|
|
426
|
+
return Promise.resolve().then(function () {
|
|
427
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "glyphMSExcel" */'@atlaskit/icon-file-type/glyph/excel-spreadsheet/16'));
|
|
428
|
+
});
|
|
429
|
+
}), _constants.IconType.MSPowerpoint, function () {
|
|
430
|
+
return Promise.resolve().then(function () {
|
|
431
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "glyphMSPowerpoint" */'@atlaskit/icon-file-type/glyph/powerpoint-presentation/16'));
|
|
432
|
+
});
|
|
433
|
+
}), _constants.IconType.MSWord, function () {
|
|
434
|
+
return Promise.resolve().then(function () {
|
|
435
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "glyphMSWord" */'@atlaskit/icon-file-type/glyph/word-document/16'));
|
|
436
|
+
});
|
|
437
|
+
}), _constants.IconType.PDF, function () {
|
|
438
|
+
return Promise.resolve().then(function () {
|
|
439
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "glyphPDF" */'@atlaskit/icon-file-type/glyph/pdf-document/16'));
|
|
440
|
+
});
|
|
441
|
+
}), _constants.IconType.Sketch, function () {
|
|
442
|
+
return Promise.resolve().then(function () {
|
|
443
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "glyphSketch" */'@atlaskit/icon-file-type/glyph/sketch/16'));
|
|
444
|
+
});
|
|
445
|
+
}), _constants.IconType.Branch, function () {
|
|
446
|
+
return Promise.resolve().then(function () {
|
|
447
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "glyphBranch" */'@atlaskit/icon-object/glyph/branch/16'));
|
|
448
|
+
});
|
|
449
|
+
}), _constants.IconType.Commit, function () {
|
|
450
|
+
return Promise.resolve().then(function () {
|
|
451
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "glyphCommit" */'@atlaskit/icon-object/glyph/commit/16'));
|
|
452
|
+
});
|
|
453
|
+
}), _constants.IconType.PullRequest, function () {
|
|
454
|
+
return Promise.resolve().then(function () {
|
|
455
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "glyphPullRequest" */'@atlaskit/icon-object/glyph/pull-request/16'));
|
|
456
|
+
});
|
|
457
|
+
}), (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 () {
|
|
458
|
+
return Promise.resolve().then(function () {
|
|
459
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "glyphRepo" */'@atlaskit/icon-object/glyph/code/16'));
|
|
460
|
+
});
|
|
461
|
+
}), _constants.IconType.Bug, function () {
|
|
462
|
+
return Promise.resolve().then(function () {
|
|
463
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "glyphBug" */'@atlaskit/icon-object/glyph/bug/16'));
|
|
464
|
+
});
|
|
465
|
+
}), _constants.IconType.Change, function () {
|
|
466
|
+
return Promise.resolve().then(function () {
|
|
467
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "glyphChange" */'@atlaskit/icon-object/glyph/changes/16'));
|
|
468
|
+
});
|
|
469
|
+
}), _constants.IconType.Epic, function () {
|
|
470
|
+
return Promise.resolve().then(function () {
|
|
471
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "glyphEpic" */'@atlaskit/icon-object/glyph/epic/16'));
|
|
472
|
+
});
|
|
473
|
+
}), _constants.IconType.Incident, function () {
|
|
474
|
+
return Promise.resolve().then(function () {
|
|
475
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "glyphIncident" */'@atlaskit/icon-object/glyph/incident/16'));
|
|
476
|
+
});
|
|
477
|
+
}), _constants.IconType.Problem, function () {
|
|
478
|
+
return Promise.resolve().then(function () {
|
|
479
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "glyphProblem" */'@atlaskit/icon-object/glyph/problem/16'));
|
|
480
|
+
});
|
|
481
|
+
}), _constants.IconType.ServiceRequest, function () {
|
|
482
|
+
return Promise.resolve().then(function () {
|
|
483
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "glyphServiceRequest" */'@atlaskit/icon-object/glyph/issue/16'));
|
|
484
|
+
});
|
|
485
|
+
}), _constants.IconType.Story, function () {
|
|
486
|
+
return Promise.resolve().then(function () {
|
|
487
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "glyphStory" */'@atlaskit/icon-object/glyph/story/16'));
|
|
488
|
+
});
|
|
489
|
+
}), _constants.IconType.SubTask, function () {
|
|
490
|
+
return Promise.resolve().then(function () {
|
|
491
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "glyphSubTask" */'@atlaskit/icon-object/glyph/subtask/16'));
|
|
492
|
+
});
|
|
493
|
+
}), _constants.IconType.Task, function () {
|
|
494
|
+
return Promise.resolve().then(function () {
|
|
495
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "glyphTask" */'@atlaskit/icon-object/glyph/task/16'));
|
|
496
|
+
});
|
|
497
|
+
}), (0, _defineProperty2.default)((0, _defineProperty2.default)(_ref3, _constants.IconType.Confluence, function () {
|
|
498
|
+
return Promise.resolve().then(function () {
|
|
499
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "glyphConfluence" */'@atlaskit/logo/confluence-icon'));
|
|
500
|
+
}).then(function (_ref) {
|
|
501
|
+
var ConfluenceIcon = _ref.ConfluenceIcon;
|
|
502
|
+
return {
|
|
503
|
+
default: ConfluenceIcon
|
|
504
|
+
};
|
|
505
|
+
});
|
|
506
|
+
}), _constants.IconType.Jira, function () {
|
|
507
|
+
return Promise.resolve().then(function () {
|
|
508
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "glyphJira" */'@atlaskit/logo/jira-icon'));
|
|
509
|
+
}).then(function (_ref2) {
|
|
510
|
+
var JiraIcon = _ref2.JiraIcon;
|
|
511
|
+
return {
|
|
512
|
+
default: JiraIcon
|
|
513
|
+
};
|
|
514
|
+
});
|
|
515
|
+
});
|
|
516
|
+
};
|
|
517
|
+
var getTypeToIconMap = function getTypeToIconMap(fileFormat) {
|
|
518
|
+
var iconDescriptor = (0, _extractFileFormatIcon.default)(fileFormat);
|
|
519
|
+
if (!(iconDescriptor !== null && iconDescriptor !== void 0 && iconDescriptor.icon) || !iconDescriptor.label) {
|
|
520
|
+
return null;
|
|
521
|
+
}
|
|
522
|
+
var lazyIcons = getLazyIcons();
|
|
523
|
+
return [iconDescriptor.label, lazyIcons[iconDescriptor.icon]];
|
|
586
524
|
};
|
|
587
525
|
var getIframeSandboxAttribute = exports.getIframeSandboxAttribute = function getIframeSandboxAttribute(isTrusted) {
|
|
588
526
|
if (isTrusted) {
|
|
@@ -607,7 +545,7 @@ var sleep = exports.sleep = function sleep(ms) {
|
|
|
607
545
|
});
|
|
608
546
|
};
|
|
609
547
|
var importWithRetry = exports.importWithRetry = /*#__PURE__*/function () {
|
|
610
|
-
var
|
|
548
|
+
var _ref4 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(importFn) {
|
|
611
549
|
var retries,
|
|
612
550
|
interval,
|
|
613
551
|
_args = arguments;
|
|
@@ -641,11 +579,11 @@ var importWithRetry = exports.importWithRetry = /*#__PURE__*/function () {
|
|
|
641
579
|
}, _callee, null, [[2, 8]]);
|
|
642
580
|
}));
|
|
643
581
|
return function importWithRetry(_x) {
|
|
644
|
-
return
|
|
582
|
+
return _ref4.apply(this, arguments);
|
|
645
583
|
};
|
|
646
584
|
}();
|
|
647
585
|
var downloadUrl = exports.downloadUrl = /*#__PURE__*/function () {
|
|
648
|
-
var
|
|
586
|
+
var _ref5 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(url) {
|
|
649
587
|
var isIE11, isSafari, iframeName, link, iframe;
|
|
650
588
|
return _regenerator.default.wrap(function _callee2$(_context2) {
|
|
651
589
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -681,11 +619,11 @@ var downloadUrl = exports.downloadUrl = /*#__PURE__*/function () {
|
|
|
681
619
|
}, _callee2);
|
|
682
620
|
}));
|
|
683
621
|
return function downloadUrl(_x2) {
|
|
684
|
-
return
|
|
622
|
+
return _ref5.apply(this, arguments);
|
|
685
623
|
};
|
|
686
624
|
}();
|
|
687
625
|
var openUrl = exports.openUrl = /*#__PURE__*/function () {
|
|
688
|
-
var
|
|
626
|
+
var _ref6 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3(url) {
|
|
689
627
|
return _regenerator.default.wrap(function _callee3$(_context3) {
|
|
690
628
|
while (1) switch (_context3.prev = _context3.next) {
|
|
691
629
|
case 0:
|
|
@@ -703,7 +641,7 @@ var openUrl = exports.openUrl = /*#__PURE__*/function () {
|
|
|
703
641
|
}, _callee3);
|
|
704
642
|
}));
|
|
705
643
|
return function openUrl(_x3) {
|
|
706
|
-
return
|
|
644
|
+
return _ref6.apply(this, arguments);
|
|
707
645
|
};
|
|
708
646
|
}();
|
|
709
647
|
|