@atlaskit/inline-edit 13.5.0 → 13.5.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,13 @@
1
1
  # @atlaskit/inline-edit
2
2
 
3
+ ## 13.5.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#112629](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/112629)
8
+ [`5ec24ab3bc584`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5ec24ab3bc584) -
9
+ DSP-19376 Prevent edit button label from being copied to clipboard in read view
10
+
3
11
  ## 13.5.0
4
12
 
5
13
  ### Minor Changes
@@ -31,7 +31,7 @@ var fieldStyles = (0, _react2.css)({
31
31
  var analyticsAttributes = {
32
32
  componentName: 'inlineEdit',
33
33
  packageName: "@atlaskit/inline-edit",
34
- packageVersion: "13.5.0"
34
+ packageVersion: "13.5.1"
35
35
  };
36
36
  var noop = function noop() {};
37
37
  var InnerInlineEdit = function InnerInlineEdit(props) {
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
3
  var _typeof = require("@babel/runtime/helpers/typeof");
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
@@ -10,7 +9,6 @@ var _react = _interopRequireWildcard(require("react"));
10
9
  var _react2 = require("@emotion/react");
11
10
  var _primitives = require("@atlaskit/primitives");
12
11
  var _colors = require("@atlaskit/theme/colors");
13
- var _visuallyHidden = _interopRequireDefault(require("@atlaskit/visually-hidden"));
14
12
  var _constants = require("./constants");
15
13
  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); }
16
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; }
@@ -89,8 +87,9 @@ var ReadView = function ReadView(_ref) {
89
87
  xcss: editButtonStyles,
90
88
  onClick: onEditRequested,
91
89
  ref: editButtonRef,
92
- testId: testId && "".concat(testId, "--edit-button")
93
- }, (0, _react2.jsx)(_visuallyHidden.default, null, editButtonLabel)), (0, _react2.jsx)("div", {
90
+ testId: testId && "".concat(testId, "--edit-button"),
91
+ "aria-label": editButtonLabel
92
+ }), (0, _react2.jsx)("div", {
94
93
  css: [readViewWrapperStyles, readViewFitContainerWidth && readViewFitContainerWidthStyles]
95
94
  /**
96
95
  * It is not normally acceptable to add click handlers to non-interactive elements
@@ -21,7 +21,7 @@ const fieldStyles = css({
21
21
  const analyticsAttributes = {
22
22
  componentName: 'inlineEdit',
23
23
  packageName: "@atlaskit/inline-edit",
24
- packageVersion: "13.5.0"
24
+ packageVersion: "13.5.1"
25
25
  };
26
26
  const noop = () => {};
27
27
  const InnerInlineEdit = props => {
@@ -8,7 +8,6 @@ import React, { useRef } from 'react';
8
8
  import { css, jsx } from '@emotion/react';
9
9
  import { Pressable, xcss } from '@atlaskit/primitives';
10
10
  import { N30 } from '@atlaskit/theme/colors';
11
- import VisuallyHidden from '@atlaskit/visually-hidden';
12
11
  import { borderRadius } from './constants';
13
12
  const readViewContainerStyles = css({
14
13
  lineHeight: 1
@@ -79,8 +78,9 @@ const ReadView = ({
79
78
  xcss: editButtonStyles,
80
79
  onClick: onEditRequested,
81
80
  ref: editButtonRef,
82
- testId: testId && `${testId}--edit-button`
83
- }, jsx(VisuallyHidden, null, editButtonLabel)), jsx("div", {
81
+ testId: testId && `${testId}--edit-button`,
82
+ "aria-label": editButtonLabel
83
+ }), jsx("div", {
84
84
  css: [readViewWrapperStyles, readViewFitContainerWidth && readViewFitContainerWidthStyles]
85
85
  /**
86
86
  * It is not normally acceptable to add click handlers to non-interactive elements
@@ -25,7 +25,7 @@ var fieldStyles = css({
25
25
  var analyticsAttributes = {
26
26
  componentName: 'inlineEdit',
27
27
  packageName: "@atlaskit/inline-edit",
28
- packageVersion: "13.5.0"
28
+ packageVersion: "13.5.1"
29
29
  };
30
30
  var noop = function noop() {};
31
31
  var InnerInlineEdit = function InnerInlineEdit(props) {
@@ -8,7 +8,6 @@ import React, { useRef } from 'react';
8
8
  import { css, jsx } from '@emotion/react';
9
9
  import { Pressable, xcss } from '@atlaskit/primitives';
10
10
  import { N30 } from '@atlaskit/theme/colors';
11
- import VisuallyHidden from '@atlaskit/visually-hidden';
12
11
  import { borderRadius } from './constants';
13
12
  var readViewContainerStyles = css({
14
13
  lineHeight: 1
@@ -78,8 +77,9 @@ var ReadView = function ReadView(_ref) {
78
77
  xcss: editButtonStyles,
79
78
  onClick: onEditRequested,
80
79
  ref: editButtonRef,
81
- testId: testId && "".concat(testId, "--edit-button")
82
- }, jsx(VisuallyHidden, null, editButtonLabel)), jsx("div", {
80
+ testId: testId && "".concat(testId, "--edit-button"),
81
+ "aria-label": editButtonLabel
82
+ }), jsx("div", {
83
83
  css: [readViewWrapperStyles, readViewFitContainerWidth && readViewFitContainerWidthStyles]
84
84
  /**
85
85
  * It is not normally acceptable to add click handlers to non-interactive elements
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/inline-edit",
3
- "version": "13.5.0",
3
+ "version": "13.5.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/"
@@ -37,7 +37,7 @@
37
37
  },
38
38
  "dependencies": {
39
39
  "@atlaskit/analytics-next": "^9.3.0",
40
- "@atlaskit/button": "^17.17.0",
40
+ "@atlaskit/button": "^17.22.0",
41
41
  "@atlaskit/codemod-utils": "^4.2.0",
42
42
  "@atlaskit/form": "^10.4.0",
43
43
  "@atlaskit/icon": "^22.4.0",
@@ -56,7 +56,7 @@
56
56
  "devDependencies": {
57
57
  "@af/accessibility-testing": "*",
58
58
  "@af/integration-testing": "*",
59
- "@atlaskit/datetime-picker": "^13.5.0",
59
+ "@atlaskit/datetime-picker": "^13.6.0",
60
60
  "@atlaskit/docs": "*",
61
61
  "@atlaskit/ds-lib": "^2.3.0",
62
62
  "@atlaskit/section-message": "^6.5.0",