@atlaskit/editor-common 88.5.0 → 88.5.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 +7 -0
- package/dist/cjs/code-block/index.js +8 -4
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/code-block/index.js +8 -4
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/code-block/index.js +8 -4
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/package.json +2 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 88.5.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`cbe3b04ebb0b6`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/cbe3b04ebb0b6) -
|
|
8
|
+
ED-24730 tweak transferCodeBlockWrappedValue to handle nodes being swapped by drag and drop.
|
|
9
|
+
|
|
3
10
|
## 88.5.0
|
|
4
11
|
|
|
5
12
|
### Minor Changes
|
|
@@ -23,9 +23,13 @@ var transferCodeBlockWrappedValue = exports.transferCodeBlockWrappedValue = func
|
|
|
23
23
|
if (!(0, _platformFeatureFlags.fg)('editor_support_code_block_wrapping')) {
|
|
24
24
|
return;
|
|
25
25
|
}
|
|
26
|
-
|
|
27
|
-
if
|
|
28
|
-
|
|
29
|
-
|
|
26
|
+
|
|
27
|
+
// Don't overwrite the value for the new node if it already exists.
|
|
28
|
+
// This can happen when a drag&drop is swapping nodes.
|
|
29
|
+
if (codeBlockWrappedStates.has(newCodeBlockNode)) {
|
|
30
|
+
return;
|
|
30
31
|
}
|
|
32
|
+
var previousValue = isCodeBlockWordWrapEnabled(oldCodeBlockNode);
|
|
33
|
+
codeBlockWrappedStates.set(newCodeBlockNode, previousValue);
|
|
34
|
+
codeBlockWrappedStates.delete(oldCodeBlockNode);
|
|
31
35
|
};
|
|
@@ -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 && Object.prototype.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 = "88.5.
|
|
20
|
+
var packageVersion = "88.5.1";
|
|
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 = "88.5.
|
|
26
|
+
var packageVersion = "88.5.1";
|
|
27
27
|
var halfFocusRing = 1;
|
|
28
28
|
var dropOffset = '0, 8';
|
|
29
29
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -17,9 +17,13 @@ export const transferCodeBlockWrappedValue = (oldCodeBlockNode, newCodeBlockNode
|
|
|
17
17
|
if (!fg('editor_support_code_block_wrapping')) {
|
|
18
18
|
return;
|
|
19
19
|
}
|
|
20
|
-
|
|
21
|
-
if
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
|
|
21
|
+
// Don't overwrite the value for the new node if it already exists.
|
|
22
|
+
// This can happen when a drag&drop is swapping nodes.
|
|
23
|
+
if (codeBlockWrappedStates.has(newCodeBlockNode)) {
|
|
24
|
+
return;
|
|
24
25
|
}
|
|
26
|
+
const previousValue = isCodeBlockWordWrapEnabled(oldCodeBlockNode);
|
|
27
|
+
codeBlockWrappedStates.set(newCodeBlockNode, previousValue);
|
|
28
|
+
codeBlockWrappedStates.delete(oldCodeBlockNode);
|
|
25
29
|
};
|
|
@@ -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 = "88.5.
|
|
4
|
+
const packageVersion = "88.5.1";
|
|
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
|
|
@@ -12,7 +12,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
|
|
|
12
12
|
import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
|
|
13
13
|
import Layer from '../Layer';
|
|
14
14
|
const packageName = "@atlaskit/editor-common";
|
|
15
|
-
const packageVersion = "88.5.
|
|
15
|
+
const packageVersion = "88.5.1";
|
|
16
16
|
const halfFocusRing = 1;
|
|
17
17
|
const dropOffset = '0, 8';
|
|
18
18
|
class DropList extends Component {
|
|
@@ -17,9 +17,13 @@ export var transferCodeBlockWrappedValue = function transferCodeBlockWrappedValu
|
|
|
17
17
|
if (!fg('editor_support_code_block_wrapping')) {
|
|
18
18
|
return;
|
|
19
19
|
}
|
|
20
|
-
|
|
21
|
-
if
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
|
|
21
|
+
// Don't overwrite the value for the new node if it already exists.
|
|
22
|
+
// This can happen when a drag&drop is swapping nodes.
|
|
23
|
+
if (codeBlockWrappedStates.has(newCodeBlockNode)) {
|
|
24
|
+
return;
|
|
24
25
|
}
|
|
26
|
+
var previousValue = isCodeBlockWordWrapEnabled(oldCodeBlockNode);
|
|
27
|
+
codeBlockWrappedStates.set(newCodeBlockNode, previousValue);
|
|
28
|
+
codeBlockWrappedStates.delete(oldCodeBlockNode);
|
|
25
29
|
};
|
|
@@ -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 = "88.5.
|
|
10
|
+
var packageVersion = "88.5.1";
|
|
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 { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
|
|
|
20
20
|
import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
|
|
21
21
|
import Layer from '../Layer';
|
|
22
22
|
var packageName = "@atlaskit/editor-common";
|
|
23
|
-
var packageVersion = "88.5.
|
|
23
|
+
var packageVersion = "88.5.1";
|
|
24
24
|
var halfFocusRing = 1;
|
|
25
25
|
var dropOffset = '0, 8';
|
|
26
26
|
var DropList = /*#__PURE__*/function (_Component) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "88.5.
|
|
3
|
+
"version": "88.5.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/"
|
|
@@ -24,9 +24,7 @@
|
|
|
24
24
|
"atlaskit:src": "src/index.ts",
|
|
25
25
|
"atlassian": {
|
|
26
26
|
"team": "Editor",
|
|
27
|
-
"inPublicMirror": true,
|
|
28
27
|
"singleton": true,
|
|
29
|
-
"releaseModel": "continuous",
|
|
30
28
|
"runReact18": true
|
|
31
29
|
},
|
|
32
30
|
"af:exports": {
|
|
@@ -131,7 +129,7 @@
|
|
|
131
129
|
"@atlaskit/mention": "^23.2.0",
|
|
132
130
|
"@atlaskit/menu": "^2.12.0",
|
|
133
131
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
134
|
-
"@atlaskit/primitives": "^12.
|
|
132
|
+
"@atlaskit/primitives": "^12.1.0",
|
|
135
133
|
"@atlaskit/profilecard": "^19.24.0",
|
|
136
134
|
"@atlaskit/section-message": "^6.6.0",
|
|
137
135
|
"@atlaskit/smart-card": "^27.19.0",
|