@atlaskit/editor-plugin-collab-edit 1.19.4 → 1.19.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/actions.js +13 -1
- package/dist/cjs/pm-plugins/main/index.js +1 -1
- package/dist/cjs/track-steps.js +3 -3
- package/dist/es2019/actions.js +10 -0
- package/dist/esm/actions.js +10 -0
- package/dist/esm/track-steps.js +3 -3
- package/dist/types/actions.d.ts +1 -0
- package/dist/types-ts4.5/actions.d.ts +1 -0
- package/package.json +7 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-collab-edit
|
|
2
2
|
|
|
3
|
+
## 1.19.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`687733bda724c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/687733bda724c) -
|
|
8
|
+
[No Issue] Enforce custom steps register
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 1.19.5
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [#138118](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/138118)
|
|
16
|
+
[`5e4d9eb1aefe4`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5e4d9eb1aefe4) -
|
|
17
|
+
NOISSUE: Upgrades editor React peer dependencies to v18
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
|
|
3
20
|
## 1.19.4
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
package/dist/cjs/actions.js
CHANGED
|
@@ -1,13 +1,25 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
3
4
|
Object.defineProperty(exports, "__esModule", {
|
|
4
5
|
value: true
|
|
5
6
|
});
|
|
6
|
-
exports.handleTelePointer = exports.handlePresence = exports.handleInit = exports.handleConnection = exports.handleActivityJoin = exports.handleActivityAck = exports.getSendableSelection = exports.applyRemoteSteps = exports.applyRemoteData = void 0;
|
|
7
|
+
exports.registerAllCustomSteps = exports.handleTelePointer = exports.handlePresence = exports.handleInit = exports.handleConnection = exports.handleActivityJoin = exports.handleActivityAck = exports.getSendableSelection = exports.applyRemoteSteps = exports.applyRemoteData = void 0;
|
|
8
|
+
var allAdfSchemaSteps = _interopRequireWildcard(require("@atlaskit/adf-schema/steps"));
|
|
9
|
+
var allAtlaskitCustomSteps = _interopRequireWildcard(require("@atlaskit/custom-steps"));
|
|
7
10
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
8
11
|
var _transform = require("@atlaskit/editor-prosemirror/transform");
|
|
9
12
|
var _prosemirrorCollab = require("@atlaskit/prosemirror-collab");
|
|
10
13
|
var _utils = require("./utils");
|
|
14
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
15
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
16
|
+
/*
|
|
17
|
+
* This is a non-op function to force ProseMirror to load and register all custom steps in the same bundle
|
|
18
|
+
*/
|
|
19
|
+
var registerAllCustomSteps = exports.registerAllCustomSteps = function registerAllCustomSteps() {
|
|
20
|
+
Object.entries(allAtlaskitCustomSteps).forEach(function () {});
|
|
21
|
+
Object.entries(allAdfSchemaSteps).forEach(function () {});
|
|
22
|
+
};
|
|
11
23
|
var handleInit = exports.handleInit = function handleInit(initData, view, options) {
|
|
12
24
|
var doc = initData.doc,
|
|
13
25
|
json = initData.json,
|
|
@@ -15,7 +15,7 @@ var _initialize = require("../../events/initialize");
|
|
|
15
15
|
var _pluginKey = require("./plugin-key");
|
|
16
16
|
var _pluginState = require("./plugin-state");
|
|
17
17
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
18
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
|
18
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
19
19
|
// It is important to get all steps in that package
|
|
20
20
|
|
|
21
21
|
// It is important to get all steps in that package
|
package/dist/cjs/track-steps.js
CHANGED
|
@@ -9,9 +9,9 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
|
|
|
9
9
|
var _steps = require("@atlaskit/adf-schema/steps");
|
|
10
10
|
var _transform = require("@atlaskit/editor-prosemirror/transform");
|
|
11
11
|
var _prosemirrorCollab = require("@atlaskit/prosemirror-collab");
|
|
12
|
-
function _createForOfIteratorHelper(
|
|
13
|
-
function _unsupportedIterableToArray(
|
|
14
|
-
function _arrayLikeToArray(
|
|
12
|
+
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
|
|
13
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
14
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
15
15
|
function groupBy(array, keyGetter) {
|
|
16
16
|
// Check group by exists, and that it's a function. If so, use the native browser code
|
|
17
17
|
if ('groupBy' in Object && typeof Object.groupBy === 'function') {
|
package/dist/es2019/actions.js
CHANGED
|
@@ -1,7 +1,17 @@
|
|
|
1
|
+
import * as allAdfSchemaSteps from '@atlaskit/adf-schema/steps';
|
|
2
|
+
import * as allAtlaskitCustomSteps from '@atlaskit/custom-steps';
|
|
1
3
|
import { AllSelection, NodeSelection } from '@atlaskit/editor-prosemirror/state';
|
|
2
4
|
import { Step } from '@atlaskit/editor-prosemirror/transform';
|
|
3
5
|
import { receiveTransaction } from '@atlaskit/prosemirror-collab';
|
|
4
6
|
import { replaceDocument } from './utils';
|
|
7
|
+
|
|
8
|
+
/*
|
|
9
|
+
* This is a non-op function to force ProseMirror to load and register all custom steps in the same bundle
|
|
10
|
+
*/
|
|
11
|
+
export const registerAllCustomSteps = () => {
|
|
12
|
+
Object.entries(allAtlaskitCustomSteps).forEach(() => {});
|
|
13
|
+
Object.entries(allAdfSchemaSteps).forEach(() => {});
|
|
14
|
+
};
|
|
5
15
|
export const handleInit = (initData, view, options) => {
|
|
6
16
|
const {
|
|
7
17
|
doc,
|
package/dist/esm/actions.js
CHANGED
|
@@ -1,7 +1,17 @@
|
|
|
1
|
+
import * as allAdfSchemaSteps from '@atlaskit/adf-schema/steps';
|
|
2
|
+
import * as allAtlaskitCustomSteps from '@atlaskit/custom-steps';
|
|
1
3
|
import { AllSelection, NodeSelection } from '@atlaskit/editor-prosemirror/state';
|
|
2
4
|
import { Step } from '@atlaskit/editor-prosemirror/transform';
|
|
3
5
|
import { receiveTransaction } from '@atlaskit/prosemirror-collab';
|
|
4
6
|
import { replaceDocument } from './utils';
|
|
7
|
+
|
|
8
|
+
/*
|
|
9
|
+
* This is a non-op function to force ProseMirror to load and register all custom steps in the same bundle
|
|
10
|
+
*/
|
|
11
|
+
export var registerAllCustomSteps = function registerAllCustomSteps() {
|
|
12
|
+
Object.entries(allAtlaskitCustomSteps).forEach(function () {});
|
|
13
|
+
Object.entries(allAdfSchemaSteps).forEach(function () {});
|
|
14
|
+
};
|
|
5
15
|
export var handleInit = function handleInit(initData, view, options) {
|
|
6
16
|
var doc = initData.doc,
|
|
7
17
|
json = initData.json,
|
package/dist/esm/track-steps.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
|
-
function _createForOfIteratorHelper(
|
|
3
|
-
function _unsupportedIterableToArray(
|
|
4
|
-
function _arrayLikeToArray(
|
|
2
|
+
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
|
|
3
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
4
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
5
5
|
import { SetAttrsStep } from '@atlaskit/adf-schema/steps';
|
|
6
6
|
import { AddMarkStep, AddNodeMarkStep, AttrStep, DocAttrStep, RemoveMarkStep, RemoveNodeMarkStep } from '@atlaskit/editor-prosemirror/transform';
|
|
7
7
|
import { sendableSteps } from '@atlaskit/prosemirror-collab';
|
package/dist/types/actions.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import type { CollabEditProvider, CollabEventConnectionData, CollabEventInitData
|
|
|
2
2
|
import type { Selection } from '@atlaskit/editor-prosemirror/state';
|
|
3
3
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
4
4
|
import type { PrivateCollabEditOptions } from './types';
|
|
5
|
+
export declare const registerAllCustomSteps: () => void;
|
|
5
6
|
export declare const handleInit: (initData: CollabEventInitData, view: EditorView, options?: PrivateCollabEditOptions) => void;
|
|
6
7
|
export declare const handleConnection: (connectionData: CollabEventConnectionData, view: EditorView) => void;
|
|
7
8
|
export declare const handlePresence: (presenceData: CollabEventPresenceData, view: EditorView) => void;
|
|
@@ -2,6 +2,7 @@ import type { CollabEditProvider, CollabEventConnectionData, CollabEventInitData
|
|
|
2
2
|
import type { Selection } from '@atlaskit/editor-prosemirror/state';
|
|
3
3
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
4
4
|
import type { PrivateCollabEditOptions } from './types';
|
|
5
|
+
export declare const registerAllCustomSteps: () => void;
|
|
5
6
|
export declare const handleInit: (initData: CollabEventInitData, view: EditorView, options?: PrivateCollabEditOptions) => void;
|
|
6
7
|
export declare const handleConnection: (connectionData: CollabEventConnectionData, view: EditorView) => void;
|
|
7
8
|
export declare const handlePresence: (presenceData: CollabEventPresenceData, view: EditorView) => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-collab-edit",
|
|
3
|
-
"version": "1.19.
|
|
3
|
+
"version": "1.19.6",
|
|
4
4
|
"description": "Collab Edit plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -9,7 +9,8 @@
|
|
|
9
9
|
},
|
|
10
10
|
"atlassian": {
|
|
11
11
|
"team": "Editor: Collaboration",
|
|
12
|
-
"singleton": true
|
|
12
|
+
"singleton": true,
|
|
13
|
+
"runReact18": true
|
|
13
14
|
},
|
|
14
15
|
"repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
|
|
15
16
|
"main": "dist/cjs/index.js",
|
|
@@ -32,8 +33,8 @@
|
|
|
32
33
|
"dependencies": {
|
|
33
34
|
"@atlaskit/adf-schema": "^40.9.0",
|
|
34
35
|
"@atlaskit/custom-steps": "^0.7.0",
|
|
35
|
-
"@atlaskit/editor-common": "^
|
|
36
|
-
"@atlaskit/editor-plugin-analytics": "1.8.
|
|
36
|
+
"@atlaskit/editor-common": "^89.0.0",
|
|
37
|
+
"@atlaskit/editor-plugin-analytics": "1.8.5",
|
|
37
38
|
"@atlaskit/editor-plugin-editor-viewmode": "^2.1.0",
|
|
38
39
|
"@atlaskit/editor-plugin-feature-flags": "^1.2.0",
|
|
39
40
|
"@atlaskit/editor-prosemirror": "5.0.1",
|
|
@@ -44,12 +45,12 @@
|
|
|
44
45
|
"memoize-one": "^6.0.0"
|
|
45
46
|
},
|
|
46
47
|
"peerDependencies": {
|
|
47
|
-
"react": "^16.8.0"
|
|
48
|
+
"react": "^16.8.0 || ^17.0.0 || ~18.2.0"
|
|
48
49
|
},
|
|
49
50
|
"devDependencies": {
|
|
50
51
|
"@af/integration-testing": "*",
|
|
51
52
|
"@af/visual-regression": "*",
|
|
52
|
-
"@atlaskit/editor-plugin-mentions": "^2.
|
|
53
|
+
"@atlaskit/editor-plugin-mentions": "^2.6.0",
|
|
53
54
|
"@atlaskit/editor-plugin-text-formatting": "^1.14.0",
|
|
54
55
|
"@atlaskit/editor-plugin-type-ahead": "^1.8.0",
|
|
55
56
|
"@atlaskit/editor-plugin-unsupported-content": "^1.8.0",
|