@atlaskit/editor-plugin-collab-edit 2.1.0 → 2.1.2
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 +14 -0
- package/dist/cjs/pm-plugins/events/initialize.js +1 -0
- package/dist/cjs/pm-plugins/main/plugin-state.js +2 -0
- package/dist/cjs/pm-plugins/utils.js +1 -1
- package/dist/es2019/pm-plugins/events/initialize.js +1 -0
- package/dist/es2019/pm-plugins/main/index.js +1 -1
- package/dist/es2019/pm-plugins/main/plugin-state.js +2 -0
- package/dist/es2019/pm-plugins/track-steps.js +1 -1
- package/dist/es2019/pm-plugins/utils.js +1 -1
- package/dist/esm/pm-plugins/events/initialize.js +1 -0
- package/dist/esm/pm-plugins/main/plugin-state.js +2 -0
- package/dist/esm/pm-plugins/utils.js +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-collab-edit
|
|
2
2
|
|
|
3
|
+
## 2.1.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#100928](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/100928)
|
|
8
|
+
[`eba68aa8d7074`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/eba68aa8d7074) -
|
|
9
|
+
Added more attributes to `blockedAttrsList`
|
|
10
|
+
|
|
11
|
+
## 2.1.1
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 2.1.0
|
|
4
18
|
|
|
5
19
|
### Minor Changes
|
|
@@ -39,6 +39,7 @@ var initialize = exports.initialize = function initialize(_ref) {
|
|
|
39
39
|
editorAnalyticsApi = _ref.editorAnalyticsApi,
|
|
40
40
|
pluginInjectionApi = _ref.pluginInjectionApi;
|
|
41
41
|
return function (provider) {
|
|
42
|
+
// eslint-disable-next-line prefer-const
|
|
42
43
|
var cleanup;
|
|
43
44
|
var pluginState = _pluginKey.pluginKey.getState(view.state);
|
|
44
45
|
if (pluginState !== null && pluginState !== void 0 && pluginState.isReady && cleanup) {
|
|
@@ -77,6 +77,8 @@ var PluginState = exports.PluginState = /*#__PURE__*/function () {
|
|
|
77
77
|
key: "apply",
|
|
78
78
|
value: function apply(tr) {
|
|
79
79
|
var _this = this;
|
|
80
|
+
// Ignored via go/ees005
|
|
81
|
+
// eslint-disable-next-line prefer-const
|
|
80
82
|
var participants = this.participants,
|
|
81
83
|
sid = this.sid,
|
|
82
84
|
isReady = this.isReady;
|
|
@@ -206,7 +206,7 @@ var originalTransactionHasMeta = exports.originalTransactionHasMeta = function o
|
|
|
206
206
|
*
|
|
207
207
|
* Steps analycs dashboard: https://atlassian-discover.cloud.databricks.com/dashboardsv3/01ef4d3c8aa916c8b0cb5332a9f37caf/published?o=4482001201517624
|
|
208
208
|
*/
|
|
209
|
-
var blockedAttrsList = ['__contextId', 'localId', '__autoSize', 'attr_colwidth'];
|
|
209
|
+
var blockedAttrsList = ['__contextId', 'localId', '__autoSize', 'attr_colwidth', 'originalHeight', 'originalWidth'];
|
|
210
210
|
|
|
211
211
|
/**
|
|
212
212
|
* Takes the transaction and editor state and checks if the transaction is considered organic change
|
|
@@ -26,6 +26,7 @@ export const initialize = ({
|
|
|
26
26
|
editorAnalyticsApi,
|
|
27
27
|
pluginInjectionApi
|
|
28
28
|
}) => provider => {
|
|
29
|
+
// eslint-disable-next-line prefer-const
|
|
29
30
|
let cleanup;
|
|
30
31
|
const pluginState = pluginKey.getState(view.state);
|
|
31
32
|
if (pluginState !== null && pluginState !== void 0 && pluginState.isReady && cleanup) {
|
|
@@ -16,7 +16,7 @@ import { pluginKey } from './plugin-key';
|
|
|
16
16
|
import { PluginState } from './plugin-state';
|
|
17
17
|
const enforceCustomStepRegisters = () => {
|
|
18
18
|
const tryToRegisterStep = obj => {
|
|
19
|
-
for (
|
|
19
|
+
for (const customStep of Object.values(obj)) {
|
|
20
20
|
var _customStep$prototype;
|
|
21
21
|
// I know this seems awful
|
|
22
22
|
// But unfortunate ProseMirror does not expose the jsonID property p
|
|
@@ -52,6 +52,8 @@ export class PluginState {
|
|
|
52
52
|
return (_participant$presence = participant === null || participant === void 0 ? void 0 : participant.presenceId) !== null && _participant$presence !== void 0 ? _participant$presence : sessionId;
|
|
53
53
|
}
|
|
54
54
|
apply(tr) {
|
|
55
|
+
// Ignored via go/ees005
|
|
56
|
+
// eslint-disable-next-line prefer-const
|
|
55
57
|
let {
|
|
56
58
|
participants,
|
|
57
59
|
sid,
|
|
@@ -192,7 +192,7 @@ export const originalTransactionHasMeta = (transaction, metaTag) => {
|
|
|
192
192
|
*
|
|
193
193
|
* Steps analycs dashboard: https://atlassian-discover.cloud.databricks.com/dashboardsv3/01ef4d3c8aa916c8b0cb5332a9f37caf/published?o=4482001201517624
|
|
194
194
|
*/
|
|
195
|
-
const blockedAttrsList = ['__contextId', 'localId', '__autoSize', 'attr_colwidth'];
|
|
195
|
+
const blockedAttrsList = ['__contextId', 'localId', '__autoSize', 'attr_colwidth', 'originalHeight', 'originalWidth'];
|
|
196
196
|
|
|
197
197
|
/**
|
|
198
198
|
* Takes the transaction and editor state and checks if the transaction is considered organic change
|
|
@@ -32,6 +32,7 @@ export var initialize = function initialize(_ref) {
|
|
|
32
32
|
editorAnalyticsApi = _ref.editorAnalyticsApi,
|
|
33
33
|
pluginInjectionApi = _ref.pluginInjectionApi;
|
|
34
34
|
return function (provider) {
|
|
35
|
+
// eslint-disable-next-line prefer-const
|
|
35
36
|
var cleanup;
|
|
36
37
|
var pluginState = pluginKey.getState(view.state);
|
|
37
38
|
if (pluginState !== null && pluginState !== void 0 && pluginState.isReady && cleanup) {
|
|
@@ -71,6 +71,8 @@ export var PluginState = /*#__PURE__*/function () {
|
|
|
71
71
|
key: "apply",
|
|
72
72
|
value: function apply(tr) {
|
|
73
73
|
var _this = this;
|
|
74
|
+
// Ignored via go/ees005
|
|
75
|
+
// eslint-disable-next-line prefer-const
|
|
74
76
|
var participants = this.participants,
|
|
75
77
|
sid = this.sid,
|
|
76
78
|
isReady = this.isReady;
|
|
@@ -197,7 +197,7 @@ export var originalTransactionHasMeta = function originalTransactionHasMeta(tran
|
|
|
197
197
|
*
|
|
198
198
|
* Steps analycs dashboard: https://atlassian-discover.cloud.databricks.com/dashboardsv3/01ef4d3c8aa916c8b0cb5332a9f37caf/published?o=4482001201517624
|
|
199
199
|
*/
|
|
200
|
-
var blockedAttrsList = ['__contextId', 'localId', '__autoSize', 'attr_colwidth'];
|
|
200
|
+
var blockedAttrsList = ['__contextId', 'localId', '__autoSize', 'attr_colwidth', 'originalHeight', 'originalWidth'];
|
|
201
201
|
|
|
202
202
|
/**
|
|
203
203
|
* Takes the transaction and editor state and checks if the transaction is considered organic change
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-collab-edit",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.2",
|
|
4
4
|
"description": "Collab Edit plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -33,9 +33,9 @@
|
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@atlaskit/adf-schema": "^46.1.0",
|
|
35
35
|
"@atlaskit/custom-steps": "^0.9.0",
|
|
36
|
-
"@atlaskit/editor-common": "^
|
|
36
|
+
"@atlaskit/editor-common": "^98.2.0",
|
|
37
37
|
"@atlaskit/editor-json-transformer": "^8.21.0",
|
|
38
|
-
"@atlaskit/editor-plugin-analytics": "1.10.
|
|
38
|
+
"@atlaskit/editor-plugin-analytics": "1.10.10",
|
|
39
39
|
"@atlaskit/editor-plugin-editor-viewmode": "^2.1.0",
|
|
40
40
|
"@atlaskit/editor-plugin-feature-flags": "^1.2.0",
|
|
41
41
|
"@atlaskit/editor-prosemirror": "6.2.1",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@af/integration-testing": "*",
|
|
54
54
|
"@af/visual-regression": "*",
|
|
55
|
-
"@atlaskit/editor-plugin-mentions": "^2.
|
|
55
|
+
"@atlaskit/editor-plugin-mentions": "^2.11.0",
|
|
56
56
|
"@atlaskit/editor-plugin-text-formatting": "^1.16.0",
|
|
57
57
|
"@atlaskit/editor-plugin-type-ahead": "^1.11.0",
|
|
58
58
|
"@atlaskit/editor-plugin-unsupported-content": "^1.9.0",
|