@atlaskit/editor-core 190.1.16 → 190.1.19
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/afm-cc/tsconfig.json +0 -3
- package/dist/cjs/plugins/collab-edit/actions.js +2 -2
- package/dist/cjs/plugins/collab-edit/index.js +4 -5
- 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/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/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-ts4.5/plugins/collab-edit/actions.d.ts +1 -1
- package/dist/types-ts4.5/plugins/collab-edit/index.d.ts +2 -2
- package/package.json +7 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 190.1.19
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 190.1.18
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#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
|
|
14
|
+
|
|
3
15
|
## 190.1.16
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/afm-cc/tsconfig.json
CHANGED
|
@@ -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() {
|
|
@@ -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',
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "190.1.
|
|
2
|
+
export const version = "190.1.19";
|
|
@@ -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() {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "190.1.
|
|
2
|
+
export var version = "190.1.19";
|
|
@@ -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;
|
|
@@ -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;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "190.1.
|
|
3
|
+
"version": "190.1.19",
|
|
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",
|
|
@@ -51,7 +52,7 @@
|
|
|
51
52
|
"@atlaskit/checkbox": "^13.0.0",
|
|
52
53
|
"@atlaskit/date": "^0.10.0",
|
|
53
54
|
"@atlaskit/datetime-picker": "^13.0.3",
|
|
54
|
-
"@atlaskit/editor-common": "^76.
|
|
55
|
+
"@atlaskit/editor-common": "^76.29.0",
|
|
55
56
|
"@atlaskit/editor-json-transformer": "^8.10.0",
|
|
56
57
|
"@atlaskit/editor-markdown-transformer": "^5.2.5",
|
|
57
58
|
"@atlaskit/editor-plugin-alignment": "^0.1.0",
|
|
@@ -95,7 +96,7 @@
|
|
|
95
96
|
"@atlaskit/editor-plugin-list": "^3.0.0",
|
|
96
97
|
"@atlaskit/editor-plugin-loom": "^0.2.0",
|
|
97
98
|
"@atlaskit/editor-plugin-max-content-size": "^0.1.0",
|
|
98
|
-
"@atlaskit/editor-plugin-media": "^0.
|
|
99
|
+
"@atlaskit/editor-plugin-media": "^0.8.0",
|
|
99
100
|
"@atlaskit/editor-plugin-mentions": "^0.1.0",
|
|
100
101
|
"@atlaskit/editor-plugin-panel": "^0.1.0",
|
|
101
102
|
"@atlaskit/editor-plugin-paste": "^0.1.0",
|
|
@@ -132,7 +133,6 @@
|
|
|
132
133
|
"@atlaskit/media-common": "^11.0.0",
|
|
133
134
|
"@atlaskit/mention": "^22.1.0",
|
|
134
135
|
"@atlaskit/platform-feature-flags": "^0.2.0",
|
|
135
|
-
"@atlaskit/prosemirror-collab": "^0.2.0",
|
|
136
136
|
"@atlaskit/radio": "^6.0.0",
|
|
137
137
|
"@atlaskit/section-message": "^6.4.0",
|
|
138
138
|
"@atlaskit/select": "^17.0.3",
|
|
@@ -158,6 +158,7 @@
|
|
|
158
158
|
"lodash": "^4.17.21",
|
|
159
159
|
"memoize-one": "^6.0.0",
|
|
160
160
|
"prop-types": "^15.5.10",
|
|
161
|
+
"prosemirror-collab": "1.3.1",
|
|
161
162
|
"raf-schd": "^4.0.3",
|
|
162
163
|
"react-loadable": "^5.1.0",
|
|
163
164
|
"react-transition-group": "^4.4.1",
|
|
@@ -176,7 +177,7 @@
|
|
|
176
177
|
"@af/visual-regression": "*",
|
|
177
178
|
"@atlaskit/analytics-listeners": "^8.7.0",
|
|
178
179
|
"@atlaskit/code": "^15.1.0",
|
|
179
|
-
"@atlaskit/collab-provider": "9.20.
|
|
180
|
+
"@atlaskit/collab-provider": "9.20.6",
|
|
180
181
|
"@atlaskit/dropdown-menu": "^12.1.0",
|
|
181
182
|
"@atlaskit/editor-extension-dropbox": "^0.4.0",
|
|
182
183
|
"@atlaskit/editor-palette": "1.5.2",
|