@atlaskit/editor-common 99.3.2 → 99.3.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 +8 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/ui/with-outer-listeners.js +1 -4
- package/dist/cjs/ui-react/with-react-editor-view-outer-listeners.js +1 -5
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/ui/with-outer-listeners.js +1 -4
- package/dist/es2019/ui-react/with-react-editor-view-outer-listeners.js +1 -5
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/ui/with-outer-listeners.js +1 -4
- package/dist/esm/ui-react/with-react-editor-view-outer-listeners.js +1 -5
- package/package.json +1 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 99.3.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#103440](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/103440)
|
|
8
|
+
[`2a34d82d95e38`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/2a34d82d95e38) -
|
|
9
|
+
Cleaned up feature flag that cleans up findDOMNode usages
|
|
10
|
+
|
|
3
11
|
## 99.3.2
|
|
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 && {}.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 = "99.3.
|
|
20
|
+
var packageVersion = "99.3.3";
|
|
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
|
|
@@ -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 = "99.3.
|
|
26
|
+
var packageVersion = "99.3.3";
|
|
27
27
|
var halfFocusRing = 1;
|
|
28
28
|
var dropOffset = '0, 8';
|
|
29
29
|
// Ignored via go/ees005
|
|
@@ -14,8 +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 = _interopRequireWildcard(require("react"));
|
|
17
|
-
var _reactDom = _interopRequireDefault(require("react-dom"));
|
|
18
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
19
17
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
20
18
|
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 && {}.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; }
|
|
21
19
|
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)); }
|
|
@@ -35,8 +33,7 @@ function withOuterListeners(Component) {
|
|
|
35
33
|
(0, _defineProperty2.default)(_this, "outsideClickTargetRef", /*#__PURE__*/_react.default.createRef());
|
|
36
34
|
(0, _defineProperty2.default)(_this, "handleClick", function (evt) {
|
|
37
35
|
var _this$outsideClickTar;
|
|
38
|
-
var domNode = (
|
|
39
|
-
|
|
36
|
+
var domNode = (_this$outsideClickTar = _this.outsideClickTargetRef.current) === null || _this$outsideClickTar === void 0 ? void 0 : _this$outsideClickTar.deref();
|
|
40
37
|
if (!domNode || evt.target instanceof Node && !domNode.contains(evt.target)) {
|
|
41
38
|
var _this$props$handleCli, _this$props;
|
|
42
39
|
(_this$props$handleCli = (_this$props = _this.props).handleClickOutside) === null || _this$props$handleCli === void 0 || _this$props$handleCli.call(_this$props, evt);
|
|
@@ -16,8 +16,6 @@ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/ge
|
|
|
16
16
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
17
17
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
18
18
|
var _react = _interopRequireWildcard(require("react"));
|
|
19
|
-
var _reactDom = _interopRequireDefault(require("react-dom"));
|
|
20
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
21
19
|
var _ReactEditorViewContext = _interopRequireDefault(require("./ReactEditorViewContext"));
|
|
22
20
|
var _excluded = ["handleClickOutside", "handleEnterKeydown", "handleEscapeKeydown", "closeOnTab"];
|
|
23
21
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
@@ -46,9 +44,7 @@ var WithOutsideClick = /*#__PURE__*/function (_PureComponent) {
|
|
|
46
44
|
if (!_this.props.isActiveComponent || !_this.props.handleClickOutside) {
|
|
47
45
|
return;
|
|
48
46
|
}
|
|
49
|
-
var domNode = (
|
|
50
|
-
// eslint-disable-next-line react/no-find-dom-node -- Ignored via go/ED-25883
|
|
51
|
-
_reactDom.default.findDOMNode(_this);
|
|
47
|
+
var domNode = (_this$props$outsideCl = _this.props.outsideClickTargetRef.current) === null || _this$props$outsideCl === void 0 ? void 0 : _this$props$outsideCl.deref();
|
|
52
48
|
if (!domNode || evt.target instanceof Node && !domNode.contains(evt.target)) {
|
|
53
49
|
var _this$props$editorVie;
|
|
54
50
|
_this.props.handleClickOutside(evt);
|
|
@@ -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 = "99.3.
|
|
4
|
+
const packageVersion = "99.3.3";
|
|
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
|
|
@@ -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 = "99.3.
|
|
16
|
+
const packageVersion = "99.3.3";
|
|
17
17
|
const halfFocusRing = 1;
|
|
18
18
|
const dropOffset = '0, 8';
|
|
19
19
|
// Ignored via go/ees005
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import React, { PureComponent } from 'react';
|
|
3
|
-
import ReactDOM from 'react-dom';
|
|
4
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
5
3
|
// Use this context to pass in the reference of the element that should be considered as the outside click target
|
|
6
4
|
// The outside click target is the element that should be clicked outside of to trigger the `handleClickOutside` event
|
|
7
5
|
export const PlainOutsideClickTargetRefContext = /*#__PURE__*/React.createContext(() => {});
|
|
@@ -12,8 +10,7 @@ export default function withOuterListeners(Component) {
|
|
|
12
10
|
_defineProperty(this, "outsideClickTargetRef", /*#__PURE__*/React.createRef());
|
|
13
11
|
_defineProperty(this, "handleClick", evt => {
|
|
14
12
|
var _this$outsideClickTar;
|
|
15
|
-
const domNode =
|
|
16
|
-
|
|
13
|
+
const domNode = (_this$outsideClickTar = this.outsideClickTargetRef.current) === null || _this$outsideClickTar === void 0 ? void 0 : _this$outsideClickTar.deref();
|
|
17
14
|
if (!domNode || evt.target instanceof Node && !domNode.contains(evt.target)) {
|
|
18
15
|
var _this$props$handleCli, _this$props;
|
|
19
16
|
(_this$props$handleCli = (_this$props = this.props).handleClickOutside) === null || _this$props$handleCli === void 0 ? void 0 : _this$props$handleCli.call(_this$props, evt);
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import React, { PureComponent, useCallback, useEffect, useRef, useState } from 'react';
|
|
3
|
-
import ReactDOM from 'react-dom';
|
|
4
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
5
3
|
import ReactEditorViewContext from './ReactEditorViewContext';
|
|
6
4
|
// Use this context to pass in the reference of the element that should be considered as the outside click target
|
|
7
5
|
// The outside click target is the element that should be clicked outside of to trigger the `handleClickOutside` event
|
|
@@ -19,9 +17,7 @@ class WithOutsideClick extends PureComponent {
|
|
|
19
17
|
if (!this.props.isActiveComponent || !this.props.handleClickOutside) {
|
|
20
18
|
return;
|
|
21
19
|
}
|
|
22
|
-
const domNode =
|
|
23
|
-
// eslint-disable-next-line react/no-find-dom-node -- Ignored via go/ED-25883
|
|
24
|
-
ReactDOM.findDOMNode(this);
|
|
20
|
+
const domNode = (_this$props$outsideCl = this.props.outsideClickTargetRef.current) === null || _this$props$outsideCl === void 0 ? void 0 : _this$props$outsideCl.deref();
|
|
25
21
|
if (!domNode || evt.target instanceof Node && !domNode.contains(evt.target)) {
|
|
26
22
|
var _this$props$editorVie;
|
|
27
23
|
this.props.handleClickOutside(evt);
|
|
@@ -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 = "99.3.
|
|
10
|
+
var packageVersion = "99.3.3";
|
|
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
|
|
@@ -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 = "99.3.
|
|
23
|
+
var packageVersion = "99.3.3";
|
|
24
24
|
var halfFocusRing = 1;
|
|
25
25
|
var dropOffset = '0, 8';
|
|
26
26
|
// Ignored via go/ees005
|
|
@@ -7,8 +7,6 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
7
7
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
8
8
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
9
9
|
import React, { PureComponent } from 'react';
|
|
10
|
-
import ReactDOM from 'react-dom';
|
|
11
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
12
10
|
// Use this context to pass in the reference of the element that should be considered as the outside click target
|
|
13
11
|
// The outside click target is the element that should be clicked outside of to trigger the `handleClickOutside` event
|
|
14
12
|
export var PlainOutsideClickTargetRefContext = /*#__PURE__*/React.createContext(function () {});
|
|
@@ -24,8 +22,7 @@ export default function withOuterListeners(Component) {
|
|
|
24
22
|
_defineProperty(_this, "outsideClickTargetRef", /*#__PURE__*/React.createRef());
|
|
25
23
|
_defineProperty(_this, "handleClick", function (evt) {
|
|
26
24
|
var _this$outsideClickTar;
|
|
27
|
-
var domNode =
|
|
28
|
-
|
|
25
|
+
var domNode = (_this$outsideClickTar = _this.outsideClickTargetRef.current) === null || _this$outsideClickTar === void 0 ? void 0 : _this$outsideClickTar.deref();
|
|
29
26
|
if (!domNode || evt.target instanceof Node && !domNode.contains(evt.target)) {
|
|
30
27
|
var _this$props$handleCli, _this$props;
|
|
31
28
|
(_this$props$handleCli = (_this$props = _this.props).handleClickOutside) === null || _this$props$handleCli === void 0 || _this$props$handleCli.call(_this$props, evt);
|
|
@@ -10,8 +10,6 @@ var _excluded = ["handleClickOutside", "handleEnterKeydown", "handleEscapeKeydow
|
|
|
10
10
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
11
11
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
12
12
|
import React, { PureComponent, useCallback, useEffect, useRef, useState } from 'react';
|
|
13
|
-
import ReactDOM from 'react-dom';
|
|
14
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
15
13
|
import ReactEditorViewContext from './ReactEditorViewContext';
|
|
16
14
|
// Use this context to pass in the reference of the element that should be considered as the outside click target
|
|
17
15
|
// The outside click target is the element that should be clicked outside of to trigger the `handleClickOutside` event
|
|
@@ -35,9 +33,7 @@ var WithOutsideClick = /*#__PURE__*/function (_PureComponent) {
|
|
|
35
33
|
if (!_this.props.isActiveComponent || !_this.props.handleClickOutside) {
|
|
36
34
|
return;
|
|
37
35
|
}
|
|
38
|
-
var domNode =
|
|
39
|
-
// eslint-disable-next-line react/no-find-dom-node -- Ignored via go/ED-25883
|
|
40
|
-
ReactDOM.findDOMNode(_this);
|
|
36
|
+
var domNode = (_this$props$outsideCl = _this.props.outsideClickTargetRef.current) === null || _this$props$outsideCl === void 0 ? void 0 : _this$props$outsideCl.deref();
|
|
41
37
|
if (!domNode || evt.target instanceof Node && !domNode.contains(evt.target)) {
|
|
42
38
|
var _this$props$editorVie;
|
|
43
39
|
_this.props.handleClickOutside(evt);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "99.3.
|
|
3
|
+
"version": "99.3.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/"
|
|
@@ -269,9 +269,6 @@
|
|
|
269
269
|
"platform_editor_heading_margin_fix": {
|
|
270
270
|
"type": "boolean"
|
|
271
271
|
},
|
|
272
|
-
"platform_editor_replace_finddomnode_in_common": {
|
|
273
|
-
"type": "boolean"
|
|
274
|
-
},
|
|
275
272
|
"platform-visual-refresh-icons": {
|
|
276
273
|
"type": "boolean"
|
|
277
274
|
},
|