@atlaskit/editor-common 89.1.1 → 89.1.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 +12 -0
- package/dist/cjs/insert/index.js +5 -1
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/insert/index.js +5 -1
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/insert/index.js +5 -1
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 89.1.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#140615](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/140615)
|
|
8
|
+
[`9fcd397540837`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/9fcd397540837) -
|
|
9
|
+
[ux] [ED-24523] Fix selection set after inserting codeblock via typeahead or toolbar
|
|
10
|
+
- [#140550](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/140550)
|
|
11
|
+
[`b4f8f21029b8f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b4f8f21029b8f) -
|
|
12
|
+
Update main toolbar icon for right rail experiment, add analytics
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
3
15
|
## 89.1.1
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/cjs/insert/index.js
CHANGED
|
@@ -298,7 +298,11 @@ function contentAllowedInCodeBlock(state) {
|
|
|
298
298
|
$from = _state$selection.$from,
|
|
299
299
|
$to = _state$selection.$to;
|
|
300
300
|
var isAllowedChild = true;
|
|
301
|
-
state.doc.nodesBetween($from.pos, $to.pos, function (node) {
|
|
301
|
+
state.doc.nodesBetween($from.pos, $to.pos, function (node, pos) {
|
|
302
|
+
var withinSelection = $from.pos <= pos && pos + node.nodeSize <= $to.pos;
|
|
303
|
+
if (!withinSelection) {
|
|
304
|
+
return;
|
|
305
|
+
}
|
|
302
306
|
if (!isAllowedChild) {
|
|
303
307
|
return false;
|
|
304
308
|
}
|
|
@@ -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 = "89.1.
|
|
20
|
+
var packageVersion = "89.1.2";
|
|
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
|
|
@@ -25,7 +25,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
25
25
|
* @jsx jsx
|
|
26
26
|
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
27
27
|
var packageName = "@atlaskit/editor-common";
|
|
28
|
-
var packageVersion = "89.1.
|
|
28
|
+
var packageVersion = "89.1.2";
|
|
29
29
|
var halfFocusRing = 1;
|
|
30
30
|
var dropOffset = '0, 8';
|
|
31
31
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -292,7 +292,11 @@ export function contentAllowedInCodeBlock(state) {
|
|
|
292
292
|
$to
|
|
293
293
|
} = state.selection;
|
|
294
294
|
let isAllowedChild = true;
|
|
295
|
-
state.doc.nodesBetween($from.pos, $to.pos, node => {
|
|
295
|
+
state.doc.nodesBetween($from.pos, $to.pos, (node, pos) => {
|
|
296
|
+
const withinSelection = $from.pos <= pos && pos + node.nodeSize <= $to.pos;
|
|
297
|
+
if (!withinSelection) {
|
|
298
|
+
return;
|
|
299
|
+
}
|
|
296
300
|
if (!isAllowedChild) {
|
|
297
301
|
return false;
|
|
298
302
|
}
|
|
@@ -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 = "89.1.
|
|
4
|
+
const packageVersion = "89.1.2";
|
|
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
|
|
@@ -14,7 +14,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
|
14
14
|
import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
|
|
15
15
|
import Layer from '../Layer';
|
|
16
16
|
const packageName = "@atlaskit/editor-common";
|
|
17
|
-
const packageVersion = "89.1.
|
|
17
|
+
const packageVersion = "89.1.2";
|
|
18
18
|
const halfFocusRing = 1;
|
|
19
19
|
const dropOffset = '0, 8';
|
|
20
20
|
class DropList extends Component {
|
package/dist/esm/insert/index.js
CHANGED
|
@@ -289,7 +289,11 @@ export function contentAllowedInCodeBlock(state) {
|
|
|
289
289
|
$from = _state$selection.$from,
|
|
290
290
|
$to = _state$selection.$to;
|
|
291
291
|
var isAllowedChild = true;
|
|
292
|
-
state.doc.nodesBetween($from.pos, $to.pos, function (node) {
|
|
292
|
+
state.doc.nodesBetween($from.pos, $to.pos, function (node, pos) {
|
|
293
|
+
var withinSelection = $from.pos <= pos && pos + node.nodeSize <= $to.pos;
|
|
294
|
+
if (!withinSelection) {
|
|
295
|
+
return;
|
|
296
|
+
}
|
|
293
297
|
if (!isAllowedChild) {
|
|
294
298
|
return false;
|
|
295
299
|
}
|
|
@@ -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 = "89.1.
|
|
10
|
+
var packageVersion = "89.1.2";
|
|
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
|
|
@@ -22,7 +22,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
|
22
22
|
import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
|
|
23
23
|
import Layer from '../Layer';
|
|
24
24
|
var packageName = "@atlaskit/editor-common";
|
|
25
|
-
var packageVersion = "89.1.
|
|
25
|
+
var packageVersion = "89.1.2";
|
|
26
26
|
var halfFocusRing = 1;
|
|
27
27
|
var dropOffset = '0, 8';
|
|
28
28
|
var DropList = /*#__PURE__*/function (_Component) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "89.1.
|
|
3
|
+
"version": "89.1.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/"
|
|
@@ -125,7 +125,7 @@
|
|
|
125
125
|
"@atlaskit/editor-shared-styles": "^2.13.0",
|
|
126
126
|
"@atlaskit/editor-tables": "^2.8.0",
|
|
127
127
|
"@atlaskit/emoji": "^67.7.0",
|
|
128
|
-
"@atlaskit/icon": "^22.
|
|
128
|
+
"@atlaskit/icon": "^22.18.0",
|
|
129
129
|
"@atlaskit/icon-object": "^6.5.0",
|
|
130
130
|
"@atlaskit/link-datasource": "^3.0.0",
|
|
131
131
|
"@atlaskit/link-picker": "^1.45.0",
|