@atlaskit/link-datasource 1.15.0 → 1.15.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/dist/cjs/analytics/constants.js +1 -1
- package/dist/cjs/ui/issue-like-table/draggable-table-heading.js +2 -2
- package/dist/cjs/ui/issue-like-table/index.js +2 -2
- package/dist/cjs/ui/jira-issues-modal/basic-filters/ui/async-popup-select/messages.js +0 -15
- package/dist/cjs/ui/jira-issues-modal/basic-filters/ui/menu-list/errorMessage.js +1 -1
- package/dist/cjs/ui/jira-issues-modal/basic-filters/ui/menu-list/loadingMessage.js +1 -1
- package/dist/cjs/ui/jira-issues-modal/basic-filters/ui/menu-list/messages.js +23 -0
- package/dist/cjs/ui/jira-issues-modal/basic-filters/ui/menu-list/noOptionsMessage.js +1 -1
- package/dist/cjs/ui/jira-issues-modal/modal/index.js +19 -0
- package/dist/es2019/analytics/constants.js +1 -1
- package/dist/es2019/ui/issue-like-table/draggable-table-heading.js +2 -2
- package/dist/es2019/ui/issue-like-table/index.js +2 -2
- package/dist/es2019/ui/jira-issues-modal/basic-filters/ui/async-popup-select/messages.js +0 -15
- package/dist/es2019/ui/jira-issues-modal/basic-filters/ui/menu-list/errorMessage.js +1 -1
- package/dist/es2019/ui/jira-issues-modal/basic-filters/ui/menu-list/loadingMessage.js +1 -1
- package/dist/es2019/ui/jira-issues-modal/basic-filters/ui/menu-list/messages.js +17 -0
- package/dist/es2019/ui/jira-issues-modal/basic-filters/ui/menu-list/noOptionsMessage.js +1 -1
- package/dist/es2019/ui/jira-issues-modal/modal/index.js +20 -0
- package/dist/esm/analytics/constants.js +1 -1
- package/dist/esm/ui/issue-like-table/draggable-table-heading.js +2 -2
- package/dist/esm/ui/issue-like-table/index.js +2 -2
- package/dist/esm/ui/jira-issues-modal/basic-filters/ui/async-popup-select/messages.js +0 -15
- package/dist/esm/ui/jira-issues-modal/basic-filters/ui/menu-list/errorMessage.js +1 -1
- package/dist/esm/ui/jira-issues-modal/basic-filters/ui/menu-list/loadingMessage.js +1 -1
- package/dist/esm/ui/jira-issues-modal/basic-filters/ui/menu-list/messages.js +17 -0
- package/dist/esm/ui/jira-issues-modal/basic-filters/ui/menu-list/noOptionsMessage.js +1 -1
- package/dist/esm/ui/jira-issues-modal/modal/index.js +19 -0
- package/dist/types/ui/jira-issues-modal/basic-filters/ui/async-popup-select/messages.d.ts +0 -15
- package/dist/types/ui/jira-issues-modal/basic-filters/ui/menu-list/messages.d.ts +17 -0
- package/dist/types-ts4.5/ui/jira-issues-modal/basic-filters/ui/async-popup-select/messages.d.ts +0 -15
- package/dist/types-ts4.5/ui/jira-issues-modal/basic-filters/ui/menu-list/messages.d.ts +17 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/link-datasource
|
|
2
2
|
|
|
3
|
+
## 1.15.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#42738](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42738) [`95e6223ddb8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/95e6223ddb8) - Add macro inserted analytics event for jlol smart link insertions
|
|
8
|
+
|
|
9
|
+
## 1.15.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#42936](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42936) [`8aab8999a3d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8aab8999a3d) - Update error UI text.
|
|
14
|
+
|
|
3
15
|
## 1.15.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
|
@@ -10,14 +10,14 @@ var _react = require("react");
|
|
|
10
10
|
var _react2 = require("@emotion/react");
|
|
11
11
|
var _reactDom = _interopRequireDefault(require("react-dom"));
|
|
12
12
|
var _tinyInvariant = _interopRequireDefault(require("tiny-invariant"));
|
|
13
|
-
var _closestEdge = require("@atlaskit/pragmatic-drag-and-drop-hitbox/addon/closest-edge");
|
|
14
|
-
var _boxWithoutTerminal = require("@atlaskit/pragmatic-drag-and-drop-react-indicator/box-without-terminal");
|
|
15
13
|
var _element = require("@atlaskit/pragmatic-drag-and-drop/adapter/element");
|
|
16
14
|
var _cancelUnhandled = require("@atlaskit/pragmatic-drag-and-drop/addon/cancel-unhandled");
|
|
17
15
|
var _combine = require("@atlaskit/pragmatic-drag-and-drop/util/combine");
|
|
18
16
|
var _disableNativeDragPreview = require("@atlaskit/pragmatic-drag-and-drop/util/disable-native-drag-preview");
|
|
19
17
|
var _offsetFromPointer = require("@atlaskit/pragmatic-drag-and-drop/util/offset-from-pointer");
|
|
20
18
|
var _setCustomNativeDragPreview = require("@atlaskit/pragmatic-drag-and-drop/util/set-custom-native-drag-preview");
|
|
19
|
+
var _closestEdge = require("@atlaskit/pragmatic-drag-and-drop-hitbox/addon/closest-edge");
|
|
20
|
+
var _boxWithoutTerminal = require("@atlaskit/pragmatic-drag-and-drop-react-indicator/box-without-terminal");
|
|
21
21
|
var _styled = require("./styled");
|
|
22
22
|
var _index = require("./index");
|
|
23
23
|
/** @jsx jsx */
|
|
@@ -17,11 +17,11 @@ var _styled = _interopRequireDefault(require("@emotion/styled"));
|
|
|
17
17
|
var _tinyInvariant = _interopRequireDefault(require("tiny-invariant"));
|
|
18
18
|
var _heading = _interopRequireDefault(require("@atlaskit/heading"));
|
|
19
19
|
var _linkingCommon = require("@atlaskit/linking-common");
|
|
20
|
+
var _element = require("@atlaskit/pragmatic-drag-and-drop/adapter/element");
|
|
21
|
+
var _combine = require("@atlaskit/pragmatic-drag-and-drop/util/combine");
|
|
20
22
|
var _closestEdge = require("@atlaskit/pragmatic-drag-and-drop-hitbox/addon/closest-edge");
|
|
21
23
|
var _reorderWithEdge = require("@atlaskit/pragmatic-drag-and-drop-hitbox/util/reorder-with-edge");
|
|
22
24
|
var _pragmaticDragAndDropReactBeautifulDndAutoscroll = require("@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-autoscroll");
|
|
23
|
-
var _element = require("@atlaskit/pragmatic-drag-and-drop/adapter/element");
|
|
24
|
-
var _combine = require("@atlaskit/pragmatic-drag-and-drop/util/combine");
|
|
25
25
|
var _colors = require("@atlaskit/theme/colors");
|
|
26
26
|
var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
|
|
27
27
|
var _ufoExperiences = require("../../analytics/ufoExperiences");
|
|
@@ -34,20 +34,5 @@ var asyncPopupSelectMessages = exports.asyncPopupSelectMessages = {
|
|
|
34
34
|
id: 'linkDataSource.basic-filter.assignee.label',
|
|
35
35
|
description: 'Label to be displayed for assignee filter dropdown button.',
|
|
36
36
|
defaultMessage: 'Assignee'
|
|
37
|
-
},
|
|
38
|
-
loadingMessage: {
|
|
39
|
-
id: 'linkDataSource.basic-filter.loading-message',
|
|
40
|
-
defaultMessage: 'Loading...',
|
|
41
|
-
description: 'The text for when options are being loaded in dropdown'
|
|
42
|
-
},
|
|
43
|
-
noOptionsMessage: {
|
|
44
|
-
id: 'linkDataSource.basic-filter.no-options-message',
|
|
45
|
-
defaultMessage: 'No matches found',
|
|
46
|
-
description: 'The text for when no matches are found in dropdown'
|
|
47
|
-
},
|
|
48
|
-
errorMessage: {
|
|
49
|
-
id: 'linkDataSource.basic-filter.error-message',
|
|
50
|
-
defaultMessage: "Couldn't retrieve data",
|
|
51
|
-
description: 'The text for when an error occurs when loading options'
|
|
52
37
|
}
|
|
53
38
|
};
|
|
@@ -8,7 +8,7 @@ exports.default = void 0;
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _error = _interopRequireDefault(require("@atlaskit/icon/glyph/error"));
|
|
10
10
|
var _colors = require("@atlaskit/theme/colors");
|
|
11
|
-
var _messages = require("
|
|
11
|
+
var _messages = require("./messages");
|
|
12
12
|
var _selectMessage = _interopRequireDefault(require("./selectMessage"));
|
|
13
13
|
var CustomErrorMessage = function CustomErrorMessage() {
|
|
14
14
|
return /*#__PURE__*/_react.default.createElement(_selectMessage.default, {
|
|
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _spinner = _interopRequireDefault(require("@atlaskit/spinner"));
|
|
10
|
-
var _messages = require("
|
|
10
|
+
var _messages = require("./messages");
|
|
11
11
|
var _selectMessage = _interopRequireDefault(require("./selectMessage"));
|
|
12
12
|
var CustomDropdownLoadingMessage = function CustomDropdownLoadingMessage() {
|
|
13
13
|
return /*#__PURE__*/_react.default.createElement(_selectMessage.default, {
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.asyncPopupSelectMessages = void 0;
|
|
7
|
+
var asyncPopupSelectMessages = exports.asyncPopupSelectMessages = {
|
|
8
|
+
loadingMessage: {
|
|
9
|
+
id: 'linkDataSource.basic-filter.loading-message',
|
|
10
|
+
defaultMessage: 'Loading...',
|
|
11
|
+
description: 'The text for when options are being loaded in dropdown'
|
|
12
|
+
},
|
|
13
|
+
noOptionsMessage: {
|
|
14
|
+
id: 'linkDataSource.basic-filter.no-options-message',
|
|
15
|
+
defaultMessage: 'No matches found',
|
|
16
|
+
description: 'The text for when no matches are found in dropdown'
|
|
17
|
+
},
|
|
18
|
+
errorMessage: {
|
|
19
|
+
id: 'linkDataSource.basic-filter.error-message',
|
|
20
|
+
defaultMessage: 'Something went wrong',
|
|
21
|
+
description: 'The text for when an error occurs when loading options'
|
|
22
|
+
}
|
|
23
|
+
};
|
|
@@ -8,7 +8,7 @@ exports.default = void 0;
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _questionCircle = _interopRequireDefault(require("@atlaskit/icon/glyph/question-circle"));
|
|
10
10
|
var _colors = require("@atlaskit/theme/colors");
|
|
11
|
-
var _messages = require("
|
|
11
|
+
var _messages = require("./messages");
|
|
12
12
|
var _selectMessage = _interopRequireDefault(require("./selectMessage"));
|
|
13
13
|
var CustomNoOptionsMessage = function CustomNoOptionsMessage() {
|
|
14
14
|
return /*#__PURE__*/_react.default.createElement(_selectMessage.default, {
|
|
@@ -350,10 +350,28 @@ var PlainJiraIssuesConfigModal = exports.PlainJiraIssuesConfigModal = function P
|
|
|
350
350
|
}),
|
|
351
351
|
eventType: 'ui'
|
|
352
352
|
});
|
|
353
|
+
|
|
354
|
+
// additional event for tracking in confluence against JIM
|
|
355
|
+
var macroInsertedEvent = analyticsEvent.clone();
|
|
356
|
+
macroInsertedEvent === null || macroInsertedEvent === void 0 || macroInsertedEvent.update({
|
|
357
|
+
eventType: 'track',
|
|
358
|
+
action: 'inserted',
|
|
359
|
+
actionSubject: 'macro',
|
|
360
|
+
actionSubjectId: 'jlol',
|
|
361
|
+
attributes: _objectSpread(_objectSpread({}, analyticsPayload), {}, {
|
|
362
|
+
totalItemCount: totalCount || 0,
|
|
363
|
+
displayedColumnCount: visibleColumnCount.current,
|
|
364
|
+
display: getDisplayValue(currentViewMode, totalCount || 0),
|
|
365
|
+
searchCount: searchCount.current,
|
|
366
|
+
searchMethod: (0, _utils.mapSearchMethod)(searchMethodSearchedWith.current),
|
|
367
|
+
actions: Array.from(userInteractionActions.current)
|
|
368
|
+
})
|
|
369
|
+
});
|
|
353
370
|
var consumerEvent = (_insertButtonClickedE = insertButtonClickedEvent.clone()) !== null && _insertButtonClickedE !== void 0 ? _insertButtonClickedE : undefined;
|
|
354
371
|
insertButtonClickedEvent.fire(_analytics.EVENT_CHANNEL);
|
|
355
372
|
var firstIssueUrl = retrieveUrlForSmartCardRender();
|
|
356
373
|
if (currentViewMode === 'count') {
|
|
374
|
+
macroInsertedEvent === null || macroInsertedEvent === void 0 || macroInsertedEvent.fire(_analytics.EVENT_CHANNEL);
|
|
357
375
|
onInsert({
|
|
358
376
|
type: 'inlineCard',
|
|
359
377
|
attrs: {
|
|
@@ -361,6 +379,7 @@ var PlainJiraIssuesConfigModal = exports.PlainJiraIssuesConfigModal = function P
|
|
|
361
379
|
}
|
|
362
380
|
}, consumerEvent);
|
|
363
381
|
} else if (responseItems.length === 1 && firstIssueUrl) {
|
|
382
|
+
macroInsertedEvent === null || macroInsertedEvent === void 0 || macroInsertedEvent.fire(_analytics.EVENT_CHANNEL);
|
|
364
383
|
onInsert({
|
|
365
384
|
type: 'inlineCard',
|
|
366
385
|
attrs: {
|
|
@@ -3,14 +3,14 @@ import { useEffect, useRef, useState } from 'react';
|
|
|
3
3
|
import { css, jsx } from '@emotion/react';
|
|
4
4
|
import ReactDOM from 'react-dom';
|
|
5
5
|
import invariant from 'tiny-invariant';
|
|
6
|
-
import { attachClosestEdge, extractClosestEdge } from '@atlaskit/pragmatic-drag-and-drop-hitbox/addon/closest-edge';
|
|
7
|
-
import { DropIndicator } from '@atlaskit/pragmatic-drag-and-drop-react-indicator/box-without-terminal';
|
|
8
6
|
import { draggable, dropTargetForElements, monitorForElements } from '@atlaskit/pragmatic-drag-and-drop/adapter/element';
|
|
9
7
|
import { cancelUnhandled } from '@atlaskit/pragmatic-drag-and-drop/addon/cancel-unhandled';
|
|
10
8
|
import { combine } from '@atlaskit/pragmatic-drag-and-drop/util/combine';
|
|
11
9
|
import { disableNativeDragPreview } from '@atlaskit/pragmatic-drag-and-drop/util/disable-native-drag-preview';
|
|
12
10
|
import { offsetFromPointer } from '@atlaskit/pragmatic-drag-and-drop/util/offset-from-pointer';
|
|
13
11
|
import { setCustomNativeDragPreview } from '@atlaskit/pragmatic-drag-and-drop/util/set-custom-native-drag-preview';
|
|
12
|
+
import { attachClosestEdge, extractClosestEdge } from '@atlaskit/pragmatic-drag-and-drop-hitbox/addon/closest-edge';
|
|
13
|
+
import { DropIndicator } from '@atlaskit/pragmatic-drag-and-drop-react-indicator/box-without-terminal';
|
|
14
14
|
import { TableHeading } from './styled';
|
|
15
15
|
import { COLUMN_MIN_WIDTH } from './index';
|
|
16
16
|
const verticallyAlignedStyles = css({
|
|
@@ -5,11 +5,11 @@ import styled from '@emotion/styled';
|
|
|
5
5
|
import invariant from 'tiny-invariant';
|
|
6
6
|
import Heading from '@atlaskit/heading';
|
|
7
7
|
import { Skeleton } from '@atlaskit/linking-common';
|
|
8
|
+
import { monitorForElements } from '@atlaskit/pragmatic-drag-and-drop/adapter/element';
|
|
9
|
+
import { combine } from '@atlaskit/pragmatic-drag-and-drop/util/combine';
|
|
8
10
|
import { extractClosestEdge } from '@atlaskit/pragmatic-drag-and-drop-hitbox/addon/closest-edge';
|
|
9
11
|
import { reorderWithEdge } from '@atlaskit/pragmatic-drag-and-drop-hitbox/util/reorder-with-edge';
|
|
10
12
|
import { autoScroller } from '@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-autoscroll';
|
|
11
|
-
import { monitorForElements } from '@atlaskit/pragmatic-drag-and-drop/adapter/element';
|
|
12
|
-
import { combine } from '@atlaskit/pragmatic-drag-and-drop/util/combine';
|
|
13
13
|
import { N40 } from '@atlaskit/theme/colors';
|
|
14
14
|
import Tooltip from '@atlaskit/tooltip';
|
|
15
15
|
import { startUfoExperience, succeedUfoExperience } from '../../analytics/ufoExperiences';
|
|
@@ -28,20 +28,5 @@ export const asyncPopupSelectMessages = {
|
|
|
28
28
|
id: 'linkDataSource.basic-filter.assignee.label',
|
|
29
29
|
description: 'Label to be displayed for assignee filter dropdown button.',
|
|
30
30
|
defaultMessage: 'Assignee'
|
|
31
|
-
},
|
|
32
|
-
loadingMessage: {
|
|
33
|
-
id: 'linkDataSource.basic-filter.loading-message',
|
|
34
|
-
defaultMessage: 'Loading...',
|
|
35
|
-
description: 'The text for when options are being loaded in dropdown'
|
|
36
|
-
},
|
|
37
|
-
noOptionsMessage: {
|
|
38
|
-
id: 'linkDataSource.basic-filter.no-options-message',
|
|
39
|
-
defaultMessage: 'No matches found',
|
|
40
|
-
description: 'The text for when no matches are found in dropdown'
|
|
41
|
-
},
|
|
42
|
-
errorMessage: {
|
|
43
|
-
id: 'linkDataSource.basic-filter.error-message',
|
|
44
|
-
defaultMessage: "Couldn't retrieve data",
|
|
45
|
-
description: 'The text for when an error occurs when loading options'
|
|
46
31
|
}
|
|
47
32
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import ErrorIcon from '@atlaskit/icon/glyph/error';
|
|
3
3
|
import { N500 } from '@atlaskit/theme/colors';
|
|
4
|
-
import { asyncPopupSelectMessages } from '
|
|
4
|
+
import { asyncPopupSelectMessages } from './messages';
|
|
5
5
|
import CustomSelectMessage from './selectMessage';
|
|
6
6
|
const CustomErrorMessage = () => {
|
|
7
7
|
return /*#__PURE__*/React.createElement(CustomSelectMessage, {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import Spinner from '@atlaskit/spinner';
|
|
3
|
-
import { asyncPopupSelectMessages } from '
|
|
3
|
+
import { asyncPopupSelectMessages } from './messages';
|
|
4
4
|
import CustomSelectMessage from './selectMessage';
|
|
5
5
|
const CustomDropdownLoadingMessage = () => {
|
|
6
6
|
return /*#__PURE__*/React.createElement(CustomSelectMessage, {
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export const asyncPopupSelectMessages = {
|
|
2
|
+
loadingMessage: {
|
|
3
|
+
id: 'linkDataSource.basic-filter.loading-message',
|
|
4
|
+
defaultMessage: 'Loading...',
|
|
5
|
+
description: 'The text for when options are being loaded in dropdown'
|
|
6
|
+
},
|
|
7
|
+
noOptionsMessage: {
|
|
8
|
+
id: 'linkDataSource.basic-filter.no-options-message',
|
|
9
|
+
defaultMessage: 'No matches found',
|
|
10
|
+
description: 'The text for when no matches are found in dropdown'
|
|
11
|
+
},
|
|
12
|
+
errorMessage: {
|
|
13
|
+
id: 'linkDataSource.basic-filter.error-message',
|
|
14
|
+
defaultMessage: 'Something went wrong',
|
|
15
|
+
description: 'The text for when an error occurs when loading options'
|
|
16
|
+
}
|
|
17
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import QuestionCircleIcon from '@atlaskit/icon/glyph/question-circle';
|
|
3
3
|
import { N500 } from '@atlaskit/theme/colors';
|
|
4
|
-
import { asyncPopupSelectMessages } from '
|
|
4
|
+
import { asyncPopupSelectMessages } from './messages';
|
|
5
5
|
import CustomSelectMessage from './selectMessage';
|
|
6
6
|
const CustomNoOptionsMessage = () => {
|
|
7
7
|
return /*#__PURE__*/React.createElement(CustomSelectMessage, {
|
|
@@ -299,10 +299,29 @@ export const PlainJiraIssuesConfigModal = props => {
|
|
|
299
299
|
},
|
|
300
300
|
eventType: 'ui'
|
|
301
301
|
});
|
|
302
|
+
|
|
303
|
+
// additional event for tracking in confluence against JIM
|
|
304
|
+
const macroInsertedEvent = analyticsEvent.clone();
|
|
305
|
+
macroInsertedEvent === null || macroInsertedEvent === void 0 ? void 0 : macroInsertedEvent.update({
|
|
306
|
+
eventType: 'track',
|
|
307
|
+
action: 'inserted',
|
|
308
|
+
actionSubject: 'macro',
|
|
309
|
+
actionSubjectId: 'jlol',
|
|
310
|
+
attributes: {
|
|
311
|
+
...analyticsPayload,
|
|
312
|
+
totalItemCount: totalCount || 0,
|
|
313
|
+
displayedColumnCount: visibleColumnCount.current,
|
|
314
|
+
display: getDisplayValue(currentViewMode, totalCount || 0),
|
|
315
|
+
searchCount: searchCount.current,
|
|
316
|
+
searchMethod: mapSearchMethod(searchMethodSearchedWith.current),
|
|
317
|
+
actions: Array.from(userInteractionActions.current)
|
|
318
|
+
}
|
|
319
|
+
});
|
|
302
320
|
const consumerEvent = (_insertButtonClickedE = insertButtonClickedEvent.clone()) !== null && _insertButtonClickedE !== void 0 ? _insertButtonClickedE : undefined;
|
|
303
321
|
insertButtonClickedEvent.fire(EVENT_CHANNEL);
|
|
304
322
|
const firstIssueUrl = retrieveUrlForSmartCardRender();
|
|
305
323
|
if (currentViewMode === 'count') {
|
|
324
|
+
macroInsertedEvent === null || macroInsertedEvent === void 0 ? void 0 : macroInsertedEvent.fire(EVENT_CHANNEL);
|
|
306
325
|
onInsert({
|
|
307
326
|
type: 'inlineCard',
|
|
308
327
|
attrs: {
|
|
@@ -310,6 +329,7 @@ export const PlainJiraIssuesConfigModal = props => {
|
|
|
310
329
|
}
|
|
311
330
|
}, consumerEvent);
|
|
312
331
|
} else if (responseItems.length === 1 && firstIssueUrl) {
|
|
332
|
+
macroInsertedEvent === null || macroInsertedEvent === void 0 ? void 0 : macroInsertedEvent.fire(EVENT_CHANNEL);
|
|
313
333
|
onInsert({
|
|
314
334
|
type: 'inlineCard',
|
|
315
335
|
attrs: {
|
|
@@ -4,14 +4,14 @@ import { useEffect, useRef, useState } from 'react';
|
|
|
4
4
|
import { css, jsx } from '@emotion/react';
|
|
5
5
|
import ReactDOM from 'react-dom';
|
|
6
6
|
import invariant from 'tiny-invariant';
|
|
7
|
-
import { attachClosestEdge, extractClosestEdge } from '@atlaskit/pragmatic-drag-and-drop-hitbox/addon/closest-edge';
|
|
8
|
-
import { DropIndicator } from '@atlaskit/pragmatic-drag-and-drop-react-indicator/box-without-terminal';
|
|
9
7
|
import { draggable, dropTargetForElements, monitorForElements } from '@atlaskit/pragmatic-drag-and-drop/adapter/element';
|
|
10
8
|
import { cancelUnhandled } from '@atlaskit/pragmatic-drag-and-drop/addon/cancel-unhandled';
|
|
11
9
|
import { combine } from '@atlaskit/pragmatic-drag-and-drop/util/combine';
|
|
12
10
|
import { disableNativeDragPreview } from '@atlaskit/pragmatic-drag-and-drop/util/disable-native-drag-preview';
|
|
13
11
|
import { offsetFromPointer } from '@atlaskit/pragmatic-drag-and-drop/util/offset-from-pointer';
|
|
14
12
|
import { setCustomNativeDragPreview } from '@atlaskit/pragmatic-drag-and-drop/util/set-custom-native-drag-preview';
|
|
13
|
+
import { attachClosestEdge, extractClosestEdge } from '@atlaskit/pragmatic-drag-and-drop-hitbox/addon/closest-edge';
|
|
14
|
+
import { DropIndicator } from '@atlaskit/pragmatic-drag-and-drop-react-indicator/box-without-terminal';
|
|
15
15
|
import { TableHeading } from './styled';
|
|
16
16
|
import { COLUMN_MIN_WIDTH } from './index';
|
|
17
17
|
var verticallyAlignedStyles = css({
|
|
@@ -14,11 +14,11 @@ import styled from '@emotion/styled';
|
|
|
14
14
|
import invariant from 'tiny-invariant';
|
|
15
15
|
import Heading from '@atlaskit/heading';
|
|
16
16
|
import { Skeleton } from '@atlaskit/linking-common';
|
|
17
|
+
import { monitorForElements } from '@atlaskit/pragmatic-drag-and-drop/adapter/element';
|
|
18
|
+
import { combine } from '@atlaskit/pragmatic-drag-and-drop/util/combine';
|
|
17
19
|
import { extractClosestEdge } from '@atlaskit/pragmatic-drag-and-drop-hitbox/addon/closest-edge';
|
|
18
20
|
import { reorderWithEdge } from '@atlaskit/pragmatic-drag-and-drop-hitbox/util/reorder-with-edge';
|
|
19
21
|
import { autoScroller } from '@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-autoscroll';
|
|
20
|
-
import { monitorForElements } from '@atlaskit/pragmatic-drag-and-drop/adapter/element';
|
|
21
|
-
import { combine } from '@atlaskit/pragmatic-drag-and-drop/util/combine';
|
|
22
22
|
import { N40 } from '@atlaskit/theme/colors';
|
|
23
23
|
import Tooltip from '@atlaskit/tooltip';
|
|
24
24
|
import { startUfoExperience, succeedUfoExperience } from '../../analytics/ufoExperiences';
|
|
@@ -28,20 +28,5 @@ export var asyncPopupSelectMessages = {
|
|
|
28
28
|
id: 'linkDataSource.basic-filter.assignee.label',
|
|
29
29
|
description: 'Label to be displayed for assignee filter dropdown button.',
|
|
30
30
|
defaultMessage: 'Assignee'
|
|
31
|
-
},
|
|
32
|
-
loadingMessage: {
|
|
33
|
-
id: 'linkDataSource.basic-filter.loading-message',
|
|
34
|
-
defaultMessage: 'Loading...',
|
|
35
|
-
description: 'The text for when options are being loaded in dropdown'
|
|
36
|
-
},
|
|
37
|
-
noOptionsMessage: {
|
|
38
|
-
id: 'linkDataSource.basic-filter.no-options-message',
|
|
39
|
-
defaultMessage: 'No matches found',
|
|
40
|
-
description: 'The text for when no matches are found in dropdown'
|
|
41
|
-
},
|
|
42
|
-
errorMessage: {
|
|
43
|
-
id: 'linkDataSource.basic-filter.error-message',
|
|
44
|
-
defaultMessage: "Couldn't retrieve data",
|
|
45
|
-
description: 'The text for when an error occurs when loading options'
|
|
46
31
|
}
|
|
47
32
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import ErrorIcon from '@atlaskit/icon/glyph/error';
|
|
3
3
|
import { N500 } from '@atlaskit/theme/colors';
|
|
4
|
-
import { asyncPopupSelectMessages } from '
|
|
4
|
+
import { asyncPopupSelectMessages } from './messages';
|
|
5
5
|
import CustomSelectMessage from './selectMessage';
|
|
6
6
|
var CustomErrorMessage = function CustomErrorMessage() {
|
|
7
7
|
return /*#__PURE__*/React.createElement(CustomSelectMessage, {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import Spinner from '@atlaskit/spinner';
|
|
3
|
-
import { asyncPopupSelectMessages } from '
|
|
3
|
+
import { asyncPopupSelectMessages } from './messages';
|
|
4
4
|
import CustomSelectMessage from './selectMessage';
|
|
5
5
|
var CustomDropdownLoadingMessage = function CustomDropdownLoadingMessage() {
|
|
6
6
|
return /*#__PURE__*/React.createElement(CustomSelectMessage, {
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export var asyncPopupSelectMessages = {
|
|
2
|
+
loadingMessage: {
|
|
3
|
+
id: 'linkDataSource.basic-filter.loading-message',
|
|
4
|
+
defaultMessage: 'Loading...',
|
|
5
|
+
description: 'The text for when options are being loaded in dropdown'
|
|
6
|
+
},
|
|
7
|
+
noOptionsMessage: {
|
|
8
|
+
id: 'linkDataSource.basic-filter.no-options-message',
|
|
9
|
+
defaultMessage: 'No matches found',
|
|
10
|
+
description: 'The text for when no matches are found in dropdown'
|
|
11
|
+
},
|
|
12
|
+
errorMessage: {
|
|
13
|
+
id: 'linkDataSource.basic-filter.error-message',
|
|
14
|
+
defaultMessage: 'Something went wrong',
|
|
15
|
+
description: 'The text for when an error occurs when loading options'
|
|
16
|
+
}
|
|
17
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import QuestionCircleIcon from '@atlaskit/icon/glyph/question-circle';
|
|
3
3
|
import { N500 } from '@atlaskit/theme/colors';
|
|
4
|
-
import { asyncPopupSelectMessages } from '
|
|
4
|
+
import { asyncPopupSelectMessages } from './messages';
|
|
5
5
|
import CustomSelectMessage from './selectMessage';
|
|
6
6
|
var CustomNoOptionsMessage = function CustomNoOptionsMessage() {
|
|
7
7
|
return /*#__PURE__*/React.createElement(CustomSelectMessage, {
|
|
@@ -341,10 +341,28 @@ export var PlainJiraIssuesConfigModal = function PlainJiraIssuesConfigModal(prop
|
|
|
341
341
|
}),
|
|
342
342
|
eventType: 'ui'
|
|
343
343
|
});
|
|
344
|
+
|
|
345
|
+
// additional event for tracking in confluence against JIM
|
|
346
|
+
var macroInsertedEvent = analyticsEvent.clone();
|
|
347
|
+
macroInsertedEvent === null || macroInsertedEvent === void 0 || macroInsertedEvent.update({
|
|
348
|
+
eventType: 'track',
|
|
349
|
+
action: 'inserted',
|
|
350
|
+
actionSubject: 'macro',
|
|
351
|
+
actionSubjectId: 'jlol',
|
|
352
|
+
attributes: _objectSpread(_objectSpread({}, analyticsPayload), {}, {
|
|
353
|
+
totalItemCount: totalCount || 0,
|
|
354
|
+
displayedColumnCount: visibleColumnCount.current,
|
|
355
|
+
display: getDisplayValue(currentViewMode, totalCount || 0),
|
|
356
|
+
searchCount: searchCount.current,
|
|
357
|
+
searchMethod: mapSearchMethod(searchMethodSearchedWith.current),
|
|
358
|
+
actions: Array.from(userInteractionActions.current)
|
|
359
|
+
})
|
|
360
|
+
});
|
|
344
361
|
var consumerEvent = (_insertButtonClickedE = insertButtonClickedEvent.clone()) !== null && _insertButtonClickedE !== void 0 ? _insertButtonClickedE : undefined;
|
|
345
362
|
insertButtonClickedEvent.fire(EVENT_CHANNEL);
|
|
346
363
|
var firstIssueUrl = retrieveUrlForSmartCardRender();
|
|
347
364
|
if (currentViewMode === 'count') {
|
|
365
|
+
macroInsertedEvent === null || macroInsertedEvent === void 0 || macroInsertedEvent.fire(EVENT_CHANNEL);
|
|
348
366
|
onInsert({
|
|
349
367
|
type: 'inlineCard',
|
|
350
368
|
attrs: {
|
|
@@ -352,6 +370,7 @@ export var PlainJiraIssuesConfigModal = function PlainJiraIssuesConfigModal(prop
|
|
|
352
370
|
}
|
|
353
371
|
}, consumerEvent);
|
|
354
372
|
} else if (responseItems.length === 1 && firstIssueUrl) {
|
|
373
|
+
macroInsertedEvent === null || macroInsertedEvent === void 0 || macroInsertedEvent.fire(EVENT_CHANNEL);
|
|
355
374
|
onInsert({
|
|
356
375
|
type: 'inlineCard',
|
|
357
376
|
attrs: {
|
|
@@ -29,19 +29,4 @@ export declare const asyncPopupSelectMessages: {
|
|
|
29
29
|
description: string;
|
|
30
30
|
defaultMessage: string;
|
|
31
31
|
};
|
|
32
|
-
loadingMessage: {
|
|
33
|
-
id: string;
|
|
34
|
-
defaultMessage: string;
|
|
35
|
-
description: string;
|
|
36
|
-
};
|
|
37
|
-
noOptionsMessage: {
|
|
38
|
-
id: string;
|
|
39
|
-
defaultMessage: string;
|
|
40
|
-
description: string;
|
|
41
|
-
};
|
|
42
|
-
errorMessage: {
|
|
43
|
-
id: string;
|
|
44
|
-
defaultMessage: string;
|
|
45
|
-
description: string;
|
|
46
|
-
};
|
|
47
32
|
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const asyncPopupSelectMessages: {
|
|
2
|
+
loadingMessage: {
|
|
3
|
+
id: string;
|
|
4
|
+
defaultMessage: string;
|
|
5
|
+
description: string;
|
|
6
|
+
};
|
|
7
|
+
noOptionsMessage: {
|
|
8
|
+
id: string;
|
|
9
|
+
defaultMessage: string;
|
|
10
|
+
description: string;
|
|
11
|
+
};
|
|
12
|
+
errorMessage: {
|
|
13
|
+
id: string;
|
|
14
|
+
defaultMessage: string;
|
|
15
|
+
description: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
package/dist/types-ts4.5/ui/jira-issues-modal/basic-filters/ui/async-popup-select/messages.d.ts
CHANGED
|
@@ -29,19 +29,4 @@ export declare const asyncPopupSelectMessages: {
|
|
|
29
29
|
description: string;
|
|
30
30
|
defaultMessage: string;
|
|
31
31
|
};
|
|
32
|
-
loadingMessage: {
|
|
33
|
-
id: string;
|
|
34
|
-
defaultMessage: string;
|
|
35
|
-
description: string;
|
|
36
|
-
};
|
|
37
|
-
noOptionsMessage: {
|
|
38
|
-
id: string;
|
|
39
|
-
defaultMessage: string;
|
|
40
|
-
description: string;
|
|
41
|
-
};
|
|
42
|
-
errorMessage: {
|
|
43
|
-
id: string;
|
|
44
|
-
defaultMessage: string;
|
|
45
|
-
description: string;
|
|
46
|
-
};
|
|
47
32
|
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const asyncPopupSelectMessages: {
|
|
2
|
+
loadingMessage: {
|
|
3
|
+
id: string;
|
|
4
|
+
defaultMessage: string;
|
|
5
|
+
description: string;
|
|
6
|
+
};
|
|
7
|
+
noOptionsMessage: {
|
|
8
|
+
id: string;
|
|
9
|
+
defaultMessage: string;
|
|
10
|
+
description: string;
|
|
11
|
+
};
|
|
12
|
+
errorMessage: {
|
|
13
|
+
id: string;
|
|
14
|
+
defaultMessage: string;
|
|
15
|
+
description: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/link-datasource",
|
|
3
|
-
"version": "1.15.
|
|
3
|
+
"version": "1.15.2",
|
|
4
4
|
"description": "UI Components to support linking platform dataset feature",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"@atlaskit/adf-schema": "^32.0.0",
|
|
34
34
|
"@atlaskit/analytics-next": "^9.1.3",
|
|
35
35
|
"@atlaskit/avatar": "^21.4.0",
|
|
36
|
-
"@atlaskit/button": "^16.
|
|
36
|
+
"@atlaskit/button": "^16.14.0",
|
|
37
37
|
"@atlaskit/editor-prosemirror": "1.1.0",
|
|
38
38
|
"@atlaskit/empty-state": "^7.5.0",
|
|
39
39
|
"@atlaskit/form": "^9.0.0",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"@atlaskit/pragmatic-drag-and-drop-hitbox": "^0.12.0",
|
|
55
55
|
"@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-autoscroll": "^0.6.0",
|
|
56
56
|
"@atlaskit/pragmatic-drag-and-drop-react-indicator": "^0.17.0",
|
|
57
|
-
"@atlaskit/primitives": "^1.
|
|
57
|
+
"@atlaskit/primitives": "^1.10.0",
|
|
58
58
|
"@atlaskit/select": "^16.7.0",
|
|
59
59
|
"@atlaskit/smart-card": "^26.42.0",
|
|
60
60
|
"@atlaskit/spinner": "^15.6.0",
|