@atlaskit/inline-edit 15.0.2 → 15.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,20 @@
1
1
  # @atlaskit/inline-edit
2
2
 
3
+ ## 15.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 15.1.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [#122932](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/122932)
14
+ [`76112befc0645`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/76112befc0645) -
15
+ Updated error validation icon, confirm button, and cancel button to use new icons. This change is
16
+ behind a feature flag and will be available in a later release.
17
+
3
18
  ## 15.0.2
4
19
 
5
20
  ### Patch Changes
@@ -29,7 +29,7 @@ var fieldStyles = null;
29
29
  var analyticsAttributes = {
30
30
  componentName: 'inlineEdit',
31
31
  packageName: "@atlaskit/inline-edit",
32
- packageVersion: "15.0.2"
32
+ packageVersion: "15.1.1"
33
33
  };
34
34
  var InnerInlineEdit = function InnerInlineEdit(props) {
35
35
  var _props$startWithEditV = props.startWithEditViewOpen,
@@ -13,7 +13,7 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
13
13
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
14
14
  var _react = _interopRequireWildcard(require("react"));
15
15
  var _css = require("@atlaskit/css");
16
- var _error = _interopRequireDefault(require("@atlaskit/icon/glyph/error"));
16
+ var _error = _interopRequireDefault(require("@atlaskit/icon/utility/migration/error"));
17
17
  var _inlineDialog = _interopRequireDefault(require("@atlaskit/inline-dialog"));
18
18
  var _compiled = require("@atlaskit/primitives/compiled");
19
19
  var _textfield = _interopRequireDefault(require("@atlaskit/textfield"));
@@ -64,7 +64,8 @@ var InlineEditableTextfield = function InlineEditableTextfield(props) {
64
64
  xcss: errorIconContainerStyles.root
65
65
  }, /*#__PURE__*/_react.default.createElement(_error.default, {
66
66
  label: "error",
67
- primaryColor: "var(--ds-icon-danger, ".concat(_colors.R400, ")")
67
+ LEGACY_primaryColor: "var(--ds-icon-danger, ".concat(_colors.R400, ")"),
68
+ color: "var(--ds-icon-danger, #C9372C)"
68
69
  })),
69
70
  testId: testId,
70
71
  isCompact: isCompact,
@@ -12,8 +12,9 @@ var React = _interopRequireWildcard(require("react"));
12
12
  var _runtime = require("@compiled/react/runtime");
13
13
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
14
14
  var _new = require("@atlaskit/button/new");
15
- var _check = _interopRequireDefault(require("@atlaskit/icon/glyph/check"));
16
15
  var _cross = _interopRequireDefault(require("@atlaskit/icon/glyph/cross"));
16
+ var _cross2 = _interopRequireDefault(require("@atlaskit/icon/utility/cross"));
17
+ var _checkMarkCheck = _interopRequireDefault(require("@atlaskit/icon/utility/migration/check-mark--check"));
17
18
  var _colors = require("@atlaskit/theme/colors");
18
19
  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
20
  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; }
@@ -42,8 +43,8 @@ var Buttons = function Buttons(_ref) {
42
43
  }, /*#__PURE__*/React.createElement(_new.IconButton, {
43
44
  type: "submit",
44
45
  icon: function icon(iconProps) {
45
- return /*#__PURE__*/React.createElement(_check.default, (0, _extends2.default)({}, iconProps, {
46
- size: "small"
46
+ return /*#__PURE__*/React.createElement(_checkMarkCheck.default, (0, _extends2.default)({}, iconProps, {
47
+ LEGACY_size: "small"
47
48
  }));
48
49
  },
49
50
  onMouseDown: onMouseDown,
@@ -61,8 +62,9 @@ var Buttons = function Buttons(_ref) {
61
62
  }
62
63
  }, /*#__PURE__*/React.createElement(_new.IconButton, {
63
64
  icon: function icon(iconProps) {
64
- return /*#__PURE__*/React.createElement(_cross.default, (0, _extends2.default)({}, iconProps, {
65
- size: "small"
65
+ return /*#__PURE__*/React.createElement(_cross2.default, (0, _extends2.default)({}, iconProps, {
66
+ LEGACY_size: "small",
67
+ LEGACY_fallbackIcon: _cross.default
66
68
  }));
67
69
  },
68
70
  label: cancelButtonLabel,
@@ -71,4 +73,6 @@ var Buttons = function Buttons(_ref) {
71
73
  testId: testId && "".concat(testId, "--cancel")
72
74
  })));
73
75
  };
76
+
77
+ // eslint-disable-next-line @repo/internal/react/require-jsdoc
74
78
  var _default = exports.default = Buttons;
@@ -15,7 +15,7 @@ const fieldStyles = null;
15
15
  const analyticsAttributes = {
16
16
  componentName: 'inlineEdit',
17
17
  packageName: "@atlaskit/inline-edit",
18
- packageVersion: "15.0.2"
18
+ packageVersion: "15.1.1"
19
19
  };
20
20
  const InnerInlineEdit = props => {
21
21
  const {
@@ -4,7 +4,7 @@ import "./inline-editable-textfield.compiled.css";
4
4
  import { ax, ix } from "@compiled/react/runtime";
5
5
  import React, { useCallback, useRef } from 'react';
6
6
  import { cx } from '@atlaskit/css';
7
- import ErrorIcon from '@atlaskit/icon/glyph/error';
7
+ import ErrorIcon from '@atlaskit/icon/utility/migration/error';
8
8
  import InlineDialog from '@atlaskit/inline-dialog';
9
9
  import { Box } from '@atlaskit/primitives/compiled';
10
10
  import Textfield from '@atlaskit/textfield';
@@ -53,7 +53,8 @@ const InlineEditableTextfield = props => {
53
53
  xcss: errorIconContainerStyles.root
54
54
  }, /*#__PURE__*/React.createElement(ErrorIcon, {
55
55
  label: "error",
56
- primaryColor: `var(--ds-icon-danger, ${R400})`
56
+ LEGACY_primaryColor: `var(--ds-icon-danger, ${R400})`,
57
+ color: "var(--ds-icon-danger, #C9372C)"
57
58
  })),
58
59
  testId: testId,
59
60
  isCompact: isCompact,
@@ -7,8 +7,9 @@ import { ax, ix } from "@compiled/react/runtime";
7
7
  /* eslint-disable @atlaskit/ui-styling-standard/no-nested-selectors */
8
8
 
9
9
  import { IconButton } from '@atlaskit/button/new';
10
- import ConfirmIcon from '@atlaskit/icon/glyph/check';
11
10
  import CancelIcon from '@atlaskit/icon/glyph/cross';
11
+ import CrossIcon from '@atlaskit/icon/utility/cross';
12
+ import CheckMarkIcon from '@atlaskit/icon/utility/migration/check-mark--check';
12
13
  import { B400, N0, N20A, N30A, N50A, N60A } from '@atlaskit/theme/colors';
13
14
  const buttonsContainerStyles = null;
14
15
  const buttonWrapperBaseStyles = null;
@@ -26,8 +27,8 @@ const Buttons = ({
26
27
  className: ax(["_2rko1sit _11c82smr _vchhusvi _1bsbxy5q _1pby1kze _bfhk1bhr _16qs1kf5 _1mpy1b66 _1nlxs66q _l2uv88o1 _7mfvdecw _szlb1x4z"])
27
28
  }, /*#__PURE__*/React.createElement(IconButton, {
28
29
  type: "submit",
29
- icon: iconProps => /*#__PURE__*/React.createElement(ConfirmIcon, _extends({}, iconProps, {
30
- size: "small"
30
+ icon: iconProps => /*#__PURE__*/React.createElement(CheckMarkIcon, _extends({}, iconProps, {
31
+ LEGACY_size: "small"
31
32
  })),
32
33
  onMouseDown: onMouseDown,
33
34
  label: confirmButtonLabel,
@@ -36,8 +37,9 @@ const Buttons = ({
36
37
  tabIndex: -1,
37
38
  className: ax(["_2rko1sit _11c82smr _vchhusvi _1bsbxy5q _1pby1kze _bfhk1bhr _16qs1kf5 _1mpy1b66 _1nlxs66q _l2uv88o1 _7mfvdecw _szlb1x4z"])
38
39
  }, /*#__PURE__*/React.createElement(IconButton, {
39
- icon: iconProps => /*#__PURE__*/React.createElement(CancelIcon, _extends({}, iconProps, {
40
- size: "small"
40
+ icon: iconProps => /*#__PURE__*/React.createElement(CrossIcon, _extends({}, iconProps, {
41
+ LEGACY_size: "small",
42
+ LEGACY_fallbackIcon: CancelIcon
41
43
  })),
42
44
  label: cancelButtonLabel,
43
45
  onClick: onCancelClick,
@@ -45,4 +47,6 @@ const Buttons = ({
45
47
  testId: testId && `${testId}--cancel`
46
48
  })));
47
49
  };
50
+
51
+ // eslint-disable-next-line @repo/internal/react/require-jsdoc
48
52
  export default Buttons;
@@ -19,7 +19,7 @@ var fieldStyles = null;
19
19
  var analyticsAttributes = {
20
20
  componentName: 'inlineEdit',
21
21
  packageName: "@atlaskit/inline-edit",
22
- packageVersion: "15.0.2"
22
+ packageVersion: "15.1.1"
23
23
  };
24
24
  var InnerInlineEdit = function InnerInlineEdit(props) {
25
25
  var _props$startWithEditV = props.startWithEditViewOpen,
@@ -6,7 +6,7 @@ import "./inline-editable-textfield.compiled.css";
6
6
  import { ax, ix } from "@compiled/react/runtime";
7
7
  import React, { useCallback, useRef } from 'react';
8
8
  import { cx } from '@atlaskit/css';
9
- import ErrorIcon from '@atlaskit/icon/glyph/error';
9
+ import ErrorIcon from '@atlaskit/icon/utility/migration/error';
10
10
  import InlineDialog from '@atlaskit/inline-dialog';
11
11
  import { Box } from '@atlaskit/primitives/compiled';
12
12
  import Textfield from '@atlaskit/textfield';
@@ -54,7 +54,8 @@ var InlineEditableTextfield = function InlineEditableTextfield(props) {
54
54
  xcss: errorIconContainerStyles.root
55
55
  }, /*#__PURE__*/React.createElement(ErrorIcon, {
56
56
  label: "error",
57
- primaryColor: "var(--ds-icon-danger, ".concat(R400, ")")
57
+ LEGACY_primaryColor: "var(--ds-icon-danger, ".concat(R400, ")"),
58
+ color: "var(--ds-icon-danger, #C9372C)"
58
59
  })),
59
60
  testId: testId,
60
61
  isCompact: isCompact,
@@ -7,8 +7,9 @@ import { ax, ix } from "@compiled/react/runtime";
7
7
  /* eslint-disable @atlaskit/ui-styling-standard/no-nested-selectors */
8
8
 
9
9
  import { IconButton } from '@atlaskit/button/new';
10
- import ConfirmIcon from '@atlaskit/icon/glyph/check';
11
10
  import CancelIcon from '@atlaskit/icon/glyph/cross';
11
+ import CrossIcon from '@atlaskit/icon/utility/cross';
12
+ import CheckMarkIcon from '@atlaskit/icon/utility/migration/check-mark--check';
12
13
  import { B400, N0, N20A, N30A, N50A, N60A } from '@atlaskit/theme/colors';
13
14
  var buttonsContainerStyles = null;
14
15
  var buttonWrapperBaseStyles = null;
@@ -33,8 +34,8 @@ var Buttons = function Buttons(_ref) {
33
34
  }, /*#__PURE__*/React.createElement(IconButton, {
34
35
  type: "submit",
35
36
  icon: function icon(iconProps) {
36
- return /*#__PURE__*/React.createElement(ConfirmIcon, _extends({}, iconProps, {
37
- size: "small"
37
+ return /*#__PURE__*/React.createElement(CheckMarkIcon, _extends({}, iconProps, {
38
+ LEGACY_size: "small"
38
39
  }));
39
40
  },
40
41
  onMouseDown: onMouseDown,
@@ -52,8 +53,9 @@ var Buttons = function Buttons(_ref) {
52
53
  }
53
54
  }, /*#__PURE__*/React.createElement(IconButton, {
54
55
  icon: function icon(iconProps) {
55
- return /*#__PURE__*/React.createElement(CancelIcon, _extends({}, iconProps, {
56
- size: "small"
56
+ return /*#__PURE__*/React.createElement(CrossIcon, _extends({}, iconProps, {
57
+ LEGACY_size: "small",
58
+ LEGACY_fallbackIcon: CancelIcon
57
59
  }));
58
60
  },
59
61
  label: cancelButtonLabel,
@@ -62,4 +64,6 @@ var Buttons = function Buttons(_ref) {
62
64
  testId: testId && "".concat(testId, "--cancel")
63
65
  })));
64
66
  };
67
+
68
+ // eslint-disable-next-line @repo/internal/react/require-jsdoc
65
69
  export default Buttons;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/inline-edit",
3
- "version": "15.0.2",
3
+ "version": "15.1.1",
4
4
  "description": "An inline edit displays a custom input component that switches between reading and editing on the same page.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -39,13 +39,13 @@
39
39
  "@atlaskit/codemod-utils": "^4.2.0",
40
40
  "@atlaskit/css": "^0.10.0",
41
41
  "@atlaskit/form": "^12.0.0",
42
- "@atlaskit/icon": "^24.1.0",
42
+ "@atlaskit/icon": "^25.0.0",
43
43
  "@atlaskit/inline-dialog": "^17.0.0",
44
44
  "@atlaskit/platform-feature-flags": "^1.1.0",
45
45
  "@atlaskit/primitives": "^14.1.0",
46
46
  "@atlaskit/textfield": "^8.0.0",
47
47
  "@atlaskit/theme": "^18.0.0",
48
- "@atlaskit/tokens": "^4.3.0",
48
+ "@atlaskit/tokens": "^4.4.0",
49
49
  "@atlaskit/visually-hidden": "^3.0.0",
50
50
  "@babel/runtime": "^7.0.0",
51
51
  "@compiled/react": "^0.18.2"
@@ -54,21 +54,21 @@
54
54
  "react": "^18.2.0"
55
55
  },
56
56
  "devDependencies": {
57
- "@af/accessibility-testing": "*",
58
- "@af/integration-testing": "*",
59
- "@atlaskit/datetime-picker": "^16.0.0",
60
- "@atlaskit/docs": "*",
57
+ "@af/accessibility-testing": "^2.0.0",
58
+ "@af/integration-testing": "^0.5.0",
59
+ "@atlaskit/datetime-picker": "^16.1.0",
60
+ "@atlaskit/docs": "^10.0.0",
61
61
  "@atlaskit/ds-lib": "^4.0.0",
62
62
  "@atlaskit/heading": "^5.1.0",
63
- "@atlaskit/link": "*",
64
- "@atlaskit/section-message": "^8.0.0",
63
+ "@atlaskit/link": "^3.0.0",
64
+ "@atlaskit/section-message": "^8.1.0",
65
65
  "@atlaskit/select": "^20.0.0",
66
- "@atlaskit/ssr": "*",
66
+ "@atlaskit/ssr": "^0.4.0",
67
67
  "@atlaskit/tag": "^14.0.0",
68
68
  "@atlaskit/tag-group": "^12.0.0",
69
69
  "@atlaskit/textarea": "^8.0.0",
70
- "@atlaskit/visual-regression": "*",
71
- "@atlassian/feature-flags-test-utils": "*",
70
+ "@atlaskit/visual-regression": "^0.10.0",
71
+ "@atlassian/feature-flags-test-utils": "^0.3.0",
72
72
  "@testing-library/react": "^13.4.0",
73
73
  "react-dom": "^18.2.0",
74
74
  "react-select-event": "^5.5.0",