@atlaskit/editor-common 111.29.1 → 111.30.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 +13 -0
- package/dist/cjs/element-browser/components/ElementSearch.js +1 -1
- package/dist/cjs/extensions/extension-handlers.js +1 -2
- package/dist/cjs/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +1 -1
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/ui/FloatingToolbar/Button.js +1 -2
- package/dist/cjs/ui/Messages/index.js +2 -6
- package/dist/cjs/ui/OverflowShadow/index.js +1 -2
- package/dist/cjs/ui/TableSelector/table-selector.js +1 -2
- package/dist/es2019/element-browser/components/ElementSearch.js +1 -1
- package/dist/es2019/extensions/extension-handlers.js +1 -2
- package/dist/es2019/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +1 -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 +1 -2
- package/dist/es2019/ui/Messages/index.js +2 -6
- package/dist/es2019/ui/OverflowShadow/index.js +1 -2
- package/dist/es2019/ui/TableSelector/table-selector.js +1 -2
- package/dist/esm/element-browser/components/ElementSearch.js +1 -1
- package/dist/esm/extensions/extension-handlers.js +1 -2
- package/dist/esm/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +1 -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 +1 -2
- package/dist/esm/ui/Messages/index.js +2 -6
- package/dist/esm/ui/OverflowShadow/index.js +1 -2
- package/dist/esm/ui/TableSelector/table-selector.js +1 -2
- package/package.json +4 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 111.30.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 111.30.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [`f444a0d3e2c0b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f444a0d3e2c0b) -
|
|
14
|
+
[FFCLEANUP-79468] clean up platform_editor_dec_a11y_fixes feature gate
|
|
15
|
+
|
|
3
16
|
## 111.29.1
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
|
@@ -115,7 +115,7 @@ function ElementSearch(_ref) {
|
|
|
115
115
|
css: styledShortcut
|
|
116
116
|
}, "\u23CE ", formatMessage(_messages.default.elementAfterInputMessage))),
|
|
117
117
|
placeholder: formatMessage(_messages.default.placeHolderMessage),
|
|
118
|
-
"aria-label":
|
|
118
|
+
"aria-label": formatMessage(_messages.default.searchAriaLabel),
|
|
119
119
|
"aria-labelledby": (0, _platformFeatureFlags.fg)('platform_editor_ally_remove_role_tabpanel') ? undefined : 'search-assistive',
|
|
120
120
|
"aria-describedby": (0, _platformFeatureFlags.fg)('platform_editor_ally_remove_role_tabpanel') ? 'search-assistive' : undefined
|
|
121
121
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
@@ -15,7 +15,6 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
|
|
|
15
15
|
var _react = _interopRequireDefault(require("react"));
|
|
16
16
|
var _reactIntlNext = require("react-intl-next");
|
|
17
17
|
var _reactLoadable = _interopRequireDefault(require("react-loadable"));
|
|
18
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
19
18
|
var _manifestHelpers = require("./manifest-helpers");
|
|
20
19
|
var _messages = require("./messages");
|
|
21
20
|
function getNodeFromManifest(
|
|
@@ -117,7 +116,7 @@ function ExtensionLoading(props) {
|
|
|
117
116
|
if (props.error || props.timedOut) {
|
|
118
117
|
// eslint-disable-next-line no-console
|
|
119
118
|
console.error('Error rendering extension', props.error);
|
|
120
|
-
return /*#__PURE__*/_react.default.createElement("div", null,
|
|
119
|
+
return /*#__PURE__*/_react.default.createElement("div", null, intl.formatMessage(_messages.messages.extensionLoadingError));
|
|
121
120
|
} else {
|
|
122
121
|
return null;
|
|
123
122
|
}
|
|
@@ -887,7 +887,7 @@ var HyperlinkLinkAddToolbar = exports.HyperlinkLinkAddToolbar = /*#__PURE__*/fun
|
|
|
887
887
|
var screenReaderText = browser.safari && this.getScreenReaderText();
|
|
888
888
|
var containerWidth = (0, _platformFeatureFlags.fg)('platform_editor_link_picker_width_fix') ? _ToolbarComponents.narrowContainerWidth : !!activityProvider && _ToolbarComponents.containerWithProvider;
|
|
889
889
|
var hyperlinkElement = (0, _react2.jsx)("div", {
|
|
890
|
-
"aria-label":
|
|
890
|
+
"aria-label": formatMessage(messages.hyperlinkAriaLabel)
|
|
891
891
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
892
892
|
,
|
|
893
893
|
className: "recent-list",
|
|
@@ -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 = "111.
|
|
22
|
+
var packageVersion = "111.30.0";
|
|
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 = "111.
|
|
27
|
+
var packageVersion = "111.30.0";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var fadeIn = (0, _react2.keyframes)({
|
|
@@ -13,7 +13,6 @@ var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
|
|
|
13
13
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
14
14
|
var _react = _interopRequireWildcard(require("react"));
|
|
15
15
|
var _customThemeButton = _interopRequireDefault(require("@atlaskit/button/custom-theme-button"));
|
|
16
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
17
16
|
var _platformFeatureFlagsReact = require("@atlaskit/platform-feature-flags-react");
|
|
18
17
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
19
18
|
var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
|
|
@@ -70,7 +69,7 @@ var FloatingToolbarButton = function FloatingToolbarButton(_ref, forwardedRef) {
|
|
|
70
69
|
* If it's a radio button, we need to reflect false values too, hence
|
|
71
70
|
* we cast it as a Boolean
|
|
72
71
|
*/
|
|
73
|
-
var ariaChecked = isRadioButton ?
|
|
72
|
+
var ariaChecked = isRadioButton ? Boolean(isButtonPressed) : undefined;
|
|
74
73
|
var ariaPressed = isRadioButton ? undefined : isButtonPressed;
|
|
75
74
|
var _useState = (0, _react.useState)(null),
|
|
76
75
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
@@ -9,7 +9,6 @@ var _react = require("@emotion/react");
|
|
|
9
9
|
var _reactIntlNext = require("react-intl-next");
|
|
10
10
|
var _statusError = _interopRequireDefault(require("@atlaskit/icon/core/status-error"));
|
|
11
11
|
var _statusSuccess = _interopRequireDefault(require("@atlaskit/icon/core/status-success"));
|
|
12
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
13
12
|
var _messages = _interopRequireDefault(require("../../messages"));
|
|
14
13
|
/**
|
|
15
14
|
* @jsxRuntime classic
|
|
@@ -63,8 +62,7 @@ var ErrorMessage = exports.ErrorMessage = function ErrorMessage(_ref2) {
|
|
|
63
62
|
}, (0, _react.jsx)("span", {
|
|
64
63
|
css: iconWrapperStyle
|
|
65
64
|
}, (0, _react.jsx)(_statusError.default, {
|
|
66
|
-
label:
|
|
67
|
-
"aria-label": (0, _platformFeatureFlags.fg)('platform_editor_dec_a11y_fixes') ? undefined : 'error'
|
|
65
|
+
label: intl.formatMessage(_messages.default.error)
|
|
68
66
|
})), children);
|
|
69
67
|
};
|
|
70
68
|
var ValidMessage = exports.ValidMessage = function ValidMessage(_ref3) {
|
|
@@ -76,9 +74,7 @@ var ValidMessage = exports.ValidMessage = function ValidMessage(_ref3) {
|
|
|
76
74
|
}
|
|
77
75
|
}, (0, _react.jsx)("span", {
|
|
78
76
|
css: iconWrapperStyle
|
|
79
|
-
}, (0,
|
|
77
|
+
}, (0, _react.jsx)(_statusSuccess.default, {
|
|
80
78
|
label: intl.formatMessage(_messages.default.success)
|
|
81
|
-
}) : (0, _react.jsx)(_statusSuccess.default, {
|
|
82
|
-
label: "success"
|
|
83
79
|
})), children);
|
|
84
80
|
};
|
|
@@ -14,7 +14,6 @@ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/ge
|
|
|
14
14
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
15
15
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
16
16
|
var _react = _interopRequireDefault(require("react"));
|
|
17
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
18
17
|
var _shadowObserver = require("./shadowObserver");
|
|
19
18
|
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
|
|
20
19
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
@@ -175,7 +174,7 @@ function overflowShadow(Component, options) {
|
|
|
175
174
|
var hasOverflowScroll = showRightShadow || showLeftShadow;
|
|
176
175
|
return /*#__PURE__*/_react.default.createElement(Component, (0, _extends2.default)({
|
|
177
176
|
handleRef: this.handleContainer,
|
|
178
|
-
tabIndex: hasOverflowScroll
|
|
177
|
+
tabIndex: hasOverflowScroll ? 0 : undefined,
|
|
179
178
|
shadowClassNames: classNames
|
|
180
179
|
// eslint-disable-next-line react/jsx-props-no-spreading -- Spreading props to pass all component props through to wrapped generic component
|
|
181
180
|
}, this.props));
|
|
@@ -7,7 +7,6 @@ exports.default = exports.TABLE_SELECTOR_BUTTON_SIZE = exports.TABLE_SELECTOR_BU
|
|
|
7
7
|
var _react = require("react");
|
|
8
8
|
var _react2 = require("@emotion/react");
|
|
9
9
|
var _reactIntlNext = require("react-intl-next");
|
|
10
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
11
10
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
12
11
|
var _colors = require("@atlaskit/theme/colors");
|
|
13
12
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
@@ -159,6 +158,6 @@ var TableSelectorPopup = function TableSelectorPopup(_ref3) {
|
|
|
159
158
|
})), (0, _react2.jsx)("span", {
|
|
160
159
|
css: selectionSizeTextStyles,
|
|
161
160
|
"aria-hidden": true
|
|
162
|
-
},
|
|
161
|
+
}, "".concat(selectedCol, " ").concat(MULTIPLICATION_SYMBOL, " ").concat(selectedRow)));
|
|
163
162
|
};
|
|
164
163
|
var _default = exports.default = (0, _reactIntlNext.injectIntl)(TableSelectorPopup);
|
|
@@ -107,7 +107,7 @@ function ElementSearch({
|
|
|
107
107
|
css: styledShortcut
|
|
108
108
|
}, "\u23CE ", formatMessage(commonMessages.elementAfterInputMessage))),
|
|
109
109
|
placeholder: formatMessage(commonMessages.placeHolderMessage),
|
|
110
|
-
"aria-label":
|
|
110
|
+
"aria-label": formatMessage(commonMessages.searchAriaLabel),
|
|
111
111
|
"aria-labelledby": fg('platform_editor_ally_remove_role_tabpanel') ? undefined : 'search-assistive',
|
|
112
112
|
"aria-describedby": fg('platform_editor_ally_remove_role_tabpanel') ? 'search-assistive' : undefined
|
|
113
113
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useIntl } from 'react-intl-next';
|
|
3
3
|
import Loadable from 'react-loadable';
|
|
4
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
5
4
|
import { getExtensionKeyAndNodeKey, resolveImport, resolveImportSync } from './manifest-helpers';
|
|
6
5
|
import { messages } from './messages';
|
|
7
6
|
function getNodeFromManifest(
|
|
@@ -58,7 +57,7 @@ function ExtensionLoading(props) {
|
|
|
58
57
|
if (props.error || props.timedOut) {
|
|
59
58
|
// eslint-disable-next-line no-console
|
|
60
59
|
console.error('Error rendering extension', props.error);
|
|
61
|
-
return /*#__PURE__*/React.createElement("div", null,
|
|
60
|
+
return /*#__PURE__*/React.createElement("div", null, intl.formatMessage(messages.extensionLoadingError));
|
|
62
61
|
} else {
|
|
63
62
|
return null;
|
|
64
63
|
}
|
|
@@ -739,7 +739,7 @@ export class HyperlinkLinkAddToolbar extends PureComponent {
|
|
|
739
739
|
const screenReaderText = browser.safari && this.getScreenReaderText();
|
|
740
740
|
const containerWidth = fg('platform_editor_link_picker_width_fix') ? narrowContainerWidth : !!activityProvider && containerWithProvider;
|
|
741
741
|
const hyperlinkElement = jsx("div", {
|
|
742
|
-
"aria-label":
|
|
742
|
+
"aria-label": formatMessage(messages.hyperlinkAriaLabel)
|
|
743
743
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
744
744
|
,
|
|
745
745
|
className: "recent-list",
|
|
@@ -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 = "111.
|
|
7
|
+
const packageVersion = "111.30.0";
|
|
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 = "111.
|
|
17
|
+
const packageVersion = "111.30.0";
|
|
18
18
|
const halfFocusRing = 1;
|
|
19
19
|
const dropOffset = '0, 8';
|
|
20
20
|
const fadeIn = keyframes({
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React, { forwardRef, useCallback, useEffect, useState } from 'react';
|
|
3
3
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
4
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
5
4
|
import { componentWithCondition } from '@atlaskit/platform-feature-flags-react';
|
|
6
5
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
7
6
|
import Tooltip from '@atlaskit/tooltip';
|
|
@@ -53,7 +52,7 @@ const FloatingToolbarButton = ({
|
|
|
53
52
|
* If it's a radio button, we need to reflect false values too, hence
|
|
54
53
|
* we cast it as a Boolean
|
|
55
54
|
*/
|
|
56
|
-
const ariaChecked = isRadioButton ?
|
|
55
|
+
const ariaChecked = isRadioButton ? Boolean(isButtonPressed) : undefined;
|
|
57
56
|
const ariaPressed = isRadioButton ? undefined : isButtonPressed;
|
|
58
57
|
const [spotlightReferenceElement, setSpotlightReferenceElement] = useState(null);
|
|
59
58
|
useEffect(() => {
|
|
@@ -8,7 +8,6 @@ import { css, jsx } from '@emotion/react';
|
|
|
8
8
|
import { useIntl } from 'react-intl-next';
|
|
9
9
|
import ErrorIcon from '@atlaskit/icon/core/status-error';
|
|
10
10
|
import SuccessIcon from '@atlaskit/icon/core/status-success';
|
|
11
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
12
11
|
import commonMessages from '../../messages';
|
|
13
12
|
const errorColor = css({
|
|
14
13
|
color: "var(--ds-text-danger, #AE2E24)"
|
|
@@ -52,8 +51,7 @@ export const ErrorMessage = ({
|
|
|
52
51
|
}, jsx("span", {
|
|
53
52
|
css: iconWrapperStyle
|
|
54
53
|
}, jsx(ErrorIcon, {
|
|
55
|
-
label:
|
|
56
|
-
"aria-label": fg('platform_editor_dec_a11y_fixes') ? undefined : 'error'
|
|
54
|
+
label: intl.formatMessage(commonMessages.error)
|
|
57
55
|
})), children);
|
|
58
56
|
};
|
|
59
57
|
export const ValidMessage = ({
|
|
@@ -66,9 +64,7 @@ export const ValidMessage = ({
|
|
|
66
64
|
}
|
|
67
65
|
}, jsx("span", {
|
|
68
66
|
css: iconWrapperStyle
|
|
69
|
-
},
|
|
67
|
+
}, jsx(SuccessIcon, {
|
|
70
68
|
label: intl.formatMessage(commonMessages.success)
|
|
71
|
-
}) : jsx(SuccessIcon, {
|
|
72
|
-
label: "success"
|
|
73
69
|
})), children);
|
|
74
70
|
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
import React from 'react';
|
|
4
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
5
4
|
import { ShadowObserver, shadowObserverClassNames } from './shadowObserver';
|
|
6
5
|
export const shadowClassNames = {
|
|
7
6
|
RIGHT_SHADOW: 'right-shadow',
|
|
@@ -147,7 +146,7 @@ export default function overflowShadow(Component, options) {
|
|
|
147
146
|
const hasOverflowScroll = showRightShadow || showLeftShadow;
|
|
148
147
|
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
149
148
|
handleRef: this.handleContainer,
|
|
150
|
-
tabIndex: hasOverflowScroll
|
|
149
|
+
tabIndex: hasOverflowScroll ? 0 : undefined,
|
|
151
150
|
shadowClassNames: classNames
|
|
152
151
|
// eslint-disable-next-line react/jsx-props-no-spreading -- Spreading props to pass all component props through to wrapped generic component
|
|
153
152
|
}, this.props));
|
|
@@ -6,7 +6,6 @@ import { useContext, useEffect, useMemo, useRef } from 'react';
|
|
|
6
6
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
7
7
|
import { css, jsx } from '@emotion/react';
|
|
8
8
|
import { injectIntl } from 'react-intl-next';
|
|
9
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
10
9
|
import { Stack } from '@atlaskit/primitives/compiled';
|
|
11
10
|
import { B100 } from '@atlaskit/theme/colors';
|
|
12
11
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
@@ -151,6 +150,6 @@ const TableSelectorPopup = ({
|
|
|
151
150
|
})), jsx("span", {
|
|
152
151
|
css: selectionSizeTextStyles,
|
|
153
152
|
"aria-hidden": true
|
|
154
|
-
},
|
|
153
|
+
}, `${selectedCol} ${MULTIPLICATION_SYMBOL} ${selectedRow}`));
|
|
155
154
|
};
|
|
156
155
|
export default injectIntl(TableSelectorPopup);
|
|
@@ -105,7 +105,7 @@ function ElementSearch(_ref) {
|
|
|
105
105
|
css: styledShortcut
|
|
106
106
|
}, "\u23CE ", formatMessage(commonMessages.elementAfterInputMessage))),
|
|
107
107
|
placeholder: formatMessage(commonMessages.placeHolderMessage),
|
|
108
|
-
"aria-label":
|
|
108
|
+
"aria-label": formatMessage(commonMessages.searchAriaLabel),
|
|
109
109
|
"aria-labelledby": fg('platform_editor_ally_remove_role_tabpanel') ? undefined : 'search-assistive',
|
|
110
110
|
"aria-describedby": fg('platform_editor_ally_remove_role_tabpanel') ? 'search-assistive' : undefined
|
|
111
111
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
@@ -4,7 +4,6 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { useIntl } from 'react-intl-next';
|
|
6
6
|
import Loadable from 'react-loadable';
|
|
7
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
7
|
import { getExtensionKeyAndNodeKey, resolveImport, resolveImportSync } from './manifest-helpers';
|
|
9
8
|
import { messages } from './messages';
|
|
10
9
|
function getNodeFromManifest(
|
|
@@ -106,7 +105,7 @@ function ExtensionLoading(props) {
|
|
|
106
105
|
if (props.error || props.timedOut) {
|
|
107
106
|
// eslint-disable-next-line no-console
|
|
108
107
|
console.error('Error rendering extension', props.error);
|
|
109
|
-
return /*#__PURE__*/React.createElement("div", null,
|
|
108
|
+
return /*#__PURE__*/React.createElement("div", null, intl.formatMessage(messages.extensionLoadingError));
|
|
110
109
|
} else {
|
|
111
110
|
return null;
|
|
112
111
|
}
|
|
@@ -883,7 +883,7 @@ export var HyperlinkLinkAddToolbar = /*#__PURE__*/function (_PureComponent) {
|
|
|
883
883
|
var screenReaderText = browser.safari && this.getScreenReaderText();
|
|
884
884
|
var containerWidth = fg('platform_editor_link_picker_width_fix') ? narrowContainerWidth : !!activityProvider && containerWithProvider;
|
|
885
885
|
var hyperlinkElement = jsx("div", {
|
|
886
|
-
"aria-label":
|
|
886
|
+
"aria-label": formatMessage(messages.hyperlinkAriaLabel)
|
|
887
887
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
888
888
|
,
|
|
889
889
|
className: "recent-list",
|
|
@@ -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 = "111.
|
|
13
|
+
var packageVersion = "111.30.0";
|
|
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 = "111.
|
|
24
|
+
var packageVersion = "111.30.0";
|
|
25
25
|
var halfFocusRing = 1;
|
|
26
26
|
var dropOffset = '0, 8';
|
|
27
27
|
var fadeIn = keyframes({
|
|
@@ -8,7 +8,6 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
8
8
|
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; }
|
|
9
9
|
import React, { forwardRef, useCallback, useEffect, useState } from 'react';
|
|
10
10
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
11
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
12
11
|
import { componentWithCondition } from '@atlaskit/platform-feature-flags-react';
|
|
13
12
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
14
13
|
import Tooltip from '@atlaskit/tooltip';
|
|
@@ -61,7 +60,7 @@ var FloatingToolbarButton = function FloatingToolbarButton(_ref, forwardedRef) {
|
|
|
61
60
|
* If it's a radio button, we need to reflect false values too, hence
|
|
62
61
|
* we cast it as a Boolean
|
|
63
62
|
*/
|
|
64
|
-
var ariaChecked = isRadioButton ?
|
|
63
|
+
var ariaChecked = isRadioButton ? Boolean(isButtonPressed) : undefined;
|
|
65
64
|
var ariaPressed = isRadioButton ? undefined : isButtonPressed;
|
|
66
65
|
var _useState = useState(null),
|
|
67
66
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -8,7 +8,6 @@ import { css, jsx } from '@emotion/react';
|
|
|
8
8
|
import { useIntl } from 'react-intl-next';
|
|
9
9
|
import ErrorIcon from '@atlaskit/icon/core/status-error';
|
|
10
10
|
import SuccessIcon from '@atlaskit/icon/core/status-success';
|
|
11
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
12
11
|
import commonMessages from '../../messages';
|
|
13
12
|
var errorColor = css({
|
|
14
13
|
color: "var(--ds-text-danger, #AE2E24)"
|
|
@@ -55,8 +54,7 @@ export var ErrorMessage = function ErrorMessage(_ref2) {
|
|
|
55
54
|
}, jsx("span", {
|
|
56
55
|
css: iconWrapperStyle
|
|
57
56
|
}, jsx(ErrorIcon, {
|
|
58
|
-
label:
|
|
59
|
-
"aria-label": fg('platform_editor_dec_a11y_fixes') ? undefined : 'error'
|
|
57
|
+
label: intl.formatMessage(commonMessages.error)
|
|
60
58
|
})), children);
|
|
61
59
|
};
|
|
62
60
|
export var ValidMessage = function ValidMessage(_ref3) {
|
|
@@ -68,9 +66,7 @@ export var ValidMessage = function ValidMessage(_ref3) {
|
|
|
68
66
|
}
|
|
69
67
|
}, jsx("span", {
|
|
70
68
|
css: iconWrapperStyle
|
|
71
|
-
},
|
|
69
|
+
}, jsx(SuccessIcon, {
|
|
72
70
|
label: intl.formatMessage(commonMessages.success)
|
|
73
|
-
}) : jsx(SuccessIcon, {
|
|
74
|
-
label: "success"
|
|
75
71
|
})), children);
|
|
76
72
|
};
|
|
@@ -8,7 +8,6 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
8
8
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
9
9
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
10
10
|
import React from 'react';
|
|
11
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
12
11
|
import { ShadowObserver, shadowObserverClassNames } from './shadowObserver';
|
|
13
12
|
export var shadowClassNames = {
|
|
14
13
|
RIGHT_SHADOW: 'right-shadow',
|
|
@@ -167,7 +166,7 @@ export default function overflowShadow(Component, options) {
|
|
|
167
166
|
var hasOverflowScroll = showRightShadow || showLeftShadow;
|
|
168
167
|
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
169
168
|
handleRef: this.handleContainer,
|
|
170
|
-
tabIndex: hasOverflowScroll
|
|
169
|
+
tabIndex: hasOverflowScroll ? 0 : undefined,
|
|
171
170
|
shadowClassNames: classNames
|
|
172
171
|
// eslint-disable-next-line react/jsx-props-no-spreading -- Spreading props to pass all component props through to wrapped generic component
|
|
173
172
|
}, this.props));
|
|
@@ -6,7 +6,6 @@ import { useContext, useEffect, useMemo, useRef } from 'react';
|
|
|
6
6
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
7
7
|
import { css, jsx } from '@emotion/react';
|
|
8
8
|
import { injectIntl } from 'react-intl-next';
|
|
9
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
10
9
|
import { Stack } from '@atlaskit/primitives/compiled';
|
|
11
10
|
import { B100 } from '@atlaskit/theme/colors';
|
|
12
11
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
@@ -151,6 +150,6 @@ var TableSelectorPopup = function TableSelectorPopup(_ref3) {
|
|
|
151
150
|
})), jsx("span", {
|
|
152
151
|
css: selectionSizeTextStyles,
|
|
153
152
|
"aria-hidden": true
|
|
154
|
-
},
|
|
153
|
+
}, "".concat(selectedCol, " ").concat(MULTIPLICATION_SYMBOL, " ").concat(selectedRow)));
|
|
155
154
|
};
|
|
156
155
|
export default injectIntl(TableSelectorPopup);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "111.
|
|
3
|
+
"version": "111.30.1",
|
|
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/"
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"@atlaskit/platform-feature-flags-react": "^0.4.0",
|
|
72
72
|
"@atlaskit/popper": "^7.1.0",
|
|
73
73
|
"@atlaskit/primitives": "^18.0.0",
|
|
74
|
-
"@atlaskit/profilecard": "^24.
|
|
74
|
+
"@atlaskit/profilecard": "^24.41.0",
|
|
75
75
|
"@atlaskit/prosemirror-history": "^0.2.0",
|
|
76
76
|
"@atlaskit/react-ufo": "^5.4.0",
|
|
77
77
|
"@atlaskit/section-message": "^8.12.0",
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"@atlaskit/task-decision": "^19.3.0",
|
|
83
83
|
"@atlaskit/textfield": "^8.2.0",
|
|
84
84
|
"@atlaskit/theme": "^22.0.0",
|
|
85
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
85
|
+
"@atlaskit/tmp-editor-statsig": "^35.0.0",
|
|
86
86
|
"@atlaskit/tokens": "^11.0.0",
|
|
87
87
|
"@atlaskit/tooltip": "^20.14.0",
|
|
88
88
|
"@atlaskit/width-detector": "^5.0.0",
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
},
|
|
124
124
|
"devDependencies": {
|
|
125
125
|
"@atlaskit/media-core": "^37.0.0",
|
|
126
|
-
"@atlassian/a11y-jest-testing": "^0.
|
|
126
|
+
"@atlassian/a11y-jest-testing": "^0.10.0",
|
|
127
127
|
"@testing-library/dom": "^10.1.0",
|
|
128
128
|
"@testing-library/jest-dom": "^6.4.5",
|
|
129
129
|
"@testing-library/react": "^16.3.0",
|
|
@@ -262,9 +262,6 @@
|
|
|
262
262
|
"platform_fix_macro_renders_in_layouts": {
|
|
263
263
|
"type": "boolean"
|
|
264
264
|
},
|
|
265
|
-
"platform_editor_dec_a11y_fixes": {
|
|
266
|
-
"type": "boolean"
|
|
267
|
-
},
|
|
268
265
|
"platform_editor_ally_remove_role_tabpanel": {
|
|
269
266
|
"type": "boolean"
|
|
270
267
|
},
|