@atlaskit/smart-card 32.7.6 → 32.7.8
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/extractors/flexible/actions/index.js +5 -7
- package/dist/cjs/state/actions/index.js +13 -38
- package/dist/cjs/state/analytics/useSmartLinkAnalytics.js +54 -305
- package/dist/cjs/state/hooks/use-ai-summary/ai-summary-service/index.js +1 -2
- package/dist/cjs/state/hooks/use-ai-summary/ai-summary-service/types.js +4 -5
- package/dist/cjs/utils/analytics/analytics.js +28 -304
- package/dist/cjs/utils/analytics/index.js +0 -66
- package/dist/cjs/utils/mocks.js +5 -7
- package/dist/cjs/view/BlockCard/views/styled.js +1 -1
- package/dist/cjs/view/Card/index.js +5 -7
- package/dist/cjs/view/CardWithUrl/component.js +7 -22
- package/dist/cjs/view/EmbedCard/EmbedResizeMessageListener.js +7 -10
- package/dist/cjs/view/FlexibleCard/components/actions/action/action-button/index.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/actions/action/server-action/index.js +4 -13
- package/dist/cjs/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/test-utils.js +10 -12
- package/dist/cjs/view/FlexibleCard/components/blocks/utils.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/common/atlaskit-icon/index.js +61 -61
- package/dist/cjs/view/FlexibleCard/components/elements/badge/index.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/index.js +4 -16
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/index.js +1 -5
- package/dist/cjs/view/FlexibleCard/components/elements/utils.js +34 -34
- package/dist/cjs/view/FlexibleCard/components/utils.js +5 -5
- package/dist/cjs/view/HoverCard/components/HoverCardContent.js +21 -53
- package/dist/cjs/view/HoverCard/styled.js +1 -1
- package/dist/cjs/view/InlineCard/ErroredView/index.js +8 -11
- package/dist/cjs/view/InlineCard/ForbiddenView/index.js +10 -13
- package/dist/cjs/view/InlineCard/IconAndTitleLayout/index.js +7 -10
- package/dist/cjs/view/InlineCard/ResolvedView/index.js +5 -7
- package/dist/cjs/view/InlineCard/ResolvingView/index.js +5 -7
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/cjs/view/LinkView/index.js +5 -7
- package/dist/cjs/view/common/UnauthorisedViewContent.js +3 -9
- package/dist/es2019/state/actions/index.js +13 -38
- package/dist/es2019/state/analytics/useSmartLinkAnalytics.js +2 -238
- package/dist/es2019/utils/analytics/analytics.js +2 -286
- package/dist/es2019/utils/analytics/index.js +1 -1
- package/dist/es2019/view/BlockCard/views/styled.js +1 -1
- package/dist/es2019/view/CardWithUrl/component.js +8 -23
- package/dist/es2019/view/FlexibleCard/components/actions/action/action-button/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/actions/action/server-action/index.js +4 -13
- package/dist/es2019/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/test-utils.js +3 -3
- package/dist/es2019/view/FlexibleCard/components/elements/lozenge/lozenge-action/index.js +4 -16
- package/dist/es2019/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/index.js +1 -5
- package/dist/es2019/view/FlexibleCard/components/utils.js +3 -3
- package/dist/es2019/view/HoverCard/components/HoverCardContent.js +21 -53
- package/dist/es2019/view/HoverCard/styled.js +1 -1
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/es2019/view/common/UnauthorisedViewContent.js +3 -9
- package/dist/esm/extractors/flexible/actions/index.js +5 -7
- package/dist/esm/state/actions/index.js +13 -38
- package/dist/esm/state/analytics/useSmartLinkAnalytics.js +55 -306
- package/dist/esm/state/hooks/use-ai-summary/ai-summary-service/index.js +1 -2
- package/dist/esm/state/hooks/use-ai-summary/ai-summary-service/types.js +4 -5
- package/dist/esm/utils/analytics/analytics.js +27 -303
- package/dist/esm/utils/analytics/index.js +1 -1
- package/dist/esm/utils/mocks.js +5 -7
- package/dist/esm/view/BlockCard/views/styled.js +1 -1
- package/dist/esm/view/Card/index.js +5 -7
- package/dist/esm/view/CardWithUrl/component.js +8 -23
- package/dist/esm/view/EmbedCard/EmbedResizeMessageListener.js +7 -10
- package/dist/esm/view/FlexibleCard/components/actions/action/action-button/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/actions/action/server-action/index.js +4 -13
- package/dist/esm/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/test-utils.js +10 -12
- package/dist/esm/view/FlexibleCard/components/blocks/utils.js +1 -1
- package/dist/esm/view/FlexibleCard/components/common/atlaskit-icon/index.js +61 -61
- package/dist/esm/view/FlexibleCard/components/elements/badge/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/elements/lozenge/lozenge-action/index.js +4 -16
- package/dist/esm/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/index.js +1 -5
- package/dist/esm/view/FlexibleCard/components/elements/utils.js +34 -34
- package/dist/esm/view/FlexibleCard/components/utils.js +5 -5
- package/dist/esm/view/HoverCard/components/HoverCardContent.js +21 -53
- package/dist/esm/view/HoverCard/styled.js +1 -1
- package/dist/esm/view/InlineCard/ErroredView/index.js +8 -11
- package/dist/esm/view/InlineCard/ForbiddenView/index.js +10 -13
- package/dist/esm/view/InlineCard/IconAndTitleLayout/index.js +7 -10
- package/dist/esm/view/InlineCard/ResolvedView/index.js +5 -7
- package/dist/esm/view/InlineCard/ResolvingView/index.js +5 -7
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/esm/view/LinkView/index.js +5 -7
- package/dist/esm/view/common/UnauthorisedViewContent.js +3 -9
- package/dist/types/state/analytics/useSmartLinkAnalytics.d.ts +1 -101
- package/dist/types/state/hooks/useSmartLink.d.ts +0 -12
- package/dist/types/utils/analytics/analytics.d.ts +1 -51
- package/dist/types/utils/analytics/index.d.ts +1 -1
- package/dist/types/utils/analytics/types.d.ts +0 -60
- package/dist/types/utils/mocks.d.ts +0 -12
- package/dist/types/view/common/UnauthorisedViewContent.d.ts +1 -1
- package/dist/types-ts4.5/state/analytics/useSmartLinkAnalytics.d.ts +1 -101
- package/dist/types-ts4.5/state/hooks/useSmartLink.d.ts +0 -12
- package/dist/types-ts4.5/utils/analytics/analytics.d.ts +1 -51
- package/dist/types-ts4.5/utils/analytics/index.d.ts +1 -1
- package/dist/types-ts4.5/utils/analytics/types.d.ts +0 -60
- package/dist/types-ts4.5/utils/mocks.d.ts +0 -12
- package/dist/types-ts4.5/view/common/UnauthorisedViewContent.d.ts +1 -1
- package/package.json +2 -5
|
@@ -7,26 +7,23 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.EmbedResizeMessageListener = void 0;
|
|
8
8
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
9
9
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
10
|
-
var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));
|
|
11
|
-
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
12
10
|
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
13
11
|
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
12
|
+
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
14
13
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
15
14
|
var _react = _interopRequireDefault(require("react"));
|
|
16
15
|
var _styled = require("./components/styled");
|
|
17
|
-
function
|
|
16
|
+
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
|
|
18
17
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
19
18
|
var EmbedResizeMessageListener = exports.EmbedResizeMessageListener = /*#__PURE__*/function (_React$Component) {
|
|
20
|
-
(0, _inherits2.default)(EmbedResizeMessageListener, _React$Component);
|
|
21
|
-
var _super = _createSuper(EmbedResizeMessageListener);
|
|
22
19
|
function EmbedResizeMessageListener() {
|
|
23
20
|
var _this;
|
|
24
21
|
(0, _classCallCheck2.default)(this, EmbedResizeMessageListener);
|
|
25
22
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
26
23
|
args[_key] = arguments[_key];
|
|
27
24
|
}
|
|
28
|
-
_this =
|
|
29
|
-
(0, _defineProperty2.default)(
|
|
25
|
+
_this = _callSuper(this, EmbedResizeMessageListener, [].concat(args));
|
|
26
|
+
(0, _defineProperty2.default)(_this, "messageCallback", function (event) {
|
|
30
27
|
var embedIframeRef = _this.props.embedIframeRef;
|
|
31
28
|
var isFromExpectedIframe = embedIframeRef.current && event.source === embedIframeRef.current.contentWindow;
|
|
32
29
|
var isStringData = typeof event.data === 'string';
|
|
@@ -41,14 +38,15 @@ var EmbedResizeMessageListener = exports.EmbedResizeMessageListener = /*#__PURE_
|
|
|
41
38
|
} catch (e) {}
|
|
42
39
|
}
|
|
43
40
|
});
|
|
44
|
-
(0, _defineProperty2.default)(
|
|
41
|
+
(0, _defineProperty2.default)(_this, "onEmbedHeightChange", function (data) {
|
|
45
42
|
var onHeightUpdate = _this.props.onHeightUpdate;
|
|
46
43
|
var height = data.height + _styled.embedHeaderHeight;
|
|
47
44
|
onHeightUpdate(height);
|
|
48
45
|
});
|
|
49
46
|
return _this;
|
|
50
47
|
}
|
|
51
|
-
(0,
|
|
48
|
+
(0, _inherits2.default)(EmbedResizeMessageListener, _React$Component);
|
|
49
|
+
return (0, _createClass2.default)(EmbedResizeMessageListener, [{
|
|
52
50
|
key: "componentDidMount",
|
|
53
51
|
value: function componentDidMount() {
|
|
54
52
|
window.addEventListener('message', this.messageCallback);
|
|
@@ -64,5 +62,4 @@ var EmbedResizeMessageListener = exports.EmbedResizeMessageListener = /*#__PURE_
|
|
|
64
62
|
return this.props.children;
|
|
65
63
|
}
|
|
66
64
|
}]);
|
|
67
|
-
return EmbedResizeMessageListener;
|
|
68
65
|
}(_react.default.Component);
|
|
@@ -37,7 +37,7 @@ var getButtonStyle = function getButtonStyle(size, iconOnly) {
|
|
|
37
37
|
case _constants.SmartLinkSize.Small:
|
|
38
38
|
return (0, _react2.css)({
|
|
39
39
|
fontSize: '0.75rem',
|
|
40
|
-
fontWeight: 500,
|
|
40
|
+
fontWeight: "var(--ds-font-weight-medium, 500)",
|
|
41
41
|
lineHeight: '1rem',
|
|
42
42
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
43
43
|
'button, button:hover, button:focus, button:active': [{
|
|
@@ -12,9 +12,7 @@ var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/
|
|
|
12
12
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
13
13
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
14
14
|
var _react = _interopRequireWildcard(require("react"));
|
|
15
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
16
15
|
var _useAnalyticsEvents2 = require("../../../../../../common/analytics/generated/use-analytics-events");
|
|
17
|
-
var _flexibleUiContext = require("../../../../../../state/flexible-ui-context");
|
|
18
16
|
var _useInvoke = _interopRequireDefault(require("../../../../../../state/hooks/use-invoke"));
|
|
19
17
|
var _utils = require("../../../../../../state/hooks/use-invoke/utils");
|
|
20
18
|
var _useResolve = _interopRequireDefault(require("../../../../../../state/hooks/use-resolve"));
|
|
@@ -32,7 +30,6 @@ var ServerAction = function ServerAction(_ref) {
|
|
|
32
30
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
33
31
|
isLoading = _useState2[0],
|
|
34
32
|
setIsLoading = _useState2[1];
|
|
35
|
-
var analytics = (0, _flexibleUiContext.useFlexibleUiAnalyticsContext)();
|
|
36
33
|
var invoke = (0, _useInvoke.default)();
|
|
37
34
|
var reload = (0, _useResolve.default)();
|
|
38
35
|
var _useAnalyticsEvents = (0, _useAnalyticsEvents2.useAnalyticsEvents)(),
|
|
@@ -49,16 +46,10 @@ var ServerAction = function ServerAction(_ref) {
|
|
|
49
46
|
smartLinkActionType = (_action$action = action.action) === null || _action$action === void 0 ? void 0 : _action$action.actionType;
|
|
50
47
|
_context.prev = 2;
|
|
51
48
|
setIsLoading(true);
|
|
52
|
-
if (
|
|
53
|
-
|
|
54
|
-
fireEvent('ui.button.clicked.smartLinkFollowButton', {});
|
|
55
|
-
} else {
|
|
56
|
-
fireEvent("ui.button.clicked.".concat(smartLinkActionType), {});
|
|
57
|
-
}
|
|
49
|
+
if (smartLinkActionType === 'FollowEntityAction' || smartLinkActionType === 'UnfollowEntityAction') {
|
|
50
|
+
fireEvent('ui.button.clicked.smartLinkFollowButton', {});
|
|
58
51
|
} else {
|
|
59
|
-
|
|
60
|
-
smartLinkActionType: smartLinkActionType
|
|
61
|
-
});
|
|
52
|
+
fireEvent("ui.button.clicked.".concat(smartLinkActionType), {});
|
|
62
53
|
}
|
|
63
54
|
fireEvent('track.smartLinkQuickAction.started', {
|
|
64
55
|
smartLinkActionType: smartLinkActionType
|
|
@@ -97,7 +88,7 @@ var ServerAction = function ServerAction(_ref) {
|
|
|
97
88
|
return _context.stop();
|
|
98
89
|
}
|
|
99
90
|
}, _callee, null, [[2, 17]]);
|
|
100
|
-
})), [action,
|
|
91
|
+
})), [action, invoke, onClick, onErrorCallback, reload, fireEvent]);
|
|
101
92
|
return /*#__PURE__*/_react.default.createElement(_index.default, (0, _extends2.default)({}, props, {
|
|
102
93
|
isLoading: isLoading,
|
|
103
94
|
onClick: handleClick
|
|
@@ -9,9 +9,9 @@ exports.successStubInvokeManuallyTriggeredRule = exports.renderWithDi = exports.
|
|
|
9
9
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
10
10
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
11
11
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
12
|
-
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
13
12
|
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
14
13
|
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
14
|
+
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
15
15
|
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
16
16
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
17
17
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
@@ -21,7 +21,7 @@ var _reactIntlNext = require("react-intl-next");
|
|
|
21
21
|
var _reactMagneticDi = require("react-magnetic-di");
|
|
22
22
|
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); }
|
|
23
23
|
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; }
|
|
24
|
-
function
|
|
24
|
+
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
|
|
25
25
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
26
26
|
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; }
|
|
27
27
|
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; } // eslint-disable-next-line import/no-extraneous-dependencies
|
|
@@ -97,17 +97,16 @@ var renderWithDi = exports.renderWithDi = function renderWithDi(node) {
|
|
|
97
97
|
}));
|
|
98
98
|
};
|
|
99
99
|
var createGenericComponent = exports.createGenericComponent = function createGenericComponent(displayName) {
|
|
100
|
-
var
|
|
100
|
+
var _Class;
|
|
101
101
|
var renderChildren = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
102
102
|
var childrenParams = arguments.length > 2 ? arguments[2] : undefined;
|
|
103
|
-
return
|
|
104
|
-
(
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
(0, _classCallCheck2.default)(this, _class);
|
|
108
|
-
return _super.apply(this, arguments);
|
|
103
|
+
return _Class = /*#__PURE__*/function (_Component) {
|
|
104
|
+
function _Class() {
|
|
105
|
+
(0, _classCallCheck2.default)(this, _Class);
|
|
106
|
+
return _callSuper(this, _Class, arguments);
|
|
109
107
|
}
|
|
110
|
-
(0,
|
|
108
|
+
(0, _inherits2.default)(_Class, _Component);
|
|
109
|
+
return (0, _createClass2.default)(_Class, [{
|
|
111
110
|
key: "render",
|
|
112
111
|
value: function render() {
|
|
113
112
|
if (renderChildren && typeof this.props.children === 'function') {
|
|
@@ -122,6 +121,5 @@ var createGenericComponent = exports.createGenericComponent = function createGen
|
|
|
122
121
|
return null;
|
|
123
122
|
}
|
|
124
123
|
}]);
|
|
125
|
-
|
|
126
|
-
}(_react.Component), (0, _defineProperty2.default)(_class, "displayName", displayName), _class;
|
|
124
|
+
}(_react.Component), (0, _defineProperty2.default)(_Class, "displayName", displayName), _Class;
|
|
127
125
|
};
|
|
@@ -24,7 +24,7 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
|
|
|
24
24
|
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; }
|
|
25
25
|
// Determine whether the element can be display as inline/block.
|
|
26
26
|
|
|
27
|
-
var ElementDisplaySchema = exports.ElementDisplaySchema = (_ElementDisplaySchema = {}, (0, _defineProperty2.default)(
|
|
27
|
+
var ElementDisplaySchema = exports.ElementDisplaySchema = (_ElementDisplaySchema = {}, (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)(_ElementDisplaySchema, _constants.ElementName.AssignedTo, ['inline']), _constants.ElementName.AssignedToGroup, ['inline']), _constants.ElementName.AttachmentCount, ['inline']), _constants.ElementName.AuthorGroup, ['inline']), _constants.ElementName.ChecklistProgress, ['inline']), _constants.ElementName.CollaboratorGroup, ['inline']), _constants.ElementName.CommentCount, ['inline']), _constants.ElementName.CreatedBy, ['inline']), _constants.ElementName.CreatedOn, ['inline']), _constants.ElementName.DueOn, ['inline']), (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)(_ElementDisplaySchema, _constants.ElementName.LatestCommit, ['inline']), _constants.ElementName.LinkIcon, ['inline']), _constants.ElementName.Location, ['inline']), _constants.ElementName.ModifiedBy, ['inline']), _constants.ElementName.ModifiedOn, ['inline']), _constants.ElementName.OwnedBy, ['inline']), _constants.ElementName.OwnedByGroup, ['inline']), _constants.ElementName.Preview, ['block']), _constants.ElementName.Priority, ['inline']), _constants.ElementName.ProgrammingLanguage, ['inline']), (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)(_ElementDisplaySchema, _constants.ElementName.Provider, ['inline']), _constants.ElementName.ReactCount, ['inline']), _constants.ElementName.ReadTime, ['inline']), _constants.ElementName.Snippet, ['block']), _constants.ElementName.SourceBranch, ['inline']), _constants.ElementName.SentOn, ['inline']), _constants.ElementName.State, ['inline']), _constants.ElementName.SubscriberCount, ['inline']), _constants.ElementName.SubTasksProgress, ['inline']), _constants.ElementName.StoryPoints, ['inline']), (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)(_ElementDisplaySchema, _constants.ElementName.TargetBranch, ['inline']), _constants.ElementName.Title, ['inline']), _constants.ElementName.ViewCount, ['inline']), _constants.ElementName.VoteCount, ['inline']));
|
|
28
28
|
var getDirectionStyles = function getDirectionStyles(direction) {
|
|
29
29
|
switch (direction) {
|
|
30
30
|
case _constants.SmartLinkDirection.Vertical:
|
|
@@ -18,151 +18,151 @@ var _importIconMapper;
|
|
|
18
18
|
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); }
|
|
19
19
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != (0, _typeof2.default)(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; }
|
|
20
20
|
// prettier-ignore
|
|
21
|
-
var importIconMapper = (_importIconMapper = {}, (0, _defineProperty2.default)(_importIconMapper, _constants.IconType.Archive, function () {
|
|
21
|
+
var importIconMapper = (_importIconMapper = {}, (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)(_importIconMapper, _constants.IconType.Archive, function () {
|
|
22
22
|
return Promise.resolve().then(function () {
|
|
23
23
|
return _interopRequireWildcard(require( /* webpackChunkName: "glyphArchive" */'@atlaskit/icon-file-type/glyph/archive/16'));
|
|
24
24
|
});
|
|
25
|
-
}),
|
|
25
|
+
}), _constants.IconType.Audio, function () {
|
|
26
26
|
return Promise.resolve().then(function () {
|
|
27
27
|
return _interopRequireWildcard(require( /* webpackChunkName: "glyphAudio" */'@atlaskit/icon-file-type/glyph/audio/16'));
|
|
28
28
|
});
|
|
29
|
-
}),
|
|
29
|
+
}), _constants.IconType.Code, function () {
|
|
30
30
|
return Promise.resolve().then(function () {
|
|
31
31
|
return _interopRequireWildcard(require( /* webpackChunkName: "glyphCode" */'@atlaskit/icon-file-type/glyph/source-code/16'));
|
|
32
32
|
});
|
|
33
|
-
}),
|
|
33
|
+
}), _constants.IconType.Executable, function () {
|
|
34
34
|
return Promise.resolve().then(function () {
|
|
35
35
|
return _interopRequireWildcard(require( /* webpackChunkName: "glyphExecutable" */'@atlaskit/icon-file-type/glyph/executable/16'));
|
|
36
36
|
});
|
|
37
|
-
}),
|
|
37
|
+
}), _constants.IconType.File, function () {
|
|
38
38
|
return Promise.resolve().then(function () {
|
|
39
39
|
return _interopRequireWildcard(require( /* webpackChunkName: "glyphFile" */'@atlaskit/icon-file-type/glyph/generic/16'));
|
|
40
40
|
});
|
|
41
|
-
}),
|
|
41
|
+
}), _constants.IconType.Folder, function () {
|
|
42
42
|
return Promise.resolve().then(function () {
|
|
43
43
|
return _interopRequireWildcard(require( /* webpackChunkName: "glyphFolder" */'@atlaskit/icon-file-type/glyph/folder/16'));
|
|
44
44
|
});
|
|
45
|
-
}),
|
|
45
|
+
}), _constants.IconType.Generic, function () {
|
|
46
46
|
return Promise.resolve().then(function () {
|
|
47
47
|
return _interopRequireWildcard(require( /* webpackChunkName: "glyphGeneric" */'@atlaskit/icon-file-type/glyph/generic/16'));
|
|
48
48
|
});
|
|
49
|
-
}),
|
|
49
|
+
}), _constants.IconType.GIF, function () {
|
|
50
50
|
return Promise.resolve().then(function () {
|
|
51
51
|
return _interopRequireWildcard(require( /* webpackChunkName: "glyphGIF" */'@atlaskit/icon-file-type/glyph/gif/16'));
|
|
52
52
|
});
|
|
53
|
-
}),
|
|
53
|
+
}), _constants.IconType.GoogleDocs, function () {
|
|
54
54
|
return Promise.resolve().then(function () {
|
|
55
55
|
return _interopRequireWildcard(require( /* webpackChunkName: "glyphGoogleDocs" */'@atlaskit/icon-file-type/glyph/google-doc/16'));
|
|
56
56
|
});
|
|
57
|
-
}),
|
|
57
|
+
}), _constants.IconType.GoogleForms, function () {
|
|
58
58
|
return Promise.resolve().then(function () {
|
|
59
59
|
return _interopRequireWildcard(require( /* webpackChunkName: "glyphGoogleForms" */'@atlaskit/icon-file-type/glyph/google-form/16'));
|
|
60
60
|
});
|
|
61
|
-
}), (0, _defineProperty2.default)(_importIconMapper, _constants.IconType.GoogleSheets, function () {
|
|
61
|
+
}), (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)(_importIconMapper, _constants.IconType.GoogleSheets, function () {
|
|
62
62
|
return Promise.resolve().then(function () {
|
|
63
63
|
return _interopRequireWildcard(require( /* webpackChunkName: "glyphGoogleSheets" */'@atlaskit/icon-file-type/glyph/google-sheet/16'));
|
|
64
64
|
});
|
|
65
|
-
}),
|
|
65
|
+
}), _constants.IconType.GoogleSlides, function () {
|
|
66
66
|
return Promise.resolve().then(function () {
|
|
67
67
|
return _interopRequireWildcard(require( /* webpackChunkName: "glyphGoogleSlides" */'@atlaskit/icon-file-type/glyph/google-slide/16'));
|
|
68
68
|
});
|
|
69
|
-
}),
|
|
69
|
+
}), _constants.IconType.Image, function () {
|
|
70
70
|
return Promise.resolve().then(function () {
|
|
71
71
|
return _interopRequireWildcard(require( /* webpackChunkName: "glyphImage" */'@atlaskit/icon-file-type/glyph/image/16'));
|
|
72
72
|
});
|
|
73
|
-
}),
|
|
73
|
+
}), _constants.IconType.MSExcel, function () {
|
|
74
74
|
return Promise.resolve().then(function () {
|
|
75
75
|
return _interopRequireWildcard(require( /* webpackChunkName: "glyphMSExcel" */'@atlaskit/icon-file-type/glyph/excel-spreadsheet/16'));
|
|
76
76
|
});
|
|
77
|
-
}),
|
|
77
|
+
}), _constants.IconType.MSPowerpoint, function () {
|
|
78
78
|
return Promise.resolve().then(function () {
|
|
79
79
|
return _interopRequireWildcard(require( /* webpackChunkName: "glyphMSPowerpoint" */'@atlaskit/icon-file-type/glyph/powerpoint-presentation/16'));
|
|
80
80
|
});
|
|
81
|
-
}),
|
|
81
|
+
}), _constants.IconType.MSWord, function () {
|
|
82
82
|
return Promise.resolve().then(function () {
|
|
83
83
|
return _interopRequireWildcard(require( /* webpackChunkName: "glyphMSWord" */'@atlaskit/icon-file-type/glyph/word-document/16'));
|
|
84
84
|
});
|
|
85
|
-
}),
|
|
85
|
+
}), _constants.IconType.PDF, function () {
|
|
86
86
|
return Promise.resolve().then(function () {
|
|
87
87
|
return _interopRequireWildcard(require( /* webpackChunkName: "glyphPDF" */'@atlaskit/icon-file-type/glyph/pdf-document/16'));
|
|
88
88
|
});
|
|
89
|
-
}),
|
|
89
|
+
}), _constants.IconType.Presentation, function () {
|
|
90
90
|
return Promise.resolve().then(function () {
|
|
91
91
|
return _interopRequireWildcard(require( /* webpackChunkName: "glyphPresentation" */'@atlaskit/icon-file-type/glyph/presentation/16'));
|
|
92
92
|
});
|
|
93
|
-
}),
|
|
93
|
+
}), _constants.IconType.Sketch, function () {
|
|
94
94
|
return Promise.resolve().then(function () {
|
|
95
95
|
return _interopRequireWildcard(require( /* webpackChunkName: "glyphSketch" */'@atlaskit/icon-file-type/glyph/sketch/16'));
|
|
96
96
|
});
|
|
97
|
-
}),
|
|
97
|
+
}), _constants.IconType.Spreadsheet, function () {
|
|
98
98
|
return Promise.resolve().then(function () {
|
|
99
99
|
return _interopRequireWildcard(require( /* webpackChunkName: "glyphSpreadsheet" */'@atlaskit/icon-file-type/glyph/spreadsheet/16'));
|
|
100
100
|
});
|
|
101
|
-
}), (0, _defineProperty2.default)(_importIconMapper, _constants.IconType.Template, function () {
|
|
101
|
+
}), (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)(_importIconMapper, _constants.IconType.Template, function () {
|
|
102
102
|
return Promise.resolve().then(function () {
|
|
103
103
|
return _interopRequireWildcard(require( /* webpackChunkName: "glyphTemplate" */'@atlaskit/icon/glyph/document-filled'));
|
|
104
104
|
});
|
|
105
|
-
}),
|
|
105
|
+
}), _constants.IconType.Video, function () {
|
|
106
106
|
return Promise.resolve().then(function () {
|
|
107
107
|
return _interopRequireWildcard(require( /* webpackChunkName: "glyphVideo" */'@atlaskit/icon-file-type/glyph/video/16'));
|
|
108
108
|
});
|
|
109
|
-
}),
|
|
109
|
+
}), _constants.IconType.Branch, function () {
|
|
110
110
|
return Promise.resolve().then(function () {
|
|
111
111
|
return _interopRequireWildcard(require( /* webpackChunkName: "glyphBranch" */'@atlaskit/icon-object/glyph/branch/16'));
|
|
112
112
|
});
|
|
113
|
-
}),
|
|
113
|
+
}), _constants.IconType.Commit, function () {
|
|
114
114
|
return Promise.resolve().then(function () {
|
|
115
115
|
return _interopRequireWildcard(require( /* webpackChunkName: "glyphCommit" */'@atlaskit/icon-object/glyph/commit/16'));
|
|
116
116
|
});
|
|
117
|
-
}),
|
|
117
|
+
}), _constants.IconType.Project, function () {
|
|
118
118
|
return Promise.resolve().then(function () {
|
|
119
119
|
return _interopRequireWildcard(require( /* webpackChunkName: "glyphProject" */'@atlaskit/icon/glyph/people-group'));
|
|
120
120
|
});
|
|
121
|
-
}),
|
|
121
|
+
}), _constants.IconType.PullRequest, function () {
|
|
122
122
|
return Promise.resolve().then(function () {
|
|
123
123
|
return _interopRequireWildcard(require( /* webpackChunkName: "glyphPullRequest" */'@atlaskit/icon-object/glyph/pull-request/16'));
|
|
124
124
|
});
|
|
125
|
-
}),
|
|
125
|
+
}), _constants.IconType.Repo, function () {
|
|
126
126
|
return Promise.resolve().then(function () {
|
|
127
127
|
return _interopRequireWildcard(require( /* webpackChunkName: "glyphRepo" */'@atlaskit/icon-object/glyph/code/16'));
|
|
128
128
|
});
|
|
129
|
-
}),
|
|
129
|
+
}), _constants.IconType.Bug, function () {
|
|
130
130
|
return Promise.resolve().then(function () {
|
|
131
131
|
return _interopRequireWildcard(require( /* webpackChunkName: "glyphBug" */'@atlaskit/icon-object/glyph/bug/16'));
|
|
132
132
|
});
|
|
133
|
-
}),
|
|
133
|
+
}), _constants.IconType.Change, function () {
|
|
134
134
|
return Promise.resolve().then(function () {
|
|
135
135
|
return _interopRequireWildcard(require( /* webpackChunkName: "glyphChange" */'@atlaskit/icon-object/glyph/changes/16'));
|
|
136
136
|
});
|
|
137
|
-
}),
|
|
137
|
+
}), _constants.IconType.Epic, function () {
|
|
138
138
|
return Promise.resolve().then(function () {
|
|
139
139
|
return _interopRequireWildcard(require( /* webpackChunkName: "glyphEpic" */'@atlaskit/icon-object/glyph/epic/16'));
|
|
140
140
|
});
|
|
141
|
-
}), (0, _defineProperty2.default)(_importIconMapper, _constants.IconType.Incident, function () {
|
|
141
|
+
}), (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)(_importIconMapper, _constants.IconType.Incident, function () {
|
|
142
142
|
return Promise.resolve().then(function () {
|
|
143
143
|
return _interopRequireWildcard(require( /* webpackChunkName: "glyphIncident" */'@atlaskit/icon-object/glyph/incident/16'));
|
|
144
144
|
});
|
|
145
|
-
}),
|
|
145
|
+
}), _constants.IconType.Problem, function () {
|
|
146
146
|
return Promise.resolve().then(function () {
|
|
147
147
|
return _interopRequireWildcard(require( /* webpackChunkName: "glyphProblem" */'@atlaskit/icon-object/glyph/problem/16'));
|
|
148
148
|
});
|
|
149
|
-
}),
|
|
149
|
+
}), _constants.IconType.ServiceRequest, function () {
|
|
150
150
|
return Promise.resolve().then(function () {
|
|
151
151
|
return _interopRequireWildcard(require( /* webpackChunkName: "glyphServiceRequest" */'@atlaskit/icon-object/glyph/issue/16'));
|
|
152
152
|
});
|
|
153
|
-
}),
|
|
153
|
+
}), _constants.IconType.Story, function () {
|
|
154
154
|
return Promise.resolve().then(function () {
|
|
155
155
|
return _interopRequireWildcard(require( /* webpackChunkName: "glyphStory" */'@atlaskit/icon-object/glyph/story/16'));
|
|
156
156
|
});
|
|
157
|
-
}),
|
|
157
|
+
}), _constants.IconType.SubTask, function () {
|
|
158
158
|
return Promise.resolve().then(function () {
|
|
159
159
|
return _interopRequireWildcard(require( /* webpackChunkName: "glyphSubTask" */'@atlaskit/icon-object/glyph/subtask/16'));
|
|
160
160
|
});
|
|
161
|
-
}),
|
|
161
|
+
}), _constants.IconType.Task, function () {
|
|
162
162
|
return Promise.resolve().then(function () {
|
|
163
163
|
return _interopRequireWildcard(require( /* webpackChunkName: "glyphTask" */'@atlaskit/icon-object/glyph/task/16'));
|
|
164
164
|
});
|
|
165
|
-
}),
|
|
165
|
+
}), _constants.IconType.Confluence, function () {
|
|
166
166
|
return Promise.resolve().then(function () {
|
|
167
167
|
return _interopRequireWildcard(require( /* webpackChunkName: "glyphConfluence" */'@atlaskit/logo/confluence-icon'));
|
|
168
168
|
}).then(function (_ref) {
|
|
@@ -171,7 +171,7 @@ var importIconMapper = (_importIconMapper = {}, (0, _defineProperty2.default)(_i
|
|
|
171
171
|
default: ConfluenceIcon
|
|
172
172
|
};
|
|
173
173
|
});
|
|
174
|
-
}),
|
|
174
|
+
}), _constants.IconType.Jira, function () {
|
|
175
175
|
return Promise.resolve().then(function () {
|
|
176
176
|
return _interopRequireWildcard(require( /* webpackChunkName: "glyphJira" */'@atlaskit/logo/jira-icon'));
|
|
177
177
|
}).then(function (_ref2) {
|
|
@@ -180,91 +180,91 @@ var importIconMapper = (_importIconMapper = {}, (0, _defineProperty2.default)(_i
|
|
|
180
180
|
default: JiraIcon
|
|
181
181
|
};
|
|
182
182
|
});
|
|
183
|
-
}),
|
|
183
|
+
}), _constants.IconType.Default, function () {
|
|
184
184
|
return Promise.resolve().then(function () {
|
|
185
185
|
return _interopRequireWildcard(require( /* webpackChunkName: "glyphDefault" */'@atlaskit/icon/glyph/link'));
|
|
186
186
|
});
|
|
187
|
-
}),
|
|
187
|
+
}), _constants.IconType.Error, function () {
|
|
188
188
|
return Promise.resolve().then(function () {
|
|
189
189
|
return _interopRequireWildcard(require( /* webpackChunkName: "glyphError" */'@atlaskit/icon/glyph/error'));
|
|
190
190
|
});
|
|
191
|
-
}), (0, _defineProperty2.default)(_importIconMapper, _constants.IconType.Forbidden, function () {
|
|
191
|
+
}), (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)(_importIconMapper, _constants.IconType.Forbidden, function () {
|
|
192
192
|
return Promise.resolve().then(function () {
|
|
193
193
|
return _interopRequireWildcard(require( /* webpackChunkName: "glyphForbidden" */'@atlaskit/icon/glyph/lock-filled'));
|
|
194
194
|
});
|
|
195
|
-
}),
|
|
195
|
+
}), _constants.IconType.Attachment, function () {
|
|
196
196
|
return Promise.resolve().then(function () {
|
|
197
197
|
return _interopRequireWildcard(require( /* webpackChunkName: "glyphAttachment" */'@atlaskit/icon/glyph/attachment'));
|
|
198
198
|
});
|
|
199
|
-
}),
|
|
199
|
+
}), _constants.IconType.CheckItem, function () {
|
|
200
200
|
return Promise.resolve().then(function () {
|
|
201
201
|
return _interopRequireWildcard(require( /* webpackChunkName: "glyphAttachment" */'@atlaskit/icon/glyph/task'));
|
|
202
202
|
});
|
|
203
|
-
}),
|
|
203
|
+
}), _constants.IconType.Comment, function () {
|
|
204
204
|
return Promise.resolve().then(function () {
|
|
205
205
|
return _interopRequireWildcard(require( /* webpackChunkName: "glyphComment" */'@atlaskit/icon/glyph/comment'));
|
|
206
206
|
});
|
|
207
|
-
}),
|
|
207
|
+
}), _constants.IconType.View, function () {
|
|
208
208
|
return Promise.resolve().then(function () {
|
|
209
209
|
return _interopRequireWildcard(require( /* webpackChunkName: "glyphComment" */'@atlaskit/icon/glyph/watch'));
|
|
210
210
|
});
|
|
211
|
-
}),
|
|
211
|
+
}), _constants.IconType.React, function () {
|
|
212
212
|
return Promise.resolve().then(function () {
|
|
213
213
|
return _interopRequireWildcard(require( /* webpackChunkName: "glyphComment" */'@atlaskit/icon/glyph/like'));
|
|
214
214
|
});
|
|
215
|
-
}),
|
|
215
|
+
}), _constants.IconType.Vote, function () {
|
|
216
216
|
return Promise.resolve().then(function () {
|
|
217
217
|
return _interopRequireWildcard(require( /* webpackChunkName: "glyphComment" */'@atlaskit/icon/glyph/arrow-up'));
|
|
218
218
|
});
|
|
219
|
-
}),
|
|
219
|
+
}), _constants.IconType.PriorityBlocker, function () {
|
|
220
220
|
return Promise.resolve().then(function () {
|
|
221
221
|
return _interopRequireWildcard(require( /* webpackChunkName: "glyphBlocker" */'@atlaskit/icon-priority/glyph/priority-blocker'));
|
|
222
222
|
});
|
|
223
|
-
}),
|
|
223
|
+
}), _constants.IconType.PriorityCritical, function () {
|
|
224
224
|
return Promise.resolve().then(function () {
|
|
225
225
|
return _interopRequireWildcard(require( /* webpackChunkName: "glyphCritical" */'@atlaskit/icon-priority/glyph/priority-critical'));
|
|
226
226
|
});
|
|
227
|
-
}),
|
|
227
|
+
}), _constants.IconType.PriorityHigh, function () {
|
|
228
228
|
return Promise.resolve().then(function () {
|
|
229
229
|
return _interopRequireWildcard(require( /* webpackChunkName: "glyphHigh" */'@atlaskit/icon-priority/glyph/priority-high'));
|
|
230
230
|
});
|
|
231
|
-
}), (0, _defineProperty2.default)(_importIconMapper, _constants.IconType.PriorityHighest, function () {
|
|
231
|
+
}), (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)(_importIconMapper, _constants.IconType.PriorityHighest, function () {
|
|
232
232
|
return Promise.resolve().then(function () {
|
|
233
233
|
return _interopRequireWildcard(require( /* webpackChunkName: "glyphHighest" */'@atlaskit/icon-priority/glyph/priority-highest'));
|
|
234
234
|
});
|
|
235
|
-
}),
|
|
235
|
+
}), _constants.IconType.PriorityLow, function () {
|
|
236
236
|
return Promise.resolve().then(function () {
|
|
237
237
|
return _interopRequireWildcard(require( /* webpackChunkName: "glyphLow" */'@atlaskit/icon-priority/glyph/priority-low'));
|
|
238
238
|
});
|
|
239
|
-
}),
|
|
239
|
+
}), _constants.IconType.PriorityLowest, function () {
|
|
240
240
|
return Promise.resolve().then(function () {
|
|
241
241
|
return _interopRequireWildcard(require( /* webpackChunkName: "glyphLowest" */'@atlaskit/icon-priority/glyph/priority-lowest'));
|
|
242
242
|
});
|
|
243
|
-
}),
|
|
243
|
+
}), _constants.IconType.PriorityMajor, function () {
|
|
244
244
|
return Promise.resolve().then(function () {
|
|
245
245
|
return _interopRequireWildcard(require( /* webpackChunkName: "glyphMajor" */'@atlaskit/icon-priority/glyph/priority-major'));
|
|
246
246
|
});
|
|
247
|
-
}),
|
|
247
|
+
}), _constants.IconType.PriorityMedium, function () {
|
|
248
248
|
return Promise.resolve().then(function () {
|
|
249
249
|
return _interopRequireWildcard(require( /* webpackChunkName: "glyphMedium" */'@atlaskit/icon-priority/glyph/priority-medium'));
|
|
250
250
|
});
|
|
251
|
-
}),
|
|
251
|
+
}), _constants.IconType.PriorityMinor, function () {
|
|
252
252
|
return Promise.resolve().then(function () {
|
|
253
253
|
return _interopRequireWildcard(require( /* webpackChunkName: "glyphMinor" */'@atlaskit/icon-priority/glyph/priority-minor'));
|
|
254
254
|
});
|
|
255
|
-
}),
|
|
255
|
+
}), _constants.IconType.PriorityTrivial, function () {
|
|
256
256
|
return Promise.resolve().then(function () {
|
|
257
257
|
return _interopRequireWildcard(require( /* webpackChunkName: "glyphTrivial" */'@atlaskit/icon-priority/glyph/priority-trivial'));
|
|
258
258
|
});
|
|
259
|
-
}),
|
|
259
|
+
}), _constants.IconType.PriorityUndefined, function () {
|
|
260
260
|
return Promise.resolve().then(function () {
|
|
261
261
|
return _interopRequireWildcard(require( /* webpackChunkName: "glyphUndefined" */'@atlaskit/icon/glyph/question'));
|
|
262
262
|
});
|
|
263
|
-
}),
|
|
263
|
+
}), _constants.IconType.ProgrammingLanguage, function () {
|
|
264
264
|
return Promise.resolve().then(function () {
|
|
265
265
|
return _interopRequireWildcard(require( /* webpackChunkName: "glyphProgrammingLanguage" */'@atlaskit/icon/glyph/code'));
|
|
266
266
|
});
|
|
267
|
-
}),
|
|
267
|
+
}), _constants.IconType.Subscriber, function () {
|
|
268
268
|
return Promise.resolve().then(function () {
|
|
269
269
|
return _interopRequireWildcard(require( /* webpackChunkName: "glyphSubscriber" */'@atlaskit/icon/glyph/people'));
|
|
270
270
|
});
|
|
@@ -272,7 +272,7 @@ var importIconMapper = (_importIconMapper = {}, (0, _defineProperty2.default)(_i
|
|
|
272
272
|
return Promise.resolve().then(function () {
|
|
273
273
|
return _interopRequireWildcard(require( /* webpackChunkName: "glyphSubtaskProgress" */'@atlaskit/icon/glyph/subtask'));
|
|
274
274
|
});
|
|
275
|
-
})
|
|
275
|
+
}));
|
|
276
276
|
var getIconImportFn = function getIconImportFn(icon) {
|
|
277
277
|
return importIconMapper[icon];
|
|
278
278
|
};
|
|
@@ -35,7 +35,7 @@ var labelStyles = (0, _react2.css)({
|
|
|
35
35
|
paddingLeft: "var(--ds-space-025, 0.125rem)",
|
|
36
36
|
verticalAlign: 'middle'
|
|
37
37
|
});
|
|
38
|
-
var messageMapper = (_messageMapper = {}, (0, _defineProperty2.default)(
|
|
38
|
+
var messageMapper = (_messageMapper = {}, (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)(_messageMapper, _constants.IconType.PriorityBlocker, _messages.messages.priority_blocker), _constants.IconType.PriorityCritical, _messages.messages.priority_critical), _constants.IconType.PriorityHigh, _messages.messages.priority_high), _constants.IconType.PriorityHighest, _messages.messages.priority_highest), _constants.IconType.PriorityLow, _messages.messages.priority_low), _constants.IconType.PriorityLowest, _messages.messages.priority_lowest), _constants.IconType.PriorityMajor, _messages.messages.priority_major), _constants.IconType.PriorityMedium, _messages.messages.priority_medium), _constants.IconType.PriorityMinor, _messages.messages.priority_minor), _constants.IconType.PriorityTrivial, _messages.messages.priority_trivial), (0, _defineProperty2.default)(_messageMapper, _constants.IconType.PriorityUndefined, _messages.messages.priority_undefined));
|
|
39
39
|
var getFormattedMessageFromIcon = function getFormattedMessageFromIcon(icon) {
|
|
40
40
|
if (icon) {
|
|
41
41
|
var descriptor = messageMapper[icon];
|
|
@@ -12,10 +12,8 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
|
|
|
12
12
|
var _react = require("react");
|
|
13
13
|
var _react2 = require("@emotion/react");
|
|
14
14
|
var _dropdownMenu = _interopRequireDefault(require("@atlaskit/dropdown-menu"));
|
|
15
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
16
15
|
var _useAnalyticsEvents2 = require("../../../../../../common/analytics/generated/use-analytics-events");
|
|
17
16
|
var _extractLozengeActionItems = _interopRequireDefault(require("../../../../../../extractors/action/extract-lozenge-action-items"));
|
|
18
|
-
var _flexibleUiContext = require("../../../../../../state/flexible-ui-context");
|
|
19
17
|
var _useInvoke = _interopRequireDefault(require("../../../../../../state/hooks/use-invoke"));
|
|
20
18
|
var _utils = require("../../../../../../state/hooks/use-invoke/utils");
|
|
21
19
|
var _useResolve = _interopRequireDefault(require("../../../../../../state/hooks/use-resolve"));
|
|
@@ -77,8 +75,6 @@ var LozengeAction = function LozengeAction(_ref) {
|
|
|
77
75
|
errorMessage = _useState12[0],
|
|
78
76
|
setErrorMessage = _useState12[1];
|
|
79
77
|
var reload = (0, _useResolve.default)();
|
|
80
|
-
//TODO EDM-6583 Replace usage of useFlexibleUiAnalyticsContext with linking platform analytics context from find team.
|
|
81
|
-
var analytics = (0, _flexibleUiContext.useFlexibleUiAnalyticsContext)();
|
|
82
78
|
var invoke = (0, _useInvoke.default)();
|
|
83
79
|
var _useAnalyticsEvents = (0, _useAnalyticsEvents2.useAnalyticsEvents)(),
|
|
84
80
|
fireEvent = _useAnalyticsEvents.fireEvent;
|
|
@@ -103,11 +99,7 @@ var LozengeAction = function LozengeAction(_ref) {
|
|
|
103
99
|
_context.next = 24;
|
|
104
100
|
break;
|
|
105
101
|
}
|
|
106
|
-
|
|
107
|
-
fireEvent('ui.button.clicked.smartLinkStatusLozenge', {});
|
|
108
|
-
} else {
|
|
109
|
-
analytics === null || analytics === void 0 || analytics.ui.smartLinkLozengeActionClickedEvent();
|
|
110
|
-
}
|
|
102
|
+
fireEvent('ui.button.clicked.smartLinkStatusLozenge', {});
|
|
111
103
|
fireEvent('track.smartLinkQuickAction.started', {
|
|
112
104
|
smartLinkActionType: _analytics.TrackQuickActionType.StatusUpdate
|
|
113
105
|
});
|
|
@@ -154,7 +146,7 @@ var LozengeAction = function LozengeAction(_ref) {
|
|
|
154
146
|
return function (_x) {
|
|
155
147
|
return _ref3.apply(this, arguments);
|
|
156
148
|
};
|
|
157
|
-
}(), [action.read,
|
|
149
|
+
}(), [action.read, invoke, isLoaded, text, fireEvent]);
|
|
158
150
|
var trigger = (0, _react.useCallback)(function (props) {
|
|
159
151
|
return (0, _react2.jsx)(_lozengeActionTrigger.default, (0, _extends2.default)({}, props, {
|
|
160
152
|
appearance: selected.appearance,
|
|
@@ -170,11 +162,7 @@ var LozengeAction = function LozengeAction(_ref) {
|
|
|
170
162
|
while (1) switch (_context2.prev = _context2.next) {
|
|
171
163
|
case 0:
|
|
172
164
|
_context2.prev = 0;
|
|
173
|
-
|
|
174
|
-
fireEvent('ui.button.clicked.smartLinkStatusListItem', {});
|
|
175
|
-
} else {
|
|
176
|
-
analytics === null || analytics === void 0 || analytics.ui.smartLinkLozengeActionListItemClickedEvent();
|
|
177
|
-
}
|
|
165
|
+
fireEvent('ui.button.clicked.smartLinkStatusListItem', {});
|
|
178
166
|
updateAction = action === null || action === void 0 ? void 0 : action.update;
|
|
179
167
|
if (!(updateAction && id)) {
|
|
180
168
|
_context2.next = 17;
|
|
@@ -225,7 +213,7 @@ var LozengeAction = function LozengeAction(_ref) {
|
|
|
225
213
|
return function (_x2, _x3, _x4) {
|
|
226
214
|
return _ref4.apply(this, arguments);
|
|
227
215
|
};
|
|
228
|
-
}(), [action === null || action === void 0 ? void 0 : action.update,
|
|
216
|
+
}(), [action === null || action === void 0 ? void 0 : action.update, invoke, linkId, reload, url, fireEvent]);
|
|
229
217
|
var dropdownItemGroup = (0, _react.useMemo)(function () {
|
|
230
218
|
if (errorMessage) {
|
|
231
219
|
return (0, _react2.jsx)(_lozengeActionError.default, {
|