@atlaskit/link-datasource 3.0.4 → 3.1.1

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,23 @@
1
1
  # @atlaskit/link-datasource
2
2
 
3
+ ## 3.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#143055](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/143055)
8
+ [`1580619590f3e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1580619590f3e) -
9
+ [ux] Adds a filterTransaction to the editor-card plugin to ignore bug-causing click transaction
10
+ when inline editing is active and user clicks on scroll gutter of the editor, ignoring the
11
+ transaction coming from editor-core click-area-helper in this edge case.
12
+
13
+ ## 3.1.0
14
+
15
+ ### Minor Changes
16
+
17
+ - [#142268](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/142268)
18
+ [`f54558fb5ccd1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f54558fb5ccd1) -
19
+ Enable new icons behind a feature flag.
20
+
3
21
  ## 3.0.4
4
22
 
5
23
  ### Patch Changes
@@ -10,6 +10,8 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
10
10
  var _react = _interopRequireDefault(require("react"));
11
11
  var _text = _interopRequireDefault(require("./text"));
12
12
  var _excluded = ["value"];
13
+ // This is used in editor-card-plugin to identify if any type of inline edit is active.
14
+ var ACTIVE_INLINE_EDIT_ID = 'sllv-active-inline-edit';
13
15
  var editType = exports.editType = function editType(item) {
14
16
  var _item$values$, _item$values;
15
17
  switch (item.type) {
@@ -21,7 +23,8 @@ var editType = exports.editType = function editType(item) {
21
23
  var value = _ref.value,
22
24
  fieldProps = (0, _objectWithoutProperties2.default)(_ref, _excluded);
23
25
  return /*#__PURE__*/_react.default.createElement(_text.default, (0, _extends2.default)({}, fieldProps, {
24
- value: value
26
+ value: value,
27
+ id: ACTIVE_INLINE_EDIT_ID
25
28
  }));
26
29
  }
27
30
  };
@@ -12,7 +12,7 @@ var _react2 = require("@emotion/react");
12
12
  var _styled = _interopRequireDefault(require("@emotion/styled"));
13
13
  var _reactIntlNext = require("react-intl-next");
14
14
  var _button = _interopRequireDefault(require("@atlaskit/button"));
15
- var _refresh = _interopRequireDefault(require("@atlaskit/icon/glyph/refresh"));
15
+ var _refresh = _interopRequireDefault(require("@atlaskit/icon/core/migration/refresh"));
16
16
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
17
17
  var _primitives = require("@atlaskit/primitives");
18
18
  var _colors = require("@atlaskit/theme/colors");
@@ -102,11 +102,11 @@ var TableFooter = exports.TableFooter = function TableFooter(_ref) {
102
102
  lastSyncTime: lastSyncTime
103
103
  })), (0, _react2.jsx)(_button.default, {
104
104
  onClick: onRefresh,
105
- appearance: "subtle"
106
- // eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19585
107
- ,
105
+ appearance: "subtle",
108
106
  iconBefore: (0, _react2.jsx)(_refresh.default, {
109
- label: intl.formatMessage(_messages.footerMessages.refreshLabel)
107
+ label: intl.formatMessage(_messages.footerMessages.refreshLabel),
108
+ color: "currentColor",
109
+ spacing: "spacious"
110
110
  }),
111
111
  isDisabled: isLoading,
112
112
  testId: "refresh-button"
@@ -1,6 +1,9 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import React from 'react';
3
3
  import TextEditType from './text';
4
+
5
+ // This is used in editor-card-plugin to identify if any type of inline edit is active.
6
+ const ACTIVE_INLINE_EDIT_ID = 'sllv-active-inline-edit';
4
7
  export const editType = item => {
5
8
  var _item$values$, _item$values;
6
9
  switch (item.type) {
@@ -12,7 +15,8 @@ export const editType = item => {
12
15
  value,
13
16
  ...fieldProps
14
17
  }) => /*#__PURE__*/React.createElement(TextEditType, _extends({}, fieldProps, {
15
- value: value
18
+ value: value,
19
+ id: ACTIVE_INLINE_EDIT_ID
16
20
  }))
17
21
  };
18
22
  default:
@@ -10,7 +10,7 @@ import { jsx } from '@emotion/react';
10
10
  import styled from '@emotion/styled';
11
11
  import { FormattedMessage, useIntl } from 'react-intl-next';
12
12
  import Button from '@atlaskit/button';
13
- import RefreshIcon from '@atlaskit/icon/glyph/refresh';
13
+ import RefreshIcon from '@atlaskit/icon/core/migration/refresh';
14
14
  import { fg } from '@atlaskit/platform-feature-flags';
15
15
  import { Flex } from '@atlaskit/primitives';
16
16
  import { N0, N40, N90 } from '@atlaskit/theme/colors';
@@ -87,11 +87,11 @@ export const TableFooter = ({
87
87
  lastSyncTime: lastSyncTime
88
88
  })), jsx(Button, {
89
89
  onClick: onRefresh,
90
- appearance: "subtle"
91
- // eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19585
92
- ,
90
+ appearance: "subtle",
93
91
  iconBefore: jsx(RefreshIcon, {
94
- label: intl.formatMessage(footerMessages.refreshLabel)
92
+ label: intl.formatMessage(footerMessages.refreshLabel),
93
+ color: "currentColor",
94
+ spacing: "spacious"
95
95
  }),
96
96
  isDisabled: isLoading,
97
97
  testId: "refresh-button"
@@ -3,6 +3,9 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
3
3
  var _excluded = ["value"];
4
4
  import React from 'react';
5
5
  import TextEditType from './text';
6
+
7
+ // This is used in editor-card-plugin to identify if any type of inline edit is active.
8
+ var ACTIVE_INLINE_EDIT_ID = 'sllv-active-inline-edit';
6
9
  export var editType = function editType(item) {
7
10
  var _item$values$, _item$values;
8
11
  switch (item.type) {
@@ -14,7 +17,8 @@ export var editType = function editType(item) {
14
17
  var value = _ref.value,
15
18
  fieldProps = _objectWithoutProperties(_ref, _excluded);
16
19
  return /*#__PURE__*/React.createElement(TextEditType, _extends({}, fieldProps, {
17
- value: value
20
+ value: value,
21
+ id: ACTIVE_INLINE_EDIT_ID
18
22
  }));
19
23
  }
20
24
  };
@@ -11,7 +11,7 @@ import { jsx } from '@emotion/react';
11
11
  import styled from '@emotion/styled';
12
12
  import { FormattedMessage, useIntl } from 'react-intl-next';
13
13
  import Button from '@atlaskit/button';
14
- import RefreshIcon from '@atlaskit/icon/glyph/refresh';
14
+ import RefreshIcon from '@atlaskit/icon/core/migration/refresh';
15
15
  import { fg } from '@atlaskit/platform-feature-flags';
16
16
  import { Flex } from '@atlaskit/primitives';
17
17
  import { N0, N40, N90 } from '@atlaskit/theme/colors';
@@ -90,11 +90,11 @@ export var TableFooter = function TableFooter(_ref) {
90
90
  lastSyncTime: lastSyncTime
91
91
  })), jsx(Button, {
92
92
  onClick: onRefresh,
93
- appearance: "subtle"
94
- // eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19585
95
- ,
93
+ appearance: "subtle",
96
94
  iconBefore: jsx(RefreshIcon, {
97
- label: intl.formatMessage(footerMessages.refreshLabel)
95
+ label: intl.formatMessage(footerMessages.refreshLabel),
96
+ color: "currentColor",
97
+ spacing: "spacious"
98
98
  }),
99
99
  isDisabled: isLoading,
100
100
  testId: "refresh-button"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/link-datasource",
3
- "version": "3.0.4",
3
+ "version": "3.1.1",
4
4
  "description": "UI Components to support linking platform dataset feature",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -41,7 +41,7 @@
41
41
  "@atlaskit/avatar-group": "^9.11.0",
42
42
  "@atlaskit/badge": "^16.4.0",
43
43
  "@atlaskit/button": "^20.1.0",
44
- "@atlaskit/datetime-picker": "^14.0.0",
44
+ "@atlaskit/datetime-picker": "^14.1.0",
45
45
  "@atlaskit/dropdown-menu": "^12.18.0",
46
46
  "@atlaskit/editor-prosemirror": "6.0.0",
47
47
  "@atlaskit/empty-state": "^7.11.0",