@atlaskit/smart-card 34.8.0 → 34.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/dist/cjs/constants.js +1 -0
- package/dist/cjs/extractors/common/icon/extractIconFromDocument.js +26 -4
- package/dist/cjs/extractors/flexible/icon/extract-document-type-icon.js +28 -5
- package/dist/cjs/extractors/flexible/icon/extract-jsonld-data-icon.js +1 -1
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/utils/flexible.js +9 -9
- package/dist/cjs/utils/index.js +33 -22
- package/dist/cjs/view/EmbedCard/components/styled.compiled.css +4 -1
- package/dist/cjs/view/EmbedCard/components/styled.js +1 -1
- package/dist/cjs/view/EmbedCard/views/unresolved-view/index.compiled.css +4 -1
- package/dist/cjs/view/EmbedCard/views/unresolved-view/index.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/actions/action/action-stack-item/action-button.compiled.css +4 -1
- package/dist/cjs/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/action-block/action-footer/index.compiled.css +3 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/action-block/action-footer/index.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/common/atlaskit-icon/index.js +25 -16
- package/dist/cjs/view/InlineCard/ForbiddenView/index.compiled.css +5 -2
- package/dist/cjs/view/InlineCard/ForbiddenView/index.js +1 -1
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/cjs/view/common/ai-prism/ai-glowing-border/index.compiled.css +5 -2
- package/dist/cjs/view/common/ai-prism/ai-glowing-border/index.js +1 -1
- package/dist/es2019/constants.js +1 -0
- package/dist/es2019/extractors/common/icon/extractIconFromDocument.js +26 -4
- package/dist/es2019/extractors/flexible/icon/extract-document-type-icon.js +28 -5
- package/dist/es2019/extractors/flexible/icon/extract-jsonld-data-icon.js +1 -1
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/utils/index.js +8 -0
- package/dist/es2019/view/EmbedCard/components/styled.compiled.css +4 -1
- package/dist/es2019/view/EmbedCard/components/styled.js +1 -1
- package/dist/es2019/view/EmbedCard/views/unresolved-view/index.compiled.css +4 -1
- package/dist/es2019/view/EmbedCard/views/unresolved-view/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/actions/action/action-stack-item/action-button.compiled.css +4 -1
- package/dist/es2019/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/action-block/action-footer/index.compiled.css +3 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/action-block/action-footer/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/common/atlaskit-icon/index.js +6 -0
- package/dist/es2019/view/InlineCard/ForbiddenView/index.compiled.css +5 -2
- package/dist/es2019/view/InlineCard/ForbiddenView/index.js +1 -1
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/es2019/view/common/ai-prism/ai-glowing-border/index.compiled.css +5 -2
- package/dist/es2019/view/common/ai-prism/ai-glowing-border/index.js +1 -1
- package/dist/esm/constants.js +1 -0
- package/dist/esm/extractors/common/icon/extractIconFromDocument.js +26 -4
- package/dist/esm/extractors/flexible/icon/extract-document-type-icon.js +28 -5
- package/dist/esm/extractors/flexible/icon/extract-jsonld-data-icon.js +1 -1
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/utils/flexible.js +13 -9
- package/dist/esm/utils/index.js +32 -22
- package/dist/esm/view/EmbedCard/components/styled.compiled.css +4 -1
- package/dist/esm/view/EmbedCard/components/styled.js +1 -1
- package/dist/esm/view/EmbedCard/views/unresolved-view/index.compiled.css +4 -1
- package/dist/esm/view/EmbedCard/views/unresolved-view/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/actions/action/action-stack-item/action-button.compiled.css +4 -1
- package/dist/esm/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js +1 -1
- package/dist/esm/view/FlexibleCard/components/blocks/action-block/action-footer/index.compiled.css +3 -1
- package/dist/esm/view/FlexibleCard/components/blocks/action-block/action-footer/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/common/atlaskit-icon/index.js +23 -16
- package/dist/esm/view/InlineCard/ForbiddenView/index.compiled.css +5 -2
- package/dist/esm/view/InlineCard/ForbiddenView/index.js +1 -1
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/esm/view/common/ai-prism/ai-glowing-border/index.compiled.css +5 -2
- package/dist/esm/view/common/ai-prism/ai-glowing-border/index.js +1 -1
- package/dist/types/constants.d.ts +1 -0
- package/dist/types/extractors/common/icon/prioritiseIcon.d.ts +5 -0
- package/dist/types/extractors/flexible/icon/extract-document-type-icon.d.ts +16 -1
- package/dist/types-ts4.5/constants.d.ts +1 -0
- package/dist/types-ts4.5/extractors/common/icon/prioritiseIcon.d.ts +5 -0
- package/dist/types-ts4.5/extractors/flexible/icon/extract-document-type-icon.d.ts +16 -1
- package/package.json +4 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 34.9.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#109430](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/109430)
|
|
8
|
+
[`c6429aa44850a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c6429aa44850a) -
|
|
9
|
+
[ux] Adds support for Confluence Live Doc icons to @atlaskit/smart-card
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
3
15
|
## 34.8.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
package/dist/cjs/constants.js
CHANGED
|
@@ -200,6 +200,7 @@ var IconType = exports.IconType = /*#__PURE__*/function (IconType) {
|
|
|
200
200
|
IconType["Story"] = "Jira:Story";
|
|
201
201
|
IconType["SubTask"] = "Jira:SubTask";
|
|
202
202
|
IconType["Task"] = "Jira:Task";
|
|
203
|
+
IconType["LiveDocument"] = "Confluence:LiveDocument";
|
|
203
204
|
IconType["Confluence"] = "Provider:Confluence";
|
|
204
205
|
IconType["Jira"] = "Provider:Jira";
|
|
205
206
|
IconType["Default"] = "Default";
|
|
@@ -10,8 +10,10 @@ var _ = _interopRequireDefault(require("@atlaskit/icon-file-type/glyph/document/
|
|
|
10
10
|
var _2 = _interopRequireDefault(require("@atlaskit/icon-file-type/glyph/generic/16"));
|
|
11
11
|
var _3 = _interopRequireDefault(require("@atlaskit/icon-file-type/glyph/presentation/16"));
|
|
12
12
|
var _4 = _interopRequireDefault(require("@atlaskit/icon-file-type/glyph/spreadsheet/16"));
|
|
13
|
+
var _pageLiveDoc = _interopRequireDefault(require("@atlaskit/icon-lab/core/page-live-doc"));
|
|
13
14
|
var _5 = _interopRequireDefault(require("@atlaskit/icon-object/glyph/blog/16"));
|
|
14
15
|
var _pageDocumentFilled = _interopRequireDefault(require("@atlaskit/icon/core/migration/page--document-filled"));
|
|
16
|
+
var _linkExtractors = require("@atlaskit/link-extractors");
|
|
15
17
|
var _utils = require("../../../utils");
|
|
16
18
|
var _prioritiseIcon = require("./prioritiseIcon");
|
|
17
19
|
/**
|
|
@@ -45,10 +47,7 @@ var documentTypeToIcon = function documentTypeToIcon(type, opts) {
|
|
|
45
47
|
testId: "blog-icon"
|
|
46
48
|
});
|
|
47
49
|
case 'schema:DigitalDocument':
|
|
48
|
-
return
|
|
49
|
-
label: opts.title || 'file',
|
|
50
|
-
testId: "file-icon"
|
|
51
|
-
});
|
|
50
|
+
return digitalDocumentToIcon(opts);
|
|
52
51
|
case 'schema:TextDigitalDocument':
|
|
53
52
|
return /*#__PURE__*/_react.default.createElement(_.default, {
|
|
54
53
|
label: opts.title || 'document',
|
|
@@ -76,4 +75,27 @@ var documentTypeToIcon = function documentTypeToIcon(type, opts) {
|
|
|
76
75
|
testId: "document-icon"
|
|
77
76
|
});
|
|
78
77
|
}
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Enables providers to represent `schema:DigitalDocument` in a manner which
|
|
82
|
+
* aligns with their customers when representing provider-specific types, which
|
|
83
|
+
* do not apply across multiple providers.
|
|
84
|
+
* @example Confluence digital documents represent 'live documents', specific to Confluence.
|
|
85
|
+
* @remark This mechanism will be superseded by backend-driven icon URLs as part
|
|
86
|
+
* of go/j/MODES-5864. Do not add more!
|
|
87
|
+
*/
|
|
88
|
+
var digitalDocumentToIcon = function digitalDocumentToIcon(opts) {
|
|
89
|
+
var _opts$provider;
|
|
90
|
+
if ((_opts$provider = opts.provider) !== null && _opts$provider !== void 0 && _opts$provider.id && (0, _linkExtractors.isConfluenceGenerator)(opts.provider.id)) {
|
|
91
|
+
return /*#__PURE__*/_react.default.createElement(_pageLiveDoc.default, {
|
|
92
|
+
label: "live-doc",
|
|
93
|
+
testId: "live-doc-icon"
|
|
94
|
+
});
|
|
95
|
+
} else {
|
|
96
|
+
return /*#__PURE__*/_react.default.createElement(_2.default, {
|
|
97
|
+
label: opts.title || 'file',
|
|
98
|
+
testId: "file-icon"
|
|
99
|
+
});
|
|
100
|
+
}
|
|
79
101
|
};
|
|
@@ -4,8 +4,24 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
+
var _linkExtractors = require("@atlaskit/link-extractors");
|
|
7
8
|
var _constants = require("../../../constants");
|
|
8
|
-
|
|
9
|
+
/**
|
|
10
|
+
* Computes the relevant icon for a document type.
|
|
11
|
+
*
|
|
12
|
+
* @remark Note that document icons can vary based on the provider. E.g., a
|
|
13
|
+
* provider may choose to re-use one of these document types in their domain,
|
|
14
|
+
* but offer a different SVG icon on the frontend (to map to this type in their
|
|
15
|
+
* domain). See `schema:digitalDocument` for an example of this behaviour. This
|
|
16
|
+
* mechanism will be superseded by backend-driven icon URLs as part of
|
|
17
|
+
* go/j/MODES-5864. Do not add more!
|
|
18
|
+
*
|
|
19
|
+
* @param documentType JSON-LD document type
|
|
20
|
+
* @param label human-readable label to be displayed on the icon
|
|
21
|
+
* @param providerId JSON-LD provider (generator ID)
|
|
22
|
+
* @returns an icon descriptor representing the document type
|
|
23
|
+
*/
|
|
24
|
+
var extractDocumentTypeIcon = function extractDocumentTypeIcon(documentType, label, providerId) {
|
|
9
25
|
switch (documentType) {
|
|
10
26
|
case 'schema:BlogPosting':
|
|
11
27
|
return {
|
|
@@ -13,10 +29,17 @@ var extractDocumentTypeIcon = function extractDocumentTypeIcon(documentType, lab
|
|
|
13
29
|
label: label || 'Blog'
|
|
14
30
|
};
|
|
15
31
|
case 'schema:DigitalDocument':
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
32
|
+
if (providerId && (0, _linkExtractors.isConfluenceGenerator)(providerId)) {
|
|
33
|
+
return {
|
|
34
|
+
icon: _constants.IconType.LiveDocument,
|
|
35
|
+
label: label || 'Live Document'
|
|
36
|
+
};
|
|
37
|
+
} else {
|
|
38
|
+
return {
|
|
39
|
+
icon: _constants.IconType.File,
|
|
40
|
+
label: label || 'File'
|
|
41
|
+
};
|
|
42
|
+
}
|
|
20
43
|
case 'schema:TextDigitalDocument':
|
|
21
44
|
return {
|
|
22
45
|
icon: _constants.IconType.Document,
|
|
@@ -54,7 +54,7 @@ function chooseIcon(_ref2) {
|
|
|
54
54
|
label: label,
|
|
55
55
|
providerId: providerId,
|
|
56
56
|
data: data
|
|
57
|
-
}) || (0, _extractDocumentTypeIcon.default)(type, label);
|
|
57
|
+
}) || (0, _extractDocumentTypeIcon.default)(type, label, providerId);
|
|
58
58
|
return (0, _icon.prioritiseIcon)({
|
|
59
59
|
fileFormatIcon: fileFormatIcon,
|
|
60
60
|
documentTypeIcon: documentTypeIcon,
|
|
@@ -11,7 +11,7 @@ var ANALYTICS_CHANNEL = exports.ANALYTICS_CHANNEL = 'media';
|
|
|
11
11
|
var context = exports.context = {
|
|
12
12
|
componentName: 'smart-cards',
|
|
13
13
|
packageName: "@atlaskit/smart-card",
|
|
14
|
-
packageVersion: "34.
|
|
14
|
+
packageVersion: "34.9.0"
|
|
15
15
|
};
|
|
16
16
|
var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
17
17
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -15,13 +15,13 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
|
|
|
15
15
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
16
16
|
var isFlexibleUiCard = exports.isFlexibleUiCard = function isFlexibleUiCard(children) {
|
|
17
17
|
if (children && _react.default.Children.toArray(children).some(function (child) {
|
|
18
|
-
return
|
|
18
|
+
return _isFlexibleUiTitleBlock(child);
|
|
19
19
|
})) {
|
|
20
20
|
return true;
|
|
21
21
|
}
|
|
22
22
|
return false;
|
|
23
23
|
};
|
|
24
|
-
var
|
|
24
|
+
var _isFlexibleUiBlock = exports.isFlexibleUiBlock = function isFlexibleUiBlock(node) {
|
|
25
25
|
var _node$type;
|
|
26
26
|
if (!(0, _platformFeatureFlags.fg)('bandicoots-compiled-migration-smartcard')) {
|
|
27
27
|
return /*#__PURE__*/_react.default.isValidElement(node) && Object.values(Blocks).some(function (type) {
|
|
@@ -44,7 +44,7 @@ var isFlexibleUiBlock = exports.isFlexibleUiBlock = function isFlexibleUiBlock(n
|
|
|
44
44
|
return;
|
|
45
45
|
}
|
|
46
46
|
if (typeof child.type !== 'string' && ((_child$type = child.type) === null || _child$type === void 0 ? void 0 : _child$type.name) !== 'Style') {
|
|
47
|
-
isChildrenValid =
|
|
47
|
+
isChildrenValid = _isFlexibleUiBlock(child);
|
|
48
48
|
}
|
|
49
49
|
});
|
|
50
50
|
return isChildrenValid;
|
|
@@ -56,7 +56,7 @@ var isFlexibleUiBlock = exports.isFlexibleUiBlock = function isFlexibleUiBlock(n
|
|
|
56
56
|
}
|
|
57
57
|
return false;
|
|
58
58
|
};
|
|
59
|
-
var
|
|
59
|
+
var _isFlexibleUiElement = exports.isFlexibleUiElement = function isFlexibleUiElement(node) {
|
|
60
60
|
var _node$type2;
|
|
61
61
|
if (!(0, _platformFeatureFlags.fg)('bandicoots-compiled-migration-smartcard')) {
|
|
62
62
|
return /*#__PURE__*/_react.default.isValidElement(node) && Object.values(Elements).some(function (type) {
|
|
@@ -84,14 +84,14 @@ var isFlexibleUiElement = exports.isFlexibleUiElement = function isFlexibleUiEle
|
|
|
84
84
|
return;
|
|
85
85
|
}
|
|
86
86
|
if (typeof child.type !== 'string' && ((_child$type2 = child.type) === null || _child$type2 === void 0 ? void 0 : _child$type2.name) !== 'Style') {
|
|
87
|
-
isChildrenValid =
|
|
87
|
+
isChildrenValid = _isFlexibleUiElement(child);
|
|
88
88
|
}
|
|
89
89
|
});
|
|
90
90
|
return isChildrenValid;
|
|
91
91
|
}
|
|
92
92
|
return false;
|
|
93
93
|
};
|
|
94
|
-
var
|
|
94
|
+
var _isFlexibleUiTitleBlock = exports.isFlexibleUiTitleBlock = function isFlexibleUiTitleBlock(node) {
|
|
95
95
|
var _node$type3;
|
|
96
96
|
if (!(0, _platformFeatureFlags.fg)('bandicoots-compiled-migration-smartcard')) {
|
|
97
97
|
return /*#__PURE__*/_react.default.isValidElement(node) && node.type === _blocks.TitleBlock;
|
|
@@ -115,14 +115,14 @@ var isFlexibleUiTitleBlock = exports.isFlexibleUiTitleBlock = function isFlexibl
|
|
|
115
115
|
return;
|
|
116
116
|
}
|
|
117
117
|
if (typeof child.type !== 'string' && ((_child$type3 = child.type) === null || _child$type3 === void 0 ? void 0 : _child$type3.name) !== 'Style') {
|
|
118
|
-
isChildrenValid =
|
|
118
|
+
isChildrenValid = _isFlexibleUiTitleBlock(child);
|
|
119
119
|
}
|
|
120
120
|
});
|
|
121
121
|
return isChildrenValid;
|
|
122
122
|
}
|
|
123
123
|
return false;
|
|
124
124
|
};
|
|
125
|
-
var
|
|
125
|
+
var _isFlexibleUiPreviewBlock = exports.isFlexibleUiPreviewBlock = function isFlexibleUiPreviewBlock(node) {
|
|
126
126
|
var _node$type4;
|
|
127
127
|
if (!(0, _platformFeatureFlags.fg)('bandicoots-compiled-migration-smartcard')) {
|
|
128
128
|
return /*#__PURE__*/_react.default.isValidElement(node) && node.type === _blocks.PreviewBlock;
|
|
@@ -146,7 +146,7 @@ var isFlexibleUiPreviewBlock = exports.isFlexibleUiPreviewBlock = function isFle
|
|
|
146
146
|
return;
|
|
147
147
|
}
|
|
148
148
|
if (typeof child.type !== 'string' && ((_child$type4 = child.type) === null || _child$type4 === void 0 ? void 0 : _child$type4.name) !== 'Style') {
|
|
149
|
-
isChildrenValid =
|
|
149
|
+
isChildrenValid = _isFlexibleUiPreviewBlock(child);
|
|
150
150
|
}
|
|
151
151
|
});
|
|
152
152
|
return isChildrenValid;
|
package/dist/cjs/utils/index.js
CHANGED
|
@@ -337,8 +337,8 @@ var typeToIcon = {
|
|
|
337
337
|
|
|
338
338
|
// prettier-ignore
|
|
339
339
|
var getLazyIcons = exports.getLazyIcons = function getLazyIcons() {
|
|
340
|
-
var
|
|
341
|
-
return
|
|
340
|
+
var _ref4;
|
|
341
|
+
return _ref4 = {}, (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)(_ref4, _constants.IconType.Document, {
|
|
342
342
|
default: function _default() {
|
|
343
343
|
return Promise.resolve().then(function () {
|
|
344
344
|
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_page-icon" */'../common/ui/icons/page-icon'));
|
|
@@ -398,7 +398,7 @@ var getLazyIcons = exports.getLazyIcons = function getLazyIcons() {
|
|
|
398
398
|
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_list-bullet-icon" */'../common/ui/icons/list-bullet-icon'));
|
|
399
399
|
});
|
|
400
400
|
}
|
|
401
|
-
}), (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)(
|
|
401
|
+
}), (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)(_ref4, _constants.IconType.Video, {
|
|
402
402
|
default: function _default() {
|
|
403
403
|
return Promise.resolve().then(function () {
|
|
404
404
|
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_video-icon" */'../common/ui/icons/video-icon'));
|
|
@@ -483,7 +483,7 @@ var getLazyIcons = exports.getLazyIcons = function getLazyIcons() {
|
|
|
483
483
|
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_glyphGoogleForms" */'@atlaskit/icon-file-type/glyph/google-form/24'));
|
|
484
484
|
});
|
|
485
485
|
}
|
|
486
|
-
}), (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)(
|
|
486
|
+
}), (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)(_ref4, _constants.IconType.GoogleSheets, {
|
|
487
487
|
default: function _default() {
|
|
488
488
|
return Promise.resolve().then(function () {
|
|
489
489
|
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_glyphGoogleSheets" */'@atlaskit/icon-file-type/glyph/google-sheet/16'));
|
|
@@ -593,7 +593,7 @@ var getLazyIcons = exports.getLazyIcons = function getLazyIcons() {
|
|
|
593
593
|
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_glyphPullRequest" */'@atlaskit/icon-object/glyph/pull-request/24'));
|
|
594
594
|
});
|
|
595
595
|
}
|
|
596
|
-
}), (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)(
|
|
596
|
+
}), (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)(_ref4, _constants.IconType.Repo, {
|
|
597
597
|
default: function _default() {
|
|
598
598
|
return Promise.resolve().then(function () {
|
|
599
599
|
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_glyphRepo" */'@atlaskit/icon-object/glyph/code/16'));
|
|
@@ -703,12 +703,23 @@ var getLazyIcons = exports.getLazyIcons = function getLazyIcons() {
|
|
|
703
703
|
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_glyphTask" */'@atlaskit/icon-object/glyph/task/24'));
|
|
704
704
|
});
|
|
705
705
|
}
|
|
706
|
-
}), (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)(
|
|
706
|
+
}), (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)(_ref4, _constants.IconType.LiveDocument, {
|
|
707
707
|
default: function _default() {
|
|
708
708
|
return Promise.resolve().then(function () {
|
|
709
|
-
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-
|
|
709
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_glyphConfluenceLiveDocument" */'@atlaskit/icon-lab/core/page-live-doc'));
|
|
710
710
|
}).then(function (_ref) {
|
|
711
|
-
var
|
|
711
|
+
var LiveDocumentIcon = _ref.default;
|
|
712
|
+
return {
|
|
713
|
+
default: LiveDocumentIcon
|
|
714
|
+
};
|
|
715
|
+
});
|
|
716
|
+
}
|
|
717
|
+
}), _constants.IconType.Confluence, {
|
|
718
|
+
default: function _default() {
|
|
719
|
+
return Promise.resolve().then(function () {
|
|
720
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_glyphConfluence" */'@atlaskit/logo/confluence-icon'));
|
|
721
|
+
}).then(function (_ref2) {
|
|
722
|
+
var ConfluenceIcon = _ref2.ConfluenceIcon;
|
|
712
723
|
return {
|
|
713
724
|
default: ConfluenceIcon
|
|
714
725
|
};
|
|
@@ -718,8 +729,8 @@ var getLazyIcons = exports.getLazyIcons = function getLazyIcons() {
|
|
|
718
729
|
default: function _default() {
|
|
719
730
|
return Promise.resolve().then(function () {
|
|
720
731
|
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_glyphJira" */'@atlaskit/logo/jira-icon'));
|
|
721
|
-
}).then(function (
|
|
722
|
-
var JiraIcon =
|
|
732
|
+
}).then(function (_ref3) {
|
|
733
|
+
var JiraIcon = _ref3.JiraIcon;
|
|
723
734
|
return {
|
|
724
735
|
default: JiraIcon
|
|
725
736
|
};
|
|
@@ -767,13 +778,13 @@ var getLazyIcons = exports.getLazyIcons = function getLazyIcons() {
|
|
|
767
778
|
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_glyphBlocker" */'@atlaskit/icon-priority/glyph/priority-blocker'));
|
|
768
779
|
});
|
|
769
780
|
}
|
|
770
|
-
}), _constants.IconType.PriorityCritical, {
|
|
781
|
+
}), (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)(_ref4, _constants.IconType.PriorityCritical, {
|
|
771
782
|
default: function _default() {
|
|
772
783
|
return Promise.resolve().then(function () {
|
|
773
784
|
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_glyphCritical" */'@atlaskit/icon-priority/glyph/priority-critical'));
|
|
774
785
|
});
|
|
775
786
|
}
|
|
776
|
-
}),
|
|
787
|
+
}), _constants.IconType.PriorityHigh, {
|
|
777
788
|
default: function _default() {
|
|
778
789
|
return Promise.resolve().then(function () {
|
|
779
790
|
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_glyphHigh" */'@atlaskit/icon-priority/glyph/priority-high'));
|
|
@@ -827,13 +838,13 @@ var getLazyIcons = exports.getLazyIcons = function getLazyIcons() {
|
|
|
827
838
|
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_glyphUndefined" */'@atlaskit/icon/core/migration/question-circle--question'));
|
|
828
839
|
});
|
|
829
840
|
}
|
|
830
|
-
}), _constants.IconType.ProgrammingLanguage, {
|
|
841
|
+
}), (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)(_ref4, _constants.IconType.ProgrammingLanguage, {
|
|
831
842
|
default: function _default() {
|
|
832
843
|
return Promise.resolve().then(function () {
|
|
833
844
|
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_glyphProgrammingLanguage" */'@atlaskit/icon/core/migration/angle-brackets--code'));
|
|
834
845
|
});
|
|
835
846
|
}
|
|
836
|
-
}),
|
|
847
|
+
}), _constants.IconType.Subscriber, {
|
|
837
848
|
default: function _default() {
|
|
838
849
|
return Promise.resolve().then(function () {
|
|
839
850
|
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_glyphSubscriber" */'@atlaskit/icon/core/migration/people-group--people'));
|
|
@@ -878,8 +889,8 @@ var sleep = exports.sleep = function sleep(ms) {
|
|
|
878
889
|
return setTimeout(resolve, ms);
|
|
879
890
|
});
|
|
880
891
|
};
|
|
881
|
-
var
|
|
882
|
-
var
|
|
892
|
+
var _importWithRetry = exports.importWithRetry = /*#__PURE__*/function () {
|
|
893
|
+
var _ref5 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(importFn) {
|
|
883
894
|
var retries,
|
|
884
895
|
interval,
|
|
885
896
|
_args = arguments;
|
|
@@ -903,7 +914,7 @@ var importWithRetry = exports.importWithRetry = /*#__PURE__*/function () {
|
|
|
903
914
|
_context.next = 13;
|
|
904
915
|
return sleep(interval);
|
|
905
916
|
case 13:
|
|
906
|
-
return _context.abrupt("return",
|
|
917
|
+
return _context.abrupt("return", _importWithRetry(importFn, retries - 1, interval));
|
|
907
918
|
case 16:
|
|
908
919
|
throw _context.t0;
|
|
909
920
|
case 17:
|
|
@@ -913,11 +924,11 @@ var importWithRetry = exports.importWithRetry = /*#__PURE__*/function () {
|
|
|
913
924
|
}, _callee, null, [[2, 8]]);
|
|
914
925
|
}));
|
|
915
926
|
return function importWithRetry(_x) {
|
|
916
|
-
return
|
|
927
|
+
return _ref5.apply(this, arguments);
|
|
917
928
|
};
|
|
918
929
|
}();
|
|
919
930
|
var downloadUrl = exports.downloadUrl = /*#__PURE__*/function () {
|
|
920
|
-
var
|
|
931
|
+
var _ref6 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(url) {
|
|
921
932
|
var isIE11, isSafari, iframeName, link, iframe;
|
|
922
933
|
return _regenerator.default.wrap(function _callee2$(_context2) {
|
|
923
934
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -953,11 +964,11 @@ var downloadUrl = exports.downloadUrl = /*#__PURE__*/function () {
|
|
|
953
964
|
}, _callee2);
|
|
954
965
|
}));
|
|
955
966
|
return function downloadUrl(_x2) {
|
|
956
|
-
return
|
|
967
|
+
return _ref6.apply(this, arguments);
|
|
957
968
|
};
|
|
958
969
|
}();
|
|
959
970
|
var openUrl = exports.openUrl = /*#__PURE__*/function () {
|
|
960
|
-
var
|
|
971
|
+
var _ref7 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3(url) {
|
|
961
972
|
return _regenerator.default.wrap(function _callee3$(_context3) {
|
|
962
973
|
while (1) switch (_context3.prev = _context3.next) {
|
|
963
974
|
case 0:
|
|
@@ -975,7 +986,7 @@ var openUrl = exports.openUrl = /*#__PURE__*/function () {
|
|
|
975
986
|
}, _callee3);
|
|
976
987
|
}));
|
|
977
988
|
return function openUrl(_x3) {
|
|
978
|
-
return
|
|
989
|
+
return _ref7.apply(this, arguments);
|
|
979
990
|
};
|
|
980
991
|
}();
|
|
981
992
|
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
._11c8qk37{font:var(--ds-font-body-UNSAFE_small,normal 400 9pt/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,system-ui,"Helvetica Neue",sans-serif)}
|
|
2
2
|
._14mjpd34:after{border-radius:var(--ds-border-radius-200,8px)}
|
|
3
|
-
._18s81cq1{margin:var(--ds-space-050,4px) 0 var(--ds-space-150,9pt) var(--ds-space-150,9pt)}
|
|
4
3
|
._18s81xf9{margin:0 var(--ds-space-100,8px) var(--ds-space-100,8px)}
|
|
5
4
|
._19ith6cr{border:1px solid var(--ds-border,#dfe1e6)}
|
|
6
5
|
._1u3rh6cr:hover:after{border:1px solid var(--ds-border,#dfe1e6)}
|
|
@@ -19,10 +18,12 @@
|
|
|
19
18
|
._18m91wug{overflow-y:auto}
|
|
20
19
|
._18postnw:after{position:absolute}
|
|
21
20
|
._18u01wug{margin-left:auto}
|
|
21
|
+
._18u0utpp{margin-left:var(--ds-space-150,9pt)}
|
|
22
22
|
._19do1kw7:after{left:inherit}
|
|
23
23
|
._19doidpf:after{left:0}
|
|
24
24
|
._19dox0bf:after{left:var(--ds-space-negative-100,-8px)}
|
|
25
25
|
._19pk19bv{margin-top:10px}
|
|
26
|
+
._19pk1b66{margin-top:var(--ds-space-050,4px)}
|
|
26
27
|
._19pkidpf{margin-top:0}
|
|
27
28
|
._1aaxusic{float:right}
|
|
28
29
|
._1bsb176v{width:125px}
|
|
@@ -48,6 +49,7 @@
|
|
|
48
49
|
._1ul91pd6{min-width:var(--_10q0298)}
|
|
49
50
|
._2hwx1b66{margin-right:var(--ds-space-050,4px)}
|
|
50
51
|
._2hwx1wug{margin-right:auto}
|
|
52
|
+
._2hwxidpf{margin-right:0}
|
|
51
53
|
._2lx21bp4{flex-direction:column}
|
|
52
54
|
._4cvr1h6o{align-items:center}
|
|
53
55
|
._4t3i17ym{height:var(--_rcxkve)}
|
|
@@ -74,6 +76,7 @@
|
|
|
74
76
|
._kqswstnw{position:absolute}
|
|
75
77
|
._o5721q9c{white-space:nowrap}
|
|
76
78
|
._otyridpf{margin-bottom:0}
|
|
79
|
+
._otyrutpp{margin-bottom:var(--ds-space-150,9pt)}
|
|
77
80
|
._p12f1ayu{max-width:var(--_1et2rhb)}
|
|
78
81
|
._rd9b1wug >.embed-preview>div{margin-right:auto}
|
|
79
82
|
._syaz1rc1{color:var(--ds-text-subtlest,#5e6c84)}
|
|
@@ -216,7 +216,7 @@ var Thumbnail = exports.Thumbnail = (0, _react.forwardRef)(function (_ref9, __cm
|
|
|
216
216
|
"--_13orr8u": (0, _runtime.ix)("url(".concat(__cmplp.src, ")"))
|
|
217
217
|
}),
|
|
218
218
|
ref: __cmplr,
|
|
219
|
-
className: (0, _runtime.ax)(["_2rko1sit
|
|
219
|
+
className: (0, _runtime.ax)(["_2rko1sit _1bsbckbl _4t3ickbl _1aaxusic _19pk1b66 _2hwxidpf _otyrutpp _18u0utpp _bfhkqrzy _1lrw1dfr _1itk2pcs", __cmplp.className])
|
|
220
220
|
}));
|
|
221
221
|
});
|
|
222
222
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
._11c81oud{font:var(--ds-font-body,normal 400 14px/20px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,system-ui,"Helvetica Neue",sans-serif)}
|
|
2
|
-
._1yt4pxbi{padding:var(--ds-space-200,1pc)}
|
|
3
2
|
._zulpv47k{gap:var(--ds-space-250,20px)}
|
|
4
3
|
._18u01wug{margin-left:auto}
|
|
4
|
+
._19bvpxbi{padding-left:var(--ds-space-200,1pc)}
|
|
5
5
|
._19pk1wug{margin-top:auto}
|
|
6
6
|
._1bah1h6o{justify-content:center}
|
|
7
7
|
._1bsbmgvx{width:180px}
|
|
@@ -13,7 +13,10 @@
|
|
|
13
13
|
._4t3i1kw7{height:inherit}
|
|
14
14
|
._4t3i68cl{height:90pt}
|
|
15
15
|
._5ral1f51{object-fit:contain}
|
|
16
|
+
._ca0qpxbi{padding-top:var(--ds-space-200,1pc)}
|
|
17
|
+
._n3tdpxbi{padding-bottom:var(--ds-space-200,1pc)}
|
|
16
18
|
._otyr1wug{margin-bottom:auto}
|
|
17
19
|
._p12f1kdj{max-width:25pc}
|
|
18
20
|
._rsufaqso{object-position:center center}
|
|
21
|
+
._u5f3pxbi{padding-right:var(--ds-space-200,1pc)}
|
|
19
22
|
._y3gn1h6o{text-align:center}
|
|
@@ -91,7 +91,7 @@ var UnresolvedView = function UnresolvedView(_ref) {
|
|
|
91
91
|
"data-testid": "".concat(testId, "-unresolved-container"),
|
|
92
92
|
className: (0, _runtime.ax)(["_1e0c11p5 _4t3i1kw7"])
|
|
93
93
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
94
|
-
className: (0, _runtime.ax)(["_19pk1wug _2hwx1wug _otyr1wug _18u01wug
|
|
94
|
+
className: (0, _runtime.ax)(["_19pk1wug _2hwx1wug _otyr1wug _18u01wug _zulpv47k _1e0c1txw _2lx21bp4 _1bah1h6o _y3gn1h6o _4cvr1h6o _ca0qpxbi _u5f3pxbi _n3tdpxbi _19bvpxbi _p12f1kdj"])
|
|
95
95
|
}, image, /*#__PURE__*/_react.default.createElement(_heading.default, {
|
|
96
96
|
size: "large",
|
|
97
97
|
testId: "".concat(testId, "-unresolved-title")
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
|
|
2
2
|
._kkk2n7od{all:unset}._11c8qk37{font:var(--ds-font-body-UNSAFE_small,normal 400 9pt/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,system-ui,"Helvetica Neue",sans-serif)}
|
|
3
|
-
.
|
|
3
|
+
._19bv1b66{padding-left:var(--ds-space-050,4px)}
|
|
4
4
|
._1bsb1osq{width:100%}
|
|
5
|
+
._ca0q1b66{padding-top:var(--ds-space-050,4px)}
|
|
6
|
+
._n3td1b66{padding-bottom:var(--ds-space-050,4px)}
|
|
5
7
|
._syaz1fxt{color:var(--ds-text,#172b4d)}
|
|
8
|
+
._u5f31b66{padding-right:var(--ds-space-050,4px)}
|
|
6
9
|
._irr3166n:hover{background-color:var(--ds-background-neutral-subtle-hovered,#091e420f)}
|
|
7
10
|
._1di61dty:active{background-color:var(--ds-background-neutral-subtle-pressed,#091e4224)}
|
package/dist/cjs/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js
CHANGED
|
@@ -21,7 +21,7 @@ var _actionButtonOld = _interopRequireDefault(require("./action-buttonOld"));
|
|
|
21
21
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
22
22
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
23
23
|
var styles = {
|
|
24
|
-
button: "_kkk2n7od
|
|
24
|
+
button: "_kkk2n7od _ca0q1b66 _u5f31b66 _n3td1b66 _19bv1b66 _1bsb1osq _irr3166n _1di61dty",
|
|
25
25
|
content: "_11c8qk37 _syaz1fxt"
|
|
26
26
|
};
|
|
27
27
|
var ActionButtonNew = function ActionButtonNew(_ref) {
|
package/dist/cjs/view/FlexibleCard/components/blocks/action-block/action-footer/index.compiled.css
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
|
|
2
2
|
._kkk2n7od{all:unset}._11c8qk37{font:var(--ds-font-body-UNSAFE_small,normal 400 9pt/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,system-ui,"Helvetica Neue",sans-serif)}
|
|
3
|
-
._18s8u2gc{margin:var(--ds-space-100,8px)}
|
|
4
3
|
._1yt412x7{padding:var(--ds-space-075,6px)}
|
|
5
4
|
._2rkoglpi{border-radius:var(--ds-border-radius,4px)}
|
|
6
5
|
._18zru2gc{padding-inline:var(--ds-space-100,8px)}
|
|
6
|
+
._18u0u2gc{margin-left:var(--ds-space-100,8px)}
|
|
7
|
+
._19pku2gc{margin-top:var(--ds-space-100,8px)}
|
|
7
8
|
._1bsb1osq{width:100%}
|
|
9
|
+
._2hwxu2gc{margin-right:var(--ds-space-100,8px)}
|
|
8
10
|
._bfhk1gly{background-color:var(--ds-background-danger,#ffeceb)}
|
|
9
11
|
._bozgv77o{padding-inline-start:var(--ds-space-025,2px)}
|
|
10
12
|
._fiawglyw:empty{display:none}
|
|
@@ -46,7 +46,7 @@ var ActionFooterNew = function ActionFooterNew(_ref) {
|
|
|
46
46
|
}
|
|
47
47
|
return /*#__PURE__*/React.createElement("div", {
|
|
48
48
|
"data-testId": "".concat(testId, "-footer"),
|
|
49
|
-
className: (0, _runtime.ax)(["_kkk2n7od _2rkoglpi
|
|
49
|
+
className: (0, _runtime.ax)(["_kkk2n7od _2rkoglpi _1yt412x7 _18zru2gc _19pku2gc _2hwxu2gc _otyrze3t _18u0u2gc _vwz4gktf _1bsb1osq _fiawglyw", message.appearance === 'error' && "_bfhk1gly"])
|
|
50
50
|
}, /*#__PURE__*/React.createElement(_motionWrapper.default, {
|
|
51
51
|
isFadeIn: true,
|
|
52
52
|
show: true,
|
|
@@ -167,11 +167,20 @@ var importIconMapperOld = (_importIconMapperOld = {}, (0, _defineProperty2.defau
|
|
|
167
167
|
return Promise.resolve().then(function () {
|
|
168
168
|
return _interopRequireWildcard(require( /* webpackChunkName: "glyphTask" */'@atlaskit/icon-object/glyph/task/16'));
|
|
169
169
|
});
|
|
170
|
+
}), _constants.IconType.LiveDocument, function () {
|
|
171
|
+
return Promise.resolve().then(function () {
|
|
172
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "glyphConfluenceLiveDocument" */'@atlaskit/icon-lab/core/page-live-doc'));
|
|
173
|
+
}).then(function (_ref) {
|
|
174
|
+
var LiveDocumentIcon = _ref.default;
|
|
175
|
+
return {
|
|
176
|
+
default: LiveDocumentIcon
|
|
177
|
+
};
|
|
178
|
+
});
|
|
170
179
|
}), _constants.IconType.Confluence, function () {
|
|
171
180
|
return Promise.resolve().then(function () {
|
|
172
181
|
return _interopRequireWildcard(require( /* webpackChunkName: "glyphConfluence" */'@atlaskit/logo/confluence-icon'));
|
|
173
|
-
}).then(function (
|
|
174
|
-
var ConfluenceIcon =
|
|
182
|
+
}).then(function (_ref2) {
|
|
183
|
+
var ConfluenceIcon = _ref2.ConfluenceIcon;
|
|
175
184
|
return {
|
|
176
185
|
default: ConfluenceIcon
|
|
177
186
|
};
|
|
@@ -179,8 +188,8 @@ var importIconMapperOld = (_importIconMapperOld = {}, (0, _defineProperty2.defau
|
|
|
179
188
|
}), _constants.IconType.Jira, function () {
|
|
180
189
|
return Promise.resolve().then(function () {
|
|
181
190
|
return _interopRequireWildcard(require( /* webpackChunkName: "glyphJira" */'@atlaskit/logo/jira-icon'));
|
|
182
|
-
}).then(function (
|
|
183
|
-
var JiraIcon =
|
|
191
|
+
}).then(function (_ref3) {
|
|
192
|
+
var JiraIcon = _ref3.JiraIcon;
|
|
184
193
|
return {
|
|
185
194
|
default: JiraIcon
|
|
186
195
|
};
|
|
@@ -189,11 +198,11 @@ var importIconMapperOld = (_importIconMapperOld = {}, (0, _defineProperty2.defau
|
|
|
189
198
|
return Promise.resolve().then(function () {
|
|
190
199
|
return _interopRequireWildcard(require( /* webpackChunkName: "glyphDefault" */'@atlaskit/icon/glyph/link'));
|
|
191
200
|
});
|
|
192
|
-
}), _constants.IconType.Error, function () {
|
|
201
|
+
}), (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)(_importIconMapperOld, _constants.IconType.Error, function () {
|
|
193
202
|
return Promise.resolve().then(function () {
|
|
194
203
|
return _interopRequireWildcard(require( /* webpackChunkName: "glyphError" */'@atlaskit/icon/glyph/error'));
|
|
195
204
|
});
|
|
196
|
-
}),
|
|
205
|
+
}), _constants.IconType.Forbidden, function () {
|
|
197
206
|
return Promise.resolve().then(function () {
|
|
198
207
|
return _interopRequireWildcard(require( /* webpackChunkName: "glyphForbidden" */'@atlaskit/icon/glyph/lock-filled'));
|
|
199
208
|
});
|
|
@@ -229,11 +238,11 @@ var importIconMapperOld = (_importIconMapperOld = {}, (0, _defineProperty2.defau
|
|
|
229
238
|
return Promise.resolve().then(function () {
|
|
230
239
|
return _interopRequireWildcard(require( /* webpackChunkName: "glyphCritical" */'@atlaskit/icon-priority/glyph/priority-critical'));
|
|
231
240
|
});
|
|
232
|
-
}), _constants.IconType.PriorityHigh, function () {
|
|
241
|
+
}), (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)(_importIconMapperOld, _constants.IconType.PriorityHigh, function () {
|
|
233
242
|
return Promise.resolve().then(function () {
|
|
234
243
|
return _interopRequireWildcard(require( /* webpackChunkName: "glyphHigh" */'@atlaskit/icon-priority/glyph/priority-high'));
|
|
235
244
|
});
|
|
236
|
-
}),
|
|
245
|
+
}), _constants.IconType.PriorityHighest, function () {
|
|
237
246
|
return Promise.resolve().then(function () {
|
|
238
247
|
return _interopRequireWildcard(require( /* webpackChunkName: "glyphHighest" */'@atlaskit/icon-priority/glyph/priority-highest'));
|
|
239
248
|
});
|
|
@@ -269,11 +278,11 @@ var importIconMapperOld = (_importIconMapperOld = {}, (0, _defineProperty2.defau
|
|
|
269
278
|
return Promise.resolve().then(function () {
|
|
270
279
|
return _interopRequireWildcard(require( /* webpackChunkName: "glyphProgrammingLanguage" */'@atlaskit/icon/glyph/code'));
|
|
271
280
|
});
|
|
272
|
-
}), _constants.IconType.Subscriber, function () {
|
|
281
|
+
}), (0, _defineProperty2.default)((0, _defineProperty2.default)(_importIconMapperOld, _constants.IconType.Subscriber, function () {
|
|
273
282
|
return Promise.resolve().then(function () {
|
|
274
283
|
return _interopRequireWildcard(require( /* webpackChunkName: "glyphSubscriber" */'@atlaskit/icon/glyph/people'));
|
|
275
284
|
});
|
|
276
|
-
}),
|
|
285
|
+
}), _constants.IconType.SubTasksProgress, function () {
|
|
277
286
|
return Promise.resolve().then(function () {
|
|
278
287
|
return _interopRequireWildcard(require( /* webpackChunkName: "glyphSubtaskProgress" */'@atlaskit/icon/glyph/subtask'));
|
|
279
288
|
});
|
|
@@ -300,12 +309,12 @@ var importIcon = function importIcon(importFn) {
|
|
|
300
309
|
}
|
|
301
310
|
}); // Because we're using dynamic loading here, TS will not be able to infer the type.
|
|
302
311
|
};
|
|
303
|
-
var AtlaskitIcon = function AtlaskitIcon(
|
|
304
|
-
var icon =
|
|
305
|
-
label =
|
|
306
|
-
testId =
|
|
307
|
-
|
|
308
|
-
size =
|
|
312
|
+
var AtlaskitIcon = function AtlaskitIcon(_ref4) {
|
|
313
|
+
var icon = _ref4.icon,
|
|
314
|
+
label = _ref4.label,
|
|
315
|
+
testId = _ref4.testId,
|
|
316
|
+
_ref4$size = _ref4.size,
|
|
317
|
+
size = _ref4$size === void 0 ? _constants.SmartLinkSize.Medium : _ref4$size;
|
|
309
318
|
var DocumentIcon = (0, _platformFeatureFlags.fg)('platform-smart-card-icon-migration') ? _pageIcon.default : _.default;
|
|
310
319
|
var BlogIcon = (0, _platformFeatureFlags.fg)('platform-smart-card-icon-migration') ? _blogIcon.default : _2.default;
|
|
311
320
|
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
.
|
|
1
|
+
._19bvze3t{padding-left:var(--ds-space-0,0)}
|
|
2
2
|
._2hwx1i6y{margin-right:var(--ds-space-negative-025,-2px)}
|
|
3
|
-
._bfhksm61{background-color:var(--ds-background-neutral-subtle,#00000000)}
|
|
3
|
+
._bfhksm61{background-color:var(--ds-background-neutral-subtle,#00000000)}
|
|
4
|
+
._ca0qze3t{padding-top:var(--ds-space-0,0)}
|
|
5
|
+
._n3tdze3t{padding-bottom:var(--ds-space-0,0)}
|
|
6
|
+
._u5f3ze3t{padding-right:var(--ds-space-0,0)}
|
|
@@ -30,7 +30,7 @@ var _withFrameStyleControl = _interopRequireDefault(require("../utils/withFrameS
|
|
|
30
30
|
var _InlineCardForbiddenViewOld = require("./InlineCardForbiddenViewOld");
|
|
31
31
|
var styles = {
|
|
32
32
|
iconWrapper: "_2hwx1i6y",
|
|
33
|
-
actionButtonLozengeStyle: "
|
|
33
|
+
actionButtonLozengeStyle: "_bfhksm61 _ca0qze3t _u5f3ze3t _n3tdze3t _19bvze3t"
|
|
34
34
|
};
|
|
35
35
|
var fallbackForbiddenIcon = function fallbackForbiddenIcon() {
|
|
36
36
|
return (0, _platformFeatureFlags.fg)('platform-smart-card-icon-migration') ? /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|