@atlaskit/editor-common 77.2.2 → 77.2.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 +6 -0
- package/dist/cjs/extensibility/MultiBodiedExtension/action-api.js +4 -1
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/transforms/extension.js +31 -1
- package/dist/cjs/transforms/index.js +6 -0
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/extensibility/MultiBodiedExtension/action-api.js +4 -1
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/transforms/extension.js +31 -0
- package/dist/es2019/transforms/index.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/extensibility/MultiBodiedExtension/action-api.js +4 -1
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/transforms/extension.js +30 -0
- package/dist/esm/transforms/index.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/transforms/extension.d.ts +7 -1
- package/dist/types/transforms/index.d.ts +1 -1
- package/dist/types-ts4.5/transforms/extension.d.ts +7 -1
- package/dist/types-ts4.5/transforms/index.d.ts +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 77.2.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#70802](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/70802) [`ee58189e1b0e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/ee58189e1b0e) - ED-21911 Adding custom paste handling for content copied from MBE frames.
|
|
8
|
+
|
|
3
9
|
## 77.2.2
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -35,7 +35,10 @@ var useMultiBodiedExtensionActions = exports.useMultiBodiedExtensionActions = fu
|
|
|
35
35
|
var _mbeNode$content, _mbeNode$content2;
|
|
36
36
|
desiredPos += (mbeNode === null || mbeNode === void 0 || (_mbeNode$content2 = mbeNode.content) === null || _mbeNode$content2 === void 0 || (_mbeNode$content2 = _mbeNode$content2.child(i)) === null || _mbeNode$content2 === void 0 ? void 0 : _mbeNode$content2.nodeSize) || 0;
|
|
37
37
|
}
|
|
38
|
-
|
|
38
|
+
/* desiredPos gives the cursor at the end of last child of the current frame, in case of paragraph nodes, this will be the end of the paragraph
|
|
39
|
+
* Performing -1 brings the cursor inside the paragraph, similar to a user click, so any pasted text will be inside the last paragraph rather than a new line
|
|
40
|
+
*/
|
|
41
|
+
dispatch(state.tr.setSelection(new _state.TextSelection(state.doc.resolve(desiredPos - 1))));
|
|
39
42
|
}
|
|
40
43
|
return updateActiveChildResult;
|
|
41
44
|
},
|
|
@@ -16,7 +16,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
16
16
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
17
17
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
18
18
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
19
|
-
var packageVersion = "77.2.
|
|
19
|
+
var packageVersion = "77.2.3";
|
|
20
20
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
21
21
|
// Remove URL as it has UGC
|
|
22
22
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.transformSliceToRemoveOpenBodiedExtension = void 0;
|
|
6
|
+
exports.transformSliceToRemoveOpenMultiBodiedExtension = exports.transformSliceToRemoveOpenBodiedExtension = void 0;
|
|
7
7
|
var _model = require("@atlaskit/editor-prosemirror/model");
|
|
8
8
|
var _slice = require("../utils/slice");
|
|
9
9
|
/**
|
|
@@ -25,4 +25,34 @@ var transformSliceToRemoveOpenBodiedExtension = exports.transformSliceToRemoveOp
|
|
|
25
25
|
|
|
26
26
|
// If the first/last child has changed - then we know we've removed a bodied extension & to decrement the open depth
|
|
27
27
|
return new _model.Slice(fragment, fragment.firstChild && fragment.firstChild.type !== slice.content.firstChild.type ? slice.openStart - 1 : slice.openStart, fragment.lastChild && fragment.lastChild.type !== slice.content.lastChild.type ? slice.openEnd - 1 : slice.openEnd);
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Lift content out of "open" top-level multiBodiedExtensions.
|
|
32
|
+
* Will not work if multiBodiedExtensions are nested, or when multiBodiedExtensions are not in the top level, which should never happen
|
|
33
|
+
*/
|
|
34
|
+
var transformSliceToRemoveOpenMultiBodiedExtension = exports.transformSliceToRemoveOpenMultiBodiedExtension = function transformSliceToRemoveOpenMultiBodiedExtension(slice, schema) {
|
|
35
|
+
var _slice$content$firstC, _slice$content$firstC2;
|
|
36
|
+
var _schema$nodes = schema.nodes,
|
|
37
|
+
multiBodiedExtension = _schema$nodes.multiBodiedExtension,
|
|
38
|
+
extensionFrame = _schema$nodes.extensionFrame;
|
|
39
|
+
var depthToReduce = 2; // Removing MBE and extensionFrame
|
|
40
|
+
|
|
41
|
+
// Edge case where the slice does not contain extensionFrames under MBE, happens when multiple block nodes get copied from a frame
|
|
42
|
+
if (((_slice$content$firstC = slice.content.firstChild) === null || _slice$content$firstC === void 0 ? void 0 : _slice$content$firstC.type) === multiBodiedExtension && ((_slice$content$firstC2 = slice.content.firstChild) === null || _slice$content$firstC2 === void 0 || (_slice$content$firstC2 = _slice$content$firstC2.firstChild) === null || _slice$content$firstC2 === void 0 ? void 0 : _slice$content$firstC2.type) !== extensionFrame) {
|
|
43
|
+
depthToReduce = 1;
|
|
44
|
+
}
|
|
45
|
+
var fragment = (0, _slice.mapFragment)(slice.content, function (node, parent, index) {
|
|
46
|
+
if (node.type === multiBodiedExtension && !parent || node.type === extensionFrame) {
|
|
47
|
+
var currentNodeIsAtStartAndIsOpen = slice.openStart >= depthToReduce && index === 0;
|
|
48
|
+
var currentNodeIsAtEndAndIsOpen = slice.openEnd >= depthToReduce && index + 1 === slice.content.childCount;
|
|
49
|
+
if (currentNodeIsAtStartAndIsOpen || currentNodeIsAtEndAndIsOpen) {
|
|
50
|
+
return node.content;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
return node;
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
// If the first/last child has changed - then we know we've removed MBE and extensionFrame and need to decrement the open depth
|
|
57
|
+
return new _model.Slice(fragment, fragment.firstChild && fragment.firstChild.type !== slice.content.firstChild.type ? slice.openStart - depthToReduce : slice.openStart, fragment.lastChild && fragment.lastChild.type !== slice.content.lastChild.type ? slice.openEnd - depthToReduce : slice.openEnd);
|
|
28
58
|
};
|
|
@@ -69,6 +69,12 @@ Object.defineProperty(exports, "transformSliceToRemoveOpenLayoutNodes", {
|
|
|
69
69
|
return _layout.transformSliceToRemoveOpenLayoutNodes;
|
|
70
70
|
}
|
|
71
71
|
});
|
|
72
|
+
Object.defineProperty(exports, "transformSliceToRemoveOpenMultiBodiedExtension", {
|
|
73
|
+
enumerable: true,
|
|
74
|
+
get: function get() {
|
|
75
|
+
return _extension.transformSliceToRemoveOpenMultiBodiedExtension;
|
|
76
|
+
}
|
|
77
|
+
});
|
|
72
78
|
Object.defineProperty(exports, "unwrapContentFromLayout", {
|
|
73
79
|
enumerable: true,
|
|
74
80
|
get: function get() {
|
|
@@ -22,7 +22,7 @@ var _templateObject, _templateObject2, _templateObject3;
|
|
|
22
22
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
23
23
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } /** @jsx jsx */
|
|
24
24
|
var packageName = "@atlaskit/editor-common";
|
|
25
|
-
var packageVersion = "77.2.
|
|
25
|
+
var packageVersion = "77.2.3";
|
|
26
26
|
var halfFocusRing = 1;
|
|
27
27
|
var dropOffset = '0, 8';
|
|
28
28
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -28,7 +28,10 @@ export const useMultiBodiedExtensionActions = ({
|
|
|
28
28
|
var _mbeNode$content, _mbeNode$content2, _mbeNode$content2$chi;
|
|
29
29
|
desiredPos += (mbeNode === null || mbeNode === void 0 ? void 0 : (_mbeNode$content2 = mbeNode.content) === null || _mbeNode$content2 === void 0 ? void 0 : (_mbeNode$content2$chi = _mbeNode$content2.child(i)) === null || _mbeNode$content2$chi === void 0 ? void 0 : _mbeNode$content2$chi.nodeSize) || 0;
|
|
30
30
|
}
|
|
31
|
-
|
|
31
|
+
/* desiredPos gives the cursor at the end of last child of the current frame, in case of paragraph nodes, this will be the end of the paragraph
|
|
32
|
+
* Performing -1 brings the cursor inside the paragraph, similar to a user click, so any pasted text will be inside the last paragraph rather than a new line
|
|
33
|
+
*/
|
|
34
|
+
dispatch(state.tr.setSelection(new TextSelection(state.doc.resolve(desiredPos - 1))));
|
|
32
35
|
}
|
|
33
36
|
return updateActiveChildResult;
|
|
34
37
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
2
2
|
const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
3
|
-
const packageVersion = "77.2.
|
|
3
|
+
const packageVersion = "77.2.3";
|
|
4
4
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
5
5
|
// Remove URL as it has UGC
|
|
6
6
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -22,4 +22,35 @@ export const transformSliceToRemoveOpenBodiedExtension = (slice, schema) => {
|
|
|
22
22
|
|
|
23
23
|
// If the first/last child has changed - then we know we've removed a bodied extension & to decrement the open depth
|
|
24
24
|
return new Slice(fragment, fragment.firstChild && fragment.firstChild.type !== slice.content.firstChild.type ? slice.openStart - 1 : slice.openStart, fragment.lastChild && fragment.lastChild.type !== slice.content.lastChild.type ? slice.openEnd - 1 : slice.openEnd);
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Lift content out of "open" top-level multiBodiedExtensions.
|
|
29
|
+
* Will not work if multiBodiedExtensions are nested, or when multiBodiedExtensions are not in the top level, which should never happen
|
|
30
|
+
*/
|
|
31
|
+
export const transformSliceToRemoveOpenMultiBodiedExtension = (slice, schema) => {
|
|
32
|
+
var _slice$content$firstC, _slice$content$firstC2, _slice$content$firstC3;
|
|
33
|
+
const {
|
|
34
|
+
multiBodiedExtension,
|
|
35
|
+
extensionFrame
|
|
36
|
+
} = schema.nodes;
|
|
37
|
+
let depthToReduce = 2; // Removing MBE and extensionFrame
|
|
38
|
+
|
|
39
|
+
// Edge case where the slice does not contain extensionFrames under MBE, happens when multiple block nodes get copied from a frame
|
|
40
|
+
if (((_slice$content$firstC = slice.content.firstChild) === null || _slice$content$firstC === void 0 ? void 0 : _slice$content$firstC.type) === multiBodiedExtension && ((_slice$content$firstC2 = slice.content.firstChild) === null || _slice$content$firstC2 === void 0 ? void 0 : (_slice$content$firstC3 = _slice$content$firstC2.firstChild) === null || _slice$content$firstC3 === void 0 ? void 0 : _slice$content$firstC3.type) !== extensionFrame) {
|
|
41
|
+
depthToReduce = 1;
|
|
42
|
+
}
|
|
43
|
+
let fragment = mapFragment(slice.content, (node, parent, index) => {
|
|
44
|
+
if (node.type === multiBodiedExtension && !parent || node.type === extensionFrame) {
|
|
45
|
+
const currentNodeIsAtStartAndIsOpen = slice.openStart >= depthToReduce && index === 0;
|
|
46
|
+
const currentNodeIsAtEndAndIsOpen = slice.openEnd >= depthToReduce && index + 1 === slice.content.childCount;
|
|
47
|
+
if (currentNodeIsAtStartAndIsOpen || currentNodeIsAtEndAndIsOpen) {
|
|
48
|
+
return node.content;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
return node;
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
// If the first/last child has changed - then we know we've removed MBE and extensionFrame and need to decrement the open depth
|
|
55
|
+
return new Slice(fragment, fragment.firstChild && fragment.firstChild.type !== slice.content.firstChild.type ? slice.openStart - depthToReduce : slice.openStart, fragment.lastChild && fragment.lastChild.type !== slice.content.lastChild.type ? slice.openEnd - depthToReduce : slice.openEnd);
|
|
25
56
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { unwrapContentFromLayout, removeLayoutFromFirstChild, removeLayoutFromLastChild, transformSliceToRemoveOpenLayoutNodes } from './layout';
|
|
2
2
|
export { findExpand, transformSliceToRemoveOpenExpand, transformSliceNestedExpandToExpand } from './expand';
|
|
3
|
-
export { transformSliceToRemoveOpenBodiedExtension } from './extension';
|
|
3
|
+
export { transformSliceToRemoveOpenBodiedExtension, transformSliceToRemoveOpenMultiBodiedExtension } from './extension';
|
|
4
4
|
export { transformSliceToJoinAdjacentCodeBlocks, transformSingleLineCodeBlockToCodeMark, findCodeBlock } from './code-block';
|
|
5
5
|
export { transformSliceToDecisionList } from './decision-list';
|
|
@@ -7,7 +7,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
|
|
|
7
7
|
import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
|
|
8
8
|
import Layer from '../Layer';
|
|
9
9
|
const packageName = "@atlaskit/editor-common";
|
|
10
|
-
const packageVersion = "77.2.
|
|
10
|
+
const packageVersion = "77.2.3";
|
|
11
11
|
const halfFocusRing = 1;
|
|
12
12
|
const dropOffset = '0, 8';
|
|
13
13
|
class DropList extends Component {
|
|
@@ -28,7 +28,10 @@ export var useMultiBodiedExtensionActions = function useMultiBodiedExtensionActi
|
|
|
28
28
|
var _mbeNode$content, _mbeNode$content2;
|
|
29
29
|
desiredPos += (mbeNode === null || mbeNode === void 0 || (_mbeNode$content2 = mbeNode.content) === null || _mbeNode$content2 === void 0 || (_mbeNode$content2 = _mbeNode$content2.child(i)) === null || _mbeNode$content2 === void 0 ? void 0 : _mbeNode$content2.nodeSize) || 0;
|
|
30
30
|
}
|
|
31
|
-
|
|
31
|
+
/* desiredPos gives the cursor at the end of last child of the current frame, in case of paragraph nodes, this will be the end of the paragraph
|
|
32
|
+
* Performing -1 brings the cursor inside the paragraph, similar to a user click, so any pasted text will be inside the last paragraph rather than a new line
|
|
33
|
+
*/
|
|
34
|
+
dispatch(state.tr.setSelection(new TextSelection(state.doc.resolve(desiredPos - 1))));
|
|
32
35
|
}
|
|
33
36
|
return updateActiveChildResult;
|
|
34
37
|
},
|
|
@@ -6,7 +6,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
6
6
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
7
7
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
8
8
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
9
|
-
var packageVersion = "77.2.
|
|
9
|
+
var packageVersion = "77.2.3";
|
|
10
10
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
11
11
|
// Remove URL as it has UGC
|
|
12
12
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -20,4 +20,34 @@ export var transformSliceToRemoveOpenBodiedExtension = function transformSliceTo
|
|
|
20
20
|
|
|
21
21
|
// If the first/last child has changed - then we know we've removed a bodied extension & to decrement the open depth
|
|
22
22
|
return new Slice(fragment, fragment.firstChild && fragment.firstChild.type !== slice.content.firstChild.type ? slice.openStart - 1 : slice.openStart, fragment.lastChild && fragment.lastChild.type !== slice.content.lastChild.type ? slice.openEnd - 1 : slice.openEnd);
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Lift content out of "open" top-level multiBodiedExtensions.
|
|
27
|
+
* Will not work if multiBodiedExtensions are nested, or when multiBodiedExtensions are not in the top level, which should never happen
|
|
28
|
+
*/
|
|
29
|
+
export var transformSliceToRemoveOpenMultiBodiedExtension = function transformSliceToRemoveOpenMultiBodiedExtension(slice, schema) {
|
|
30
|
+
var _slice$content$firstC, _slice$content$firstC2;
|
|
31
|
+
var _schema$nodes = schema.nodes,
|
|
32
|
+
multiBodiedExtension = _schema$nodes.multiBodiedExtension,
|
|
33
|
+
extensionFrame = _schema$nodes.extensionFrame;
|
|
34
|
+
var depthToReduce = 2; // Removing MBE and extensionFrame
|
|
35
|
+
|
|
36
|
+
// Edge case where the slice does not contain extensionFrames under MBE, happens when multiple block nodes get copied from a frame
|
|
37
|
+
if (((_slice$content$firstC = slice.content.firstChild) === null || _slice$content$firstC === void 0 ? void 0 : _slice$content$firstC.type) === multiBodiedExtension && ((_slice$content$firstC2 = slice.content.firstChild) === null || _slice$content$firstC2 === void 0 || (_slice$content$firstC2 = _slice$content$firstC2.firstChild) === null || _slice$content$firstC2 === void 0 ? void 0 : _slice$content$firstC2.type) !== extensionFrame) {
|
|
38
|
+
depthToReduce = 1;
|
|
39
|
+
}
|
|
40
|
+
var fragment = mapFragment(slice.content, function (node, parent, index) {
|
|
41
|
+
if (node.type === multiBodiedExtension && !parent || node.type === extensionFrame) {
|
|
42
|
+
var currentNodeIsAtStartAndIsOpen = slice.openStart >= depthToReduce && index === 0;
|
|
43
|
+
var currentNodeIsAtEndAndIsOpen = slice.openEnd >= depthToReduce && index + 1 === slice.content.childCount;
|
|
44
|
+
if (currentNodeIsAtStartAndIsOpen || currentNodeIsAtEndAndIsOpen) {
|
|
45
|
+
return node.content;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
return node;
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
// If the first/last child has changed - then we know we've removed MBE and extensionFrame and need to decrement the open depth
|
|
52
|
+
return new Slice(fragment, fragment.firstChild && fragment.firstChild.type !== slice.content.firstChild.type ? slice.openStart - depthToReduce : slice.openStart, fragment.lastChild && fragment.lastChild.type !== slice.content.lastChild.type ? slice.openEnd - depthToReduce : slice.openEnd);
|
|
23
53
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { unwrapContentFromLayout, removeLayoutFromFirstChild, removeLayoutFromLastChild, transformSliceToRemoveOpenLayoutNodes } from './layout';
|
|
2
2
|
export { findExpand, transformSliceToRemoveOpenExpand, transformSliceNestedExpandToExpand } from './expand';
|
|
3
|
-
export { transformSliceToRemoveOpenBodiedExtension } from './extension';
|
|
3
|
+
export { transformSliceToRemoveOpenBodiedExtension, transformSliceToRemoveOpenMultiBodiedExtension } from './extension';
|
|
4
4
|
export { transformSliceToJoinAdjacentCodeBlocks, transformSingleLineCodeBlockToCodeMark, findCodeBlock } from './code-block';
|
|
5
5
|
export { transformSliceToDecisionList } from './decision-list';
|
|
@@ -17,7 +17,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
|
|
|
17
17
|
import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
|
|
18
18
|
import Layer from '../Layer';
|
|
19
19
|
var packageName = "@atlaskit/editor-common";
|
|
20
|
-
var packageVersion = "77.2.
|
|
20
|
+
var packageVersion = "77.2.3";
|
|
21
21
|
var halfFocusRing = 1;
|
|
22
22
|
var dropOffset = '0, 8';
|
|
23
23
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -1,6 +1,12 @@
|
|
|
1
|
-
import { Schema
|
|
1
|
+
import type { Schema } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
+
import { Slice } from '@atlaskit/editor-prosemirror/model';
|
|
2
3
|
/**
|
|
3
4
|
* Lift content out of "open" top-level bodiedExtensions.
|
|
4
5
|
* Will not work if bodiedExtensions are nested, or when bodiedExtensions are not in the top level
|
|
5
6
|
*/
|
|
6
7
|
export declare const transformSliceToRemoveOpenBodiedExtension: (slice: Slice, schema: Schema) => Slice;
|
|
8
|
+
/**
|
|
9
|
+
* Lift content out of "open" top-level multiBodiedExtensions.
|
|
10
|
+
* Will not work if multiBodiedExtensions are nested, or when multiBodiedExtensions are not in the top level, which should never happen
|
|
11
|
+
*/
|
|
12
|
+
export declare const transformSliceToRemoveOpenMultiBodiedExtension: (slice: Slice, schema: Schema) => Slice;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { unwrapContentFromLayout, removeLayoutFromFirstChild, removeLayoutFromLastChild, transformSliceToRemoveOpenLayoutNodes, } from './layout';
|
|
2
2
|
export { findExpand, transformSliceToRemoveOpenExpand, transformSliceNestedExpandToExpand, } from './expand';
|
|
3
|
-
export { transformSliceToRemoveOpenBodiedExtension } from './extension';
|
|
3
|
+
export { transformSliceToRemoveOpenBodiedExtension, transformSliceToRemoveOpenMultiBodiedExtension, } from './extension';
|
|
4
4
|
export { transformSliceToJoinAdjacentCodeBlocks, transformSingleLineCodeBlockToCodeMark, findCodeBlock, } from './code-block';
|
|
5
5
|
export { transformSliceToDecisionList } from './decision-list';
|
|
@@ -1,6 +1,12 @@
|
|
|
1
|
-
import { Schema
|
|
1
|
+
import type { Schema } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
+
import { Slice } from '@atlaskit/editor-prosemirror/model';
|
|
2
3
|
/**
|
|
3
4
|
* Lift content out of "open" top-level bodiedExtensions.
|
|
4
5
|
* Will not work if bodiedExtensions are nested, or when bodiedExtensions are not in the top level
|
|
5
6
|
*/
|
|
6
7
|
export declare const transformSliceToRemoveOpenBodiedExtension: (slice: Slice, schema: Schema) => Slice;
|
|
8
|
+
/**
|
|
9
|
+
* Lift content out of "open" top-level multiBodiedExtensions.
|
|
10
|
+
* Will not work if multiBodiedExtensions are nested, or when multiBodiedExtensions are not in the top level, which should never happen
|
|
11
|
+
*/
|
|
12
|
+
export declare const transformSliceToRemoveOpenMultiBodiedExtension: (slice: Slice, schema: Schema) => Slice;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { unwrapContentFromLayout, removeLayoutFromFirstChild, removeLayoutFromLastChild, transformSliceToRemoveOpenLayoutNodes, } from './layout';
|
|
2
2
|
export { findExpand, transformSliceToRemoveOpenExpand, transformSliceNestedExpandToExpand, } from './expand';
|
|
3
|
-
export { transformSliceToRemoveOpenBodiedExtension } from './extension';
|
|
3
|
+
export { transformSliceToRemoveOpenBodiedExtension, transformSliceToRemoveOpenMultiBodiedExtension, } from './extension';
|
|
4
4
|
export { transformSliceToJoinAdjacentCodeBlocks, transformSingleLineCodeBlockToCodeMark, findCodeBlock, } from './code-block';
|
|
5
5
|
export { transformSliceToDecisionList } from './decision-list';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "77.2.
|
|
3
|
+
"version": "77.2.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/"
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
"@atlaskit/adf-utils": "^19.0.0",
|
|
96
96
|
"@atlaskit/analytics-listeners": "^8.9.0",
|
|
97
97
|
"@atlaskit/analytics-namespaced-context": "^6.9.0",
|
|
98
|
-
"@atlaskit/analytics-next": "^9.
|
|
98
|
+
"@atlaskit/analytics-next": "^9.2.0",
|
|
99
99
|
"@atlaskit/analytics-next-stable-react-context": "1.0.1",
|
|
100
100
|
"@atlaskit/button": "^17.3.0",
|
|
101
101
|
"@atlaskit/code": "^15.1.0",
|