@atlaskit/editor-common 84.0.3 → 84.0.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,13 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 84.0.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [#116612](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/116612)
8
+ [`51b4df656c8d0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/51b4df656c8d0) -
9
+ Floating toolbar radiogroup markup, feature flag removal
10
+
3
11
  ## 84.0.3
4
12
 
5
13
  ### Patch Changes
@@ -17,7 +17,7 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
17
17
  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; }
18
18
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
19
19
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
20
- var packageVersion = "84.0.3";
20
+ var packageVersion = "84.0.4";
21
21
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
22
22
  // Remove URL as it has UGC
23
23
  // TODO: Sanitise the URL instead of just removing it
@@ -20,7 +20,7 @@ var _Layer = _interopRequireDefault(require("../Layer"));
20
20
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
21
21
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /** @jsx jsx */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
22
22
  var packageName = "@atlaskit/editor-common";
23
- var packageVersion = "84.0.3";
23
+ var packageVersion = "84.0.4";
24
24
  var halfFocusRing = 1;
25
25
  var dropOffset = '0, 8';
26
26
  var DropList = /*#__PURE__*/function (_Component) {
@@ -9,7 +9,6 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
9
9
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
10
10
  var _react = _interopRequireDefault(require("react"));
11
11
  var _customThemeButton = _interopRequireDefault(require("@atlaskit/button/custom-theme-button"));
12
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
13
12
  var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
14
13
  var _styles = require("./styles");
15
14
  var _excluded = ["buttonStyles"];
@@ -48,9 +47,7 @@ var _default = exports.default = function _default(_ref) {
48
47
  var customSpacing = iconOnly ? _styles.iconOnlySpacing : {};
49
48
  var isButtonPressed = ariaHasPopup ? undefined : selected;
50
49
  var ariaChecked = isRadioButton ? isButtonPressed : undefined;
51
- var ariaCheckedWithFF = (0, _platformFeatureFlags.getBooleanFF)('platform.editor.a11y-floating-toolbar-markup_vexmo') ? ariaChecked : undefined;
52
50
  var ariaPressed = isRadioButton ? undefined : isButtonPressed;
53
- var ariaPressedWithFF = (0, _platformFeatureFlags.getBooleanFF)('platform.editor.a11y-floating-toolbar-markup_vexmo') ? ariaPressed : isButtonPressed;
54
51
  return /*#__PURE__*/_react.default.createElement(_tooltip.default
55
52
  // Only fallback to title for tooltip if title is not shown
56
53
  , {
@@ -78,8 +75,8 @@ var _default = exports.default = function _default(_ref) {
78
75
  }, rest);
79
76
  },
80
77
  "aria-label": ariaLabel || title,
81
- "aria-pressed": ariaPressedWithFF,
82
- "aria-checked": ariaCheckedWithFF,
78
+ "aria-pressed": ariaPressed,
79
+ "aria-checked": ariaChecked,
83
80
  role: isRadioButton ? 'radio' : undefined,
84
81
  "aria-expanded": ariaHasPopup ? selected : undefined,
85
82
  "aria-controls": ariaHasPopup ? areaControls : undefined,
@@ -1,7 +1,7 @@
1
1
  import { isFedRamp } from './environment';
2
2
  const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
3
3
  const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
4
- const packageVersion = "84.0.3";
4
+ const packageVersion = "84.0.4";
5
5
  const sanitiseSentryEvents = (data, _hint) => {
6
6
  // Remove URL as it has UGC
7
7
  // TODO: Sanitise the URL instead of just removing it
@@ -9,7 +9,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
9
9
  import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
10
10
  import Layer from '../Layer';
11
11
  const packageName = "@atlaskit/editor-common";
12
- const packageVersion = "84.0.3";
12
+ const packageVersion = "84.0.4";
13
13
  const halfFocusRing = 1;
14
14
  const dropOffset = '0, 8';
15
15
  class DropList extends Component {
@@ -1,6 +1,5 @@
1
1
  import React from 'react';
2
2
  import Button from '@atlaskit/button/custom-theme-button';
3
- import { getBooleanFF } from '@atlaskit/platform-feature-flags';
4
3
  import Tooltip from '@atlaskit/tooltip';
5
4
  import { getButtonStyles, iconOnlySpacing } from './styles';
6
5
  export default (({
@@ -35,9 +34,7 @@ export default (({
35
34
  const customSpacing = iconOnly ? iconOnlySpacing : {};
36
35
  const isButtonPressed = ariaHasPopup ? undefined : selected;
37
36
  const ariaChecked = isRadioButton ? isButtonPressed : undefined;
38
- const ariaCheckedWithFF = getBooleanFF('platform.editor.a11y-floating-toolbar-markup_vexmo') ? ariaChecked : undefined;
39
37
  const ariaPressed = isRadioButton ? undefined : isButtonPressed;
40
- const ariaPressedWithFF = getBooleanFF('platform.editor.a11y-floating-toolbar-markup_vexmo') ? ariaPressed : isButtonPressed;
41
38
  return /*#__PURE__*/React.createElement(Tooltip
42
39
  // Only fallback to title for tooltip if title is not shown
43
40
  , {
@@ -71,8 +68,8 @@ export default (({
71
68
  };
72
69
  },
73
70
  "aria-label": ariaLabel || title,
74
- "aria-pressed": ariaPressedWithFF,
75
- "aria-checked": ariaCheckedWithFF,
71
+ "aria-pressed": ariaPressed,
72
+ "aria-checked": ariaChecked,
76
73
  role: isRadioButton ? 'radio' : undefined,
77
74
  "aria-expanded": ariaHasPopup ? selected : undefined,
78
75
  "aria-controls": ariaHasPopup ? areaControls : undefined,
@@ -7,7 +7,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
7
7
  import { isFedRamp } from './environment';
8
8
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
9
9
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
10
- var packageVersion = "84.0.3";
10
+ var packageVersion = "84.0.4";
11
11
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
12
12
  // Remove URL as it has UGC
13
13
  // TODO: Sanitise the URL instead of just removing it
@@ -17,7 +17,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
17
17
  import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
18
18
  import Layer from '../Layer';
19
19
  var packageName = "@atlaskit/editor-common";
20
- var packageVersion = "84.0.3";
20
+ var packageVersion = "84.0.4";
21
21
  var halfFocusRing = 1;
22
22
  var dropOffset = '0, 8';
23
23
  var DropList = /*#__PURE__*/function (_Component) {
@@ -5,7 +5,6 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
5
5
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
6
6
  import React from 'react';
7
7
  import Button from '@atlaskit/button/custom-theme-button';
8
- import { getBooleanFF } from '@atlaskit/platform-feature-flags';
9
8
  import Tooltip from '@atlaskit/tooltip';
10
9
  import { getButtonStyles, iconOnlySpacing } from './styles';
11
10
  export default (function (_ref) {
@@ -41,9 +40,7 @@ export default (function (_ref) {
41
40
  var customSpacing = iconOnly ? iconOnlySpacing : {};
42
41
  var isButtonPressed = ariaHasPopup ? undefined : selected;
43
42
  var ariaChecked = isRadioButton ? isButtonPressed : undefined;
44
- var ariaCheckedWithFF = getBooleanFF('platform.editor.a11y-floating-toolbar-markup_vexmo') ? ariaChecked : undefined;
45
43
  var ariaPressed = isRadioButton ? undefined : isButtonPressed;
46
- var ariaPressedWithFF = getBooleanFF('platform.editor.a11y-floating-toolbar-markup_vexmo') ? ariaPressed : isButtonPressed;
47
44
  return /*#__PURE__*/React.createElement(Tooltip
48
45
  // Only fallback to title for tooltip if title is not shown
49
46
  , {
@@ -71,8 +68,8 @@ export default (function (_ref) {
71
68
  }, rest);
72
69
  },
73
70
  "aria-label": ariaLabel || title,
74
- "aria-pressed": ariaPressedWithFF,
75
- "aria-checked": ariaCheckedWithFF,
71
+ "aria-pressed": ariaPressed,
72
+ "aria-checked": ariaChecked,
76
73
  role: isRadioButton ? 'radio' : undefined,
77
74
  "aria-expanded": ariaHasPopup ? selected : undefined,
78
75
  "aria-controls": ariaHasPopup ? areaControls : undefined,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "84.0.3",
3
+ "version": "84.0.4",
4
4
  "description": "A package that contains common classes and components for editor and renderer",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -231,9 +231,6 @@
231
231
  "platform.editor.resizer.prevent-contenteditable": {
232
232
  "type": "boolean"
233
233
  },
234
- "platform.editor.a11y-floating-toolbar-markup_vexmo": {
235
- "type": "boolean"
236
- },
237
234
  "platform.editor.inline_extension.extended_lcqdn": {
238
235
  "type": "boolean"
239
236
  },