@atlaskit/smart-card 34.5.0 → 34.5.2
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 +16 -0
- package/dist/cjs/common/ui/icons/angle-brackets-icon.js +2 -11
- package/dist/cjs/common/ui/icons/audio-icon.js +2 -11
- package/dist/cjs/common/ui/icons/blog-icon.js +13 -0
- package/dist/cjs/common/ui/icons/chart-bar-icon.js +2 -11
- package/dist/cjs/common/ui/icons/file-icon.js +2 -11
- package/dist/cjs/common/ui/icons/folder-icon.js +2 -11
- package/dist/cjs/common/ui/icons/image-icon.js +2 -11
- package/dist/cjs/common/ui/icons/list-bullet-icon.js +2 -11
- package/dist/cjs/common/ui/icons/page-icon.js +2 -12
- package/dist/cjs/common/ui/icons/types.js +5 -0
- package/dist/cjs/common/ui/icons/utils.js +47 -0
- package/dist/cjs/common/ui/icons/video-icon.js +2 -11
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/utils/index.js +395 -180
- package/dist/cjs/view/BlockCard/views/ErroredView.js +12 -2
- package/dist/cjs/view/BlockCard/views/ForbiddenView.js +12 -1
- package/dist/cjs/view/BlockCard/views/NotFoundView.js +12 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/title-block/errored/index.compiled.css +1 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/title-block/errored/index.js +16 -8
- package/dist/cjs/view/FlexibleCard/components/blocks/title-block/resolved/index.compiled.css +2 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/title-block/resolved/index.js +38 -20
- package/dist/cjs/view/FlexibleCard/components/blocks/title-block/resolving/TitleBlockResolvingViewOld.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/blocks/title-block/resolving/index.compiled.css +2 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/title-block/resolving/index.js +23 -2
- package/dist/cjs/view/FlexibleCard/components/common/atlaskit-icon/index.js +43 -17
- package/dist/cjs/view/FlexibleCard/components/common/image-icon/index.js +28 -8
- package/dist/cjs/view/FlexibleCard/components/common/loading-skeleton/index.compiled.css +0 -2
- package/dist/cjs/view/FlexibleCard/components/common/loading-skeleton/index.js +13 -12
- package/dist/cjs/view/FlexibleCard/components/container/index.compiled.css +5 -2
- package/dist/cjs/view/FlexibleCard/components/container/index.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/elements/icon/index.js +35 -8
- package/dist/cjs/view/FlexibleCard/components/utils.js +23 -2
- package/dist/cjs/view/HoverCard/components/views/resolving/index.js +29 -14
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/common/ui/icons/angle-brackets-icon.js +2 -11
- package/dist/es2019/common/ui/icons/audio-icon.js +2 -11
- package/dist/es2019/common/ui/icons/blog-icon.js +6 -0
- package/dist/es2019/common/ui/icons/chart-bar-icon.js +2 -11
- package/dist/es2019/common/ui/icons/file-icon.js +2 -11
- package/dist/es2019/common/ui/icons/folder-icon.js +2 -11
- package/dist/es2019/common/ui/icons/image-icon.js +2 -11
- package/dist/es2019/common/ui/icons/list-bullet-icon.js +2 -11
- package/dist/es2019/common/ui/icons/page-icon.js +2 -12
- package/dist/es2019/common/ui/icons/types.js +1 -0
- package/dist/es2019/common/ui/icons/utils.js +39 -0
- package/dist/es2019/common/ui/icons/video-icon.js +2 -11
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/utils/index.js +166 -53
- package/dist/es2019/view/BlockCard/views/ErroredView.js +12 -2
- package/dist/es2019/view/BlockCard/views/ForbiddenView.js +13 -2
- package/dist/es2019/view/BlockCard/views/NotFoundView.js +13 -2
- package/dist/es2019/view/FlexibleCard/components/blocks/title-block/errored/index.compiled.css +1 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/title-block/errored/index.js +8 -3
- package/dist/es2019/view/FlexibleCard/components/blocks/title-block/resolved/index.compiled.css +2 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/title-block/resolved/index.js +24 -4
- package/dist/es2019/view/FlexibleCard/components/blocks/title-block/resolving/TitleBlockResolvingViewOld.js +2 -2
- package/dist/es2019/view/FlexibleCard/components/blocks/title-block/resolving/index.compiled.css +2 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/title-block/resolving/index.js +23 -2
- package/dist/es2019/view/FlexibleCard/components/common/atlaskit-icon/index.js +46 -21
- package/dist/es2019/view/FlexibleCard/components/common/image-icon/index.js +28 -8
- package/dist/es2019/view/FlexibleCard/components/common/loading-skeleton/index.compiled.css +0 -2
- package/dist/es2019/view/FlexibleCard/components/common/loading-skeleton/index.js +14 -12
- package/dist/es2019/view/FlexibleCard/components/container/index.compiled.css +5 -2
- package/dist/es2019/view/FlexibleCard/components/container/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/elements/icon/index.js +35 -10
- package/dist/es2019/view/FlexibleCard/components/utils.js +22 -1
- package/dist/es2019/view/HoverCard/components/views/resolving/index.js +21 -6
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/common/ui/icons/angle-brackets-icon.js +2 -11
- package/dist/esm/common/ui/icons/audio-icon.js +2 -11
- package/dist/esm/common/ui/icons/blog-icon.js +6 -0
- package/dist/esm/common/ui/icons/chart-bar-icon.js +2 -11
- package/dist/esm/common/ui/icons/file-icon.js +2 -11
- package/dist/esm/common/ui/icons/folder-icon.js +2 -11
- package/dist/esm/common/ui/icons/image-icon.js +2 -11
- package/dist/esm/common/ui/icons/list-bullet-icon.js +2 -11
- package/dist/esm/common/ui/icons/page-icon.js +2 -12
- package/dist/esm/common/ui/icons/types.js +1 -0
- package/dist/esm/common/ui/icons/utils.js +40 -0
- package/dist/esm/common/ui/icons/video-icon.js +2 -11
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/utils/index.js +261 -96
- package/dist/esm/view/BlockCard/views/ErroredView.js +12 -2
- package/dist/esm/view/BlockCard/views/ForbiddenView.js +13 -2
- package/dist/esm/view/BlockCard/views/NotFoundView.js +13 -2
- package/dist/esm/view/FlexibleCard/components/blocks/title-block/errored/index.compiled.css +1 -0
- package/dist/esm/view/FlexibleCard/components/blocks/title-block/errored/index.js +8 -3
- package/dist/esm/view/FlexibleCard/components/blocks/title-block/resolved/index.compiled.css +2 -1
- package/dist/esm/view/FlexibleCard/components/blocks/title-block/resolved/index.js +37 -19
- package/dist/esm/view/FlexibleCard/components/blocks/title-block/resolving/TitleBlockResolvingViewOld.js +2 -2
- package/dist/esm/view/FlexibleCard/components/blocks/title-block/resolving/index.compiled.css +2 -1
- package/dist/esm/view/FlexibleCard/components/blocks/title-block/resolving/index.js +23 -2
- package/dist/esm/view/FlexibleCard/components/common/atlaskit-icon/index.js +47 -21
- package/dist/esm/view/FlexibleCard/components/common/image-icon/index.js +28 -8
- package/dist/esm/view/FlexibleCard/components/common/loading-skeleton/index.compiled.css +0 -2
- package/dist/esm/view/FlexibleCard/components/common/loading-skeleton/index.js +13 -11
- package/dist/esm/view/FlexibleCard/components/container/index.compiled.css +5 -2
- package/dist/esm/view/FlexibleCard/components/container/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/elements/icon/index.js +35 -8
- package/dist/esm/view/FlexibleCard/components/utils.js +22 -1
- package/dist/esm/view/HoverCard/components/views/resolving/index.js +21 -6
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/types/common/ui/icons/angle-brackets-icon.d.ts +2 -6
- package/dist/types/common/ui/icons/audio-icon.d.ts +2 -6
- package/dist/types/common/ui/icons/blog-icon.d.ts +8 -0
- package/dist/types/common/ui/icons/chart-bar-icon.d.ts +2 -6
- package/dist/types/common/ui/icons/file-icon.d.ts +2 -6
- package/dist/types/common/ui/icons/folder-icon.d.ts +2 -6
- package/dist/types/common/ui/icons/image-icon.d.ts +2 -6
- package/dist/types/common/ui/icons/list-bullet-icon.d.ts +2 -6
- package/dist/types/common/ui/icons/page-icon.d.ts +2 -6
- package/dist/types/common/ui/icons/types.d.ts +6 -0
- package/dist/types/common/ui/icons/utils.d.ts +15 -0
- package/dist/types/common/ui/icons/video-icon.d.ts +2 -6
- package/dist/types/utils/index.d.ts +6 -2
- package/dist/types/view/FlexibleCard/components/blocks/title-block/resolved/index.d.ts +3 -1
- package/dist/types/view/FlexibleCard/components/common/atlaskit-icon/index.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/common/atlaskit-icon/types.d.ts +2 -1
- package/dist/types/view/FlexibleCard/components/common/image-icon/index.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/common/image-icon/types.d.ts +2 -0
- package/dist/types/view/FlexibleCard/components/common/loading-skeleton/LoadingSkeletonOld.d.ts +2 -2
- package/dist/types/view/FlexibleCard/components/common/loading-skeleton/index.d.ts +4 -3
- package/dist/types/view/FlexibleCard/components/common/loading-skeleton/types.d.ts +17 -1
- package/dist/types/view/FlexibleCard/components/utils.d.ts +2 -0
- package/dist/types/view/HoverCard/components/views/resolving/index.d.ts +0 -4
- package/dist/types-ts4.5/common/ui/icons/angle-brackets-icon.d.ts +2 -6
- package/dist/types-ts4.5/common/ui/icons/audio-icon.d.ts +2 -6
- package/dist/types-ts4.5/common/ui/icons/blog-icon.d.ts +8 -0
- package/dist/types-ts4.5/common/ui/icons/chart-bar-icon.d.ts +2 -6
- package/dist/types-ts4.5/common/ui/icons/file-icon.d.ts +2 -6
- package/dist/types-ts4.5/common/ui/icons/folder-icon.d.ts +2 -6
- package/dist/types-ts4.5/common/ui/icons/image-icon.d.ts +2 -6
- package/dist/types-ts4.5/common/ui/icons/list-bullet-icon.d.ts +2 -6
- package/dist/types-ts4.5/common/ui/icons/page-icon.d.ts +2 -6
- package/dist/types-ts4.5/common/ui/icons/types.d.ts +6 -0
- package/dist/types-ts4.5/common/ui/icons/utils.d.ts +15 -0
- package/dist/types-ts4.5/common/ui/icons/video-icon.d.ts +2 -6
- package/dist/types-ts4.5/utils/index.d.ts +6 -2
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/title-block/resolved/index.d.ts +3 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/common/atlaskit-icon/index.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/common/atlaskit-icon/types.d.ts +2 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/common/image-icon/index.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/common/image-icon/types.d.ts +2 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/common/loading-skeleton/LoadingSkeletonOld.d.ts +2 -2
- package/dist/types-ts4.5/view/FlexibleCard/components/common/loading-skeleton/index.d.ts +4 -3
- package/dist/types-ts4.5/view/FlexibleCard/components/common/loading-skeleton/types.d.ts +17 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/utils.d.ts +2 -0
- package/dist/types-ts4.5/view/HoverCard/components/views/resolving/index.d.ts +0 -4
- package/package.json +14 -2
package/dist/esm/utils/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import React from 'react';
|
|
|
6
6
|
import Loadable from 'react-loadable';
|
|
7
7
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
8
|
import { themeObjectToString } from '@atlaskit/tokens';
|
|
9
|
-
import { IconType } from '../constants';
|
|
9
|
+
import { IconType, SmartLinkSize } from '../constants';
|
|
10
10
|
import extractFileFormatIcon from '../extractors/flexible/icon/extract-file-formatIcon';
|
|
11
11
|
export var isSpecialEvent = function isSpecialEvent(evt) {
|
|
12
12
|
return evt.isDefaultPrevented() && (isIframe() || isSpecialKey(evt) || isSpecialClick(evt));
|
|
@@ -224,111 +224,273 @@ var typeToIcon = {
|
|
|
224
224
|
return import('@atlaskit/icon-file-type/glyph/folder/16');
|
|
225
225
|
}]
|
|
226
226
|
};
|
|
227
|
+
|
|
228
|
+
// prettier-ignore
|
|
227
229
|
export var getLazyIcons = function getLazyIcons() {
|
|
228
230
|
var _ref3;
|
|
229
|
-
return _ref3 = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref3, IconType.Document,
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
}), IconType.
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
}), IconType.
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
}), IconType.
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
}), IconType.
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
}),
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
}), IconType.
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
}), IconType.
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
}), IconType.
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
}), IconType.
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
}), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref3, IconType.
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
}), IconType.
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
}), IconType.
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
}), IconType.
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
}), IconType.
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
}),
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
}), IconType.
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
return
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
return
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
231
|
+
return _ref3 = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref3, IconType.Document, {
|
|
232
|
+
default: function _default() {
|
|
233
|
+
return import( /* webpackChunkName: "@atlaskit-internal_page-icon" */'../common/ui/icons/page-icon');
|
|
234
|
+
}
|
|
235
|
+
}), IconType.Blog, {
|
|
236
|
+
default: function _default() {
|
|
237
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphBlock" */'../common/ui/icons/blog-icon');
|
|
238
|
+
}
|
|
239
|
+
}), IconType.Audio, {
|
|
240
|
+
default: function _default() {
|
|
241
|
+
return import( /* webpackChunkName: "@atlaskit-internal_audio-icon" */'../common/ui/icons/audio-icon');
|
|
242
|
+
}
|
|
243
|
+
}), IconType.Code, {
|
|
244
|
+
default: function _default() {
|
|
245
|
+
return import( /* webpackChunkName: "@atlaskit-internal_angle-brackets-icon" */'../common/ui/icons/angle-brackets-icon');
|
|
246
|
+
}
|
|
247
|
+
}), IconType.File, {
|
|
248
|
+
default: function _default() {
|
|
249
|
+
return import( /* webpackChunkName: "@atlaskit-internal_file-icon" */'../common/ui/icons/file-icon');
|
|
250
|
+
}
|
|
251
|
+
}), IconType.Folder, {
|
|
252
|
+
default: function _default() {
|
|
253
|
+
return import( /* webpackChunkName: "@atlaskit-internal_folder-icon" */'../common/ui/icons/folder-icon');
|
|
254
|
+
}
|
|
255
|
+
}), IconType.Generic, {
|
|
256
|
+
default: function _default() {
|
|
257
|
+
return import( /* webpackChunkName: "@atlaskit-internal_file-icon" */'../common/ui/icons/file-icon');
|
|
258
|
+
}
|
|
259
|
+
}), IconType.Image, {
|
|
260
|
+
default: function _default() {
|
|
261
|
+
return import( /* webpackChunkName: "@atlaskit-internal_image-icon" */'../common/ui/icons/image-icon');
|
|
262
|
+
}
|
|
263
|
+
}), IconType.Presentation, {
|
|
264
|
+
default: function _default() {
|
|
265
|
+
return import( /* webpackChunkName: "@atlaskit-internal_chart-bar-icon" */'../common/ui/icons/chart-bar-icon');
|
|
266
|
+
}
|
|
267
|
+
}), IconType.Spreadsheet, {
|
|
268
|
+
default: function _default() {
|
|
269
|
+
return import( /* webpackChunkName: "@atlaskit-internal_list-bullet-icon" */'../common/ui/icons/list-bullet-icon');
|
|
270
|
+
}
|
|
271
|
+
}), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref3, IconType.Video, {
|
|
272
|
+
default: function _default() {
|
|
273
|
+
return import( /* webpackChunkName: "@atlaskit-internal_video-icon" */'../common/ui/icons/video-icon');
|
|
274
|
+
}
|
|
275
|
+
}), IconType.Project, {
|
|
276
|
+
default: function _default() {
|
|
277
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphProject" */'@atlaskit/icon/core/migration/people-group');
|
|
278
|
+
}
|
|
279
|
+
}), IconType.Template, {
|
|
280
|
+
default: function _default() {
|
|
281
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphTemplate" */'@atlaskit/icon/core/migration/file--document-filled');
|
|
282
|
+
}
|
|
283
|
+
}), IconType.Forbidden, {
|
|
284
|
+
default: function _default() {
|
|
285
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphForbidden" */'@atlaskit/icon/core/migration/lock-locked--lock-filled');
|
|
286
|
+
}
|
|
287
|
+
}), IconType.Default, {
|
|
288
|
+
default: function _default() {
|
|
289
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphDefault" */'@atlaskit/icon/core/migration/link');
|
|
290
|
+
}
|
|
291
|
+
}), IconType.Archive, {
|
|
292
|
+
default: function _default() {
|
|
293
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphArchive" */'@atlaskit/icon-file-type/glyph/archive/16');
|
|
294
|
+
},
|
|
295
|
+
large: function large() {
|
|
296
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphArchive" */'@atlaskit/icon-file-type/glyph/archive/24');
|
|
297
|
+
}
|
|
298
|
+
}), IconType.Executable, {
|
|
299
|
+
default: function _default() {
|
|
300
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphExecutable" */'@atlaskit/icon-file-type/glyph/executable/16');
|
|
301
|
+
},
|
|
302
|
+
large: function large() {
|
|
303
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphExecutable" */'@atlaskit/icon-file-type/glyph/executable/24');
|
|
304
|
+
}
|
|
305
|
+
}), IconType.GIF, {
|
|
306
|
+
default: function _default() {
|
|
307
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphGIF" */'@atlaskit/icon-file-type/glyph/gif/16');
|
|
308
|
+
},
|
|
309
|
+
large: function large() {
|
|
310
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphGIF" */'@atlaskit/icon-file-type/glyph/gif/24');
|
|
311
|
+
}
|
|
312
|
+
}), IconType.GoogleDocs, {
|
|
313
|
+
default: function _default() {
|
|
314
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphGoogleDocs" */'@atlaskit/icon-file-type/glyph/google-doc/16');
|
|
315
|
+
},
|
|
316
|
+
large: function large() {
|
|
317
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphGoogleDocs" */'@atlaskit/icon-file-type/glyph/google-doc/24');
|
|
318
|
+
}
|
|
319
|
+
}), IconType.GoogleForms, {
|
|
320
|
+
default: function _default() {
|
|
321
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphGoogleForms" */'@atlaskit/icon-file-type/glyph/google-form/16');
|
|
322
|
+
},
|
|
323
|
+
large: function large() {
|
|
324
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphGoogleForms" */'@atlaskit/icon-file-type/glyph/google-form/24');
|
|
325
|
+
}
|
|
326
|
+
}), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref3, IconType.GoogleSheets, {
|
|
327
|
+
default: function _default() {
|
|
328
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphGoogleSheets" */'@atlaskit/icon-file-type/glyph/google-sheet/16');
|
|
329
|
+
},
|
|
330
|
+
large: function large() {
|
|
331
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphGoogleSheets" */'@atlaskit/icon-file-type/glyph/google-sheet/24');
|
|
332
|
+
}
|
|
333
|
+
}), IconType.GoogleSlides, {
|
|
334
|
+
default: function _default() {
|
|
335
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphGoogleSlides" */'@atlaskit/icon-file-type/glyph/google-slide/16');
|
|
336
|
+
},
|
|
337
|
+
large: function large() {
|
|
338
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphGoogleSlides" */'@atlaskit/icon-file-type/glyph/google-slide/24');
|
|
339
|
+
}
|
|
340
|
+
}), IconType.MSExcel, {
|
|
341
|
+
default: function _default() {
|
|
342
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphMSExcel" */'@atlaskit/icon-file-type/glyph/excel-spreadsheet/16');
|
|
343
|
+
},
|
|
344
|
+
large: function large() {
|
|
345
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphMSExcel" */'@atlaskit/icon-file-type/glyph/excel-spreadsheet/24');
|
|
346
|
+
}
|
|
347
|
+
}), IconType.MSPowerpoint, {
|
|
348
|
+
default: function _default() {
|
|
349
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphMSPowerpoint" */'@atlaskit/icon-file-type/glyph/powerpoint-presentation/16');
|
|
350
|
+
},
|
|
351
|
+
large: function large() {
|
|
352
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphMSPowerpoint" */'@atlaskit/icon-file-type/glyph/powerpoint-presentation/24');
|
|
353
|
+
}
|
|
354
|
+
}), IconType.MSWord, {
|
|
355
|
+
default: function _default() {
|
|
356
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphMSWord" */'@atlaskit/icon-file-type/glyph/word-document/16');
|
|
357
|
+
},
|
|
358
|
+
large: function large() {
|
|
359
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphMSWord" */'@atlaskit/icon-file-type/glyph/word-document/24');
|
|
360
|
+
}
|
|
361
|
+
}), IconType.PDF, {
|
|
362
|
+
default: function _default() {
|
|
363
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphPDF" */'@atlaskit/icon-file-type/glyph/pdf-document/16');
|
|
364
|
+
},
|
|
365
|
+
large: function large() {
|
|
366
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphPDF" */'@atlaskit/icon-file-type/glyph/pdf-document/24');
|
|
367
|
+
}
|
|
368
|
+
}), IconType.Sketch, {
|
|
369
|
+
default: function _default() {
|
|
370
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphSketch" */'@atlaskit/icon-file-type/glyph/sketch/16');
|
|
371
|
+
},
|
|
372
|
+
large: function large() {
|
|
373
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphSketch" */'@atlaskit/icon-file-type/glyph/sketch/24');
|
|
374
|
+
}
|
|
375
|
+
}), IconType.Branch, {
|
|
376
|
+
default: function _default() {
|
|
377
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphBranch" */'@atlaskit/icon-object/glyph/branch/16');
|
|
378
|
+
},
|
|
379
|
+
large: function large() {
|
|
380
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphBranch" */'@atlaskit/icon-object/glyph/branch/24');
|
|
381
|
+
}
|
|
382
|
+
}), IconType.Commit, {
|
|
383
|
+
default: function _default() {
|
|
384
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphCommit" */'@atlaskit/icon-object/glyph/commit/16');
|
|
385
|
+
},
|
|
386
|
+
large: function large() {
|
|
387
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphCommit" */'@atlaskit/icon-object/glyph/commit/24');
|
|
388
|
+
}
|
|
389
|
+
}), IconType.PullRequest, {
|
|
390
|
+
default: function _default() {
|
|
391
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphPullRequest" */'@atlaskit/icon-object/glyph/pull-request/16');
|
|
392
|
+
},
|
|
393
|
+
large: function large() {
|
|
394
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphPullRequest" */'@atlaskit/icon-object/glyph/pull-request/24');
|
|
395
|
+
}
|
|
396
|
+
}), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref3, IconType.Repo, {
|
|
397
|
+
default: function _default() {
|
|
398
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphRepo" */'@atlaskit/icon-object/glyph/code/16');
|
|
399
|
+
},
|
|
400
|
+
large: function large() {
|
|
401
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphRepo" */'@atlaskit/icon-object/glyph/code/24');
|
|
402
|
+
}
|
|
403
|
+
}), IconType.Bug, {
|
|
404
|
+
default: function _default() {
|
|
405
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphBug" */'@atlaskit/icon-object/glyph/bug/16');
|
|
406
|
+
},
|
|
407
|
+
large: function large() {
|
|
408
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphBug" */'@atlaskit/icon-object/glyph/bug/24');
|
|
409
|
+
}
|
|
410
|
+
}), IconType.Change, {
|
|
411
|
+
default: function _default() {
|
|
412
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphChange" */'@atlaskit/icon-object/glyph/changes/16');
|
|
413
|
+
},
|
|
414
|
+
large: function large() {
|
|
415
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphChange" */'@atlaskit/icon-object/glyph/changes/24');
|
|
416
|
+
}
|
|
417
|
+
}), IconType.Epic, {
|
|
418
|
+
default: function _default() {
|
|
419
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphEpic" */'@atlaskit/icon-object/glyph/epic/16');
|
|
420
|
+
},
|
|
421
|
+
large: function large() {
|
|
422
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphEpic" */'@atlaskit/icon-object/glyph/epic/24');
|
|
423
|
+
}
|
|
424
|
+
}), IconType.Incident, {
|
|
425
|
+
default: function _default() {
|
|
426
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphIncident" */'@atlaskit/icon-object/glyph/incident/16');
|
|
427
|
+
},
|
|
428
|
+
large: function large() {
|
|
429
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphIncident" */'@atlaskit/icon-object/glyph/incident/24');
|
|
430
|
+
}
|
|
431
|
+
}), IconType.Problem, {
|
|
432
|
+
default: function _default() {
|
|
433
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphProblem" */'@atlaskit/icon-object/glyph/problem/16');
|
|
434
|
+
},
|
|
435
|
+
large: function large() {
|
|
436
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphProblem" */'@atlaskit/icon-object/glyph/problem/24');
|
|
437
|
+
}
|
|
438
|
+
}), IconType.ServiceRequest, {
|
|
439
|
+
default: function _default() {
|
|
440
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphServiceRequest" */'@atlaskit/icon-object/glyph/issue/16');
|
|
441
|
+
},
|
|
442
|
+
large: function large() {
|
|
443
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphServiceRequest" */'@atlaskit/icon-object/glyph/issue/24');
|
|
444
|
+
}
|
|
445
|
+
}), IconType.Story, {
|
|
446
|
+
default: function _default() {
|
|
447
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphStory" */'@atlaskit/icon-object/glyph/story/16');
|
|
448
|
+
},
|
|
449
|
+
large: function large() {
|
|
450
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphStory" */'@atlaskit/icon-object/glyph/story/24');
|
|
451
|
+
}
|
|
452
|
+
}), IconType.SubTask, {
|
|
453
|
+
default: function _default() {
|
|
454
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphSubTask" */'@atlaskit/icon-object/glyph/subtask/16');
|
|
455
|
+
},
|
|
456
|
+
large: function large() {
|
|
457
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphSubTask" */'@atlaskit/icon-object/glyph/subtask/24');
|
|
458
|
+
}
|
|
459
|
+
}), IconType.Task, {
|
|
460
|
+
default: function _default() {
|
|
461
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphTask" */'@atlaskit/icon-object/glyph/task/16');
|
|
462
|
+
},
|
|
463
|
+
large: function large() {
|
|
464
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphTask" */'@atlaskit/icon-object/glyph/task/24');
|
|
465
|
+
}
|
|
466
|
+
}), _defineProperty(_defineProperty(_ref3, IconType.Confluence, {
|
|
467
|
+
default: function _default() {
|
|
468
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphConfluence" */'@atlaskit/logo/confluence-icon').then(function (_ref) {
|
|
469
|
+
var ConfluenceIcon = _ref.ConfluenceIcon;
|
|
470
|
+
return {
|
|
471
|
+
default: ConfluenceIcon
|
|
472
|
+
};
|
|
473
|
+
});
|
|
474
|
+
}
|
|
475
|
+
}), IconType.Jira, {
|
|
476
|
+
default: function _default() {
|
|
477
|
+
return import( /* webpackChunkName: "@atlaskit-internal_glyphJira" */'@atlaskit/logo/jira-icon').then(function (_ref2) {
|
|
478
|
+
var JiraIcon = _ref2.JiraIcon;
|
|
479
|
+
return {
|
|
480
|
+
default: JiraIcon
|
|
481
|
+
};
|
|
482
|
+
});
|
|
483
|
+
}
|
|
323
484
|
});
|
|
324
485
|
};
|
|
325
486
|
var getTypeToIconMap = function getTypeToIconMap(fileFormat) {
|
|
487
|
+
var _lazyIcons$iconDescri;
|
|
326
488
|
var iconDescriptor = extractFileFormatIcon(fileFormat);
|
|
327
489
|
if (!(iconDescriptor !== null && iconDescriptor !== void 0 && iconDescriptor.icon) || !iconDescriptor.label) {
|
|
328
490
|
return null;
|
|
329
491
|
}
|
|
330
492
|
var lazyIcons = getLazyIcons();
|
|
331
|
-
return [iconDescriptor.label, lazyIcons[iconDescriptor.icon]];
|
|
493
|
+
return [iconDescriptor.label, (_lazyIcons$iconDescri = lazyIcons[iconDescriptor.icon]) === null || _lazyIcons$iconDescri === void 0 ? void 0 : _lazyIcons$iconDescri.default];
|
|
332
494
|
};
|
|
333
495
|
export var getIframeSandboxAttribute = function getIframeSandboxAttribute(isTrusted) {
|
|
334
496
|
if (isTrusted) {
|
|
@@ -466,4 +628,7 @@ export var getPreviewUrlWithTheme = function getPreviewUrlWithTheme(previewUrl,
|
|
|
466
628
|
} catch (_unused) {
|
|
467
629
|
return previewUrl;
|
|
468
630
|
}
|
|
631
|
+
};
|
|
632
|
+
export var isIconSizeLarge = function isIconSizeLarge(size) {
|
|
633
|
+
return size && [SmartLinkSize.Large, SmartLinkSize.XLarge].includes(size);
|
|
469
634
|
};
|
|
@@ -2,7 +2,9 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
var _excluded = ["testId"];
|
|
4
4
|
import React, { useMemo } from 'react';
|
|
5
|
-
import WarningIcon from '@atlaskit/icon/
|
|
5
|
+
import WarningIcon from '@atlaskit/icon/core/migration/warning';
|
|
6
|
+
import LegacyWarningIcon from '@atlaskit/icon/glyph/warning';
|
|
7
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
8
|
import { R300 } from '@atlaskit/theme/colors';
|
|
7
9
|
import { messages } from '../../../messages';
|
|
8
10
|
import Text from '../../FlexibleCard/components/elements/text';
|
|
@@ -26,7 +28,15 @@ var ErroredView = function ErroredView(_ref) {
|
|
|
26
28
|
return /*#__PURE__*/React.createElement(UnresolvedView, _extends({}, props, {
|
|
27
29
|
actions: actions,
|
|
28
30
|
testId: testId
|
|
29
|
-
}), /*#__PURE__*/React.createElement(WarningIcon, {
|
|
31
|
+
}), fg('platform-smart-card-icon-migration') ? /*#__PURE__*/React.createElement(WarningIcon, {
|
|
32
|
+
label: "errored-warning-icon",
|
|
33
|
+
color: "var(--ds-icon-warning, #E56910)",
|
|
34
|
+
LEGACY_size: "small",
|
|
35
|
+
testId: "".concat(testId, "-warning-icon")
|
|
36
|
+
}) :
|
|
37
|
+
/*#__PURE__*/
|
|
38
|
+
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19497
|
|
39
|
+
React.createElement(LegacyWarningIcon, {
|
|
30
40
|
label: "errored-warning-icon",
|
|
31
41
|
size: "small",
|
|
32
42
|
primaryColor: "var(--ds-icon-warning, ".concat(R300, ")"),
|
|
@@ -5,8 +5,10 @@ var _excluded = ["testId"];
|
|
|
5
5
|
import React, { useMemo } from 'react';
|
|
6
6
|
import { useIntl } from 'react-intl-next';
|
|
7
7
|
import { useAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
8
|
-
import
|
|
8
|
+
import LockLockedIcon from '@atlaskit/icon/core/lock-locked';
|
|
9
|
+
import LegacyLockIcon from '@atlaskit/icon/glyph/lock';
|
|
9
10
|
import { extractProvider } from '@atlaskit/link-extractors';
|
|
11
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
10
12
|
import { R300 } from '@atlaskit/theme/colors';
|
|
11
13
|
import { extractRequestAccessContextImproved } from '../../../extractors/common/context/extractAccessContext';
|
|
12
14
|
import extractHostname from '../../../extractors/common/hostname/extractHostname';
|
|
@@ -76,7 +78,16 @@ var ForbiddenView = function ForbiddenView(_ref) {
|
|
|
76
78
|
showPreview: true,
|
|
77
79
|
testId: testId,
|
|
78
80
|
title: title
|
|
79
|
-
}), /*#__PURE__*/React.createElement(
|
|
81
|
+
}), fg('platform-smart-card-icon-migration') ? /*#__PURE__*/React.createElement(LockLockedIcon, {
|
|
82
|
+
label: "forbidden-lock-icon",
|
|
83
|
+
color: "var(--ds-icon-danger, #C9372C)",
|
|
84
|
+
LEGACY_fallbackIcon: LegacyLockIcon,
|
|
85
|
+
LEGACY_size: "small",
|
|
86
|
+
testId: "".concat(testId, "-lock-icon")
|
|
87
|
+
}) :
|
|
88
|
+
/*#__PURE__*/
|
|
89
|
+
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19497
|
|
90
|
+
React.createElement(LegacyLockIcon, {
|
|
80
91
|
label: "forbidden-lock-icon",
|
|
81
92
|
size: "small",
|
|
82
93
|
primaryColor: "var(--ds-icon-danger, ".concat(R300, ")"),
|
|
@@ -3,8 +3,10 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
|
|
|
3
3
|
var _excluded = ["testId"];
|
|
4
4
|
import React, { useMemo } from 'react';
|
|
5
5
|
import { useIntl } from 'react-intl-next';
|
|
6
|
-
import
|
|
6
|
+
import LockLockedIcon from '@atlaskit/icon/core/lock-locked';
|
|
7
|
+
import LegacyLockIcon from '@atlaskit/icon/glyph/lock';
|
|
7
8
|
import { extractProvider } from '@atlaskit/link-extractors';
|
|
9
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
10
|
import { R300 } from '@atlaskit/theme/colors';
|
|
9
11
|
import { messages } from '../../../messages';
|
|
10
12
|
import Text from '../../FlexibleCard/components/elements/text';
|
|
@@ -42,7 +44,16 @@ var NotFoundView = function NotFoundView(_ref) {
|
|
|
42
44
|
return /*#__PURE__*/React.createElement(UnresolvedView, _extends({}, props, {
|
|
43
45
|
testId: testId,
|
|
44
46
|
title: title
|
|
45
|
-
}), /*#__PURE__*/React.createElement(
|
|
47
|
+
}), fg('platform-smart-card-icon-migration') ? /*#__PURE__*/React.createElement(LockLockedIcon, {
|
|
48
|
+
label: "not-found-lock-icon",
|
|
49
|
+
color: "var(--ds-icon-danger, #C9372C)",
|
|
50
|
+
LEGACY_fallbackIcon: LegacyLockIcon,
|
|
51
|
+
LEGACY_size: "small",
|
|
52
|
+
testId: "".concat(testId, "-lock-icon")
|
|
53
|
+
}) :
|
|
54
|
+
/*#__PURE__*/
|
|
55
|
+
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19497
|
|
56
|
+
React.createElement(LegacyLockIcon, {
|
|
46
57
|
label: "not-found-lock-icon",
|
|
47
58
|
size: "small",
|
|
48
59
|
primaryColor: "var(--ds-icon-danger, ".concat(R300, ")"),
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._zulpu2gc{gap:var(--ds-space-100,8px)}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
/* index.tsx generated by @compiled/babel-plugin v0.35.0 */
|
|
1
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
4
|
var _excluded = ["actionGroup", "retry", "position", "testId", "title", "icon", "hideIcon"];
|
|
4
|
-
import
|
|
5
|
+
import "./index.compiled.css";
|
|
6
|
+
import * as React from 'react';
|
|
7
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
5
8
|
import { FormattedMessage } from 'react-intl-next';
|
|
6
9
|
import { Box } from '@atlaskit/primitives';
|
|
7
10
|
import { SmartLinkAlignment, SmartLinkDirection } from '../../../../../../constants';
|
|
@@ -32,7 +35,8 @@ var TitleBlockErroredViewNew = function TitleBlockErroredViewNew(_ref) {
|
|
|
32
35
|
values = _ref2.values;
|
|
33
36
|
var hasAction = onClick !== undefined;
|
|
34
37
|
return /*#__PURE__*/React.createElement(Block, _extends({}, blockProps, {
|
|
35
|
-
testId: "".concat(testId, "-errored-view")
|
|
38
|
+
testId: "".concat(testId, "-errored-view"),
|
|
39
|
+
className: ax(["_zulpu2gc"])
|
|
36
40
|
}), !hideIcon && /*#__PURE__*/React.createElement(LinkIcon, {
|
|
37
41
|
overrideIcon: icon,
|
|
38
42
|
position: position
|
|
@@ -48,4 +52,5 @@ var TitleBlockErroredViewNew = function TitleBlockErroredViewNew(_ref) {
|
|
|
48
52
|
})))), actionGroup);
|
|
49
53
|
};
|
|
50
54
|
export default TitleBlockErroredViewOld;
|
|
51
|
-
export { TitleBlockErroredViewNew };
|
|
55
|
+
export { TitleBlockErroredViewNew };
|
|
56
|
+
var titleBlockGapStyle = null;
|
package/dist/esm/view/FlexibleCard/components/blocks/title-block/resolved/index.compiled.css
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
._zulppdf9{gap:var(--ds-space-050,.25rem)}
|
|
1
|
+
._zulppdf9{gap:var(--ds-space-050,.25rem)}
|
|
2
|
+
._zulpu2gc{gap:var(--ds-space-100,8px)}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
/* index.tsx generated by @compiled/babel-plugin v0.35.0 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
|
-
var _excluded = ["
|
|
4
|
+
var _excluded = ["className"],
|
|
5
|
+
_excluded2 = ["actionGroup", "metadata", "position", "subtitle", "testId", "text", "icon", "title", "metadataPosition", "hideIcon"];
|
|
5
6
|
import "./index.compiled.css";
|
|
6
7
|
import * as React from 'react';
|
|
7
8
|
import { ax, ix } from "@compiled/react/runtime";
|
|
9
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
10
|
import { SmartLinkAlignment, SmartLinkDirection, SmartLinkPosition, SmartLinkWidth } from '../../../../../../constants';
|
|
9
11
|
import { LinkIcon } from '../../../elements';
|
|
10
12
|
import Block from '../../block';
|
|
@@ -12,34 +14,50 @@ import { ElementGroupNew as ElementGroup } from '../../element-group';
|
|
|
12
14
|
import { renderElementItems } from '../../utils';
|
|
13
15
|
import TitleBlockResolvedViewOld from './TitleBlockResolvedViewOld';
|
|
14
16
|
var style = null;
|
|
17
|
+
var titleBlockGapStyle = null;
|
|
18
|
+
export var BlockFeatureGated = function BlockFeatureGated(_ref) {
|
|
19
|
+
var className = _ref.className,
|
|
20
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
21
|
+
if (fg('platform-smart-card-icon-migration')) {
|
|
22
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- This will be deleted when cleaning the gate
|
|
23
|
+
return /*#__PURE__*/React.createElement(Block, _extends({}, props, {
|
|
24
|
+
className: className
|
|
25
|
+
}));
|
|
26
|
+
}
|
|
27
|
+
return /*#__PURE__*/React.createElement(Block, props);
|
|
28
|
+
};
|
|
15
29
|
|
|
16
30
|
/**
|
|
17
31
|
* This renders a fully resolved TitleBlock.
|
|
18
32
|
* This should render when a Smart Link returns a valid response.
|
|
19
33
|
* @see TitleBlock
|
|
20
34
|
*/
|
|
21
|
-
var TitleBlockResolvedViewNew = function TitleBlockResolvedViewNew(
|
|
22
|
-
var actionGroup =
|
|
23
|
-
|
|
24
|
-
metadata =
|
|
25
|
-
position =
|
|
26
|
-
|
|
27
|
-
subtitle =
|
|
28
|
-
testId =
|
|
29
|
-
text =
|
|
30
|
-
icon =
|
|
31
|
-
title =
|
|
32
|
-
metadataPosition =
|
|
33
|
-
hideIcon =
|
|
34
|
-
blockProps = _objectWithoutProperties(
|
|
35
|
+
var TitleBlockResolvedViewNew = function TitleBlockResolvedViewNew(_ref2) {
|
|
36
|
+
var actionGroup = _ref2.actionGroup,
|
|
37
|
+
_ref2$metadata = _ref2.metadata,
|
|
38
|
+
metadata = _ref2$metadata === void 0 ? [] : _ref2$metadata,
|
|
39
|
+
position = _ref2.position,
|
|
40
|
+
_ref2$subtitle = _ref2.subtitle,
|
|
41
|
+
subtitle = _ref2$subtitle === void 0 ? [] : _ref2$subtitle,
|
|
42
|
+
testId = _ref2.testId,
|
|
43
|
+
text = _ref2.text,
|
|
44
|
+
icon = _ref2.icon,
|
|
45
|
+
title = _ref2.title,
|
|
46
|
+
metadataPosition = _ref2.metadataPosition,
|
|
47
|
+
hideIcon = _ref2.hideIcon,
|
|
48
|
+
blockProps = _objectWithoutProperties(_ref2, _excluded2);
|
|
49
|
+
var size = blockProps.size;
|
|
35
50
|
var metadataElements = renderElementItems(metadata);
|
|
36
51
|
var subtitleElements = renderElementItems(subtitle);
|
|
37
|
-
return /*#__PURE__*/React.createElement(
|
|
38
|
-
testId: "".concat(testId, "-resolved-view")
|
|
39
|
-
|
|
52
|
+
return /*#__PURE__*/React.createElement(BlockFeatureGated, _extends({}, blockProps, {
|
|
53
|
+
testId: "".concat(testId, "-resolved-view"),
|
|
54
|
+
className: ax(["_zulpu2gc"])
|
|
55
|
+
}), !hideIcon && /*#__PURE__*/React.createElement(LinkIcon, _extends({
|
|
40
56
|
overrideIcon: icon,
|
|
41
57
|
position: position
|
|
42
|
-
}
|
|
58
|
+
}, fg('platform-smart-card-icon-migration') && {
|
|
59
|
+
size: size
|
|
60
|
+
})), /*#__PURE__*/React.createElement(ElementGroup, {
|
|
43
61
|
direction: SmartLinkDirection.Vertical,
|
|
44
62
|
width: SmartLinkWidth.Flexible,
|
|
45
63
|
size: blockProps.size,
|
|
@@ -9,7 +9,7 @@ var _excluded = ["actionGroup", "testId", "title", "hideIcon"];
|
|
|
9
9
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
10
10
|
import { jsx } from '@emotion/react';
|
|
11
11
|
import { SmartLinkSize } from '../../../../../../constants';
|
|
12
|
-
import
|
|
12
|
+
import { LoadingSkeletonOld } from '../../../common/loading-skeleton';
|
|
13
13
|
import { getIconSizeStyles, getIconWidth } from '../../../utils';
|
|
14
14
|
import Block from '../../block';
|
|
15
15
|
/**
|
|
@@ -35,7 +35,7 @@ var TitleBlockResolvingView = function TitleBlockResolvingView(_ref) {
|
|
|
35
35
|
jsx("span", {
|
|
36
36
|
css: iconStyles,
|
|
37
37
|
"data-testid": "".concat(testId, "-icon")
|
|
38
|
-
}, jsx(
|
|
38
|
+
}, jsx(LoadingSkeletonOld, {
|
|
39
39
|
testId: "".concat(testId, "-icon-loading")
|
|
40
40
|
})), title, actionGroup);
|
|
41
41
|
};
|