@atlaskit/editor-common 111.6.1 → 111.6.3
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 +17 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/ui/FloatingToolbar/Button.js +6 -1
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/ui/FloatingToolbar/Button.js +6 -1
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/ui/FloatingToolbar/Button.js +6 -1
- package/dist/types/styles/shared/headings.d.ts +2 -1
- package/dist/types-ts4.5/styles/shared/headings.d.ts +2 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 111.6.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`1051a075c959d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/1051a075c959d) -
|
|
8
|
+
Internal changes to typography theme types.
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 111.6.2
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [`2e9f634e23b38`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/2e9f634e23b38) -
|
|
16
|
+
ENGHEALTH-48712: Add aria-checked even for false entries for floating toolbar buttons that have
|
|
17
|
+
radio role.
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
|
|
3
20
|
## 111.6.1
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
|
@@ -19,7 +19,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
19
19
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
20
20
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
21
21
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
22
|
-
var packageVersion = "
|
|
22
|
+
var packageVersion = "111.6.2";
|
|
23
23
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
24
24
|
// Remove URL as it has UGC
|
|
25
25
|
// Ignored via go/ees007
|
|
@@ -24,7 +24,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
24
24
|
* @jsx jsx
|
|
25
25
|
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
26
26
|
var packageName = "@atlaskit/editor-common";
|
|
27
|
-
var packageVersion = "
|
|
27
|
+
var packageVersion = "111.6.2";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var fadeIn = (0, _react2.keyframes)({
|
|
@@ -12,6 +12,7 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
|
|
|
12
12
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
13
13
|
var _react = _interopRequireWildcard(require("react"));
|
|
14
14
|
var _customThemeButton = _interopRequireDefault(require("@atlaskit/button/custom-theme-button"));
|
|
15
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
15
16
|
var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
|
|
16
17
|
var _Pulse = require("../Pulse/Pulse");
|
|
17
18
|
var _ButtonSpotlightCard = require("./ButtonSpotlightCard");
|
|
@@ -62,7 +63,11 @@ var _default = exports.default = function _default(_ref) {
|
|
|
62
63
|
var iconOnly = (icon || iconAfter) && !children;
|
|
63
64
|
var customSpacing = iconOnly ? _styles.iconOnlySpacing : {};
|
|
64
65
|
var isButtonPressed = ariaHasPopup ? undefined : selected;
|
|
65
|
-
|
|
66
|
+
/**
|
|
67
|
+
* If it's a radio button, we need to reflect false values too, hence
|
|
68
|
+
* we cast it as a Boolean
|
|
69
|
+
*/
|
|
70
|
+
var ariaChecked = isRadioButton ? (0, _platformFeatureFlags.fg)('platform_editor_dec_a11y_fixes') ? Boolean(isButtonPressed) : isButtonPressed : undefined;
|
|
66
71
|
var ariaPressed = isRadioButton ? undefined : isButtonPressed;
|
|
67
72
|
var _useState = (0, _react.useState)(null),
|
|
68
73
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
@@ -4,7 +4,7 @@ import { isFedRamp } from './environment';
|
|
|
4
4
|
import { normaliseSentryBreadcrumbs, SERIALIZABLE_ATTRIBUTES } from './normalise-sentry-breadcrumbs';
|
|
5
5
|
const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
6
6
|
const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
7
|
-
const packageVersion = "
|
|
7
|
+
const packageVersion = "111.6.2";
|
|
8
8
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
9
9
|
// Remove URL as it has UGC
|
|
10
10
|
// Ignored via go/ees007
|
|
@@ -14,7 +14,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
|
14
14
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
15
15
|
import Layer from '../Layer';
|
|
16
16
|
const packageName = "@atlaskit/editor-common";
|
|
17
|
-
const packageVersion = "
|
|
17
|
+
const packageVersion = "111.6.2";
|
|
18
18
|
const halfFocusRing = 1;
|
|
19
19
|
const dropOffset = '0, 8';
|
|
20
20
|
const fadeIn = keyframes({
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React, { useCallback, useEffect, useState } from 'react';
|
|
3
3
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
4
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
5
|
import Tooltip from '@atlaskit/tooltip';
|
|
5
6
|
import { Pulse } from '../Pulse/Pulse';
|
|
6
7
|
import { ButtonSpotlightCard } from './ButtonSpotlightCard';
|
|
@@ -46,7 +47,11 @@ export default (({
|
|
|
46
47
|
const iconOnly = (icon || iconAfter) && !children;
|
|
47
48
|
const customSpacing = iconOnly ? iconOnlySpacing : {};
|
|
48
49
|
const isButtonPressed = ariaHasPopup ? undefined : selected;
|
|
49
|
-
|
|
50
|
+
/**
|
|
51
|
+
* If it's a radio button, we need to reflect false values too, hence
|
|
52
|
+
* we cast it as a Boolean
|
|
53
|
+
*/
|
|
54
|
+
const ariaChecked = isRadioButton ? fg('platform_editor_dec_a11y_fixes') ? Boolean(isButtonPressed) : isButtonPressed : undefined;
|
|
50
55
|
const ariaPressed = isRadioButton ? undefined : isButtonPressed;
|
|
51
56
|
const [spotlightReferenceElement, setSpotlightReferenceElement] = useState(null);
|
|
52
57
|
useEffect(() => {
|
|
@@ -10,7 +10,7 @@ import { isFedRamp } from './environment';
|
|
|
10
10
|
import { normaliseSentryBreadcrumbs, SERIALIZABLE_ATTRIBUTES } from './normalise-sentry-breadcrumbs';
|
|
11
11
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
12
12
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
13
|
-
var packageVersion = "
|
|
13
|
+
var packageVersion = "111.6.2";
|
|
14
14
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
15
15
|
// Remove URL as it has UGC
|
|
16
16
|
// Ignored via go/ees007
|
|
@@ -21,7 +21,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
|
21
21
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
22
22
|
import Layer from '../Layer';
|
|
23
23
|
var packageName = "@atlaskit/editor-common";
|
|
24
|
-
var packageVersion = "
|
|
24
|
+
var packageVersion = "111.6.2";
|
|
25
25
|
var halfFocusRing = 1;
|
|
26
26
|
var dropOffset = '0, 8';
|
|
27
27
|
var fadeIn = keyframes({
|
|
@@ -7,6 +7,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
7
7
|
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; }
|
|
8
8
|
import React, { useCallback, useEffect, useState } from 'react';
|
|
9
9
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
10
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
10
11
|
import Tooltip from '@atlaskit/tooltip';
|
|
11
12
|
import { Pulse } from '../Pulse/Pulse';
|
|
12
13
|
import { ButtonSpotlightCard } from './ButtonSpotlightCard';
|
|
@@ -53,7 +54,11 @@ export default (function (_ref) {
|
|
|
53
54
|
var iconOnly = (icon || iconAfter) && !children;
|
|
54
55
|
var customSpacing = iconOnly ? iconOnlySpacing : {};
|
|
55
56
|
var isButtonPressed = ariaHasPopup ? undefined : selected;
|
|
56
|
-
|
|
57
|
+
/**
|
|
58
|
+
* If it's a radio button, we need to reflect false values too, hence
|
|
59
|
+
* we cast it as a Boolean
|
|
60
|
+
*/
|
|
61
|
+
var ariaChecked = isRadioButton ? fg('platform_editor_dec_a11y_fixes') ? Boolean(isButtonPressed) : isButtonPressed : undefined;
|
|
57
62
|
var ariaPressed = isRadioButton ? undefined : isButtonPressed;
|
|
58
63
|
var _useState = useState(null),
|
|
59
64
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { type ThemeState } from '@atlaskit/tokens';
|
|
2
|
+
export declare const headingsSharedStyles: (_typographyTheme?: ThemeState["typography"]) => import("@emotion/react").SerializedStyles;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { type ThemeState } from '@atlaskit/tokens';
|
|
2
|
+
export declare const headingsSharedStyles: (_typographyTheme?: ThemeState["typography"]) => import("@emotion/react").SerializedStyles;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "111.6.
|
|
3
|
+
"version": "111.6.3",
|
|
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/"
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"@atlaskit/task-decision": "^19.2.0",
|
|
82
82
|
"@atlaskit/textfield": "^8.2.0",
|
|
83
83
|
"@atlaskit/theme": "^21.0.0",
|
|
84
|
-
"@atlaskit/tmp-editor-statsig": "^16.
|
|
84
|
+
"@atlaskit/tmp-editor-statsig": "^16.10.0",
|
|
85
85
|
"@atlaskit/tokens": "^9.1.0",
|
|
86
86
|
"@atlaskit/tooltip": "^20.12.0",
|
|
87
87
|
"@atlaskit/width-detector": "^5.0.0",
|