@atlaskit/editor-common 110.35.2 → 110.35.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 +7 -0
- package/dist/cjs/floating-toolbar/DropdownMenuItem.js +3 -8
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/floating-toolbar/DropdownMenuItem.js +3 -8
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/floating-toolbar/DropdownMenuItem.js +3 -8
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -10,8 +10,6 @@ var _react = require("react");
|
|
|
10
10
|
var _react2 = require("@emotion/react");
|
|
11
11
|
var _checkMarkEditorDone = _interopRequireDefault(require("@atlaskit/icon/core/migration/check-mark--editor-done"));
|
|
12
12
|
var _menu = require("@atlaskit/menu");
|
|
13
|
-
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
14
|
-
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
15
13
|
var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
|
|
16
14
|
var _floatingToolbar = require("../floating-toolbar");
|
|
17
15
|
/**
|
|
@@ -160,12 +158,9 @@ var DropdownMenuItem = exports.DropdownMenuItem = function DropdownMenuItem(prop
|
|
|
160
158
|
// Ignored via go/ees005
|
|
161
159
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
162
160
|
var hasRole = function hasRole(item) {
|
|
163
|
-
var _item$
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
return ((_item$domItemOptions = item.domItemOptions) === null || _item$domItemOptions === void 0 ? void 0 : _item$domItemOptions.type) === 'item-checkbox' ? 'menuitemcheckbox' : 'menuitem';
|
|
167
|
-
}
|
|
168
|
-
return ((_item$domItemOptions2 = item.domItemOptions) === null || _item$domItemOptions2 === void 0 ? void 0 : _item$domItemOptions2.type) === 'item-checkbox' ? 'menuitemcheckbox' : undefined;
|
|
161
|
+
var _item$domItemOptions;
|
|
162
|
+
// Always return proper menu roles to fix aria-required-children violations
|
|
163
|
+
return ((_item$domItemOptions = item.domItemOptions) === null || _item$domItemOptions === void 0 ? void 0 : _item$domItemOptions.type) === 'item-checkbox' ? 'menuitemcheckbox' : 'menuitem';
|
|
169
164
|
};
|
|
170
165
|
(0, _react.useEffect)(function () {
|
|
171
166
|
var labelRefCurrent = labelRef.current;
|
|
@@ -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 = "0.0.0-development";
|
|
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 = "0.0.0-development";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var fadeIn = (0, _react2.keyframes)({
|
|
@@ -10,8 +10,6 @@ import { css, jsx } from '@emotion/react';
|
|
|
10
10
|
|
|
11
11
|
import EditorDoneIcon from '@atlaskit/icon/core/migration/check-mark--editor-done';
|
|
12
12
|
import { ButtonItem } from '@atlaskit/menu';
|
|
13
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
14
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
15
13
|
import Tooltip from '@atlaskit/tooltip';
|
|
16
14
|
import { messages } from '../floating-toolbar';
|
|
17
15
|
export const menuItemDimensions = {
|
|
@@ -153,12 +151,9 @@ export const DropdownMenuItem = props => {
|
|
|
153
151
|
// Ignored via go/ees005
|
|
154
152
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
155
153
|
const hasRole = item => {
|
|
156
|
-
var _item$
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
return ((_item$domItemOptions = item.domItemOptions) === null || _item$domItemOptions === void 0 ? void 0 : _item$domItemOptions.type) === 'item-checkbox' ? 'menuitemcheckbox' : 'menuitem';
|
|
160
|
-
}
|
|
161
|
-
return ((_item$domItemOptions2 = item.domItemOptions) === null || _item$domItemOptions2 === void 0 ? void 0 : _item$domItemOptions2.type) === 'item-checkbox' ? 'menuitemcheckbox' : undefined;
|
|
154
|
+
var _item$domItemOptions;
|
|
155
|
+
// Always return proper menu roles to fix aria-required-children violations
|
|
156
|
+
return ((_item$domItemOptions = item.domItemOptions) === null || _item$domItemOptions === void 0 ? void 0 : _item$domItemOptions.type) === 'item-checkbox' ? 'menuitemcheckbox' : 'menuitem';
|
|
162
157
|
};
|
|
163
158
|
useEffect(() => {
|
|
164
159
|
const labelRefCurrent = labelRef.current;
|
|
@@ -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 = "0.0.0-development";
|
|
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 = "0.0.0-development";
|
|
18
18
|
const halfFocusRing = 1;
|
|
19
19
|
const dropOffset = '0, 8';
|
|
20
20
|
const fadeIn = keyframes({
|
|
@@ -11,8 +11,6 @@ import { css, jsx } from '@emotion/react';
|
|
|
11
11
|
|
|
12
12
|
import EditorDoneIcon from '@atlaskit/icon/core/migration/check-mark--editor-done';
|
|
13
13
|
import { ButtonItem } from '@atlaskit/menu';
|
|
14
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
15
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
16
14
|
import Tooltip from '@atlaskit/tooltip';
|
|
17
15
|
import { messages } from '../floating-toolbar';
|
|
18
16
|
export var menuItemDimensions = {
|
|
@@ -152,12 +150,9 @@ export var DropdownMenuItem = function DropdownMenuItem(props) {
|
|
|
152
150
|
// Ignored via go/ees005
|
|
153
151
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
154
152
|
var hasRole = function hasRole(item) {
|
|
155
|
-
var _item$
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
return ((_item$domItemOptions = item.domItemOptions) === null || _item$domItemOptions === void 0 ? void 0 : _item$domItemOptions.type) === 'item-checkbox' ? 'menuitemcheckbox' : 'menuitem';
|
|
159
|
-
}
|
|
160
|
-
return ((_item$domItemOptions2 = item.domItemOptions) === null || _item$domItemOptions2 === void 0 ? void 0 : _item$domItemOptions2.type) === 'item-checkbox' ? 'menuitemcheckbox' : undefined;
|
|
153
|
+
var _item$domItemOptions;
|
|
154
|
+
// Always return proper menu roles to fix aria-required-children violations
|
|
155
|
+
return ((_item$domItemOptions = item.domItemOptions) === null || _item$domItemOptions === void 0 ? void 0 : _item$domItemOptions.type) === 'item-checkbox' ? 'menuitemcheckbox' : 'menuitem';
|
|
161
156
|
};
|
|
162
157
|
useEffect(function () {
|
|
163
158
|
var labelRefCurrent = labelRef.current;
|
|
@@ -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 = "0.0.0-development";
|
|
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 = "0.0.0-development";
|
|
25
25
|
var halfFocusRing = 1;
|
|
26
26
|
var dropOffset = '0, 8';
|
|
27
27
|
var fadeIn = keyframes({
|
package/package.json
CHANGED