@atlaskit/editor-core 193.28.4 → 193.28.6
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 +17 -0
- package/dist/cjs/index.js +2 -1
- package/dist/cjs/test-utils.js +1 -3
- package/dist/cjs/utils/document.js +0 -8
- package/dist/cjs/utils/index.js +0 -38
- package/dist/cjs/utils/nodes.js +0 -30
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/index.js +2 -1
- package/dist/es2019/test-utils.js +1 -3
- package/dist/es2019/utils/document.js +1 -8
- package/dist/es2019/utils/index.js +1 -3
- package/dist/es2019/utils/nodes.js +1 -1
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/index.js +2 -1
- package/dist/esm/test-utils.js +1 -3
- package/dist/esm/utils/document.js +1 -8
- package/dist/esm/utils/index.js +1 -3
- package/dist/esm/utils/nodes.js +1 -1
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/composable-editor/editor-internal.d.ts +2 -1
- package/dist/types/create-editor/ReactEditorView.d.ts +2 -2
- package/dist/types/create-editor/create-preset.d.ts +46 -46
- package/dist/types/index.d.ts +2 -1
- package/dist/types/presets/context.d.ts +2 -2
- package/dist/types/presets/default.d.ts +18 -18
- package/dist/types/presets/universal.d.ts +46 -46
- package/dist/types/presets/useUniversalPreset.d.ts +46 -46
- package/dist/types/test-utils.d.ts +2 -2
- package/dist/types/types/editor-props.d.ts +3 -3
- package/dist/types/use-preset.d.ts +5 -6
- package/dist/types/utils/document.d.ts +0 -3
- package/dist/types/utils/index.d.ts +1 -3
- package/dist/types/utils/nodes.d.ts +1 -1
- package/dist/types-ts4.5/composable-editor/editor-internal.d.ts +2 -1
- package/dist/types-ts4.5/create-editor/ReactEditorView.d.ts +2 -2
- package/dist/types-ts4.5/create-editor/create-preset.d.ts +122 -122
- package/dist/types-ts4.5/index.d.ts +2 -1
- package/dist/types-ts4.5/presets/context.d.ts +2 -2
- package/dist/types-ts4.5/presets/default.d.ts +30 -30
- package/dist/types-ts4.5/presets/universal.d.ts +122 -122
- package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +122 -122
- package/dist/types-ts4.5/test-utils.d.ts +2 -2
- package/dist/types-ts4.5/types/editor-props.d.ts +3 -3
- package/dist/types-ts4.5/use-preset.d.ts +5 -10
- package/dist/types-ts4.5/utils/document.d.ts +0 -3
- package/dist/types-ts4.5/utils/index.d.ts +1 -3
- package/dist/types-ts4.5/utils/nodes.d.ts +1 -1
- package/package.json +6 -6
- package/tsconfig.json +3 -3
- package/dist/cjs/utils/clipboard.js +0 -24
- package/dist/cjs/utils/commands.js +0 -22
- package/dist/cjs/utils/dom.js +0 -60
- package/dist/cjs/utils/plugin-state-factory.js +0 -12
- package/dist/cjs/utils/selection.js +0 -38
- package/dist/cjs/utils/slice.js +0 -36
- package/dist/es2019/utils/clipboard.js +0 -1
- package/dist/es2019/utils/commands.js +0 -19
- package/dist/es2019/utils/dom.js +0 -1
- package/dist/es2019/utils/plugin-state-factory.js +0 -1
- package/dist/es2019/utils/selection.js +0 -9
- package/dist/es2019/utils/slice.js +0 -1
- package/dist/esm/utils/clipboard.js +0 -1
- package/dist/esm/utils/commands.js +0 -17
- package/dist/esm/utils/dom.js +0 -1
- package/dist/esm/utils/plugin-state-factory.js +0 -1
- package/dist/esm/utils/selection.js +0 -9
- package/dist/esm/utils/slice.js +0 -1
- package/dist/types/utils/clipboard.d.ts +0 -1
- package/dist/types/utils/commands.d.ts +0 -13
- package/dist/types/utils/dom.d.ts +0 -2
- package/dist/types/utils/plugin-state-factory.d.ts +0 -2
- package/dist/types/utils/selection.d.ts +0 -3
- package/dist/types/utils/slice.d.ts +0 -2
- package/dist/types-ts4.5/utils/clipboard.d.ts +0 -1
- package/dist/types-ts4.5/utils/commands.d.ts +0 -13
- package/dist/types-ts4.5/utils/dom.d.ts +0 -2
- package/dist/types-ts4.5/utils/plugin-state-factory.d.ts +0 -2
- package/dist/types-ts4.5/utils/selection.d.ts +0 -3
- package/dist/types-ts4.5/utils/slice.d.ts +0 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 193.28.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#110942](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/110942)
|
|
8
|
+
[`aa339aee9aa7d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/aa339aee9aa7d) -
|
|
9
|
+
[ED-23431] Fix EditorPluginAPI type system
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 193.28.5
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- [#114448](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/114448)
|
|
17
|
+
[`68d40145e3e0a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/68d40145e3e0a) -
|
|
18
|
+
Remove unused barrel util files.
|
|
19
|
+
|
|
3
20
|
## 193.28.4
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
package/dist/cjs/index.js
CHANGED
|
@@ -157,7 +157,7 @@ Object.defineProperty(exports, "name", {
|
|
|
157
157
|
Object.defineProperty(exports, "setTextSelection", {
|
|
158
158
|
enumerable: true,
|
|
159
159
|
get: function get() {
|
|
160
|
-
return
|
|
160
|
+
return _utils2.setTextSelection;
|
|
161
161
|
}
|
|
162
162
|
});
|
|
163
163
|
Object.defineProperty(exports, "version", {
|
|
@@ -181,6 +181,7 @@ var _teamResource = require("@atlaskit/mention/team-resource");
|
|
|
181
181
|
var _annotation = require("@atlaskit/editor-common/annotation");
|
|
182
182
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
183
183
|
var _utils = require("./utils");
|
|
184
|
+
var _utils2 = require("@atlaskit/editor-common/utils");
|
|
184
185
|
var _actions = _interopRequireDefault(require("./actions"));
|
|
185
186
|
var _portalProvider = require("@atlaskit/editor-common/portal-provider");
|
|
186
187
|
var _ContentStyles = require("./ui/ContentStyles");
|
package/dist/cjs/test-utils.js
CHANGED
|
@@ -94,9 +94,7 @@ var createPMSchemaAndPlugins = exports.createPMSchemaAndPlugins = function creat
|
|
|
94
94
|
// we are ignoring the below because while this logic knows if
|
|
95
95
|
// basePlugin is in the inputPreset, the type system does not
|
|
96
96
|
// so it marks it as a duplicate plugin :) - this is fine
|
|
97
|
-
var preset = inputPreset.has(_base.basePlugin) ? inputPreset :
|
|
98
|
-
// @ts-expect-error
|
|
99
|
-
inputPreset.add(_base.basePlugin);
|
|
97
|
+
var preset = inputPreset.has(_base.basePlugin) ? inputPreset : inputPreset.add(_base.basePlugin);
|
|
100
98
|
editorPlugins = preset.build({
|
|
101
99
|
pluginInjectionAPI: pluginFactoryParams.pluginInjectionAPI
|
|
102
100
|
});
|
|
@@ -12,7 +12,6 @@ Object.defineProperty(exports, "isInEmptyLine", {
|
|
|
12
12
|
return _utils.isInEmptyLine;
|
|
13
13
|
}
|
|
14
14
|
});
|
|
15
|
-
exports.nodesBetweenChanged = nodesBetweenChanged;
|
|
16
15
|
exports.processRawFragmentValue = processRawFragmentValue;
|
|
17
16
|
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
18
17
|
var _utils = require("@atlaskit/editor-common/utils");
|
|
@@ -32,13 +31,6 @@ function processRawFragmentValue(schema, value, providerFactory, sanitizePrivate
|
|
|
32
31
|
}
|
|
33
32
|
return _model.Fragment.from(adfEntities);
|
|
34
33
|
}
|
|
35
|
-
function nodesBetweenChanged(tr, f, startPos) {
|
|
36
|
-
var stepRange = (0, _utils.getStepRange)(tr);
|
|
37
|
-
if (!stepRange) {
|
|
38
|
-
return;
|
|
39
|
-
}
|
|
40
|
-
tr.doc.nodesBetween(stepRange.from, stepRange.to, f, startPos);
|
|
41
|
-
}
|
|
42
34
|
function getNodesCount(node) {
|
|
43
35
|
var count = {};
|
|
44
36
|
node.nodesBetween(0, node.nodeSize - 2, function (node) {
|
package/dist/cjs/utils/index.js
CHANGED
|
@@ -59,19 +59,7 @@ Object.defineProperty(exports, "isLastItemMediaGroup", {
|
|
|
59
59
|
return _utils.isLastItemMediaGroup;
|
|
60
60
|
}
|
|
61
61
|
});
|
|
62
|
-
Object.defineProperty(exports, "isLinkMark", {
|
|
63
|
-
enumerable: true,
|
|
64
|
-
get: function get() {
|
|
65
|
-
return _nodes.isLinkMark;
|
|
66
|
-
}
|
|
67
|
-
});
|
|
68
62
|
exports.isMarkTypeAllowedInCurrentSelection = isMarkTypeAllowedInCurrentSelection;
|
|
69
|
-
Object.defineProperty(exports, "isParagraph", {
|
|
70
|
-
enumerable: true,
|
|
71
|
-
get: function get() {
|
|
72
|
-
return _nodes.isParagraph;
|
|
73
|
-
}
|
|
74
|
-
});
|
|
75
63
|
Object.defineProperty(exports, "isSelectionInsideLastNodeInDocument", {
|
|
76
64
|
enumerable: true,
|
|
77
65
|
get: function get() {
|
|
@@ -79,12 +67,6 @@ Object.defineProperty(exports, "isSelectionInsideLastNodeInDocument", {
|
|
|
79
67
|
}
|
|
80
68
|
});
|
|
81
69
|
exports.isTemporary = void 0;
|
|
82
|
-
Object.defineProperty(exports, "isText", {
|
|
83
|
-
enumerable: true,
|
|
84
|
-
get: function get() {
|
|
85
|
-
return _nodes.isText;
|
|
86
|
-
}
|
|
87
|
-
});
|
|
88
70
|
Object.defineProperty(exports, "isTextSelection", {
|
|
89
71
|
enumerable: true,
|
|
90
72
|
get: function get() {
|
|
@@ -103,30 +85,12 @@ Object.defineProperty(exports, "nodeToJSON", {
|
|
|
103
85
|
return _utils.nodeToJSON;
|
|
104
86
|
}
|
|
105
87
|
});
|
|
106
|
-
Object.defineProperty(exports, "nodesBetweenChanged", {
|
|
107
|
-
enumerable: true,
|
|
108
|
-
get: function get() {
|
|
109
|
-
return _document.nodesBetweenChanged;
|
|
110
|
-
}
|
|
111
|
-
});
|
|
112
88
|
Object.defineProperty(exports, "nonNullable", {
|
|
113
89
|
enumerable: true,
|
|
114
90
|
get: function get() {
|
|
115
91
|
return _utils.nonNullable;
|
|
116
92
|
}
|
|
117
93
|
});
|
|
118
|
-
Object.defineProperty(exports, "setNodeSelection", {
|
|
119
|
-
enumerable: true,
|
|
120
|
-
get: function get() {
|
|
121
|
-
return _selection.setNodeSelection;
|
|
122
|
-
}
|
|
123
|
-
});
|
|
124
|
-
Object.defineProperty(exports, "setTextSelection", {
|
|
125
|
-
enumerable: true,
|
|
126
|
-
get: function get() {
|
|
127
|
-
return _selection.setTextSelection;
|
|
128
|
-
}
|
|
129
|
-
});
|
|
130
94
|
exports.stringRepeat = stringRepeat;
|
|
131
95
|
exports.sum = sum;
|
|
132
96
|
Object.defineProperty(exports, "toJSON", {
|
|
@@ -140,8 +104,6 @@ var _commands = require("@atlaskit/editor-prosemirror/commands");
|
|
|
140
104
|
var _utils = require("@atlaskit/editor-common/utils");
|
|
141
105
|
var _coreUtils = require("@atlaskit/editor-common/core-utils");
|
|
142
106
|
var _document = require("./document");
|
|
143
|
-
var _nodes = require("./nodes");
|
|
144
|
-
var _selection = require("./selection");
|
|
145
107
|
var _measureEnum = _interopRequireDefault(require("./performance/measure-enum"));
|
|
146
108
|
var _steps = require("@atlaskit/adf-schema/steps");
|
|
147
109
|
function isMarkTypeCompatibleWithMark(markType, mark) {
|
package/dist/cjs/utils/nodes.js
CHANGED
|
@@ -15,42 +15,12 @@ Object.defineProperty(exports, "findChangedNodesFromTransaction", {
|
|
|
15
15
|
return _utils.findChangedNodesFromTransaction;
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
|
-
Object.defineProperty(exports, "isLinkMark", {
|
|
19
|
-
enumerable: true,
|
|
20
|
-
get: function get() {
|
|
21
|
-
return _utils.isLinkMark;
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
18
|
Object.defineProperty(exports, "isNodeSelectedOrInRange", {
|
|
25
19
|
enumerable: true,
|
|
26
20
|
get: function get() {
|
|
27
21
|
return _utils.isNodeSelectedOrInRange;
|
|
28
22
|
}
|
|
29
23
|
});
|
|
30
|
-
Object.defineProperty(exports, "isParagraph", {
|
|
31
|
-
enumerable: true,
|
|
32
|
-
get: function get() {
|
|
33
|
-
return _utils.isParagraph;
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
Object.defineProperty(exports, "isSupportedInParent", {
|
|
37
|
-
enumerable: true,
|
|
38
|
-
get: function get() {
|
|
39
|
-
return _utils.isSupportedInParent;
|
|
40
|
-
}
|
|
41
|
-
});
|
|
42
|
-
Object.defineProperty(exports, "isText", {
|
|
43
|
-
enumerable: true,
|
|
44
|
-
get: function get() {
|
|
45
|
-
return _utils.isText;
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
Object.defineProperty(exports, "isType", {
|
|
49
|
-
enumerable: true,
|
|
50
|
-
get: function get() {
|
|
51
|
-
return _utils.isType;
|
|
52
|
-
}
|
|
53
|
-
});
|
|
54
24
|
Object.defineProperty(exports, "validNode", {
|
|
55
25
|
enumerable: true,
|
|
56
26
|
get: function get() {
|
package/dist/es2019/index.js
CHANGED
|
@@ -30,7 +30,8 @@ export { AnnotationUpdateEmitter } from '@atlaskit/editor-common/annotation';
|
|
|
30
30
|
|
|
31
31
|
export { INPUT_METHOD, ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
32
32
|
// Used in editor-test-helpers and mobile bridge
|
|
33
|
-
export {
|
|
33
|
+
export { getNodesCount, measurements } from './utils';
|
|
34
|
+
export { setTextSelection } from '@atlaskit/editor-common/utils';
|
|
34
35
|
export { default as EditorActions } from './actions';
|
|
35
36
|
// Re-export from provider factory to not cause a breaking change
|
|
36
37
|
|
|
@@ -57,9 +57,7 @@ export const createPMSchemaAndPlugins = (inputPreset = new EditorPresetBuilder()
|
|
|
57
57
|
// we are ignoring the below because while this logic knows if
|
|
58
58
|
// basePlugin is in the inputPreset, the type system does not
|
|
59
59
|
// so it marks it as a duplicate plugin :) - this is fine
|
|
60
|
-
const preset = inputPreset.has(basePlugin) ? inputPreset :
|
|
61
|
-
// @ts-expect-error
|
|
62
|
-
inputPreset.add(basePlugin);
|
|
60
|
+
const preset = inputPreset.has(basePlugin) ? inputPreset : inputPreset.add(basePlugin);
|
|
63
61
|
editorPlugins = preset.build({
|
|
64
62
|
pluginInjectionAPI: pluginFactoryParams.pluginInjectionAPI
|
|
65
63
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { processRawValue } from '@atlaskit/editor-common/utils';
|
|
2
2
|
import { Fragment } from '@atlaskit/editor-prosemirror/model';
|
|
3
3
|
import { getBreakoutMode } from './node-width';
|
|
4
4
|
export { isInEmptyLine } from '@atlaskit/editor-common/utils';
|
|
@@ -12,13 +12,6 @@ export function processRawFragmentValue(schema, value, providerFactory, sanitize
|
|
|
12
12
|
}
|
|
13
13
|
return Fragment.from(adfEntities);
|
|
14
14
|
}
|
|
15
|
-
export function nodesBetweenChanged(tr, f, startPos) {
|
|
16
|
-
const stepRange = getStepRange(tr);
|
|
17
|
-
if (!stepRange) {
|
|
18
|
-
return;
|
|
19
|
-
}
|
|
20
|
-
tr.doc.nodesBetween(stepRange.from, stepRange.to, f, startPos);
|
|
21
|
-
}
|
|
22
15
|
export function getNodesCount(node) {
|
|
23
16
|
let count = {};
|
|
24
17
|
node.nodesBetween(0, node.nodeSize - 2, node => {
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { toggleMark } from '@atlaskit/editor-prosemirror/commands';
|
|
2
2
|
export { isEmptyNode, isSelectionInsideLastNodeInDocument, checkNodeDown, insideTableCell, isInListItem, toJSON, nodeToJSON } from '@atlaskit/editor-common/utils';
|
|
3
3
|
export { insideTable } from '@atlaskit/editor-common/core-utils';
|
|
4
|
-
export {
|
|
5
|
-
export { isParagraph, isText, isLinkMark } from './nodes';
|
|
6
|
-
export { setNodeSelection, setTextSelection } from './selection';
|
|
4
|
+
export { getNodesCount } from './document';
|
|
7
5
|
export { default as measurements } from './performance/measure-enum';
|
|
8
6
|
function isMarkTypeCompatibleWithMark(markType, mark) {
|
|
9
7
|
return !mark.type.excludes(markType) && !markType.excludes(mark.type);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { findChangedNodesFromTransaction, validNode, validateNodes,
|
|
1
|
+
export { findChangedNodesFromTransaction, validNode, validateNodes, SelectedState, isNodeSelectedOrInRange } from '@atlaskit/editor-common/utils';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "193.28.
|
|
2
|
+
export const version = "193.28.6";
|
package/dist/esm/index.js
CHANGED
|
@@ -30,7 +30,8 @@ export { AnnotationUpdateEmitter } from '@atlaskit/editor-common/annotation';
|
|
|
30
30
|
|
|
31
31
|
export { INPUT_METHOD, ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
32
32
|
// Used in editor-test-helpers and mobile bridge
|
|
33
|
-
export {
|
|
33
|
+
export { getNodesCount, measurements } from './utils';
|
|
34
|
+
export { setTextSelection } from '@atlaskit/editor-common/utils';
|
|
34
35
|
export { default as EditorActions } from './actions';
|
|
35
36
|
// Re-export from provider factory to not cause a breaking change
|
|
36
37
|
|
package/dist/esm/test-utils.js
CHANGED
|
@@ -66,9 +66,7 @@ export var createPMSchemaAndPlugins = function createPMSchemaAndPlugins() {
|
|
|
66
66
|
// we are ignoring the below because while this logic knows if
|
|
67
67
|
// basePlugin is in the inputPreset, the type system does not
|
|
68
68
|
// so it marks it as a duplicate plugin :) - this is fine
|
|
69
|
-
var preset = inputPreset.has(basePlugin) ? inputPreset :
|
|
70
|
-
// @ts-expect-error
|
|
71
|
-
inputPreset.add(basePlugin);
|
|
69
|
+
var preset = inputPreset.has(basePlugin) ? inputPreset : inputPreset.add(basePlugin);
|
|
72
70
|
editorPlugins = preset.build({
|
|
73
71
|
pluginInjectionAPI: pluginFactoryParams.pluginInjectionAPI
|
|
74
72
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
2
|
-
import {
|
|
2
|
+
import { processRawValue } from '@atlaskit/editor-common/utils';
|
|
3
3
|
import { Fragment } from '@atlaskit/editor-prosemirror/model';
|
|
4
4
|
import { getBreakoutMode } from './node-width';
|
|
5
5
|
export { isInEmptyLine } from '@atlaskit/editor-common/utils';
|
|
@@ -17,13 +17,6 @@ export function processRawFragmentValue(schema, value, providerFactory, sanitize
|
|
|
17
17
|
}
|
|
18
18
|
return Fragment.from(adfEntities);
|
|
19
19
|
}
|
|
20
|
-
export function nodesBetweenChanged(tr, f, startPos) {
|
|
21
|
-
var stepRange = getStepRange(tr);
|
|
22
|
-
if (!stepRange) {
|
|
23
|
-
return;
|
|
24
|
-
}
|
|
25
|
-
tr.doc.nodesBetween(stepRange.from, stepRange.to, f, startPos);
|
|
26
|
-
}
|
|
27
20
|
export function getNodesCount(node) {
|
|
28
21
|
var count = {};
|
|
29
22
|
node.nodesBetween(0, node.nodeSize - 2, function (node) {
|
package/dist/esm/utils/index.js
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { toggleMark } from '@atlaskit/editor-prosemirror/commands';
|
|
2
2
|
export { isEmptyNode, isSelectionInsideLastNodeInDocument, checkNodeDown, insideTableCell, isInListItem, toJSON, nodeToJSON } from '@atlaskit/editor-common/utils';
|
|
3
3
|
export { insideTable } from '@atlaskit/editor-common/core-utils';
|
|
4
|
-
export {
|
|
5
|
-
export { isParagraph, isText, isLinkMark } from './nodes';
|
|
6
|
-
export { setNodeSelection, setTextSelection } from './selection';
|
|
4
|
+
export { getNodesCount } from './document';
|
|
7
5
|
export { default as measurements } from './performance/measure-enum';
|
|
8
6
|
function isMarkTypeCompatibleWithMark(markType, mark) {
|
|
9
7
|
return !mark.type.excludes(markType) && !markType.excludes(mark.type);
|
package/dist/esm/utils/nodes.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { findChangedNodesFromTransaction, validNode, validateNodes,
|
|
1
|
+
export { findChangedNodesFromTransaction, validNode, validateNodes, SelectedState, isNodeSelectedOrInRange } from '@atlaskit/editor-common/utils';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "193.28.
|
|
2
|
+
export var version = "193.28.6";
|
|
@@ -3,8 +3,9 @@ import { jsx } from '@emotion/react';
|
|
|
3
3
|
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
4
4
|
import type { FireAnalyticsCallback } from '@atlaskit/editor-common/analytics';
|
|
5
5
|
import type { EditorPresetBuilder } from '@atlaskit/editor-common/preset';
|
|
6
|
+
import type { AllEditorPresetPluginTypes } from '@atlaskit/editor-common/preset';
|
|
6
7
|
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
7
|
-
import type {
|
|
8
|
+
import type { Transformer } from '@atlaskit/editor-common/types';
|
|
8
9
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
9
10
|
import type EditorActions from '../actions';
|
|
10
11
|
import type { EventDispatcher } from '../event-dispatcher';
|
|
@@ -5,10 +5,10 @@ import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
|
5
5
|
import { FULL_WIDTH_MODE } from '@atlaskit/editor-common/analytics';
|
|
6
6
|
import type { AnalyticsEventPayload, DispatchAnalyticsEvent, FireAnalyticsCallback } from '@atlaskit/editor-common/analytics';
|
|
7
7
|
import type { LegacyPortalProviderAPI } from '@atlaskit/editor-common/portal-provider';
|
|
8
|
-
import type { EditorPresetBuilder } from '@atlaskit/editor-common/preset';
|
|
8
|
+
import type { AllEditorPresetPluginTypes, EditorPresetBuilder } from '@atlaskit/editor-common/preset';
|
|
9
9
|
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
10
10
|
import type { PortalProviderAPI } from '@atlaskit/editor-common/src/portal';
|
|
11
|
-
import type {
|
|
11
|
+
import type { Transformer } from '@atlaskit/editor-common/types';
|
|
12
12
|
import { ExperienceStore } from '@atlaskit/editor-common/ufo';
|
|
13
13
|
import type { ErrorReporter, SEVERITY } from '@atlaskit/editor-common/utils';
|
|
14
14
|
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|