@atlaskit/editor-plugin-collab-edit 3.3.0 → 3.4.1
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 +22 -0
- package/dist/cjs/collabEditPlugin.js +3 -3
- package/dist/es2019/collabEditPlugin.js +3 -3
- package/dist/esm/collabEditPlugin.js +3 -3
- package/dist/types/collabEditPluginType.d.ts +2 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types-ts4.5/collabEditPluginType.d.ts +2 -1
- package/dist/types-ts4.5/index.d.ts +1 -1
- package/package.json +8 -13
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-collab-edit
|
|
2
2
|
|
|
3
|
+
## 3.4.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#140813](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/140813)
|
|
8
|
+
[`c4756a5c1a4ae`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c4756a5c1a4ae) -
|
|
9
|
+
Migrating offline editing feature gates to a new experiment "platform_editor_offline_editing_web"
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 3.4.0
|
|
13
|
+
|
|
14
|
+
### Minor Changes
|
|
15
|
+
|
|
16
|
+
- [#139139](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/139139)
|
|
17
|
+
[`7f6b665d778dd`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7f6b665d778dd) -
|
|
18
|
+
[https://product-fabric.atlassian.net/browse/ED-27499](ED-27499) - the new
|
|
19
|
+
`@atlassian/confluence-presets` package with Confluence `full-page` preset is created
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- Updated dependencies
|
|
24
|
+
|
|
3
25
|
## 3.3.0
|
|
4
26
|
|
|
5
27
|
### Minor Changes
|
|
@@ -13,8 +13,8 @@ var _analytics = require("@atlaskit/editor-common/analytics");
|
|
|
13
13
|
var _utils = require("@atlaskit/editor-common/utils");
|
|
14
14
|
var _editorJsonTransformer = require("@atlaskit/editor-json-transformer");
|
|
15
15
|
var _transform = require("@atlaskit/editor-prosemirror/transform");
|
|
16
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
17
16
|
var _prosemirrorCollab = require("@atlaskit/prosemirror-collab");
|
|
17
|
+
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
18
18
|
var _analytics2 = require("./pm-plugins/analytics");
|
|
19
19
|
var _sendTransaction = require("./pm-plugins/events/send-transaction");
|
|
20
20
|
var _main = require("./pm-plugins/main");
|
|
@@ -206,7 +206,7 @@ var collabEditPlugin = exports.collabEditPlugin = function collabEditPlugin(_ref
|
|
|
206
206
|
plugin: function plugin() {
|
|
207
207
|
return (0, _prosemirrorCollab.collab)({
|
|
208
208
|
clientID: userId,
|
|
209
|
-
transformUnconfirmed: (0,
|
|
209
|
+
transformUnconfirmed: (0, _experiments.editorExperiment)('platform_editor_offline_editing_web', true) ? function (steps) {
|
|
210
210
|
return (0, _mergeUnconfirmed.mergeUnconfirmedSteps)(steps, api);
|
|
211
211
|
} : undefined
|
|
212
212
|
});
|
|
@@ -252,7 +252,7 @@ var collabEditPlugin = exports.collabEditPlugin = function collabEditPlugin(_ref
|
|
|
252
252
|
name: 'collabTrackLastOrganicChangePlugin',
|
|
253
253
|
plugin: _trackLastOrganicChange.createPlugin
|
|
254
254
|
});
|
|
255
|
-
if ((0,
|
|
255
|
+
if ((0, _experiments.editorExperiment)('platform_editor_offline_editing_web', true)) {
|
|
256
256
|
plugins.push({
|
|
257
257
|
name: 'trackLastRemoteConflictPlugin',
|
|
258
258
|
plugin: _trackReconnectionConflict.createPlugin
|
|
@@ -2,8 +2,8 @@ import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/anal
|
|
|
2
2
|
import { isEmptyDocument } from '@atlaskit/editor-common/utils';
|
|
3
3
|
import { JSONTransformer } from '@atlaskit/editor-json-transformer';
|
|
4
4
|
import { AddMarkStep, AddNodeMarkStep } from '@atlaskit/editor-prosemirror/transform';
|
|
5
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
5
|
import { collab, getCollabState, sendableSteps } from '@atlaskit/prosemirror-collab';
|
|
6
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
7
7
|
import { addSynchronyErrorAnalytics } from './pm-plugins/analytics';
|
|
8
8
|
import { sendTransaction } from './pm-plugins/events/send-transaction';
|
|
9
9
|
import { createPlugin } from './pm-plugins/main';
|
|
@@ -160,7 +160,7 @@ export const collabEditPlugin = ({
|
|
|
160
160
|
name: 'pmCollab',
|
|
161
161
|
plugin: () => collab({
|
|
162
162
|
clientID: userId,
|
|
163
|
-
transformUnconfirmed:
|
|
163
|
+
transformUnconfirmed: editorExperiment('platform_editor_offline_editing_web', true) ? steps => mergeUnconfirmedSteps(steps, api) : undefined
|
|
164
164
|
})
|
|
165
165
|
}, {
|
|
166
166
|
name: 'nativeCollabProviderPlugin',
|
|
@@ -198,7 +198,7 @@ export const collabEditPlugin = ({
|
|
|
198
198
|
name: 'collabTrackLastOrganicChangePlugin',
|
|
199
199
|
plugin: createLastOrganicChangePlugin
|
|
200
200
|
});
|
|
201
|
-
if (
|
|
201
|
+
if (editorExperiment('platform_editor_offline_editing_web', true)) {
|
|
202
202
|
plugins.push({
|
|
203
203
|
name: 'trackLastRemoteConflictPlugin',
|
|
204
204
|
plugin: createTrackReconnectionConflictPlugin
|
|
@@ -8,8 +8,8 @@ import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/anal
|
|
|
8
8
|
import { isEmptyDocument } from '@atlaskit/editor-common/utils';
|
|
9
9
|
import { JSONTransformer } from '@atlaskit/editor-json-transformer';
|
|
10
10
|
import { AddMarkStep, AddNodeMarkStep } from '@atlaskit/editor-prosemirror/transform';
|
|
11
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
12
11
|
import { collab, getCollabState, sendableSteps } from '@atlaskit/prosemirror-collab';
|
|
12
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
13
13
|
import { addSynchronyErrorAnalytics } from './pm-plugins/analytics';
|
|
14
14
|
import { sendTransaction } from './pm-plugins/events/send-transaction';
|
|
15
15
|
import { createPlugin } from './pm-plugins/main';
|
|
@@ -199,7 +199,7 @@ export var collabEditPlugin = function collabEditPlugin(_ref4) {
|
|
|
199
199
|
plugin: function plugin() {
|
|
200
200
|
return collab({
|
|
201
201
|
clientID: userId,
|
|
202
|
-
transformUnconfirmed:
|
|
202
|
+
transformUnconfirmed: editorExperiment('platform_editor_offline_editing_web', true) ? function (steps) {
|
|
203
203
|
return mergeUnconfirmedSteps(steps, api);
|
|
204
204
|
} : undefined
|
|
205
205
|
});
|
|
@@ -245,7 +245,7 @@ export var collabEditPlugin = function collabEditPlugin(_ref4) {
|
|
|
245
245
|
name: 'collabTrackLastOrganicChangePlugin',
|
|
246
246
|
plugin: createLastOrganicChangePlugin
|
|
247
247
|
});
|
|
248
|
-
if (
|
|
248
|
+
if (editorExperiment('platform_editor_offline_editing_web', true)) {
|
|
249
249
|
plugins.push({
|
|
250
250
|
name: 'trackLastRemoteConflictPlugin',
|
|
251
251
|
plugin: createTrackReconnectionConflictPlugin
|
|
@@ -13,8 +13,9 @@ export type CollabEditPluginDependencies = [
|
|
|
13
13
|
OptionalPlugin<EditorViewModePlugin>,
|
|
14
14
|
OptionalPlugin<ConnectivityPlugin>
|
|
15
15
|
];
|
|
16
|
+
export type CollabEditPluginOptions = PrivateCollabEditOptions;
|
|
16
17
|
export type CollabEditPlugin = NextEditorPlugin<'collabEdit', {
|
|
17
|
-
pluginConfiguration:
|
|
18
|
+
pluginConfiguration: CollabEditPluginOptions;
|
|
18
19
|
dependencies: CollabEditPluginDependencies;
|
|
19
20
|
sharedState: CollabEditPluginSharedState;
|
|
20
21
|
actions: {
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { collabEditPlugin } from './collabEditPlugin';
|
|
2
|
-
export type { CollabEditPlugin } from './collabEditPluginType';
|
|
2
|
+
export type { CollabEditPlugin, CollabEditPluginOptions } from './collabEditPluginType';
|
|
3
3
|
export type { CollabInitializedMetadata, CollabEditPluginSharedState, ReadOnlyParticipants, PrivateCollabEditOptions, CollabSendableSteps, } from './types';
|
|
@@ -13,8 +13,9 @@ export type CollabEditPluginDependencies = [
|
|
|
13
13
|
OptionalPlugin<EditorViewModePlugin>,
|
|
14
14
|
OptionalPlugin<ConnectivityPlugin>
|
|
15
15
|
];
|
|
16
|
+
export type CollabEditPluginOptions = PrivateCollabEditOptions;
|
|
16
17
|
export type CollabEditPlugin = NextEditorPlugin<'collabEdit', {
|
|
17
|
-
pluginConfiguration:
|
|
18
|
+
pluginConfiguration: CollabEditPluginOptions;
|
|
18
19
|
dependencies: CollabEditPluginDependencies;
|
|
19
20
|
sharedState: CollabEditPluginSharedState;
|
|
20
21
|
actions: {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { collabEditPlugin } from './collabEditPlugin';
|
|
2
|
-
export type { CollabEditPlugin } from './collabEditPluginType';
|
|
2
|
+
export type { CollabEditPlugin, CollabEditPluginOptions } from './collabEditPluginType';
|
|
3
3
|
export type { CollabInitializedMetadata, CollabEditPluginSharedState, ReadOnlyParticipants, PrivateCollabEditOptions, CollabSendableSteps, } from './types';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-collab-edit",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.4.1",
|
|
4
4
|
"description": "Collab Edit plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -33,16 +33,17 @@
|
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@atlaskit/adf-schema": "^47.6.0",
|
|
35
35
|
"@atlaskit/custom-steps": "^0.11.0",
|
|
36
|
-
"@atlaskit/editor-common": "^103.
|
|
36
|
+
"@atlaskit/editor-common": "^103.6.0",
|
|
37
37
|
"@atlaskit/editor-json-transformer": "^8.24.0",
|
|
38
38
|
"@atlaskit/editor-plugin-analytics": "^2.2.0",
|
|
39
39
|
"@atlaskit/editor-plugin-connectivity": "^2.0.0",
|
|
40
|
-
"@atlaskit/editor-plugin-editor-viewmode": "^3.
|
|
41
|
-
"@atlaskit/editor-plugin-feature-flags": "^1.
|
|
40
|
+
"@atlaskit/editor-plugin-editor-viewmode": "^3.1.0",
|
|
41
|
+
"@atlaskit/editor-plugin-feature-flags": "^1.4.0",
|
|
42
42
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
43
43
|
"@atlaskit/editor-shared-styles": "^3.4.0",
|
|
44
44
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
45
45
|
"@atlaskit/prosemirror-collab": "^0.16.0",
|
|
46
|
+
"@atlaskit/tmp-editor-statsig": "^4.8.0",
|
|
46
47
|
"@babel/runtime": "^7.0.0",
|
|
47
48
|
"memoize-one": "^6.0.0"
|
|
48
49
|
},
|
|
@@ -53,9 +54,9 @@
|
|
|
53
54
|
"devDependencies": {
|
|
54
55
|
"@af/integration-testing": "^0.5.0",
|
|
55
56
|
"@af/visual-regression": "^1.3.0",
|
|
56
|
-
"@atlaskit/editor-plugin-mentions": "^4.
|
|
57
|
-
"@atlaskit/editor-plugin-text-formatting": "^2.
|
|
58
|
-
"@atlaskit/editor-plugin-type-ahead": "^2.
|
|
57
|
+
"@atlaskit/editor-plugin-mentions": "^4.4.0",
|
|
58
|
+
"@atlaskit/editor-plugin-text-formatting": "^2.2.0",
|
|
59
|
+
"@atlaskit/editor-plugin-type-ahead": "^2.4.0",
|
|
59
60
|
"@atlaskit/editor-plugin-unsupported-content": "^2.1.0",
|
|
60
61
|
"@atlaskit/editor-test-helpers": "^22.1.0",
|
|
61
62
|
"@atlaskit/ssr": "^0.4.0",
|
|
@@ -106,12 +107,6 @@
|
|
|
106
107
|
"platform_editor_use_nested_table_pm_nodes": {
|
|
107
108
|
"type": "boolean"
|
|
108
109
|
},
|
|
109
|
-
"platform_editor_merge_unconfirmed_steps": {
|
|
110
|
-
"type": "boolean"
|
|
111
|
-
},
|
|
112
|
-
"platform_editor_offline_conflict_resolution": {
|
|
113
|
-
"type": "boolean"
|
|
114
|
-
},
|
|
115
110
|
"platform_editor_selection_without_left_shift": {
|
|
116
111
|
"type": "boolean"
|
|
117
112
|
},
|