@atlaskit/editor-common 106.6.1 → 106.6.2
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 +8 -0
- package/dist/cjs/element-browser/components/ElementList/ElementList.js +3 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/provider-factory/with-providers.js +2 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/element-browser/components/ElementList/ElementList.js +3 -0
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/provider-factory/with-providers.js +2 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/element-browser/components/ElementList/ElementList.js +3 -0
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/provider-factory/with-providers.js +2 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/provider-factory/with-providers.d.ts +1 -1
- package/dist/types-ts4.5/provider-factory/with-providers.d.ts +1 -1
- package/package.json +5 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 106.6.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#170866](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/170866)
|
|
8
|
+
[`0d19a8feca6a0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0d19a8feca6a0) -
|
|
9
|
+
Fixing a bug where we were unsubscribing the wrong provider call-back
|
|
10
|
+
|
|
3
11
|
## 106.6.1
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -290,6 +290,8 @@ var ElementListMultipleColumns = function ElementListMultipleColumns(props) {
|
|
|
290
290
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766 -- Ignored via go/DSP-18766
|
|
291
291
|
,
|
|
292
292
|
className: "element-item-wrapper",
|
|
293
|
+
role: "gridcell",
|
|
294
|
+
tabIndex: 0,
|
|
293
295
|
css: elementItemWrapper,
|
|
294
296
|
onKeyDown: function onKeyDown(e) {
|
|
295
297
|
if (e.key === 'Tab') {
|
|
@@ -326,6 +328,7 @@ var ElementListMultipleColumns = function ElementListMultipleColumns(props) {
|
|
|
326
328
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
327
329
|
[cache, items, fullMode, selectedItemIndex, columnCount, focusedItemIndex, selectedCategoryIndex, setFocusedCategoryIndex, setFocusedItemIndex, props]);
|
|
328
330
|
return (0, _react2.jsx)(_reactVirtualized.Grid, (0, _extends2.default)({
|
|
331
|
+
containerRole: "row",
|
|
329
332
|
cellRenderer: cellRenderer,
|
|
330
333
|
height: height,
|
|
331
334
|
width: containerWidth - _constants.ELEMENT_LIST_PADDING * 2 // containerWidth - padding on Left/Right (for focus outline)
|
|
@@ -16,7 +16,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
16
16
|
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); }
|
|
17
17
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
18
18
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
19
|
-
var packageVersion = "106.6.
|
|
19
|
+
var packageVersion = "106.6.2";
|
|
20
20
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
21
21
|
// Remove URL as it has UGC
|
|
22
22
|
// Ignored via go/ees007
|
|
@@ -12,6 +12,7 @@ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/ge
|
|
|
12
12
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
13
13
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
14
14
|
var _react = require("react");
|
|
15
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
15
16
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
16
17
|
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) { (0, _defineProperty2.default)(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; }
|
|
17
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)); }
|
|
@@ -70,7 +71,7 @@ var WithProviders = exports.WithProviders = /*#__PURE__*/function (_PureComponen
|
|
|
70
71
|
providers = _this$props.providers,
|
|
71
72
|
providerFactory = _this$props.providerFactory;
|
|
72
73
|
providers.forEach(function (name) {
|
|
73
|
-
providerFactory.unsubscribe(name, _this2.handleProvider);
|
|
74
|
+
providerFactory.unsubscribe(name, (0, _platformFeatureFlags.fg)('platform_editor_fix_unsubscribe_of_provider') ? _this2.handleProviderIfMounted : _this2.handleProvider);
|
|
74
75
|
});
|
|
75
76
|
}
|
|
76
77
|
}, {
|
|
@@ -23,7 +23,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
23
23
|
* @jsx jsx
|
|
24
24
|
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
25
25
|
var packageName = "@atlaskit/editor-common";
|
|
26
|
-
var packageVersion = "106.6.
|
|
26
|
+
var packageVersion = "106.6.2";
|
|
27
27
|
var halfFocusRing = 1;
|
|
28
28
|
var dropOffset = '0, 8';
|
|
29
29
|
// Ignored via go/ees005
|
|
@@ -280,6 +280,8 @@ const ElementListMultipleColumns = props => {
|
|
|
280
280
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766 -- Ignored via go/DSP-18766
|
|
281
281
|
,
|
|
282
282
|
className: "element-item-wrapper",
|
|
283
|
+
role: "gridcell",
|
|
284
|
+
tabIndex: 0,
|
|
283
285
|
css: elementItemWrapper,
|
|
284
286
|
onKeyDown: e => {
|
|
285
287
|
if (e.key === 'Tab') {
|
|
@@ -315,6 +317,7 @@ const ElementListMultipleColumns = props => {
|
|
|
315
317
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
316
318
|
[cache, items, fullMode, selectedItemIndex, columnCount, focusedItemIndex, selectedCategoryIndex, setFocusedCategoryIndex, setFocusedItemIndex, props]);
|
|
317
319
|
return jsx(Grid, _extends({
|
|
320
|
+
containerRole: "row",
|
|
318
321
|
cellRenderer: cellRenderer,
|
|
319
322
|
height: height,
|
|
320
323
|
width: containerWidth - ELEMENT_LIST_PADDING * 2 // containerWidth - padding on Left/Right (for focus outline)
|
|
@@ -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 = "106.6.
|
|
4
|
+
const packageVersion = "106.6.2";
|
|
5
5
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
6
6
|
// Remove URL as it has UGC
|
|
7
7
|
// Ignored via go/ees007
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
/* eslint-disable @repo/internal/react/no-class-components */
|
|
3
3
|
import { PureComponent } from 'react';
|
|
4
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
5
|
// Ignored via go/ees005
|
|
5
6
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
6
7
|
export class WithProviders extends PureComponent {
|
|
@@ -51,7 +52,7 @@ export class WithProviders extends PureComponent {
|
|
|
51
52
|
providerFactory
|
|
52
53
|
} = this.props;
|
|
53
54
|
providers.forEach(name => {
|
|
54
|
-
providerFactory.unsubscribe(name, this.handleProvider);
|
|
55
|
+
providerFactory.unsubscribe(name, fg('platform_editor_fix_unsubscribe_of_provider') ? this.handleProviderIfMounted : this.handleProvider);
|
|
55
56
|
});
|
|
56
57
|
}
|
|
57
58
|
render() {
|
|
@@ -13,7 +13,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
|
|
|
13
13
|
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
14
14
|
import Layer from '../Layer';
|
|
15
15
|
const packageName = "@atlaskit/editor-common";
|
|
16
|
-
const packageVersion = "106.6.
|
|
16
|
+
const packageVersion = "106.6.2";
|
|
17
17
|
const halfFocusRing = 1;
|
|
18
18
|
const dropOffset = '0, 8';
|
|
19
19
|
// Ignored via go/ees005
|
|
@@ -279,6 +279,8 @@ var ElementListMultipleColumns = function ElementListMultipleColumns(props) {
|
|
|
279
279
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766 -- Ignored via go/DSP-18766
|
|
280
280
|
,
|
|
281
281
|
className: "element-item-wrapper",
|
|
282
|
+
role: "gridcell",
|
|
283
|
+
tabIndex: 0,
|
|
282
284
|
css: elementItemWrapper,
|
|
283
285
|
onKeyDown: function onKeyDown(e) {
|
|
284
286
|
if (e.key === 'Tab') {
|
|
@@ -315,6 +317,7 @@ var ElementListMultipleColumns = function ElementListMultipleColumns(props) {
|
|
|
315
317
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
316
318
|
[cache, items, fullMode, selectedItemIndex, columnCount, focusedItemIndex, selectedCategoryIndex, setFocusedCategoryIndex, setFocusedItemIndex, props]);
|
|
317
319
|
return jsx(Grid, _extends({
|
|
320
|
+
containerRole: "row",
|
|
318
321
|
cellRenderer: cellRenderer,
|
|
319
322
|
height: height,
|
|
320
323
|
width: containerWidth - ELEMENT_LIST_PADDING * 2 // containerWidth - padding on Left/Right (for focus outline)
|
|
@@ -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 = "106.6.
|
|
10
|
+
var packageVersion = "106.6.2";
|
|
11
11
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
12
12
|
// Remove URL as it has UGC
|
|
13
13
|
// Ignored via go/ees007
|
|
@@ -10,6 +10,7 @@ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstruct
|
|
|
10
10
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
11
11
|
/* eslint-disable @repo/internal/react/no-class-components */
|
|
12
12
|
import { PureComponent } from 'react';
|
|
13
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
13
14
|
// Ignored via go/ees005
|
|
14
15
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
15
16
|
export var WithProviders = /*#__PURE__*/function (_PureComponent) {
|
|
@@ -64,7 +65,7 @@ export var WithProviders = /*#__PURE__*/function (_PureComponent) {
|
|
|
64
65
|
providers = _this$props.providers,
|
|
65
66
|
providerFactory = _this$props.providerFactory;
|
|
66
67
|
providers.forEach(function (name) {
|
|
67
|
-
providerFactory.unsubscribe(name, _this2.handleProvider);
|
|
68
|
+
providerFactory.unsubscribe(name, fg('platform_editor_fix_unsubscribe_of_provider') ? _this2.handleProviderIfMounted : _this2.handleProvider);
|
|
68
69
|
});
|
|
69
70
|
}
|
|
70
71
|
}, {
|
|
@@ -20,7 +20,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
|
|
|
20
20
|
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
21
21
|
import Layer from '../Layer';
|
|
22
22
|
var packageName = "@atlaskit/editor-common";
|
|
23
|
-
var packageVersion = "106.6.
|
|
23
|
+
var packageVersion = "106.6.2";
|
|
24
24
|
var halfFocusRing = 1;
|
|
25
25
|
var dropOffset = '0, 8';
|
|
26
26
|
// Ignored via go/ees005
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PureComponent } from 'react';
|
|
2
2
|
import type ProviderFactory from './provider-factory';
|
|
3
|
-
import {
|
|
3
|
+
import type { ProviderName, Providers } from './types';
|
|
4
4
|
export interface Props {
|
|
5
5
|
providerFactory: ProviderFactory;
|
|
6
6
|
providers: ProviderName[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PureComponent } from 'react';
|
|
2
2
|
import type ProviderFactory from './provider-factory';
|
|
3
|
-
import {
|
|
3
|
+
import type { ProviderName, Providers } from './types';
|
|
4
4
|
export interface Props {
|
|
5
5
|
providerFactory: ProviderFactory;
|
|
6
6
|
providers: ProviderName[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "106.6.
|
|
3
|
+
"version": "106.6.2",
|
|
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/"
|
|
@@ -147,7 +147,7 @@
|
|
|
147
147
|
"@atlaskit/link-datasource": "^4.11.0",
|
|
148
148
|
"@atlaskit/link-picker": "^3.5.0",
|
|
149
149
|
"@atlaskit/media-card": "^79.3.0",
|
|
150
|
-
"@atlaskit/media-client": "^33.
|
|
150
|
+
"@atlaskit/media-client": "^33.4.0",
|
|
151
151
|
"@atlaskit/media-client-react": "^4.1.0",
|
|
152
152
|
"@atlaskit/media-common": "^12.1.0",
|
|
153
153
|
"@atlaskit/media-file-preview": "^0.11.0",
|
|
@@ -397,6 +397,9 @@
|
|
|
397
397
|
},
|
|
398
398
|
"platform_editor_breakout_resizing_hello_release": {
|
|
399
399
|
"type": "boolean"
|
|
400
|
+
},
|
|
401
|
+
"platform_editor_fix_unsubscribe_of_provider": {
|
|
402
|
+
"type": "boolean"
|
|
400
403
|
}
|
|
401
404
|
}
|
|
402
405
|
}
|