@atlaskit/smart-card 44.23.0 → 44.23.1
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 +8 -0
- 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__/hover-card/hover-card-unauthorised--default--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-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/extractors/common/icon/extractIconFromDocument.js +6 -14
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/utils/index.js +23 -75
- package/dist/cjs/view/FlexibleCard/components/common/atlaskit-icon/index.js +34 -36
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- 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__/hover-card/hover-card-unauthorised--default--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-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/extractors/common/icon/extractIconFromDocument.js +6 -14
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/utils/index.js +3 -26
- package/dist/es2019/view/FlexibleCard/components/common/atlaskit-icon/index.js +34 -36
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- 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__/hover-card/hover-card-unauthorised--default--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-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/extractors/common/icon/extractIconFromDocument.js +6 -14
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/utils/index.js +23 -63
- package/dist/esm/view/FlexibleCard/components/common/atlaskit-icon/index.js +34 -36
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 44.23.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`ade405aaaa7a6`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ade405aaaa7a6) -
|
|
8
|
+
Allow for sync icon loading for some types to keep SSR non-pop-in functionality
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 44.23.0
|
|
4
12
|
|
|
5
13
|
### Minor Changes
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:e4e629c90112ffa47189f9d7084394fcd9a217bf624a1b05b5adb76909268c96
|
|
3
|
+
size 22340
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:9d850871e06f9ed1baa276db443eb1747b92e8d5576bbe2af83f7978ddff4652
|
|
3
|
+
size 36435
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:889ac946e251a99b4da6d9a75cab61cdd97a1649ead5018faa97d6e9a180e9f0
|
|
3
|
+
size 218408
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:889ac946e251a99b4da6d9a75cab61cdd97a1649ead5018faa97d6e9a180e9f0
|
|
3
|
+
size 218408
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:d3d9be35e64429a385cfdbfb97e6acf1c220377632d238d33bf9fa42bfa03155
|
|
3
|
+
size 218616
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:d3d9be35e64429a385cfdbfb97e6acf1c220377632d238d33bf9fa42bfa03155
|
|
3
|
+
size 218616
|
|
@@ -8,8 +8,6 @@ exports.extractIconFromDocument = void 0;
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _file = _interopRequireDefault(require("@atlaskit/icon/core/file"));
|
|
10
10
|
var _linkExtractors = require("@atlaskit/link-extractors");
|
|
11
|
-
var _blog = _interopRequireDefault(require("@atlaskit/object/blog"));
|
|
12
|
-
var _pageLiveDoc = _interopRequireDefault(require("@atlaskit/object/page-live-doc"));
|
|
13
11
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
14
12
|
var _utils = require("../../../utils");
|
|
15
13
|
var _prioritiseIcon = require("./prioritiseIcon");
|
|
@@ -66,12 +64,9 @@ var documentTypeToIcon = function documentTypeToIcon(type, opts) {
|
|
|
66
64
|
switch (type) {
|
|
67
65
|
case 'schema:BlogPosting':
|
|
68
66
|
{
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
testId: "blog-icon"
|
|
73
|
-
});
|
|
74
|
-
}
|
|
67
|
+
// Intentionally keep this icon on a synchronous require()-based path.
|
|
68
|
+
// This icon must be present in SSR markup so hydration does not cause a
|
|
69
|
+
// visible empty-state-then-pop-in transition for Smart Links.
|
|
75
70
|
var BlogIconWrapped = getBlogIconWrapped();
|
|
76
71
|
return /*#__PURE__*/_react.default.createElement(BlogIconWrapped, {
|
|
77
72
|
label: documentLabel(opts, 'blog'),
|
|
@@ -132,12 +127,9 @@ var documentTypeToIcon = function documentTypeToIcon(type, opts) {
|
|
|
132
127
|
var digitalDocumentToIcon = function digitalDocumentToIcon(opts) {
|
|
133
128
|
var _opts$provider;
|
|
134
129
|
if ((_opts$provider = opts.provider) !== null && _opts$provider !== void 0 && _opts$provider.id && (0, _linkExtractors.isConfluenceGenerator)(opts.provider.id)) {
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
testId: "live-doc-icon"
|
|
139
|
-
});
|
|
140
|
-
}
|
|
130
|
+
// Intentionally keep this icon on a synchronous require()-based path.
|
|
131
|
+
// This icon must be present in SSR markup so hydration does not cause a
|
|
132
|
+
// visible empty-state-then-pop-in transition for Smart Links.
|
|
141
133
|
var LiveDocumentIconWrapped = getLiveDocumentIconWrapped();
|
|
142
134
|
return /*#__PURE__*/_react.default.createElement(LiveDocumentIconWrapped, {
|
|
143
135
|
label: documentLabel(opts, 'live document'),
|
|
@@ -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: "44.
|
|
14
|
+
packageVersion: "44.23.0" || ''
|
|
15
15
|
};
|
|
16
16
|
var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
17
17
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
package/dist/cjs/utils/index.js
CHANGED
|
@@ -8,8 +8,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
8
8
|
exports.sleep = exports.openUrl = exports.noop = exports.isSpecialKey = exports.isSpecialEvent = exports.isSpecialClick = exports.isProfileType = exports.isIntersectionObserverSupported = exports.isIframe = exports.isIconSizeLarge = exports.importWithRetry = exports.handleOnClick = exports.getPreviewUrlWithTheme = exports.getLazyIcons = 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 _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
12
11
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
12
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
13
13
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
14
14
|
var _react = _interopRequireDefault(require("react"));
|
|
15
15
|
var _reactLoadable = _interopRequireDefault(require("react-loadable"));
|
|
@@ -18,8 +18,6 @@ var _tokens = require("@atlaskit/tokens");
|
|
|
18
18
|
var _constants = require("../constants");
|
|
19
19
|
var _extractFileFormatIcon = _interopRequireDefault(require("../extractors/flexible/icon/extract-file-formatIcon"));
|
|
20
20
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t2 in e) "default" !== _t2 && {}.hasOwnProperty.call(e, _t2) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t2)) && (i.get || i.set) ? o(f, _t2, i) : f[_t2] = e[_t2]); return f; })(e, t); }
|
|
21
|
-
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; }
|
|
22
|
-
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) { (0, _defineProperty2.default)(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; }
|
|
23
21
|
var isSpecialEvent = exports.isSpecialEvent = function isSpecialEvent(evt) {
|
|
24
22
|
return evt.isDefaultPrevented() && (isIframe() || isSpecialKey(evt) || isSpecialClick(evt));
|
|
25
23
|
};
|
|
@@ -83,8 +81,8 @@ var getIconForFileType = exports.getIconForFileType = function getIconForFileTyp
|
|
|
83
81
|
};
|
|
84
82
|
// prettier-ignore
|
|
85
83
|
var getLazyIcons = exports.getLazyIcons = function getLazyIcons() {
|
|
86
|
-
var
|
|
87
|
-
return
|
|
84
|
+
var _ref3;
|
|
85
|
+
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, {
|
|
88
86
|
default: function _default() {
|
|
89
87
|
return Promise.resolve().then(function () {
|
|
90
88
|
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_page-icon" */'../common/ui/icons/page-icon'));
|
|
@@ -144,7 +142,7 @@ var getLazyIcons = exports.getLazyIcons = function getLazyIcons() {
|
|
|
144
142
|
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_video-icon" */'../common/ui/icons/video-icon'));
|
|
145
143
|
});
|
|
146
144
|
}
|
|
147
|
-
}), (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)(
|
|
145
|
+
}), (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.Project, {
|
|
148
146
|
default: function _default() {
|
|
149
147
|
return Promise.resolve().then(function () {
|
|
150
148
|
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_glyphProject" */'@atlaskit/icon/core/people-group'));
|
|
@@ -204,7 +202,7 @@ var getLazyIcons = exports.getLazyIcons = function getLazyIcons() {
|
|
|
204
202
|
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_glyphComment" */'@atlaskit/icon/core/eye-open'));
|
|
205
203
|
});
|
|
206
204
|
}
|
|
207
|
-
}), (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)(
|
|
205
|
+
}), (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.React, {
|
|
208
206
|
default: function _default() {
|
|
209
207
|
return Promise.resolve().then(function () {
|
|
210
208
|
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_glyphComment" */'@atlaskit/icon/core/thumbs-up'));
|
|
@@ -284,7 +282,7 @@ var getLazyIcons = exports.getLazyIcons = function getLazyIcons() {
|
|
|
284
282
|
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_glyphGoogleDocs" */'@atlaskit/icon-file-type/glyph/google-doc/24'));
|
|
285
283
|
});
|
|
286
284
|
}
|
|
287
|
-
}), (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)(
|
|
285
|
+
}), (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.GoogleForms, {
|
|
288
286
|
default: function _default() {
|
|
289
287
|
return Promise.resolve().then(function () {
|
|
290
288
|
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_glyphGoogleForms" */'@atlaskit/icon-file-type/glyph/google-form/16'));
|
|
@@ -372,57 +370,7 @@ var getLazyIcons = exports.getLazyIcons = function getLazyIcons() {
|
|
|
372
370
|
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_glyphSketch" */'@atlaskit/icon-file-type/glyph/sketch/24'));
|
|
373
371
|
});
|
|
374
372
|
}
|
|
375
|
-
})
|
|
376
|
-
default: function _default() {
|
|
377
|
-
return Promise.resolve().then(function () {
|
|
378
|
-
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_glyphBlog" */'@atlaskit/object/blog'));
|
|
379
|
-
});
|
|
380
|
-
},
|
|
381
|
-
large: function large() {
|
|
382
|
-
return Promise.resolve().then(function () {
|
|
383
|
-
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_glyphBlog" */'@atlaskit/object/tile/blog'));
|
|
384
|
-
}).then(function (module) {
|
|
385
|
-
return {
|
|
386
|
-
default: function _default(props) {
|
|
387
|
-
return /*#__PURE__*/_react.default.createElement(module.default, (0, _extends2.default)({}, props, {
|
|
388
|
-
size: "small"
|
|
389
|
-
}));
|
|
390
|
-
}
|
|
391
|
-
};
|
|
392
|
-
});
|
|
393
|
-
}
|
|
394
|
-
}), _constants.IconType.LiveDocument, {
|
|
395
|
-
default: function _default() {
|
|
396
|
-
return Promise.resolve().then(function () {
|
|
397
|
-
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_glyphPageLiveDoc" */'@atlaskit/object/page-live-doc'));
|
|
398
|
-
});
|
|
399
|
-
},
|
|
400
|
-
large: function large() {
|
|
401
|
-
return Promise.resolve().then(function () {
|
|
402
|
-
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_glyphPageLiveDoc" */'@atlaskit/object/tile/page-live-doc'));
|
|
403
|
-
}).then(function (module) {
|
|
404
|
-
return {
|
|
405
|
-
default: function _default(props) {
|
|
406
|
-
return /*#__PURE__*/_react.default.createElement(module.default, (0, _extends2.default)({}, props, {
|
|
407
|
-
size: "small"
|
|
408
|
-
}));
|
|
409
|
-
}
|
|
410
|
-
};
|
|
411
|
-
});
|
|
412
|
-
}
|
|
413
|
-
}) : (0, _defineProperty2.default)((0, _defineProperty2.default)({}, _constants.IconType.Blog, {
|
|
414
|
-
default: function _default() {
|
|
415
|
-
return Promise.resolve().then(function () {
|
|
416
|
-
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_glyphBlock" */'../common/ui/icons/blog-icon'));
|
|
417
|
-
});
|
|
418
|
-
}
|
|
419
|
-
}), _constants.IconType.LiveDocument, {
|
|
420
|
-
default: function _default() {
|
|
421
|
-
return Promise.resolve().then(function () {
|
|
422
|
-
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_glyphPageLiveDoc" */'../common/ui/icons/live-document-icon'));
|
|
423
|
-
});
|
|
424
|
-
}
|
|
425
|
-
})), {}, (_objectSpread3 = {}, (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)(_objectSpread3, _constants.IconType.Branch, {
|
|
373
|
+
}), _constants.IconType.Branch, {
|
|
426
374
|
default: function _default() {
|
|
427
375
|
return Promise.resolve().then(function () {
|
|
428
376
|
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_glyphBranch" */'@atlaskit/object/branch'));
|
|
@@ -460,7 +408,7 @@ var getLazyIcons = exports.getLazyIcons = function getLazyIcons() {
|
|
|
460
408
|
};
|
|
461
409
|
});
|
|
462
410
|
}
|
|
463
|
-
}), _constants.IconType.PullRequest, {
|
|
411
|
+
}), (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.PullRequest, {
|
|
464
412
|
default: function _default() {
|
|
465
413
|
return Promise.resolve().then(function () {
|
|
466
414
|
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_glyphPullRequest" */'@atlaskit/object/pull-request'));
|
|
@@ -612,7 +560,7 @@ var getLazyIcons = exports.getLazyIcons = function getLazyIcons() {
|
|
|
612
560
|
};
|
|
613
561
|
});
|
|
614
562
|
}
|
|
615
|
-
}),
|
|
563
|
+
}), _constants.IconType.Story, {
|
|
616
564
|
default: function _default() {
|
|
617
565
|
return Promise.resolve().then(function () {
|
|
618
566
|
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_glyphStory" */'@atlaskit/object/story'));
|
|
@@ -650,7 +598,7 @@ var getLazyIcons = exports.getLazyIcons = function getLazyIcons() {
|
|
|
650
598
|
};
|
|
651
599
|
});
|
|
652
600
|
}
|
|
653
|
-
}), _constants.IconType.Task, {
|
|
601
|
+
}), (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.Task, {
|
|
654
602
|
default: function _default() {
|
|
655
603
|
return Promise.resolve().then(function () {
|
|
656
604
|
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_glyphTask" */'@atlaskit/object/task'));
|
|
@@ -673,8 +621,8 @@ var getLazyIcons = exports.getLazyIcons = function getLazyIcons() {
|
|
|
673
621
|
default: function _default() {
|
|
674
622
|
return Promise.resolve().then(function () {
|
|
675
623
|
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_glyphConfluence" */'@atlaskit/logo/confluence-icon'));
|
|
676
|
-
}).then(function (
|
|
677
|
-
var ConfluenceIcon =
|
|
624
|
+
}).then(function (_ref) {
|
|
625
|
+
var ConfluenceIcon = _ref.ConfluenceIcon;
|
|
678
626
|
return {
|
|
679
627
|
default: ConfluenceIcon
|
|
680
628
|
};
|
|
@@ -684,8 +632,8 @@ var getLazyIcons = exports.getLazyIcons = function getLazyIcons() {
|
|
|
684
632
|
default: function _default() {
|
|
685
633
|
return Promise.resolve().then(function () {
|
|
686
634
|
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_glyphJira" */'@atlaskit/logo/jira-icon'));
|
|
687
|
-
}).then(function (
|
|
688
|
-
var JiraIcon =
|
|
635
|
+
}).then(function (_ref2) {
|
|
636
|
+
var JiraIcon = _ref2.JiraIcon;
|
|
689
637
|
return {
|
|
690
638
|
default: JiraIcon
|
|
691
639
|
};
|
|
@@ -721,7 +669,7 @@ var getLazyIcons = exports.getLazyIcons = function getLazyIcons() {
|
|
|
721
669
|
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_glyphLow" */'../common/ui/icons/priority-low-icon'));
|
|
722
670
|
});
|
|
723
671
|
}
|
|
724
|
-
}),
|
|
672
|
+
}), _constants.IconType.PriorityLowest, {
|
|
725
673
|
default: function _default() {
|
|
726
674
|
return Promise.resolve().then(function () {
|
|
727
675
|
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_glyphLowest" */'../common/ui/icons/priority-lowest-icon'));
|
|
@@ -733,7 +681,7 @@ var getLazyIcons = exports.getLazyIcons = function getLazyIcons() {
|
|
|
733
681
|
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_glyphMajor" */'../common/ui/icons/priority-major-icon'));
|
|
734
682
|
});
|
|
735
683
|
}
|
|
736
|
-
}), _constants.IconType.PriorityMedium, {
|
|
684
|
+
}), (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)(_ref3, _constants.IconType.PriorityMedium, {
|
|
737
685
|
default: function _default() {
|
|
738
686
|
return Promise.resolve().then(function () {
|
|
739
687
|
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_glyphMedium" */'../common/ui/icons/priority-medium-icon'));
|
|
@@ -751,7 +699,7 @@ var getLazyIcons = exports.getLazyIcons = function getLazyIcons() {
|
|
|
751
699
|
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_glyphTrivial" */'../common/ui/icons/priority-trivial-icon'));
|
|
752
700
|
});
|
|
753
701
|
}
|
|
754
|
-
})
|
|
702
|
+
});
|
|
755
703
|
};
|
|
756
704
|
var getTypeToIconMap = function getTypeToIconMap(fileFormat) {
|
|
757
705
|
var iconDescriptor = (0, _extractFileFormatIcon.default)(fileFormat);
|
|
@@ -790,7 +738,7 @@ var sleep = exports.sleep = function sleep(ms) {
|
|
|
790
738
|
});
|
|
791
739
|
};
|
|
792
740
|
var _importWithRetry = exports.importWithRetry = /*#__PURE__*/function () {
|
|
793
|
-
var
|
|
741
|
+
var _ref4 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(importFn) {
|
|
794
742
|
var retries,
|
|
795
743
|
interval,
|
|
796
744
|
_args = arguments,
|
|
@@ -825,11 +773,11 @@ var _importWithRetry = exports.importWithRetry = /*#__PURE__*/function () {
|
|
|
825
773
|
}, _callee, null, [[1, 3]]);
|
|
826
774
|
}));
|
|
827
775
|
return function importWithRetry(_x) {
|
|
828
|
-
return
|
|
776
|
+
return _ref4.apply(this, arguments);
|
|
829
777
|
};
|
|
830
778
|
}();
|
|
831
779
|
var downloadUrl = exports.downloadUrl = /*#__PURE__*/function () {
|
|
832
|
-
var
|
|
780
|
+
var _ref5 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(url) {
|
|
833
781
|
var isIE11, isSafari, iframeName, link, iframe;
|
|
834
782
|
return _regenerator.default.wrap(function (_context2) {
|
|
835
783
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -865,11 +813,11 @@ var downloadUrl = exports.downloadUrl = /*#__PURE__*/function () {
|
|
|
865
813
|
}, _callee2);
|
|
866
814
|
}));
|
|
867
815
|
return function downloadUrl(_x2) {
|
|
868
|
-
return
|
|
816
|
+
return _ref5.apply(this, arguments);
|
|
869
817
|
};
|
|
870
818
|
}();
|
|
871
819
|
var openUrl = exports.openUrl = /*#__PURE__*/function () {
|
|
872
|
-
var
|
|
820
|
+
var _ref6 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3(url) {
|
|
873
821
|
return _regenerator.default.wrap(function (_context3) {
|
|
874
822
|
while (1) switch (_context3.prev = _context3.next) {
|
|
875
823
|
case 0:
|
|
@@ -887,7 +835,7 @@ var openUrl = exports.openUrl = /*#__PURE__*/function () {
|
|
|
887
835
|
}, _callee3);
|
|
888
836
|
}));
|
|
889
837
|
return function openUrl(_x3) {
|
|
890
|
-
return
|
|
838
|
+
return _ref6.apply(this, arguments);
|
|
891
839
|
};
|
|
892
840
|
}();
|
|
893
841
|
|
|
@@ -52,42 +52,40 @@ var AtlaskitIcon = function AtlaskitIcon(_ref) {
|
|
|
52
52
|
_ref$size = _ref.size,
|
|
53
53
|
size = _ref$size === void 0 ? _constants.SmartLinkSize.Medium : _ref$size,
|
|
54
54
|
isTiledIcon = _ref.isTiledIcon;
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
}
|
|
90
|
-
}
|
|
55
|
+
// Intentionally keep these three icon types synchronous and outside lazy imports.
|
|
56
|
+
// These icons should be present in SSR markup so hydration does not cause a
|
|
57
|
+
// visible empty-state-then-pop-in transition in Smart Link consumers.
|
|
58
|
+
switch (icon) {
|
|
59
|
+
case _constants.IconType.Document:
|
|
60
|
+
{
|
|
61
|
+
var DocumentIcon = getDocumentIcon();
|
|
62
|
+
return /*#__PURE__*/_react.default.createElement(DocumentIcon, {
|
|
63
|
+
label: label !== null && label !== void 0 ? label : 'document',
|
|
64
|
+
testId: testId,
|
|
65
|
+
size: size,
|
|
66
|
+
isTiledIcon: isTiledIcon
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
case _constants.IconType.Blog:
|
|
70
|
+
{
|
|
71
|
+
var BlogIcon = getBlogIcon();
|
|
72
|
+
return /*#__PURE__*/_react.default.createElement(BlogIcon, {
|
|
73
|
+
label: label !== null && label !== void 0 ? label : 'blog',
|
|
74
|
+
testId: testId,
|
|
75
|
+
size: size,
|
|
76
|
+
isTiledIcon: isTiledIcon
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
case _constants.IconType.LiveDocument:
|
|
80
|
+
{
|
|
81
|
+
var LiveDocumentIcon = getLiveDocumentIcon();
|
|
82
|
+
return /*#__PURE__*/_react.default.createElement(LiveDocumentIcon, {
|
|
83
|
+
label: label !== null && label !== void 0 ? label : 'live-doc',
|
|
84
|
+
testId: testId,
|
|
85
|
+
size: size,
|
|
86
|
+
isTiledIcon: isTiledIcon
|
|
87
|
+
});
|
|
88
|
+
}
|
|
91
89
|
}
|
|
92
90
|
var importFn = getIconImportFn(icon, size);
|
|
93
91
|
if (!importFn) {
|
|
@@ -19,7 +19,7 @@ var _excluded = ["href", "children", "checkSafety", "onClick", "testId", "isLink
|
|
|
19
19
|
_excluded2 = ["isLinkSafe", "showSafetyWarningModal"];
|
|
20
20
|
var PACKAGE_DATA = {
|
|
21
21
|
packageName: "@atlaskit/smart-card",
|
|
22
|
-
packageVersion: "44.
|
|
22
|
+
packageVersion: "44.23.0",
|
|
23
23
|
componentName: 'linkUrl'
|
|
24
24
|
};
|
|
25
25
|
var LinkUrl = function LinkUrl(_ref) {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:e4e629c90112ffa47189f9d7084394fcd9a217bf624a1b05b5adb76909268c96
|
|
3
|
+
size 22340
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:9d850871e06f9ed1baa276db443eb1747b92e8d5576bbe2af83f7978ddff4652
|
|
3
|
+
size 36435
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:889ac946e251a99b4da6d9a75cab61cdd97a1649ead5018faa97d6e9a180e9f0
|
|
3
|
+
size 218408
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:889ac946e251a99b4da6d9a75cab61cdd97a1649ead5018faa97d6e9a180e9f0
|
|
3
|
+
size 218408
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:d3d9be35e64429a385cfdbfb97e6acf1c220377632d238d33bf9fa42bfa03155
|
|
3
|
+
size 218616
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:d3d9be35e64429a385cfdbfb97e6acf1c220377632d238d33bf9fa42bfa03155
|
|
3
|
+
size 218616
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import DocumentFilledIcon from '@atlaskit/icon/core/file';
|
|
3
3
|
import { isConfluenceGenerator } from '@atlaskit/link-extractors';
|
|
4
|
-
import BlogIconObject from '@atlaskit/object/blog';
|
|
5
|
-
import LiveDocumentIconObject from '@atlaskit/object/page-live-doc';
|
|
6
4
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
5
|
import { getIconForFileType } from '../../../utils';
|
|
8
6
|
import { prioritiseIcon } from './prioritiseIcon';
|
|
@@ -47,12 +45,9 @@ const documentTypeToIcon = (type, opts) => {
|
|
|
47
45
|
switch (type) {
|
|
48
46
|
case 'schema:BlogPosting':
|
|
49
47
|
{
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
testId: "blog-icon"
|
|
54
|
-
});
|
|
55
|
-
}
|
|
48
|
+
// Intentionally keep this icon on a synchronous require()-based path.
|
|
49
|
+
// This icon must be present in SSR markup so hydration does not cause a
|
|
50
|
+
// visible empty-state-then-pop-in transition for Smart Links.
|
|
56
51
|
const BlogIconWrapped = getBlogIconWrapped();
|
|
57
52
|
return /*#__PURE__*/React.createElement(BlogIconWrapped, {
|
|
58
53
|
label: documentLabel(opts, 'blog'),
|
|
@@ -113,12 +108,9 @@ const documentTypeToIcon = (type, opts) => {
|
|
|
113
108
|
const digitalDocumentToIcon = opts => {
|
|
114
109
|
var _opts$provider;
|
|
115
110
|
if ((_opts$provider = opts.provider) !== null && _opts$provider !== void 0 && _opts$provider.id && isConfluenceGenerator(opts.provider.id)) {
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
testId: "live-doc-icon"
|
|
120
|
-
});
|
|
121
|
-
}
|
|
111
|
+
// Intentionally keep this icon on a synchronous require()-based path.
|
|
112
|
+
// This icon must be present in SSR markup so hydration does not cause a
|
|
113
|
+
// visible empty-state-then-pop-in transition for Smart Links.
|
|
122
114
|
const LiveDocumentIconWrapped = getLiveDocumentIconWrapped();
|
|
123
115
|
return /*#__PURE__*/React.createElement(LiveDocumentIconWrapped, {
|
|
124
116
|
label: documentLabel(opts, 'live document'),
|
|
@@ -2,7 +2,7 @@ export const ANALYTICS_CHANNEL = 'media';
|
|
|
2
2
|
export const context = {
|
|
3
3
|
componentName: 'smart-cards',
|
|
4
4
|
packageName: "@atlaskit/smart-card" || '',
|
|
5
|
-
packageVersion: "44.
|
|
5
|
+
packageVersion: "44.23.0" || ''
|
|
6
6
|
};
|
|
7
7
|
export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
8
8
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -186,32 +186,9 @@ export const getLazyIcons = () => {
|
|
|
186
186
|
default: () => import( /* webpackChunkName: "@atlaskit-internal_glyphSketch" */'@atlaskit/icon-file-type/glyph/sketch/16'),
|
|
187
187
|
large: () => import( /* webpackChunkName: "@atlaskit-internal_glyphSketch" */'@atlaskit/icon-file-type/glyph/sketch/24')
|
|
188
188
|
},
|
|
189
|
-
//
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
default: () => import( /* webpackChunkName: "@atlaskit-internal_glyphBlog" */'@atlaskit/object/blog'),
|
|
193
|
-
large: () => import( /* webpackChunkName: "@atlaskit-internal_glyphBlog" */'@atlaskit/object/tile/blog').then(module => ({
|
|
194
|
-
default: props => /*#__PURE__*/React.createElement(module.default, _extends({}, props, {
|
|
195
|
-
size: "small"
|
|
196
|
-
}))
|
|
197
|
-
}))
|
|
198
|
-
},
|
|
199
|
-
[IconType.LiveDocument]: {
|
|
200
|
-
default: () => import( /* webpackChunkName: "@atlaskit-internal_glyphPageLiveDoc" */'@atlaskit/object/page-live-doc'),
|
|
201
|
-
large: () => import( /* webpackChunkName: "@atlaskit-internal_glyphPageLiveDoc" */'@atlaskit/object/tile/page-live-doc').then(module => ({
|
|
202
|
-
default: props => /*#__PURE__*/React.createElement(module.default, _extends({}, props, {
|
|
203
|
-
size: "small"
|
|
204
|
-
}))
|
|
205
|
-
}))
|
|
206
|
-
}
|
|
207
|
-
} : {
|
|
208
|
-
[IconType.Blog]: {
|
|
209
|
-
default: () => import( /* webpackChunkName: "@atlaskit-internal_glyphBlock" */'../common/ui/icons/blog-icon')
|
|
210
|
-
},
|
|
211
|
-
[IconType.LiveDocument]: {
|
|
212
|
-
default: () => import( /* webpackChunkName: "@atlaskit-internal_glyphPageLiveDoc" */'../common/ui/icons/live-document-icon')
|
|
213
|
-
}
|
|
214
|
-
}),
|
|
189
|
+
// Keep blog/live-document out of the lazy map on purpose.
|
|
190
|
+
// These icons should be present in SSR markup so hydration does not cause
|
|
191
|
+
// a visible empty-state-then-pop-in transition in Smart Link consumers.
|
|
215
192
|
[IconType.Branch]: {
|
|
216
193
|
default: () => import( /* webpackChunkName: "@atlaskit-internal_glyphBranch" */'@atlaskit/object/branch'),
|
|
217
194
|
large: () => import( /* webpackChunkName: "@atlaskit-internal_glyphBranch" */'@atlaskit/object/tile/branch').then(module => ({
|
|
@@ -33,42 +33,40 @@ const AtlaskitIcon = ({
|
|
|
33
33
|
size = SmartLinkSize.Medium,
|
|
34
34
|
isTiledIcon
|
|
35
35
|
}) => {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
}
|
|
71
|
-
}
|
|
36
|
+
// Intentionally keep these three icon types synchronous and outside lazy imports.
|
|
37
|
+
// These icons should be present in SSR markup so hydration does not cause a
|
|
38
|
+
// visible empty-state-then-pop-in transition in Smart Link consumers.
|
|
39
|
+
switch (icon) {
|
|
40
|
+
case IconType.Document:
|
|
41
|
+
{
|
|
42
|
+
const DocumentIcon = getDocumentIcon();
|
|
43
|
+
return /*#__PURE__*/React.createElement(DocumentIcon, {
|
|
44
|
+
label: label !== null && label !== void 0 ? label : 'document',
|
|
45
|
+
testId: testId,
|
|
46
|
+
size: size,
|
|
47
|
+
isTiledIcon: isTiledIcon
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
case IconType.Blog:
|
|
51
|
+
{
|
|
52
|
+
const BlogIcon = getBlogIcon();
|
|
53
|
+
return /*#__PURE__*/React.createElement(BlogIcon, {
|
|
54
|
+
label: label !== null && label !== void 0 ? label : 'blog',
|
|
55
|
+
testId: testId,
|
|
56
|
+
size: size,
|
|
57
|
+
isTiledIcon: isTiledIcon
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
case IconType.LiveDocument:
|
|
61
|
+
{
|
|
62
|
+
const LiveDocumentIcon = getLiveDocumentIcon();
|
|
63
|
+
return /*#__PURE__*/React.createElement(LiveDocumentIcon, {
|
|
64
|
+
label: label !== null && label !== void 0 ? label : 'live-doc',
|
|
65
|
+
testId: testId,
|
|
66
|
+
size: size,
|
|
67
|
+
isTiledIcon: isTiledIcon
|
|
68
|
+
});
|
|
69
|
+
}
|
|
72
70
|
}
|
|
73
71
|
const importFn = getIconImportFn(icon, size);
|
|
74
72
|
if (!importFn) {
|
|
@@ -9,7 +9,7 @@ import LinkWarningModal from './LinkWarningModal';
|
|
|
9
9
|
import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
|
|
10
10
|
const PACKAGE_DATA = {
|
|
11
11
|
packageName: "@atlaskit/smart-card",
|
|
12
|
-
packageVersion: "44.
|
|
12
|
+
packageVersion: "44.23.0",
|
|
13
13
|
componentName: 'linkUrl'
|
|
14
14
|
};
|
|
15
15
|
const LinkUrl = ({
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:e4e629c90112ffa47189f9d7084394fcd9a217bf624a1b05b5adb76909268c96
|
|
3
|
+
size 22340
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:9d850871e06f9ed1baa276db443eb1747b92e8d5576bbe2af83f7978ddff4652
|
|
3
|
+
size 36435
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:889ac946e251a99b4da6d9a75cab61cdd97a1649ead5018faa97d6e9a180e9f0
|
|
3
|
+
size 218408
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:889ac946e251a99b4da6d9a75cab61cdd97a1649ead5018faa97d6e9a180e9f0
|
|
3
|
+
size 218408
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:d3d9be35e64429a385cfdbfb97e6acf1c220377632d238d33bf9fa42bfa03155
|
|
3
|
+
size 218616
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:d3d9be35e64429a385cfdbfb97e6acf1c220377632d238d33bf9fa42bfa03155
|
|
3
|
+
size 218616
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import DocumentFilledIcon from '@atlaskit/icon/core/file';
|
|
3
3
|
import { isConfluenceGenerator } from '@atlaskit/link-extractors';
|
|
4
|
-
import BlogIconObject from '@atlaskit/object/blog';
|
|
5
|
-
import LiveDocumentIconObject from '@atlaskit/object/page-live-doc';
|
|
6
4
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
5
|
import { getIconForFileType } from '../../../utils';
|
|
8
6
|
import { prioritiseIcon } from './prioritiseIcon';
|
|
@@ -59,12 +57,9 @@ var documentTypeToIcon = function documentTypeToIcon(type, opts) {
|
|
|
59
57
|
switch (type) {
|
|
60
58
|
case 'schema:BlogPosting':
|
|
61
59
|
{
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
testId: "blog-icon"
|
|
66
|
-
});
|
|
67
|
-
}
|
|
60
|
+
// Intentionally keep this icon on a synchronous require()-based path.
|
|
61
|
+
// This icon must be present in SSR markup so hydration does not cause a
|
|
62
|
+
// visible empty-state-then-pop-in transition for Smart Links.
|
|
68
63
|
var BlogIconWrapped = getBlogIconWrapped();
|
|
69
64
|
return /*#__PURE__*/React.createElement(BlogIconWrapped, {
|
|
70
65
|
label: documentLabel(opts, 'blog'),
|
|
@@ -125,12 +120,9 @@ var documentTypeToIcon = function documentTypeToIcon(type, opts) {
|
|
|
125
120
|
var digitalDocumentToIcon = function digitalDocumentToIcon(opts) {
|
|
126
121
|
var _opts$provider;
|
|
127
122
|
if ((_opts$provider = opts.provider) !== null && _opts$provider !== void 0 && _opts$provider.id && isConfluenceGenerator(opts.provider.id)) {
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
testId: "live-doc-icon"
|
|
132
|
-
});
|
|
133
|
-
}
|
|
123
|
+
// Intentionally keep this icon on a synchronous require()-based path.
|
|
124
|
+
// This icon must be present in SSR markup so hydration does not cause a
|
|
125
|
+
// visible empty-state-then-pop-in transition for Smart Links.
|
|
134
126
|
var LiveDocumentIconWrapped = getLiveDocumentIconWrapped();
|
|
135
127
|
return /*#__PURE__*/React.createElement(LiveDocumentIconWrapped, {
|
|
136
128
|
label: documentLabel(opts, 'live document'),
|
|
@@ -4,7 +4,7 @@ export var ANALYTICS_CHANNEL = 'media';
|
|
|
4
4
|
export var context = {
|
|
5
5
|
componentName: 'smart-cards',
|
|
6
6
|
packageName: "@atlaskit/smart-card" || '',
|
|
7
|
-
packageVersion: "44.
|
|
7
|
+
packageVersion: "44.23.0" || ''
|
|
8
8
|
};
|
|
9
9
|
export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
10
10
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
package/dist/esm/utils/index.js
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
2
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
3
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
4
4
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
5
5
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
6
|
-
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; }
|
|
7
|
-
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; }
|
|
8
6
|
import React from 'react';
|
|
9
7
|
import Loadable from 'react-loadable';
|
|
10
8
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
@@ -74,8 +72,8 @@ export var getIconForFileType = function getIconForFileType(fileMimeType, showIc
|
|
|
74
72
|
};
|
|
75
73
|
// prettier-ignore
|
|
76
74
|
export var getLazyIcons = function getLazyIcons() {
|
|
77
|
-
var
|
|
78
|
-
return
|
|
75
|
+
var _ref3;
|
|
76
|
+
return _ref3 = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref3, IconType.Document, {
|
|
79
77
|
default: function _default() {
|
|
80
78
|
return import( /* webpackChunkName: "@atlaskit-internal_page-icon" */'../common/ui/icons/page-icon');
|
|
81
79
|
}
|
|
@@ -115,7 +113,7 @@ export var getLazyIcons = function getLazyIcons() {
|
|
|
115
113
|
default: function _default() {
|
|
116
114
|
return import( /* webpackChunkName: "@atlaskit-internal_video-icon" */'../common/ui/icons/video-icon');
|
|
117
115
|
}
|
|
118
|
-
}), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(
|
|
116
|
+
}), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref3, IconType.Project, {
|
|
119
117
|
default: function _default() {
|
|
120
118
|
return import( /* webpackChunkName: "@atlaskit-internal_glyphProject" */'@atlaskit/icon/core/people-group');
|
|
121
119
|
}
|
|
@@ -155,7 +153,7 @@ export var getLazyIcons = function getLazyIcons() {
|
|
|
155
153
|
default: function _default() {
|
|
156
154
|
return import( /* webpackChunkName: "@atlaskit-internal_glyphComment" */'@atlaskit/icon/core/eye-open');
|
|
157
155
|
}
|
|
158
|
-
}), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(
|
|
156
|
+
}), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref3, IconType.React, {
|
|
159
157
|
default: function _default() {
|
|
160
158
|
return import( /* webpackChunkName: "@atlaskit-internal_glyphComment" */'@atlaskit/icon/core/thumbs-up');
|
|
161
159
|
}
|
|
@@ -207,7 +205,7 @@ export var getLazyIcons = function getLazyIcons() {
|
|
|
207
205
|
large: function large() {
|
|
208
206
|
return import( /* webpackChunkName: "@atlaskit-internal_glyphGoogleDocs" */'@atlaskit/icon-file-type/glyph/google-doc/24');
|
|
209
207
|
}
|
|
210
|
-
}), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(
|
|
208
|
+
}), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref3, IconType.GoogleForms, {
|
|
211
209
|
default: function _default() {
|
|
212
210
|
return import( /* webpackChunkName: "@atlaskit-internal_glyphGoogleForms" */'@atlaskit/icon-file-type/glyph/google-form/16');
|
|
213
211
|
},
|
|
@@ -263,45 +261,7 @@ export var getLazyIcons = function getLazyIcons() {
|
|
|
263
261
|
large: function large() {
|
|
264
262
|
return import( /* webpackChunkName: "@atlaskit-internal_glyphSketch" */'@atlaskit/icon-file-type/glyph/sketch/24');
|
|
265
263
|
}
|
|
266
|
-
})
|
|
267
|
-
default: function _default() {
|
|
268
|
-
return import( /* webpackChunkName: "@atlaskit-internal_glyphBlog" */'@atlaskit/object/blog');
|
|
269
|
-
},
|
|
270
|
-
large: function large() {
|
|
271
|
-
return import( /* webpackChunkName: "@atlaskit-internal_glyphBlog" */'@atlaskit/object/tile/blog').then(function (module) {
|
|
272
|
-
return {
|
|
273
|
-
default: function _default(props) {
|
|
274
|
-
return /*#__PURE__*/React.createElement(module.default, _extends({}, props, {
|
|
275
|
-
size: "small"
|
|
276
|
-
}));
|
|
277
|
-
}
|
|
278
|
-
};
|
|
279
|
-
});
|
|
280
|
-
}
|
|
281
|
-
}), IconType.LiveDocument, {
|
|
282
|
-
default: function _default() {
|
|
283
|
-
return import( /* webpackChunkName: "@atlaskit-internal_glyphPageLiveDoc" */'@atlaskit/object/page-live-doc');
|
|
284
|
-
},
|
|
285
|
-
large: function large() {
|
|
286
|
-
return import( /* webpackChunkName: "@atlaskit-internal_glyphPageLiveDoc" */'@atlaskit/object/tile/page-live-doc').then(function (module) {
|
|
287
|
-
return {
|
|
288
|
-
default: function _default(props) {
|
|
289
|
-
return /*#__PURE__*/React.createElement(module.default, _extends({}, props, {
|
|
290
|
-
size: "small"
|
|
291
|
-
}));
|
|
292
|
-
}
|
|
293
|
-
};
|
|
294
|
-
});
|
|
295
|
-
}
|
|
296
|
-
}) : _defineProperty(_defineProperty({}, IconType.Blog, {
|
|
297
|
-
default: function _default() {
|
|
298
|
-
return import( /* webpackChunkName: "@atlaskit-internal_glyphBlock" */'../common/ui/icons/blog-icon');
|
|
299
|
-
}
|
|
300
|
-
}), IconType.LiveDocument, {
|
|
301
|
-
default: function _default() {
|
|
302
|
-
return import( /* webpackChunkName: "@atlaskit-internal_glyphPageLiveDoc" */'../common/ui/icons/live-document-icon');
|
|
303
|
-
}
|
|
304
|
-
})), {}, (_objectSpread3 = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_objectSpread3, IconType.Branch, {
|
|
264
|
+
}), IconType.Branch, {
|
|
305
265
|
default: function _default() {
|
|
306
266
|
return import( /* webpackChunkName: "@atlaskit-internal_glyphBranch" */'@atlaskit/object/branch');
|
|
307
267
|
},
|
|
@@ -331,7 +291,7 @@ export var getLazyIcons = function getLazyIcons() {
|
|
|
331
291
|
};
|
|
332
292
|
});
|
|
333
293
|
}
|
|
334
|
-
}), IconType.PullRequest, {
|
|
294
|
+
}), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref3, IconType.PullRequest, {
|
|
335
295
|
default: function _default() {
|
|
336
296
|
return import( /* webpackChunkName: "@atlaskit-internal_glyphPullRequest" */'@atlaskit/object/pull-request');
|
|
337
297
|
},
|
|
@@ -451,7 +411,7 @@ export var getLazyIcons = function getLazyIcons() {
|
|
|
451
411
|
};
|
|
452
412
|
});
|
|
453
413
|
}
|
|
454
|
-
}),
|
|
414
|
+
}), IconType.Story, {
|
|
455
415
|
default: function _default() {
|
|
456
416
|
return import( /* webpackChunkName: "@atlaskit-internal_glyphStory" */'@atlaskit/object/story');
|
|
457
417
|
},
|
|
@@ -481,7 +441,7 @@ export var getLazyIcons = function getLazyIcons() {
|
|
|
481
441
|
};
|
|
482
442
|
});
|
|
483
443
|
}
|
|
484
|
-
}), IconType.Task, {
|
|
444
|
+
}), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref3, IconType.Task, {
|
|
485
445
|
default: function _default() {
|
|
486
446
|
return import( /* webpackChunkName: "@atlaskit-internal_glyphTask" */'@atlaskit/object/task');
|
|
487
447
|
},
|
|
@@ -498,8 +458,8 @@ export var getLazyIcons = function getLazyIcons() {
|
|
|
498
458
|
}
|
|
499
459
|
}), IconType.Confluence, {
|
|
500
460
|
default: function _default() {
|
|
501
|
-
return import( /* webpackChunkName: "@atlaskit-internal_glyphConfluence" */'@atlaskit/logo/confluence-icon').then(function (
|
|
502
|
-
var ConfluenceIcon =
|
|
461
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphConfluence" */'@atlaskit/logo/confluence-icon').then(function (_ref) {
|
|
462
|
+
var ConfluenceIcon = _ref.ConfluenceIcon;
|
|
503
463
|
return {
|
|
504
464
|
default: ConfluenceIcon
|
|
505
465
|
};
|
|
@@ -507,8 +467,8 @@ export var getLazyIcons = function getLazyIcons() {
|
|
|
507
467
|
}
|
|
508
468
|
}), IconType.Jira, {
|
|
509
469
|
default: function _default() {
|
|
510
|
-
return import( /* webpackChunkName: "@atlaskit-internal_glyphJira" */'@atlaskit/logo/jira-icon').then(function (
|
|
511
|
-
var JiraIcon =
|
|
470
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphJira" */'@atlaskit/logo/jira-icon').then(function (_ref2) {
|
|
471
|
+
var JiraIcon = _ref2.JiraIcon;
|
|
512
472
|
return {
|
|
513
473
|
default: JiraIcon
|
|
514
474
|
};
|
|
@@ -534,7 +494,7 @@ export var getLazyIcons = function getLazyIcons() {
|
|
|
534
494
|
default: function _default() {
|
|
535
495
|
return import( /* webpackChunkName: "@atlaskit-internal_glyphLow" */'../common/ui/icons/priority-low-icon');
|
|
536
496
|
}
|
|
537
|
-
}),
|
|
497
|
+
}), IconType.PriorityLowest, {
|
|
538
498
|
default: function _default() {
|
|
539
499
|
return import( /* webpackChunkName: "@atlaskit-internal_glyphLowest" */'../common/ui/icons/priority-lowest-icon');
|
|
540
500
|
}
|
|
@@ -542,7 +502,7 @@ export var getLazyIcons = function getLazyIcons() {
|
|
|
542
502
|
default: function _default() {
|
|
543
503
|
return import( /* webpackChunkName: "@atlaskit-internal_glyphMajor" */'../common/ui/icons/priority-major-icon');
|
|
544
504
|
}
|
|
545
|
-
}), IconType.PriorityMedium, {
|
|
505
|
+
}), _defineProperty(_defineProperty(_defineProperty(_ref3, IconType.PriorityMedium, {
|
|
546
506
|
default: function _default() {
|
|
547
507
|
return import( /* webpackChunkName: "@atlaskit-internal_glyphMedium" */'../common/ui/icons/priority-medium-icon');
|
|
548
508
|
}
|
|
@@ -554,7 +514,7 @@ export var getLazyIcons = function getLazyIcons() {
|
|
|
554
514
|
default: function _default() {
|
|
555
515
|
return import( /* webpackChunkName: "@atlaskit-internal_glyphTrivial" */'../common/ui/icons/priority-trivial-icon');
|
|
556
516
|
}
|
|
557
|
-
})
|
|
517
|
+
});
|
|
558
518
|
};
|
|
559
519
|
var getTypeToIconMap = function getTypeToIconMap(fileFormat) {
|
|
560
520
|
var iconDescriptor = extractFileFormatIcon(fileFormat);
|
|
@@ -593,7 +553,7 @@ export var sleep = function sleep(ms) {
|
|
|
593
553
|
});
|
|
594
554
|
};
|
|
595
555
|
var _importWithRetry = /*#__PURE__*/function () {
|
|
596
|
-
var
|
|
556
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(importFn) {
|
|
597
557
|
var retries,
|
|
598
558
|
interval,
|
|
599
559
|
_args = arguments,
|
|
@@ -628,12 +588,12 @@ var _importWithRetry = /*#__PURE__*/function () {
|
|
|
628
588
|
}, _callee, null, [[1, 3]]);
|
|
629
589
|
}));
|
|
630
590
|
return function importWithRetry(_x) {
|
|
631
|
-
return
|
|
591
|
+
return _ref4.apply(this, arguments);
|
|
632
592
|
};
|
|
633
593
|
}();
|
|
634
594
|
export { _importWithRetry as importWithRetry };
|
|
635
595
|
export var downloadUrl = /*#__PURE__*/function () {
|
|
636
|
-
var
|
|
596
|
+
var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(url) {
|
|
637
597
|
var isIE11, isSafari, iframeName, link, iframe;
|
|
638
598
|
return _regeneratorRuntime.wrap(function (_context2) {
|
|
639
599
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -669,11 +629,11 @@ export var downloadUrl = /*#__PURE__*/function () {
|
|
|
669
629
|
}, _callee2);
|
|
670
630
|
}));
|
|
671
631
|
return function downloadUrl(_x2) {
|
|
672
|
-
return
|
|
632
|
+
return _ref5.apply(this, arguments);
|
|
673
633
|
};
|
|
674
634
|
}();
|
|
675
635
|
export var openUrl = /*#__PURE__*/function () {
|
|
676
|
-
var
|
|
636
|
+
var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3(url) {
|
|
677
637
|
return _regeneratorRuntime.wrap(function (_context3) {
|
|
678
638
|
while (1) switch (_context3.prev = _context3.next) {
|
|
679
639
|
case 0:
|
|
@@ -691,7 +651,7 @@ export var openUrl = /*#__PURE__*/function () {
|
|
|
691
651
|
}, _callee3);
|
|
692
652
|
}));
|
|
693
653
|
return function openUrl(_x3) {
|
|
694
|
-
return
|
|
654
|
+
return _ref6.apply(this, arguments);
|
|
695
655
|
};
|
|
696
656
|
}();
|
|
697
657
|
|
|
@@ -45,42 +45,40 @@ var AtlaskitIcon = function AtlaskitIcon(_ref) {
|
|
|
45
45
|
_ref$size = _ref.size,
|
|
46
46
|
size = _ref$size === void 0 ? SmartLinkSize.Medium : _ref$size,
|
|
47
47
|
isTiledIcon = _ref.isTiledIcon;
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
}
|
|
83
|
-
}
|
|
48
|
+
// Intentionally keep these three icon types synchronous and outside lazy imports.
|
|
49
|
+
// These icons should be present in SSR markup so hydration does not cause a
|
|
50
|
+
// visible empty-state-then-pop-in transition in Smart Link consumers.
|
|
51
|
+
switch (icon) {
|
|
52
|
+
case IconType.Document:
|
|
53
|
+
{
|
|
54
|
+
var DocumentIcon = getDocumentIcon();
|
|
55
|
+
return /*#__PURE__*/React.createElement(DocumentIcon, {
|
|
56
|
+
label: label !== null && label !== void 0 ? label : 'document',
|
|
57
|
+
testId: testId,
|
|
58
|
+
size: size,
|
|
59
|
+
isTiledIcon: isTiledIcon
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
case IconType.Blog:
|
|
63
|
+
{
|
|
64
|
+
var BlogIcon = getBlogIcon();
|
|
65
|
+
return /*#__PURE__*/React.createElement(BlogIcon, {
|
|
66
|
+
label: label !== null && label !== void 0 ? label : 'blog',
|
|
67
|
+
testId: testId,
|
|
68
|
+
size: size,
|
|
69
|
+
isTiledIcon: isTiledIcon
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
case IconType.LiveDocument:
|
|
73
|
+
{
|
|
74
|
+
var LiveDocumentIcon = getLiveDocumentIcon();
|
|
75
|
+
return /*#__PURE__*/React.createElement(LiveDocumentIcon, {
|
|
76
|
+
label: label !== null && label !== void 0 ? label : 'live-doc',
|
|
77
|
+
testId: testId,
|
|
78
|
+
size: size,
|
|
79
|
+
isTiledIcon: isTiledIcon
|
|
80
|
+
});
|
|
81
|
+
}
|
|
84
82
|
}
|
|
85
83
|
var importFn = getIconImportFn(icon, size);
|
|
86
84
|
if (!importFn) {
|
|
@@ -12,7 +12,7 @@ import LinkWarningModal from './LinkWarningModal';
|
|
|
12
12
|
import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
|
|
13
13
|
var PACKAGE_DATA = {
|
|
14
14
|
packageName: "@atlaskit/smart-card",
|
|
15
|
-
packageVersion: "44.
|
|
15
|
+
packageVersion: "44.23.0",
|
|
16
16
|
componentName: 'linkUrl'
|
|
17
17
|
};
|
|
18
18
|
var LinkUrl = function LinkUrl(_ref) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/smart-card",
|
|
3
|
-
"version": "44.23.
|
|
3
|
+
"version": "44.23.1",
|
|
4
4
|
"description": "Smart card component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"@atlaskit/link-test-helpers": "^10.4.0",
|
|
67
67
|
"@atlaskit/linking-common": "^9.13.0",
|
|
68
68
|
"@atlaskit/linking-types": "^14.4.0",
|
|
69
|
-
"@atlaskit/logo": "^20.
|
|
69
|
+
"@atlaskit/logo": "^20.2.0",
|
|
70
70
|
"@atlaskit/lozenge": "^13.8.0",
|
|
71
71
|
"@atlaskit/menu": "^8.5.0",
|
|
72
72
|
"@atlaskit/modal-dialog": "^15.2.0",
|
|
@@ -77,8 +77,8 @@
|
|
|
77
77
|
"@atlaskit/platform-feature-flags-react": "^0.5.0",
|
|
78
78
|
"@atlaskit/popup": "^4.23.0",
|
|
79
79
|
"@atlaskit/primitives": "^19.0.0",
|
|
80
|
-
"@atlaskit/react-ufo": "^6.
|
|
81
|
-
"@atlaskit/rovo-triggers": "^7.
|
|
80
|
+
"@atlaskit/react-ufo": "^6.7.0",
|
|
81
|
+
"@atlaskit/rovo-triggers": "^7.4.0",
|
|
82
82
|
"@atlaskit/section-message": "^8.13.0",
|
|
83
83
|
"@atlaskit/select": "^21.12.0",
|
|
84
84
|
"@atlaskit/spinner": "^19.1.0",
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
"@atlaskit/textfield": "^8.3.0",
|
|
88
88
|
"@atlaskit/theme": "^25.0.0",
|
|
89
89
|
"@atlaskit/tile": "^1.1.0",
|
|
90
|
-
"@atlaskit/tmp-editor-statsig": "^89.
|
|
90
|
+
"@atlaskit/tmp-editor-statsig": "^89.1.0",
|
|
91
91
|
"@atlaskit/tokens": "^13.1.0",
|
|
92
92
|
"@atlaskit/tooltip": "^22.6.0",
|
|
93
93
|
"@atlaskit/ufo": "^0.5.0",
|