@atlaskit/link-datasource 1.16.3 → 1.16.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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @atlaskit/link-datasource
2
2
 
3
+ ## 1.16.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [#43137](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43137) [`4d201f9fe57`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4d201f9fe57) - [ux] Updates spacing to ensure it is consistent between search input and mode switcher on toggle between JQL and Basic and when Basic Filters feature flag is on.
8
+
3
9
  ## 1.16.3
4
10
 
5
11
  ### Patch Changes
@@ -7,5 +7,5 @@ exports.packageMetaData = exports.EVENT_CHANNEL = void 0;
7
7
  var EVENT_CHANNEL = exports.EVENT_CHANNEL = 'media';
8
8
  var packageMetaData = exports.packageMetaData = {
9
9
  packageName: "@atlaskit/link-datasource",
10
- packageVersion: "1.16.3"
10
+ packageVersion: "1.16.4"
11
11
  };
@@ -14,6 +14,9 @@ var _asyncPopupSelect = _interopRequireDefault(require("./async-popup-select"));
14
14
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
15
15
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
16
16
  var availableBasicFilterTypes = ['project', 'issuetype', 'status', 'assignee'];
17
+ var basicFilterContainerStyles = (0, _primitives.xcss)({
18
+ paddingLeft: "var(--ds-space-100, 8px)"
19
+ });
17
20
  var BasicFilterContainer = function BasicFilterContainer(_ref) {
18
21
  var jql = _ref.jql,
19
22
  cloudId = _ref.cloudId;
@@ -27,6 +30,7 @@ var BasicFilterContainer = function BasicFilterContainer(_ref) {
27
30
  }, [jql]);
28
31
  var handleSelectionChange = function handleSelectionChange() {};
29
32
  return /*#__PURE__*/_react.default.createElement(_primitives.Flex, {
33
+ xcss: basicFilterContainerStyles,
30
34
  gap: "space.100",
31
35
  testId: "jlol-basic-filter-container"
32
36
  }, availableBasicFilterTypes.map(function (filter) {
@@ -17,8 +17,7 @@ var searchButtonStyles = (0, _react.css)({
17
17
  marginRight: "var(--ds-space-075, 6px)"
18
18
  });
19
19
  var formStyles = (0, _react.css)({
20
- flex: 1,
21
- paddingRight: "var(--ds-space-100, 8px)"
20
+ flex: 1
22
21
  });
23
22
  var BasicSearchInput = exports.BasicSearchInput = function BasicSearchInput(_ref) {
24
23
  var isDisabled = _ref.isDisabled,
@@ -1,5 +1,5 @@
1
1
  export const EVENT_CHANNEL = 'media';
2
2
  export const packageMetaData = {
3
3
  packageName: "@atlaskit/link-datasource",
4
- packageVersion: "1.16.3"
4
+ packageVersion: "1.16.4"
5
5
  };
@@ -1,8 +1,11 @@
1
1
  import React, { useEffect, useState } from 'react';
2
- import { Flex } from '@atlaskit/primitives';
2
+ import { Flex, xcss } from '@atlaskit/primitives';
3
3
  import { isValidJql } from '../utils';
4
4
  import AsyncPopupSelect from './async-popup-select';
5
5
  const availableBasicFilterTypes = ['project', 'issuetype', 'status', 'assignee'];
6
+ const basicFilterContainerStyles = xcss({
7
+ paddingLeft: "var(--ds-space-100, 8px)"
8
+ });
6
9
  const BasicFilterContainer = ({
7
10
  jql,
8
11
  cloudId
@@ -15,6 +18,7 @@ const BasicFilterContainer = ({
15
18
  }, [jql]);
16
19
  const handleSelectionChange = () => {};
17
20
  return /*#__PURE__*/React.createElement(Flex, {
21
+ xcss: basicFilterContainerStyles,
18
22
  gap: "space.100",
19
23
  testId: "jlol-basic-filter-container"
20
24
  }, availableBasicFilterTypes.map(filter => /*#__PURE__*/React.createElement(AsyncPopupSelect, {
@@ -9,8 +9,7 @@ const searchButtonStyles = css({
9
9
  marginRight: "var(--ds-space-075, 6px)"
10
10
  });
11
11
  const formStyles = css({
12
- flex: 1,
13
- paddingRight: "var(--ds-space-100, 8px)"
12
+ flex: 1
14
13
  });
15
14
  export const BasicSearchInput = ({
16
15
  isDisabled,
@@ -1,5 +1,5 @@
1
1
  export var EVENT_CHANNEL = 'media';
2
2
  export var packageMetaData = {
3
3
  packageName: "@atlaskit/link-datasource",
4
- packageVersion: "1.16.3"
4
+ packageVersion: "1.16.4"
5
5
  };
@@ -1,9 +1,12 @@
1
1
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
2
2
  import React, { useEffect, useState } from 'react';
3
- import { Flex } from '@atlaskit/primitives';
3
+ import { Flex, xcss } from '@atlaskit/primitives';
4
4
  import { isValidJql } from '../utils';
5
5
  import AsyncPopupSelect from './async-popup-select';
6
6
  var availableBasicFilterTypes = ['project', 'issuetype', 'status', 'assignee'];
7
+ var basicFilterContainerStyles = xcss({
8
+ paddingLeft: "var(--ds-space-100, 8px)"
9
+ });
7
10
  var BasicFilterContainer = function BasicFilterContainer(_ref) {
8
11
  var jql = _ref.jql,
9
12
  cloudId = _ref.cloudId;
@@ -17,6 +20,7 @@ var BasicFilterContainer = function BasicFilterContainer(_ref) {
17
20
  }, [jql]);
18
21
  var handleSelectionChange = function handleSelectionChange() {};
19
22
  return /*#__PURE__*/React.createElement(Flex, {
23
+ xcss: basicFilterContainerStyles,
20
24
  gap: "space.100",
21
25
  testId: "jlol-basic-filter-container"
22
26
  }, availableBasicFilterTypes.map(function (filter) {
@@ -9,8 +9,7 @@ var searchButtonStyles = css({
9
9
  marginRight: "var(--ds-space-075, 6px)"
10
10
  });
11
11
  var formStyles = css({
12
- flex: 1,
13
- paddingRight: "var(--ds-space-100, 8px)"
12
+ flex: 1
14
13
  });
15
14
  export var BasicSearchInput = function BasicSearchInput(_ref) {
16
15
  var isDisabled = _ref.isDisabled,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/link-datasource",
3
- "version": "1.16.3",
3
+ "version": "1.16.4",
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.15.0",
36
+ "@atlaskit/button": "^16.16.0",
37
37
  "@atlaskit/editor-prosemirror": "1.1.0",
38
38
  "@atlaskit/empty-state": "^7.5.0",
39
39
  "@atlaskit/form": "^9.0.0",