@atlaskit/editor-core 190.1.15 → 190.1.18
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/afm-cc/tsconfig.json +3 -3
- package/dist/cjs/plugins/collab-edit/actions.js +2 -2
- package/dist/cjs/plugins/collab-edit/index.js +4 -5
- package/dist/cjs/plugins/index.js +0 -7
- package/dist/cjs/presets/universal.js +2 -1
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/plugins/collab-edit/actions.js +2 -2
- package/dist/es2019/plugins/collab-edit/index.js +4 -4
- package/dist/es2019/plugins/index.js +0 -1
- package/dist/es2019/presets/universal.js +2 -1
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/plugins/collab-edit/actions.js +2 -2
- package/dist/esm/plugins/collab-edit/index.js +4 -5
- package/dist/esm/plugins/index.js +0 -1
- package/dist/esm/presets/universal.js +2 -1
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/plugins/collab-edit/actions.d.ts +1 -1
- package/dist/types/plugins/collab-edit/index.d.ts +2 -2
- package/dist/types/plugins/index.d.ts +0 -1
- package/dist/types-ts4.5/plugins/collab-edit/actions.d.ts +1 -1
- package/dist/types-ts4.5/plugins/collab-edit/index.d.ts +2 -2
- package/dist/types-ts4.5/plugins/index.d.ts +0 -1
- package/package.json +6 -4
- package/tsconfig.json +1 -1
- package/dist/cjs/plugins/breakout/commands/remove-breakout.js +0 -30
- package/dist/cjs/plugins/breakout/commands/set-breakout-mode.js +0 -29
- package/dist/cjs/plugins/breakout/index.js +0 -218
- package/dist/cjs/plugins/breakout/plugin-key.js +0 -11
- package/dist/cjs/plugins/breakout/types.js +0 -5
- package/dist/cjs/plugins/breakout/ui/LayoutButton.js +0 -133
- package/dist/cjs/plugins/breakout/utils/find-breakout-node.js +0 -42
- package/dist/cjs/plugins/breakout/utils/get-breakout-mode.js +0 -24
- package/dist/cjs/plugins/breakout/utils/is-breakout-mark-allowed.js +0 -27
- package/dist/cjs/plugins/breakout/utils/is-supported-node.js +0 -15
- package/dist/es2019/plugins/breakout/commands/remove-breakout.js +0 -22
- package/dist/es2019/plugins/breakout/commands/set-breakout-mode.js +0 -23
- package/dist/es2019/plugins/breakout/index.js +0 -208
- package/dist/es2019/plugins/breakout/plugin-key.js +0 -3
- package/dist/es2019/plugins/breakout/types.js +0 -1
- package/dist/es2019/plugins/breakout/ui/LayoutButton.js +0 -117
- package/dist/es2019/plugins/breakout/utils/find-breakout-node.js +0 -37
- package/dist/es2019/plugins/breakout/utils/get-breakout-mode.js +0 -16
- package/dist/es2019/plugins/breakout/utils/is-breakout-mark-allowed.js +0 -22
- package/dist/es2019/plugins/breakout/utils/is-supported-node.js +0 -9
- package/dist/esm/plugins/breakout/commands/remove-breakout.js +0 -24
- package/dist/esm/plugins/breakout/commands/set-breakout-mode.js +0 -23
- package/dist/esm/plugins/breakout/index.js +0 -211
- package/dist/esm/plugins/breakout/plugin-key.js +0 -5
- package/dist/esm/plugins/breakout/types.js +0 -1
- package/dist/esm/plugins/breakout/ui/LayoutButton.js +0 -126
- package/dist/esm/plugins/breakout/utils/find-breakout-node.js +0 -37
- package/dist/esm/plugins/breakout/utils/get-breakout-mode.js +0 -18
- package/dist/esm/plugins/breakout/utils/is-breakout-mark-allowed.js +0 -22
- package/dist/esm/plugins/breakout/utils/is-supported-node.js +0 -9
- package/dist/types/plugins/breakout/commands/remove-breakout.d.ts +0 -2
- package/dist/types/plugins/breakout/commands/set-breakout-mode.d.ts +0 -3
- package/dist/types/plugins/breakout/index.d.ts +0 -12
- package/dist/types/plugins/breakout/plugin-key.d.ts +0 -5
- package/dist/types/plugins/breakout/types.d.ts +0 -4
- package/dist/types/plugins/breakout/ui/LayoutButton.d.ts +0 -17
- package/dist/types/plugins/breakout/utils/find-breakout-node.d.ts +0 -9
- package/dist/types/plugins/breakout/utils/get-breakout-mode.d.ts +0 -7
- package/dist/types/plugins/breakout/utils/is-breakout-mark-allowed.d.ts +0 -9
- package/dist/types/plugins/breakout/utils/is-supported-node.d.ts +0 -6
- package/dist/types-ts4.5/plugins/breakout/commands/remove-breakout.d.ts +0 -2
- package/dist/types-ts4.5/plugins/breakout/commands/set-breakout-mode.d.ts +0 -3
- package/dist/types-ts4.5/plugins/breakout/index.d.ts +0 -14
- package/dist/types-ts4.5/plugins/breakout/plugin-key.d.ts +0 -5
- package/dist/types-ts4.5/plugins/breakout/types.d.ts +0 -4
- package/dist/types-ts4.5/plugins/breakout/ui/LayoutButton.d.ts +0 -17
- package/dist/types-ts4.5/plugins/breakout/utils/find-breakout-node.d.ts +0 -9
- package/dist/types-ts4.5/plugins/breakout/utils/get-breakout-mode.d.ts +0 -7
- package/dist/types-ts4.5/plugins/breakout/utils/is-breakout-mark-allowed.d.ts +0 -9
- package/dist/types-ts4.5/plugins/breakout/utils/is-supported-node.d.ts +0 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 190.1.18
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#62968](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/62968) [`53208d15e680`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/53208d15e680) - NO-ISSUE Unforked the ProseMirror collab library
|
|
8
|
+
|
|
9
|
+
## 190.1.16
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#62880](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/62880) [`a23ec26652ea`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a23ec26652ea) - Extracting breakout plugin from editor-core into new package @atlaskit/editor-plugin-breakout
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
|
|
3
16
|
## 190.1.15
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
package/afm-cc/tsconfig.json
CHANGED
|
@@ -76,6 +76,9 @@
|
|
|
76
76
|
{
|
|
77
77
|
"path": "../../editor-plugin-border/afm-cc/tsconfig.json"
|
|
78
78
|
},
|
|
79
|
+
{
|
|
80
|
+
"path": "../../editor-plugin-breakout/afm-cc/tsconfig.json"
|
|
81
|
+
},
|
|
79
82
|
{
|
|
80
83
|
"path": "../../editor-plugin-caption/afm-cc/tsconfig.json"
|
|
81
84
|
},
|
|
@@ -286,9 +289,6 @@
|
|
|
286
289
|
{
|
|
287
290
|
"path": "../../../platform/feature-flags/afm-cc/tsconfig.json"
|
|
288
291
|
},
|
|
289
|
-
{
|
|
290
|
-
"path": "../../prosemirror-collab/afm-cc/tsconfig.json"
|
|
291
|
-
},
|
|
292
292
|
{
|
|
293
293
|
"path": "../../../design-system/radio/afm-cc/tsconfig.json"
|
|
294
294
|
},
|
|
@@ -6,9 +6,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.handleTelePointer = exports.handlePresence = exports.handleInit = exports.handleConnection = exports.getSendableSelection = exports.applyRemoteSteps = exports.applyRemoteData = void 0;
|
|
8
8
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
9
|
-
var _prosemirrorCollab = require("@atlaskit/prosemirror-collab");
|
|
10
|
-
var _transform = require("@atlaskit/editor-prosemirror/transform");
|
|
11
9
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
10
|
+
var _transform = require("@atlaskit/editor-prosemirror/transform");
|
|
11
|
+
var _prosemirrorCollab = require("prosemirror-collab");
|
|
12
12
|
var _utils = require("./utils");
|
|
13
13
|
var handleInit = exports.handleInit = function handleInit(initData, view, options) {
|
|
14
14
|
var doc = initData.doc,
|
|
@@ -14,11 +14,11 @@ Object.defineProperty(exports, "pluginKey", {
|
|
|
14
14
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
15
15
|
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
16
16
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
17
|
-
var _prosemirrorCollab = require("
|
|
18
|
-
var _plugin = require("./plugin");
|
|
19
|
-
var _sendTransaction = require("./events/send-transaction");
|
|
17
|
+
var _prosemirrorCollab = require("prosemirror-collab");
|
|
20
18
|
var _analytics = require("./analytics");
|
|
19
|
+
var _sendTransaction = require("./events/send-transaction");
|
|
21
20
|
var _nativeCollabProviderPlugin = require("./native-collab-provider-plugin");
|
|
21
|
+
var _plugin = require("./plugin");
|
|
22
22
|
var providerBuilder = function providerBuilder(collabEditProviderPromise) {
|
|
23
23
|
return /*#__PURE__*/function () {
|
|
24
24
|
var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(codeToExecute, onError) {
|
|
@@ -75,8 +75,7 @@ var collabEditPlugin = function collabEditPlugin(_ref2) {
|
|
|
75
75
|
var _ref3 = options || {},
|
|
76
76
|
_ref3$useNativePlugin = _ref3.useNativePlugin,
|
|
77
77
|
useNativePlugin = _ref3$useNativePlugin === void 0 ? false : _ref3$useNativePlugin,
|
|
78
|
-
|
|
79
|
-
userId = _ref3$userId === void 0 ? null : _ref3$userId;
|
|
78
|
+
userId = _ref3.userId;
|
|
80
79
|
return [].concat((0, _toConsumableArray2.default)(useNativePlugin ? [{
|
|
81
80
|
name: 'pmCollab',
|
|
82
81
|
plugin: function plugin() {
|
|
@@ -22,12 +22,6 @@ Object.defineProperty(exports, "beforePrimaryToolbarPlugin", {
|
|
|
22
22
|
return _beforePrimaryToolbar.default;
|
|
23
23
|
}
|
|
24
24
|
});
|
|
25
|
-
Object.defineProperty(exports, "breakoutPlugin", {
|
|
26
|
-
enumerable: true,
|
|
27
|
-
get: function get() {
|
|
28
|
-
return _breakout.default;
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
25
|
Object.defineProperty(exports, "collabEditPlugin", {
|
|
32
26
|
enumerable: true,
|
|
33
27
|
get: function get() {
|
|
@@ -68,7 +62,6 @@ var _collabEdit = _interopRequireDefault(require("./collab-edit"));
|
|
|
68
62
|
var _extension = _interopRequireDefault(require("./extension"));
|
|
69
63
|
var _jiraIssue = _interopRequireDefault(require("./jira-issue"));
|
|
70
64
|
var _paste = _interopRequireDefault(require("./paste"));
|
|
71
|
-
var _breakout = _interopRequireDefault(require("./breakout"));
|
|
72
65
|
var _annotation = _interopRequireDefault(require("./annotation"));
|
|
73
66
|
var _feedbackDialog = _interopRequireDefault(require("./feedback-dialog"));
|
|
74
67
|
var _findReplace = _interopRequireDefault(require("./find-replace"));
|
|
@@ -36,6 +36,7 @@ var _editorPluginPasteOptionsToolbar = require("@atlaskit/editor-plugin-paste-op
|
|
|
36
36
|
var _editorPluginPlaceholderText = require("@atlaskit/editor-plugin-placeholder-text");
|
|
37
37
|
var _editorPluginRule = require("@atlaskit/editor-plugin-rule");
|
|
38
38
|
var _editorPluginSaveOnEnter = require("@atlaskit/editor-plugin-save-on-enter");
|
|
39
|
+
var _editorPluginBreakout = require("@atlaskit/editor-plugin-breakout");
|
|
39
40
|
var _editorPluginScrollIntoView = require("@atlaskit/editor-plugin-scroll-into-view");
|
|
40
41
|
var _editorPluginStatus = require("@atlaskit/editor-plugin-status");
|
|
41
42
|
var _editorPluginTable = require("@atlaskit/editor-plugin-table");
|
|
@@ -81,7 +82,7 @@ function createUniversalPreset(appearance, props, featureFlags, prevAppearance,
|
|
|
81
82
|
}
|
|
82
83
|
return false;
|
|
83
84
|
};
|
|
84
|
-
var finalPreset = defaultPreset.add(_editorPluginDataConsumer.dataConsumerPlugin).add(_editorPluginContentInsertion.contentInsertionPlugin).maybeAdd(
|
|
85
|
+
var finalPreset = defaultPreset.add(_editorPluginDataConsumer.dataConsumerPlugin).add(_editorPluginContentInsertion.contentInsertionPlugin).maybeAdd(_editorPluginBreakout.breakoutPlugin, function (plugin, builder) {
|
|
85
86
|
if (props.allowBreakout && isFullPage) {
|
|
86
87
|
return builder.add([plugin, {
|
|
87
88
|
allowBreakoutButton: appearance === 'full-page'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { receiveTransaction } from '@atlaskit/prosemirror-collab';
|
|
2
|
-
import { Step } from '@atlaskit/editor-prosemirror/transform';
|
|
3
1
|
import { AllSelection, NodeSelection } from '@atlaskit/editor-prosemirror/state';
|
|
2
|
+
import { Step } from '@atlaskit/editor-prosemirror/transform';
|
|
3
|
+
import { receiveTransaction } from 'prosemirror-collab';
|
|
4
4
|
import { replaceDocument } from './utils';
|
|
5
5
|
export const handleInit = (initData, view, options) => {
|
|
6
6
|
const {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { collab } from '
|
|
2
|
-
import { createPlugin, pluginKey } from './plugin';
|
|
3
|
-
import { sendTransaction } from './events/send-transaction';
|
|
1
|
+
import { collab } from 'prosemirror-collab';
|
|
4
2
|
import { addSynchronyErrorAnalytics } from './analytics';
|
|
3
|
+
import { sendTransaction } from './events/send-transaction';
|
|
5
4
|
import { nativeCollabProviderPlugin } from './native-collab-provider-plugin';
|
|
5
|
+
import { createPlugin, pluginKey } from './plugin';
|
|
6
6
|
export { pluginKey };
|
|
7
7
|
const providerBuilder = collabEditProviderPromise => async (codeToExecute, onError) => {
|
|
8
8
|
try {
|
|
@@ -35,7 +35,7 @@ const collabEditPlugin = ({
|
|
|
35
35
|
pmPlugins() {
|
|
36
36
|
const {
|
|
37
37
|
useNativePlugin = false,
|
|
38
|
-
userId
|
|
38
|
+
userId
|
|
39
39
|
} = options || {};
|
|
40
40
|
return [...(useNativePlugin ? [{
|
|
41
41
|
name: 'pmCollab',
|
|
@@ -2,7 +2,6 @@ export { default as collabEditPlugin } from './collab-edit';
|
|
|
2
2
|
export { default as extensionPlugin } from './extension';
|
|
3
3
|
export { default as jiraIssuePlugin } from './jira-issue';
|
|
4
4
|
export { default as pastePlugin } from './paste';
|
|
5
|
-
export { default as breakoutPlugin } from './breakout';
|
|
6
5
|
export { default as annotationPlugin } from './annotation';
|
|
7
6
|
export { default as feedbackDialogPlugin } from './feedback-dialog';
|
|
8
7
|
export { default as findReplacePlugin } from './find-replace';
|
|
@@ -26,6 +26,7 @@ import { pasteOptionsToolbarPlugin } from '@atlaskit/editor-plugin-paste-options
|
|
|
26
26
|
import { placeholderTextPlugin } from '@atlaskit/editor-plugin-placeholder-text';
|
|
27
27
|
import { rulePlugin } from '@atlaskit/editor-plugin-rule';
|
|
28
28
|
import { saveOnEnterPlugin } from '@atlaskit/editor-plugin-save-on-enter';
|
|
29
|
+
import { breakoutPlugin } from '@atlaskit/editor-plugin-breakout';
|
|
29
30
|
import { scrollIntoViewPlugin } from '@atlaskit/editor-plugin-scroll-into-view';
|
|
30
31
|
import { statusPlugin } from '@atlaskit/editor-plugin-status';
|
|
31
32
|
import { tablesPlugin } from '@atlaskit/editor-plugin-table';
|
|
@@ -36,7 +37,7 @@ import { customAutoformatPlugin } from '@atlaskit/editor-plugin-custom-autoforma
|
|
|
36
37
|
import { alignmentPlugin } from '@atlaskit/editor-plugin-alignment';
|
|
37
38
|
import { dataConsumerPlugin } from '@atlaskit/editor-plugin-data-consumer';
|
|
38
39
|
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
39
|
-
import { annotationPlugin, avatarGroupPlugin, beforePrimaryToolbarPlugin,
|
|
40
|
+
import { annotationPlugin, avatarGroupPlugin, beforePrimaryToolbarPlugin, collabEditPlugin, extensionPlugin, feedbackDialogPlugin, findReplacePlugin, jiraIssuePlugin } from '../plugins';
|
|
40
41
|
import { shouldForceTracking } from '@atlaskit/editor-common/utils';
|
|
41
42
|
import { isFullPage as fullPageCheck } from '../utils/is-full-page';
|
|
42
43
|
import { createDefaultPreset } from './default';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "190.1.
|
|
2
|
+
export const version = "190.1.18";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
|
-
import { receiveTransaction } from '@atlaskit/prosemirror-collab';
|
|
3
|
-
import { Step } from '@atlaskit/editor-prosemirror/transform';
|
|
4
2
|
import { AllSelection, NodeSelection } from '@atlaskit/editor-prosemirror/state';
|
|
3
|
+
import { Step } from '@atlaskit/editor-prosemirror/transform';
|
|
4
|
+
import { receiveTransaction } from 'prosemirror-collab';
|
|
5
5
|
import { replaceDocument } from './utils';
|
|
6
6
|
export var handleInit = function handleInit(initData, view, options) {
|
|
7
7
|
var doc = initData.doc,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
2
2
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
3
3
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
4
|
-
import { collab } from '
|
|
5
|
-
import { createPlugin, pluginKey } from './plugin';
|
|
6
|
-
import { sendTransaction } from './events/send-transaction';
|
|
4
|
+
import { collab } from 'prosemirror-collab';
|
|
7
5
|
import { addSynchronyErrorAnalytics } from './analytics';
|
|
6
|
+
import { sendTransaction } from './events/send-transaction';
|
|
8
7
|
import { nativeCollabProviderPlugin } from './native-collab-provider-plugin';
|
|
8
|
+
import { createPlugin, pluginKey } from './plugin';
|
|
9
9
|
export { pluginKey };
|
|
10
10
|
var providerBuilder = function providerBuilder(collabEditProviderPromise) {
|
|
11
11
|
return /*#__PURE__*/function () {
|
|
@@ -63,8 +63,7 @@ var collabEditPlugin = function collabEditPlugin(_ref2) {
|
|
|
63
63
|
var _ref3 = options || {},
|
|
64
64
|
_ref3$useNativePlugin = _ref3.useNativePlugin,
|
|
65
65
|
useNativePlugin = _ref3$useNativePlugin === void 0 ? false : _ref3$useNativePlugin,
|
|
66
|
-
|
|
67
|
-
userId = _ref3$userId === void 0 ? null : _ref3$userId;
|
|
66
|
+
userId = _ref3.userId;
|
|
68
67
|
return [].concat(_toConsumableArray(useNativePlugin ? [{
|
|
69
68
|
name: 'pmCollab',
|
|
70
69
|
plugin: function plugin() {
|
|
@@ -2,7 +2,6 @@ export { default as collabEditPlugin } from './collab-edit';
|
|
|
2
2
|
export { default as extensionPlugin } from './extension';
|
|
3
3
|
export { default as jiraIssuePlugin } from './jira-issue';
|
|
4
4
|
export { default as pastePlugin } from './paste';
|
|
5
|
-
export { default as breakoutPlugin } from './breakout';
|
|
6
5
|
export { default as annotationPlugin } from './annotation';
|
|
7
6
|
export { default as feedbackDialogPlugin } from './feedback-dialog';
|
|
8
7
|
export { default as findReplacePlugin } from './find-replace';
|
|
@@ -30,6 +30,7 @@ import { pasteOptionsToolbarPlugin } from '@atlaskit/editor-plugin-paste-options
|
|
|
30
30
|
import { placeholderTextPlugin } from '@atlaskit/editor-plugin-placeholder-text';
|
|
31
31
|
import { rulePlugin } from '@atlaskit/editor-plugin-rule';
|
|
32
32
|
import { saveOnEnterPlugin } from '@atlaskit/editor-plugin-save-on-enter';
|
|
33
|
+
import { breakoutPlugin } from '@atlaskit/editor-plugin-breakout';
|
|
33
34
|
import { scrollIntoViewPlugin } from '@atlaskit/editor-plugin-scroll-into-view';
|
|
34
35
|
import { statusPlugin } from '@atlaskit/editor-plugin-status';
|
|
35
36
|
import { tablesPlugin } from '@atlaskit/editor-plugin-table';
|
|
@@ -40,7 +41,7 @@ import { customAutoformatPlugin } from '@atlaskit/editor-plugin-custom-autoforma
|
|
|
40
41
|
import { alignmentPlugin } from '@atlaskit/editor-plugin-alignment';
|
|
41
42
|
import { dataConsumerPlugin } from '@atlaskit/editor-plugin-data-consumer';
|
|
42
43
|
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
43
|
-
import { annotationPlugin, avatarGroupPlugin, beforePrimaryToolbarPlugin,
|
|
44
|
+
import { annotationPlugin, avatarGroupPlugin, beforePrimaryToolbarPlugin, collabEditPlugin, extensionPlugin, feedbackDialogPlugin, findReplacePlugin, jiraIssuePlugin } from '../plugins';
|
|
44
45
|
import { shouldForceTracking } from '@atlaskit/editor-common/utils';
|
|
45
46
|
import { isFullPage as fullPageCheck } from '../utils/is-full-page';
|
|
46
47
|
import { createDefaultPreset } from './default';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "190.1.
|
|
2
|
+
export var version = "190.1.18";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Selection } from '@atlaskit/editor-prosemirror/state';
|
|
2
2
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
3
|
-
import type { CollabEventInitData,
|
|
3
|
+
import type { CollabEventConnectionData, CollabEventInitData, CollabEventPresenceData, CollabEventRemoteData, CollabSendableSelection, CollabTelepointerPayload } from '@atlaskit/editor-common/collab';
|
|
4
4
|
import type { PrivateCollabEditOptions } from './types';
|
|
5
5
|
export declare const handleInit: (initData: CollabEventInitData, view: EditorView, options?: PrivateCollabEditOptions) => void;
|
|
6
6
|
export declare const handleConnection: (connectionData: CollabEventConnectionData, view: EditorView) => void;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
3
|
+
import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
|
|
2
4
|
import { pluginKey } from './plugin';
|
|
3
5
|
import type { PrivateCollabEditOptions } from './types';
|
|
4
|
-
import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
|
|
5
|
-
import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
6
6
|
export { pluginKey };
|
|
7
7
|
declare const collabEditPlugin: NextEditorPlugin<'collabEdit', {
|
|
8
8
|
pluginConfiguration: PrivateCollabEditOptions;
|
|
@@ -2,7 +2,6 @@ export { default as collabEditPlugin } from './collab-edit';
|
|
|
2
2
|
export { default as extensionPlugin } from './extension';
|
|
3
3
|
export { default as jiraIssuePlugin } from './jira-issue';
|
|
4
4
|
export { default as pastePlugin } from './paste';
|
|
5
|
-
export { default as breakoutPlugin } from './breakout';
|
|
6
5
|
export { default as annotationPlugin } from './annotation';
|
|
7
6
|
export { default as feedbackDialogPlugin } from './feedback-dialog';
|
|
8
7
|
export { default as findReplacePlugin } from './find-replace';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Selection } from '@atlaskit/editor-prosemirror/state';
|
|
2
2
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
3
|
-
import type { CollabEventInitData,
|
|
3
|
+
import type { CollabEventConnectionData, CollabEventInitData, CollabEventPresenceData, CollabEventRemoteData, CollabSendableSelection, CollabTelepointerPayload } from '@atlaskit/editor-common/collab';
|
|
4
4
|
import type { PrivateCollabEditOptions } from './types';
|
|
5
5
|
export declare const handleInit: (initData: CollabEventInitData, view: EditorView, options?: PrivateCollabEditOptions) => void;
|
|
6
6
|
export declare const handleConnection: (connectionData: CollabEventConnectionData, view: EditorView) => void;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
3
|
+
import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
|
|
2
4
|
import { pluginKey } from './plugin';
|
|
3
5
|
import type { PrivateCollabEditOptions } from './types';
|
|
4
|
-
import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
|
|
5
|
-
import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
6
6
|
export { pluginKey };
|
|
7
7
|
declare const collabEditPlugin: NextEditorPlugin<'collabEdit', {
|
|
8
8
|
pluginConfiguration: PrivateCollabEditOptions;
|
|
@@ -2,7 +2,6 @@ export { default as collabEditPlugin } from './collab-edit';
|
|
|
2
2
|
export { default as extensionPlugin } from './extension';
|
|
3
3
|
export { default as jiraIssuePlugin } from './jira-issue';
|
|
4
4
|
export { default as pastePlugin } from './paste';
|
|
5
|
-
export { default as breakoutPlugin } from './breakout';
|
|
6
5
|
export { default as annotationPlugin } from './annotation';
|
|
7
6
|
export { default as feedbackDialogPlugin } from './feedback-dialog';
|
|
8
7
|
export { default as findReplacePlugin } from './find-replace';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "190.1.
|
|
3
|
+
"version": "190.1.18",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -36,7 +36,8 @@
|
|
|
36
36
|
"desktop-firefox",
|
|
37
37
|
"desktop-webkit"
|
|
38
38
|
]
|
|
39
|
-
}
|
|
39
|
+
},
|
|
40
|
+
"runReact18": false
|
|
40
41
|
},
|
|
41
42
|
"dependencies": {
|
|
42
43
|
"@atlaskit/activity-provider": "^2.4.0",
|
|
@@ -60,6 +61,7 @@
|
|
|
60
61
|
"@atlaskit/editor-plugin-better-type-history": "^0.1.0",
|
|
61
62
|
"@atlaskit/editor-plugin-block-type": "^3.0.0",
|
|
62
63
|
"@atlaskit/editor-plugin-border": "^0.1.0",
|
|
64
|
+
"@atlaskit/editor-plugin-breakout": "^0.1.0",
|
|
63
65
|
"@atlaskit/editor-plugin-caption": "^0.2.0",
|
|
64
66
|
"@atlaskit/editor-plugin-card": "^0.14.0",
|
|
65
67
|
"@atlaskit/editor-plugin-clear-marks-on-empty-doc": "^0.1.0",
|
|
@@ -131,7 +133,6 @@
|
|
|
131
133
|
"@atlaskit/media-common": "^11.0.0",
|
|
132
134
|
"@atlaskit/mention": "^22.1.0",
|
|
133
135
|
"@atlaskit/platform-feature-flags": "^0.2.0",
|
|
134
|
-
"@atlaskit/prosemirror-collab": "^0.2.0",
|
|
135
136
|
"@atlaskit/radio": "^6.0.0",
|
|
136
137
|
"@atlaskit/section-message": "^6.4.0",
|
|
137
138
|
"@atlaskit/select": "^17.0.3",
|
|
@@ -157,6 +158,7 @@
|
|
|
157
158
|
"lodash": "^4.17.21",
|
|
158
159
|
"memoize-one": "^6.0.0",
|
|
159
160
|
"prop-types": "^15.5.10",
|
|
161
|
+
"prosemirror-collab": "1.3.1",
|
|
160
162
|
"raf-schd": "^4.0.3",
|
|
161
163
|
"react-loadable": "^5.1.0",
|
|
162
164
|
"react-transition-group": "^4.4.1",
|
|
@@ -175,7 +177,7 @@
|
|
|
175
177
|
"@af/visual-regression": "*",
|
|
176
178
|
"@atlaskit/analytics-listeners": "^8.7.0",
|
|
177
179
|
"@atlaskit/code": "^15.1.0",
|
|
178
|
-
"@atlaskit/collab-provider": "9.20.
|
|
180
|
+
"@atlaskit/collab-provider": "9.20.6",
|
|
179
181
|
"@atlaskit/dropdown-menu": "^12.1.0",
|
|
180
182
|
"@atlaskit/editor-extension-dropbox": "^0.4.0",
|
|
181
183
|
"@atlaskit/editor-palette": "1.5.2",
|
package/tsconfig.json
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"./example-helpers/**/*.ts",
|
|
11
11
|
"./example-helpers/**/*.tsx",
|
|
12
12
|
"./playwright/**/*.ts"
|
|
13
|
-
|
|
13
|
+
],
|
|
14
14
|
"compilerOptions": {
|
|
15
15
|
"baseUrl": "./"
|
|
16
16
|
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.removeBreakout = removeBreakout;
|
|
7
|
-
var _findBreakoutNode = require("../utils/find-breakout-node");
|
|
8
|
-
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
9
|
-
function removeBreakout() {
|
|
10
|
-
return function (state, dispatch) {
|
|
11
|
-
var node = (0, _findBreakoutNode.findSupportedNodeForBreakout)(state.selection);
|
|
12
|
-
if (!node) {
|
|
13
|
-
return false;
|
|
14
|
-
}
|
|
15
|
-
var marks = node.node.marks.filter(function (m) {
|
|
16
|
-
return m.type.name !== 'breakout';
|
|
17
|
-
});
|
|
18
|
-
var tr = state.tr.setNodeMarkup(node.pos, node.node.type, node.node.attrs, marks);
|
|
19
|
-
tr.setMeta('scrollIntoView', false);
|
|
20
|
-
if (state.selection instanceof _state.NodeSelection) {
|
|
21
|
-
if (state.selection.$anchor.pos === node.pos) {
|
|
22
|
-
tr.setSelection(_state.NodeSelection.create(tr.doc, node.pos));
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
if (dispatch) {
|
|
26
|
-
dispatch(tr);
|
|
27
|
-
}
|
|
28
|
-
return true;
|
|
29
|
-
};
|
|
30
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.setBreakoutMode = setBreakoutMode;
|
|
7
|
-
var _findBreakoutNode = require("../utils/find-breakout-node");
|
|
8
|
-
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
9
|
-
function setBreakoutMode(mode) {
|
|
10
|
-
return function (state, dispatch) {
|
|
11
|
-
var node = (0, _findBreakoutNode.findSupportedNodeForBreakout)(state.selection);
|
|
12
|
-
if (!node) {
|
|
13
|
-
return false;
|
|
14
|
-
}
|
|
15
|
-
var tr = state.tr.setNodeMarkup(node.pos, node.node.type, node.node.attrs, [state.schema.marks.breakout.create({
|
|
16
|
-
mode: mode
|
|
17
|
-
})]);
|
|
18
|
-
tr.setMeta('scrollIntoView', false);
|
|
19
|
-
if (state.selection instanceof _state.NodeSelection) {
|
|
20
|
-
if (state.selection.$anchor.pos === node.pos) {
|
|
21
|
-
tr.setSelection(_state.NodeSelection.create(tr.doc, node.pos));
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
if (dispatch) {
|
|
25
|
-
dispatch(tr);
|
|
26
|
-
}
|
|
27
|
-
return true;
|
|
28
|
-
};
|
|
29
|
-
}
|