@atlaskit/editor-common 110.38.2 → 110.39.0
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 +13 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/selection/utils.js +3 -2
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/selection/utils.js +3 -2
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/selection/utils.js +3 -2
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/selection/utils.d.ts +2 -1
- package/dist/types-ts4.5/selection/utils.d.ts +2 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 110.39.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`65ef204463ce4`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/65ef204463ce4) -
|
|
8
|
+
Add predicate param to expandBlockRange, add logic to cater for selection being broken in lists
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- [`f931cd4add05d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f931cd4add05d) -
|
|
13
|
+
EDITOR-2929 Define list of suggested items per node top level and nested
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
|
|
3
16
|
## 110.38.2
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
|
@@ -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
|
|
@@ -156,10 +156,11 @@ var deleteSelectedRange = exports.deleteSelectedRange = function deleteSelectedR
|
|
|
156
156
|
*
|
|
157
157
|
* @param $from The resolved start position
|
|
158
158
|
* @param $to The resolved end position
|
|
159
|
+
* @param predicate A predicate to determine if parent node is acceptable (see prosemirror-model/blockRange)
|
|
159
160
|
* @returns An object containing the expanded $from and $to resolved positions
|
|
160
161
|
*/
|
|
161
|
-
var expandToBlockRange = exports.expandToBlockRange = function expandToBlockRange($from, $to) {
|
|
162
|
-
var range = $from.blockRange($to);
|
|
162
|
+
var expandToBlockRange = exports.expandToBlockRange = function expandToBlockRange($from, $to, predicate) {
|
|
163
|
+
var range = $from.blockRange($to, predicate);
|
|
163
164
|
if (!range) {
|
|
164
165
|
return {
|
|
165
166
|
$from: $from,
|
|
@@ -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)({
|
|
@@ -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
|
|
@@ -155,10 +155,11 @@ export const deleteSelectedRange = tr => {
|
|
|
155
155
|
*
|
|
156
156
|
* @param $from The resolved start position
|
|
157
157
|
* @param $to The resolved end position
|
|
158
|
+
* @param predicate A predicate to determine if parent node is acceptable (see prosemirror-model/blockRange)
|
|
158
159
|
* @returns An object containing the expanded $from and $to resolved positions
|
|
159
160
|
*/
|
|
160
|
-
export const expandToBlockRange = ($from, $to) => {
|
|
161
|
-
const range = $from.blockRange($to);
|
|
161
|
+
export const expandToBlockRange = ($from, $to, predicate) => {
|
|
162
|
+
const range = $from.blockRange($to, predicate);
|
|
162
163
|
if (!range) {
|
|
163
164
|
return {
|
|
164
165
|
$from,
|
|
@@ -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({
|
|
@@ -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
|
|
@@ -143,10 +143,11 @@ export var deleteSelectedRange = function deleteSelectedRange(tr) {
|
|
|
143
143
|
*
|
|
144
144
|
* @param $from The resolved start position
|
|
145
145
|
* @param $to The resolved end position
|
|
146
|
+
* @param predicate A predicate to determine if parent node is acceptable (see prosemirror-model/blockRange)
|
|
146
147
|
* @returns An object containing the expanded $from and $to resolved positions
|
|
147
148
|
*/
|
|
148
|
-
export var expandToBlockRange = function expandToBlockRange($from, $to) {
|
|
149
|
-
var range = $from.blockRange($to);
|
|
149
|
+
export var expandToBlockRange = function expandToBlockRange($from, $to, predicate) {
|
|
150
|
+
var range = $from.blockRange($to, predicate);
|
|
150
151
|
if (!range) {
|
|
151
152
|
return {
|
|
152
153
|
$from: $from,
|
|
@@ -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({
|
|
@@ -30,9 +30,10 @@ export declare const deleteSelectedRange: (tr: Transaction) => Transaction;
|
|
|
30
30
|
*
|
|
31
31
|
* @param $from The resolved start position
|
|
32
32
|
* @param $to The resolved end position
|
|
33
|
+
* @param predicate A predicate to determine if parent node is acceptable (see prosemirror-model/blockRange)
|
|
33
34
|
* @returns An object containing the expanded $from and $to resolved positions
|
|
34
35
|
*/
|
|
35
|
-
export declare const expandToBlockRange: ($from: ResolvedPos, $to: ResolvedPos) => {
|
|
36
|
+
export declare const expandToBlockRange: ($from: ResolvedPos, $to: ResolvedPos, predicate?: (node: PMNode) => boolean) => {
|
|
36
37
|
$from: ResolvedPos;
|
|
37
38
|
$to: ResolvedPos;
|
|
38
39
|
};
|
|
@@ -30,9 +30,10 @@ export declare const deleteSelectedRange: (tr: Transaction) => Transaction;
|
|
|
30
30
|
*
|
|
31
31
|
* @param $from The resolved start position
|
|
32
32
|
* @param $to The resolved end position
|
|
33
|
+
* @param predicate A predicate to determine if parent node is acceptable (see prosemirror-model/blockRange)
|
|
33
34
|
* @returns An object containing the expanded $from and $to resolved positions
|
|
34
35
|
*/
|
|
35
|
-
export declare const expandToBlockRange: ($from: ResolvedPos, $to: ResolvedPos) => {
|
|
36
|
+
export declare const expandToBlockRange: ($from: ResolvedPos, $to: ResolvedPos, predicate?: (node: PMNode) => boolean) => {
|
|
36
37
|
$from: ResolvedPos;
|
|
37
38
|
$to: ResolvedPos;
|
|
38
39
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "110.
|
|
3
|
+
"version": "110.39.0",
|
|
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/"
|
|
@@ -74,8 +74,8 @@
|
|
|
74
74
|
"@atlaskit/prosemirror-history": "^0.2.0",
|
|
75
75
|
"@atlaskit/react-ufo": "^4.15.0",
|
|
76
76
|
"@atlaskit/section-message": "^8.9.0",
|
|
77
|
-
"@atlaskit/smart-card": "^43.
|
|
78
|
-
"@atlaskit/smart-user-picker": "^8.
|
|
77
|
+
"@atlaskit/smart-card": "^43.14.0",
|
|
78
|
+
"@atlaskit/smart-user-picker": "^8.5.0",
|
|
79
79
|
"@atlaskit/spinner": "^19.0.0",
|
|
80
80
|
"@atlaskit/status": "^3.0.0",
|
|
81
81
|
"@atlaskit/task-decision": "^19.2.0",
|