@atlaskit/link-datasource 1.25.2 → 1.25.4
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 +13 -0
- package/dist/cjs/ui/common/modal/basic-search-input/index.js +9 -4
- package/dist/cjs/ui/jira-issues-modal/basic-filters/ui/index.js +1 -1
- package/dist/cjs/ui/jira-issues-modal/basic-filters/ui/menu-list/index.js +3 -3
- package/dist/cjs/ui/jira-issues-modal/basic-filters/ui/menu-list/selectMessage.js +1 -1
- package/dist/cjs/ui/jira-issues-modal/jira-search-container/index.js +1 -3
- package/dist/cjs/ui/jira-issues-modal/modal/jira-display-view-dropdown/jira-display-view-drop-down.js +2 -2
- package/dist/es2019/ui/common/modal/basic-search-input/index.js +10 -2
- package/dist/es2019/ui/jira-issues-modal/basic-filters/ui/index.js +1 -1
- package/dist/es2019/ui/jira-issues-modal/basic-filters/ui/menu-list/index.js +3 -3
- package/dist/es2019/ui/jira-issues-modal/basic-filters/ui/menu-list/selectMessage.js +1 -1
- package/dist/es2019/ui/jira-issues-modal/jira-search-container/index.js +1 -3
- package/dist/es2019/ui/jira-issues-modal/modal/jira-display-view-dropdown/jira-display-view-drop-down.js +2 -2
- package/dist/esm/ui/common/modal/basic-search-input/index.js +9 -4
- package/dist/esm/ui/jira-issues-modal/basic-filters/ui/index.js +1 -1
- package/dist/esm/ui/jira-issues-modal/basic-filters/ui/menu-list/index.js +3 -3
- package/dist/esm/ui/jira-issues-modal/basic-filters/ui/menu-list/selectMessage.js +1 -1
- package/dist/esm/ui/jira-issues-modal/jira-search-container/index.js +1 -3
- package/dist/esm/ui/jira-issues-modal/modal/jira-display-view-dropdown/jira-display-view-drop-down.js +2 -2
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @atlaskit/link-datasource
|
|
2
2
|
|
|
3
|
+
## 1.25.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#88354](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/88354) [`4c87d9b4f0c2`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4c87d9b4f0c2) - The internal composition of this component has changed. There is no expected change in behavior.
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
|
|
10
|
+
## 1.25.3
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- [#88297](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/88297) [`0b8748a0e0fc`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0b8748a0e0fc) - Add search action analytics events for confluence datasource modal.
|
|
15
|
+
|
|
3
16
|
## 1.25.2
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
|
@@ -12,6 +12,7 @@ var _button = require("@atlaskit/button");
|
|
|
12
12
|
var _search = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/search"));
|
|
13
13
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
14
14
|
var _textfield = _interopRequireDefault(require("@atlaskit/textfield"));
|
|
15
|
+
var _analytics = require("../../../../analytics");
|
|
15
16
|
var _messages = require("./messages");
|
|
16
17
|
/** @jsx jsx */
|
|
17
18
|
|
|
@@ -36,9 +37,15 @@ var BasicSearchInput = exports.BasicSearchInput = function BasicSearchInput(_ref
|
|
|
36
37
|
placeholder = _ref.placeholder;
|
|
37
38
|
var _useIntl = (0, _reactIntlNext.useIntl)(),
|
|
38
39
|
formatMessage = _useIntl.formatMessage;
|
|
40
|
+
var _useDatasourceAnalyti = (0, _analytics.useDatasourceAnalyticsEvents)(),
|
|
41
|
+
fireEvent = _useDatasourceAnalyti.fireEvent;
|
|
42
|
+
var handleSearchWithAnalytics = function handleSearchWithAnalytics() {
|
|
43
|
+
fireEvent('ui.form.submitted.basicSearch', {});
|
|
44
|
+
onSearch(searchTerm);
|
|
45
|
+
};
|
|
39
46
|
var handleFormSubmit = function handleFormSubmit(e) {
|
|
40
47
|
e.preventDefault();
|
|
41
|
-
|
|
48
|
+
handleSearchWithAnalytics();
|
|
42
49
|
};
|
|
43
50
|
var showBasicFilters = (0, _react.useMemo)(function () {
|
|
44
51
|
if ((0, _platformFeatureFlags.getBooleanFF)('platform.linking-platform.datasource.show-jlol-basic-filters')) {
|
|
@@ -60,9 +67,7 @@ var BasicSearchInput = exports.BasicSearchInput = function BasicSearchInput(_ref
|
|
|
60
67
|
}),
|
|
61
68
|
isDisabled: isDisabled,
|
|
62
69
|
isLoading: isSearching,
|
|
63
|
-
onClick:
|
|
64
|
-
return onSearch(searchTerm);
|
|
65
|
-
},
|
|
70
|
+
onClick: handleSearchWithAnalytics,
|
|
66
71
|
spacing: "none",
|
|
67
72
|
testId: "".concat(testId, "--basic-search-button")
|
|
68
73
|
}),
|
|
@@ -14,7 +14,7 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
|
|
|
14
14
|
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 && Object.prototype.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; }
|
|
15
15
|
var availableBasicFilterTypes = exports.availableBasicFilterTypes = ['project', 'type', 'status', 'assignee'];
|
|
16
16
|
var basicFilterContainerStyles = (0, _primitives.xcss)({
|
|
17
|
-
paddingLeft:
|
|
17
|
+
paddingLeft: 'space.100'
|
|
18
18
|
});
|
|
19
19
|
var BasicFilterContainer = function BasicFilterContainer(_ref) {
|
|
20
20
|
var jql = _ref.jql,
|
|
@@ -16,11 +16,11 @@ var _loadingMessage = _interopRequireDefault(require("./loadingMessage"));
|
|
|
16
16
|
var _noOptionsMessage = _interopRequireDefault(require("./noOptionsMessage"));
|
|
17
17
|
var _excluded = ["children"];
|
|
18
18
|
var inlineSpinnerStyles = (0, _primitives.xcss)({
|
|
19
|
-
paddingTop:
|
|
19
|
+
paddingTop: 'space.075'
|
|
20
20
|
});
|
|
21
21
|
var showMoreButtonBoxStyles = (0, _primitives.xcss)({
|
|
22
|
-
paddingLeft:
|
|
23
|
-
paddingTop:
|
|
22
|
+
paddingLeft: 'space.075',
|
|
23
|
+
paddingTop: 'space.100'
|
|
24
24
|
});
|
|
25
25
|
var CustomMenuList = function CustomMenuList(_ref) {
|
|
26
26
|
var children = _ref.children,
|
|
@@ -11,7 +11,7 @@ var _heading = _interopRequireDefault(require("@atlaskit/heading"));
|
|
|
11
11
|
var _primitives = require("@atlaskit/primitives");
|
|
12
12
|
var boxStyles = (0, _primitives.xcss)({
|
|
13
13
|
height: "var(--ds-space-800, 64px)",
|
|
14
|
-
marginBottom:
|
|
14
|
+
marginBottom: 'space.200'
|
|
15
15
|
});
|
|
16
16
|
var stackStyles = (0, _primitives.xcss)({
|
|
17
17
|
paddingTop: 'space.100',
|
|
@@ -152,9 +152,7 @@ var JiraSearchContainer = exports.JiraSearchContainer = function JiraSearchConta
|
|
|
152
152
|
basicFilterSelections: filterSelections,
|
|
153
153
|
isQueryComplex: isCurrentQueryComplex
|
|
154
154
|
});
|
|
155
|
-
if (currentSearchMethod === '
|
|
156
|
-
fireEvent('ui.form.submitted.basicSearch', {});
|
|
157
|
-
} else if (currentSearchMethod === 'jql') {
|
|
155
|
+
if (currentSearchMethod === 'jql') {
|
|
158
156
|
fireEvent('ui.jqlEditor.searched', {
|
|
159
157
|
isQueryComplex: isCurrentQueryComplex
|
|
160
158
|
});
|
|
@@ -19,8 +19,8 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
|
|
|
19
19
|
var dropDownItemGroupStyles = (0, _primitives.xcss)({
|
|
20
20
|
width: '320px',
|
|
21
21
|
height: '140px',
|
|
22
|
-
paddingTop:
|
|
23
|
-
paddingBottom:
|
|
22
|
+
paddingTop: 'space.050',
|
|
23
|
+
paddingBottom: 'space.050',
|
|
24
24
|
borderRadius: 'border.radius'
|
|
25
25
|
});
|
|
26
26
|
var InlineIcon = (0, _react.jsx)("svg", {
|
|
@@ -6,6 +6,7 @@ import { LoadingButton } from '@atlaskit/button';
|
|
|
6
6
|
import SearchIcon from '@atlaskit/icon/glyph/editor/search';
|
|
7
7
|
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
8
8
|
import Textfield from '@atlaskit/textfield';
|
|
9
|
+
import { useDatasourceAnalyticsEvents } from '../../../../analytics';
|
|
9
10
|
import { basicSearchInputMessages } from './messages';
|
|
10
11
|
const searchButtonStyles = css({
|
|
11
12
|
marginRight: "var(--ds-space-075, 6px)"
|
|
@@ -30,9 +31,16 @@ export const BasicSearchInput = ({
|
|
|
30
31
|
const {
|
|
31
32
|
formatMessage
|
|
32
33
|
} = useIntl();
|
|
34
|
+
const {
|
|
35
|
+
fireEvent
|
|
36
|
+
} = useDatasourceAnalyticsEvents();
|
|
37
|
+
const handleSearchWithAnalytics = () => {
|
|
38
|
+
fireEvent('ui.form.submitted.basicSearch', {});
|
|
39
|
+
onSearch(searchTerm);
|
|
40
|
+
};
|
|
33
41
|
const handleFormSubmit = e => {
|
|
34
42
|
e.preventDefault();
|
|
35
|
-
|
|
43
|
+
handleSearchWithAnalytics();
|
|
36
44
|
};
|
|
37
45
|
const showBasicFilters = useMemo(() => {
|
|
38
46
|
if (getBooleanFF('platform.linking-platform.datasource.show-jlol-basic-filters')) {
|
|
@@ -54,7 +62,7 @@ export const BasicSearchInput = ({
|
|
|
54
62
|
}),
|
|
55
63
|
isDisabled: isDisabled,
|
|
56
64
|
isLoading: isSearching,
|
|
57
|
-
onClick:
|
|
65
|
+
onClick: handleSearchWithAnalytics,
|
|
58
66
|
spacing: "none",
|
|
59
67
|
testId: `${testId}--basic-search-button`
|
|
60
68
|
}),
|
|
@@ -4,7 +4,7 @@ import { extractValuesFromNonComplexJQL } from '../utils/extractValuesFromNonCom
|
|
|
4
4
|
import AsyncPopupSelect from './async-popup-select';
|
|
5
5
|
export const availableBasicFilterTypes = ['project', 'type', 'status', 'assignee'];
|
|
6
6
|
const basicFilterContainerStyles = xcss({
|
|
7
|
-
paddingLeft:
|
|
7
|
+
paddingLeft: 'space.100'
|
|
8
8
|
});
|
|
9
9
|
const BasicFilterContainer = ({
|
|
10
10
|
jql,
|
|
@@ -7,11 +7,11 @@ import CustomErrorMessage from './errorMessage';
|
|
|
7
7
|
import CustomDropdownLoadingMessage from './loadingMessage';
|
|
8
8
|
import CustomNoOptionsMessage from './noOptionsMessage';
|
|
9
9
|
const inlineSpinnerStyles = xcss({
|
|
10
|
-
paddingTop:
|
|
10
|
+
paddingTop: 'space.075'
|
|
11
11
|
});
|
|
12
12
|
const showMoreButtonBoxStyles = xcss({
|
|
13
|
-
paddingLeft:
|
|
14
|
-
paddingTop:
|
|
13
|
+
paddingLeft: 'space.075',
|
|
14
|
+
paddingTop: 'space.100'
|
|
15
15
|
});
|
|
16
16
|
const CustomMenuList = ({
|
|
17
17
|
children,
|
|
@@ -4,7 +4,7 @@ import Heading from '@atlaskit/heading';
|
|
|
4
4
|
import { Flex, Stack, xcss } from '@atlaskit/primitives';
|
|
5
5
|
const boxStyles = xcss({
|
|
6
6
|
height: "var(--ds-space-800, 64px)",
|
|
7
|
-
marginBottom:
|
|
7
|
+
marginBottom: 'space.200'
|
|
8
8
|
});
|
|
9
9
|
const stackStyles = xcss({
|
|
10
10
|
paddingTop: 'space.100',
|
|
@@ -115,9 +115,7 @@ export const JiraSearchContainer = props => {
|
|
|
115
115
|
basicFilterSelections: filterSelections,
|
|
116
116
|
isQueryComplex: isCurrentQueryComplex
|
|
117
117
|
});
|
|
118
|
-
if (currentSearchMethod === '
|
|
119
|
-
fireEvent('ui.form.submitted.basicSearch', {});
|
|
120
|
-
} else if (currentSearchMethod === 'jql') {
|
|
118
|
+
if (currentSearchMethod === 'jql') {
|
|
121
119
|
fireEvent('ui.jqlEditor.searched', {
|
|
122
120
|
isQueryComplex: isCurrentQueryComplex
|
|
123
121
|
});
|
|
@@ -8,8 +8,8 @@ import { modalMessages } from '../messages';
|
|
|
8
8
|
const dropDownItemGroupStyles = xcss({
|
|
9
9
|
width: '320px',
|
|
10
10
|
height: '140px',
|
|
11
|
-
paddingTop:
|
|
12
|
-
paddingBottom:
|
|
11
|
+
paddingTop: 'space.050',
|
|
12
|
+
paddingBottom: 'space.050',
|
|
13
13
|
borderRadius: 'border.radius'
|
|
14
14
|
});
|
|
15
15
|
const InlineIcon = jsx("svg", {
|
|
@@ -6,6 +6,7 @@ import { LoadingButton } from '@atlaskit/button';
|
|
|
6
6
|
import SearchIcon from '@atlaskit/icon/glyph/editor/search';
|
|
7
7
|
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
8
8
|
import Textfield from '@atlaskit/textfield';
|
|
9
|
+
import { useDatasourceAnalyticsEvents } from '../../../../analytics';
|
|
9
10
|
import { basicSearchInputMessages } from './messages';
|
|
10
11
|
var searchButtonStyles = css({
|
|
11
12
|
marginRight: "var(--ds-space-075, 6px)"
|
|
@@ -28,9 +29,15 @@ export var BasicSearchInput = function BasicSearchInput(_ref) {
|
|
|
28
29
|
placeholder = _ref.placeholder;
|
|
29
30
|
var _useIntl = useIntl(),
|
|
30
31
|
formatMessage = _useIntl.formatMessage;
|
|
32
|
+
var _useDatasourceAnalyti = useDatasourceAnalyticsEvents(),
|
|
33
|
+
fireEvent = _useDatasourceAnalyti.fireEvent;
|
|
34
|
+
var handleSearchWithAnalytics = function handleSearchWithAnalytics() {
|
|
35
|
+
fireEvent('ui.form.submitted.basicSearch', {});
|
|
36
|
+
onSearch(searchTerm);
|
|
37
|
+
};
|
|
31
38
|
var handleFormSubmit = function handleFormSubmit(e) {
|
|
32
39
|
e.preventDefault();
|
|
33
|
-
|
|
40
|
+
handleSearchWithAnalytics();
|
|
34
41
|
};
|
|
35
42
|
var showBasicFilters = useMemo(function () {
|
|
36
43
|
if (getBooleanFF('platform.linking-platform.datasource.show-jlol-basic-filters')) {
|
|
@@ -52,9 +59,7 @@ export var BasicSearchInput = function BasicSearchInput(_ref) {
|
|
|
52
59
|
}),
|
|
53
60
|
isDisabled: isDisabled,
|
|
54
61
|
isLoading: isSearching,
|
|
55
|
-
onClick:
|
|
56
|
-
return onSearch(searchTerm);
|
|
57
|
-
},
|
|
62
|
+
onClick: handleSearchWithAnalytics,
|
|
58
63
|
spacing: "none",
|
|
59
64
|
testId: "".concat(testId, "--basic-search-button")
|
|
60
65
|
}),
|
|
@@ -4,7 +4,7 @@ import { extractValuesFromNonComplexJQL } from '../utils/extractValuesFromNonCom
|
|
|
4
4
|
import AsyncPopupSelect from './async-popup-select';
|
|
5
5
|
export var availableBasicFilterTypes = ['project', 'type', 'status', 'assignee'];
|
|
6
6
|
var basicFilterContainerStyles = xcss({
|
|
7
|
-
paddingLeft:
|
|
7
|
+
paddingLeft: 'space.100'
|
|
8
8
|
});
|
|
9
9
|
var BasicFilterContainer = function BasicFilterContainer(_ref) {
|
|
10
10
|
var jql = _ref.jql,
|
|
@@ -9,11 +9,11 @@ import CustomErrorMessage from './errorMessage';
|
|
|
9
9
|
import CustomDropdownLoadingMessage from './loadingMessage';
|
|
10
10
|
import CustomNoOptionsMessage from './noOptionsMessage';
|
|
11
11
|
var inlineSpinnerStyles = xcss({
|
|
12
|
-
paddingTop:
|
|
12
|
+
paddingTop: 'space.075'
|
|
13
13
|
});
|
|
14
14
|
var showMoreButtonBoxStyles = xcss({
|
|
15
|
-
paddingLeft:
|
|
16
|
-
paddingTop:
|
|
15
|
+
paddingLeft: 'space.075',
|
|
16
|
+
paddingTop: 'space.100'
|
|
17
17
|
});
|
|
18
18
|
var CustomMenuList = function CustomMenuList(_ref) {
|
|
19
19
|
var children = _ref.children,
|
|
@@ -4,7 +4,7 @@ import Heading from '@atlaskit/heading';
|
|
|
4
4
|
import { Flex, Stack, xcss } from '@atlaskit/primitives';
|
|
5
5
|
var boxStyles = xcss({
|
|
6
6
|
height: "var(--ds-space-800, 64px)",
|
|
7
|
-
marginBottom:
|
|
7
|
+
marginBottom: 'space.200'
|
|
8
8
|
});
|
|
9
9
|
var stackStyles = xcss({
|
|
10
10
|
paddingTop: 'space.100',
|
|
@@ -143,9 +143,7 @@ export var JiraSearchContainer = function JiraSearchContainer(props) {
|
|
|
143
143
|
basicFilterSelections: filterSelections,
|
|
144
144
|
isQueryComplex: isCurrentQueryComplex
|
|
145
145
|
});
|
|
146
|
-
if (currentSearchMethod === '
|
|
147
|
-
fireEvent('ui.form.submitted.basicSearch', {});
|
|
148
|
-
} else if (currentSearchMethod === 'jql') {
|
|
146
|
+
if (currentSearchMethod === 'jql') {
|
|
149
147
|
fireEvent('ui.jqlEditor.searched', {
|
|
150
148
|
isQueryComplex: isCurrentQueryComplex
|
|
151
149
|
});
|
|
@@ -8,8 +8,8 @@ import { modalMessages } from '../messages';
|
|
|
8
8
|
var dropDownItemGroupStyles = xcss({
|
|
9
9
|
width: '320px',
|
|
10
10
|
height: '140px',
|
|
11
|
-
paddingTop:
|
|
12
|
-
paddingBottom:
|
|
11
|
+
paddingTop: 'space.050',
|
|
12
|
+
paddingBottom: 'space.050',
|
|
13
13
|
borderRadius: 'border.radius'
|
|
14
14
|
});
|
|
15
15
|
var InlineIcon = jsx("svg", {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/link-datasource",
|
|
3
|
-
"version": "1.25.
|
|
3
|
+
"version": "1.25.4",
|
|
4
4
|
"description": "UI Components to support linking platform dataset feature",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"@atlaskit/avatar": "^21.5.0",
|
|
37
37
|
"@atlaskit/avatar-group": "^9.5.0",
|
|
38
38
|
"@atlaskit/badge": "^15.3.0",
|
|
39
|
-
"@atlaskit/button": "^17.
|
|
39
|
+
"@atlaskit/button": "^17.11.0",
|
|
40
40
|
"@atlaskit/dropdown-menu": "^12.8.0",
|
|
41
41
|
"@atlaskit/editor-prosemirror": "3.0.0",
|
|
42
42
|
"@atlaskit/empty-state": "^7.7.0",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-autoscroll": "^1.1.0",
|
|
62
62
|
"@atlaskit/pragmatic-drag-and-drop-react-drop-indicator": "^1.1.0",
|
|
63
63
|
"@atlaskit/primitives": "^5.5.0",
|
|
64
|
-
"@atlaskit/select": "^17.
|
|
64
|
+
"@atlaskit/select": "^17.6.0",
|
|
65
65
|
"@atlaskit/smart-card": "^26.52.0",
|
|
66
66
|
"@atlaskit/spinner": "^16.0.0",
|
|
67
67
|
"@atlaskit/tag": "^12.0.0",
|