@atlaskit/editor-plugin-collab-edit 17.0.8 → 17.0.10
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 +19 -0
- package/dist/cjs/collabEditPlugin.js +5 -5
- package/dist/cjs/pm-plugins/actions.js +1 -1
- package/dist/es2019/collabEditPlugin.js +2 -2
- package/dist/es2019/pm-plugins/actions.js +1 -1
- package/dist/esm/collabEditPlugin.js +2 -2
- package/dist/esm/pm-plugins/actions.js +1 -1
- package/package.json +12 -12
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-collab-edit
|
|
2
2
|
|
|
3
|
+
## 17.0.10
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`08bf773f7599a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/08bf773f7599a) -
|
|
8
|
+
Migrate experiments to use the new platform experiment API. This major release removes the
|
|
9
|
+
migrated experiment entries from `@atlaskit/tmp-editor-statsig`'s `editorExperimentsConfig` and
|
|
10
|
+
test overrides. Consumers must replace legacy `expVal`/`expValEquals` calls with
|
|
11
|
+
`@atlaskit/platform-feature-experiments` APIs, using `isExperimentEnabled` for boolean `isEnabled`
|
|
12
|
+
experiments and `expVal` for parameterized experiments; use `mockExpEnabled`/`mockExpDisabled` in
|
|
13
|
+
tests.
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
|
|
16
|
+
## 17.0.9
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- Updated dependencies
|
|
21
|
+
|
|
3
22
|
## 17.0.8
|
|
4
23
|
|
|
5
24
|
### Patch Changes
|
|
@@ -11,12 +11,12 @@ var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers
|
|
|
11
11
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
12
12
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
13
13
|
var _utils = require("@atlaskit/editor-common/utils");
|
|
14
|
-
var
|
|
14
|
+
var _JSONTransformer = require("@atlaskit/editor-json-transformer/JSONTransformer-2");
|
|
15
15
|
var _transform = require("@atlaskit/editor-prosemirror/transform");
|
|
16
16
|
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
17
17
|
var _prosemirrorCollab = require("@atlaskit/prosemirror-collab");
|
|
18
18
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
19
|
-
var
|
|
19
|
+
var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
|
|
20
20
|
var _analytics2 = require("./pm-plugins/analytics");
|
|
21
21
|
var _sendTransaction = require("./pm-plugins/events/send-transaction");
|
|
22
22
|
var _filterAnalytics = require("./pm-plugins/filterAnalytics");
|
|
@@ -164,7 +164,7 @@ var collabEditPlugin = exports.collabEditPlugin = function collabEditPlugin(_ref
|
|
|
164
164
|
var _getCollabState;
|
|
165
165
|
// Ignored via go/ees005
|
|
166
166
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
167
|
-
var adfDocument = new
|
|
167
|
+
var adfDocument = new _JSONTransformer.JSONTransformer().encode(editorViewRef.current.state.doc);
|
|
168
168
|
return {
|
|
169
169
|
content: adfDocument,
|
|
170
170
|
// Ignored via go/ees005
|
|
@@ -207,7 +207,7 @@ var collabEditPlugin = exports.collabEditPlugin = function collabEditPlugin(_ref
|
|
|
207
207
|
userId = _ref5$userId === void 0 ? null : _ref5$userId;
|
|
208
208
|
var transformUnconfirmed = function transformUnconfirmed(steps) {
|
|
209
209
|
var transformed = (0, _filterAnalytics.filterAnalyticsSteps)(steps);
|
|
210
|
-
if ((0,
|
|
210
|
+
if ((0, _editorExperiment.editorExperiment)('platform_editor_offline_editing_web', true) || (0, _expValEquals.expValEquals)('platform_editor_enable_single_player_step_merging', 'isEnabled', true)) {
|
|
211
211
|
return (0, _mergeUnconfirmed.mergeUnconfirmedSteps)(transformed, api);
|
|
212
212
|
}
|
|
213
213
|
return transformed;
|
|
@@ -261,7 +261,7 @@ var collabEditPlugin = exports.collabEditPlugin = function collabEditPlugin(_ref
|
|
|
261
261
|
name: 'collabTrackLastOrganicChangePlugin',
|
|
262
262
|
plugin: _trackLastOrganicChange.createPlugin
|
|
263
263
|
});
|
|
264
|
-
if ((0,
|
|
264
|
+
if ((0, _editorExperiment.editorExperiment)('platform_editor_offline_editing_web', true)) {
|
|
265
265
|
plugins.push({
|
|
266
266
|
name: 'trackLastRemoteConflictPlugin',
|
|
267
267
|
plugin: _trackReconnectionConflict.createPlugin
|
|
@@ -13,11 +13,11 @@ var _collabAgentEditChrome = require("@atlaskit/editor-common/collab-agent-edit-
|
|
|
13
13
|
var _collabAgentRemoteEditReview = require("@atlaskit/editor-common/collab-agent-remote-edit-review");
|
|
14
14
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
15
15
|
var _transformOverride = require("@atlaskit/editor-prosemirror/transform-override");
|
|
16
|
+
var _expVal = require("@atlaskit/platform-feature-experiments/exp-val");
|
|
16
17
|
var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
|
|
17
18
|
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
18
19
|
var _prosemirrorCollab = require("@atlaskit/prosemirror-collab");
|
|
19
20
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
20
|
-
var _expVal = require("@atlaskit/tmp-editor-statsig/expVal");
|
|
21
21
|
var _analytics = require("./analytics");
|
|
22
22
|
var _agentReviewSegments = require("./main/agent-review-segments");
|
|
23
23
|
var _agentShimmerDecorations = require("./main/agent-shimmer-decorations");
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
2
2
|
import { isEmptyDocument } from '@atlaskit/editor-common/utils';
|
|
3
|
-
import { JSONTransformer } from '@atlaskit/editor-json-transformer';
|
|
3
|
+
import { JSONTransformer } from '@atlaskit/editor-json-transformer/JSONTransformer-2';
|
|
4
4
|
import { AddMarkStep, AddNodeMarkStep } from '@atlaskit/editor-prosemirror/transform';
|
|
5
5
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
6
6
|
import { collab, getCollabState, sendableSteps } from '@atlaskit/prosemirror-collab';
|
|
7
7
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
8
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/
|
|
8
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
9
9
|
import { addSynchronyErrorAnalytics } from './pm-plugins/analytics';
|
|
10
10
|
import { sendTransaction } from './pm-plugins/events/send-transaction';
|
|
11
11
|
import { filterAnalyticsSteps } from './pm-plugins/filterAnalytics';
|
|
@@ -8,11 +8,11 @@ import { AGENT_EDIT_CHROME_DATA, getAgentEditChromeDynamicConfig } from '@atlask
|
|
|
8
8
|
import { AGENT_REMOTE_EDIT_REVIEW_DATA } from '@atlaskit/editor-common/collab-agent-remote-edit-review';
|
|
9
9
|
import { AllSelection, NodeSelection } from '@atlaskit/editor-prosemirror/state';
|
|
10
10
|
import { Step } from '@atlaskit/editor-prosemirror/transform-override';
|
|
11
|
+
import { expVal } from '@atlaskit/platform-feature-experiments/exp-val';
|
|
11
12
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
12
13
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
13
14
|
import { receiveTransaction } from '@atlaskit/prosemirror-collab';
|
|
14
15
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
15
|
-
import { expVal } from '@atlaskit/tmp-editor-statsig/expVal';
|
|
16
16
|
import { getAgentEditShimmerNotShownPayload } from './analytics';
|
|
17
17
|
import { getAgentEditSegments } from './main/agent-review-segments';
|
|
18
18
|
import { ADD_AGENT_SHIMMER_META, AGENT_EDIT_HIGHLIGHT_DEFAULT_DURATION_MS, AGENT_SHIMMER_DEFAULT_DURATION_MS, HIGHLIGHT_AGENT_SHIMMER_META, REMOVE_AGENT_SHIMMER_META } from './main/agent-shimmer-decorations';
|
|
@@ -6,12 +6,12 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
6
6
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
7
7
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
8
8
|
import { isEmptyDocument } from '@atlaskit/editor-common/utils';
|
|
9
|
-
import { JSONTransformer } from '@atlaskit/editor-json-transformer';
|
|
9
|
+
import { JSONTransformer } from '@atlaskit/editor-json-transformer/JSONTransformer-2';
|
|
10
10
|
import { AddMarkStep, AddNodeMarkStep } from '@atlaskit/editor-prosemirror/transform';
|
|
11
11
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
12
12
|
import { collab, getCollabState, sendableSteps } from '@atlaskit/prosemirror-collab';
|
|
13
13
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
14
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/
|
|
14
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
15
15
|
import { addSynchronyErrorAnalytics } from './pm-plugins/analytics';
|
|
16
16
|
import { sendTransaction } from './pm-plugins/events/send-transaction';
|
|
17
17
|
import { filterAnalyticsSteps } from './pm-plugins/filterAnalytics';
|
|
@@ -11,11 +11,11 @@ import { AGENT_EDIT_CHROME_DATA, getAgentEditChromeDynamicConfig } from '@atlask
|
|
|
11
11
|
import { AGENT_REMOTE_EDIT_REVIEW_DATA } from '@atlaskit/editor-common/collab-agent-remote-edit-review';
|
|
12
12
|
import { AllSelection, NodeSelection } from '@atlaskit/editor-prosemirror/state';
|
|
13
13
|
import { Step } from '@atlaskit/editor-prosemirror/transform-override';
|
|
14
|
+
import { expVal } from '@atlaskit/platform-feature-experiments/exp-val';
|
|
14
15
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
15
16
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
16
17
|
import { receiveTransaction } from '@atlaskit/prosemirror-collab';
|
|
17
18
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
18
|
-
import { expVal } from '@atlaskit/tmp-editor-statsig/expVal';
|
|
19
19
|
import { getAgentEditShimmerNotShownPayload } from './analytics';
|
|
20
20
|
import { getAgentEditSegments } from './main/agent-review-segments';
|
|
21
21
|
import { ADD_AGENT_SHIMMER_META, AGENT_EDIT_HIGHLIGHT_DEFAULT_DURATION_MS, AGENT_SHIMMER_DEFAULT_DURATION_MS, HIGHLIGHT_AGENT_SHIMMER_META, REMOVE_AGENT_SHIMMER_META } from './main/agent-shimmer-decorations';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-collab-edit",
|
|
3
|
-
"version": "17.0.
|
|
3
|
+
"version": "17.0.10",
|
|
4
4
|
"description": "Collab Edit plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -20,25 +20,25 @@
|
|
|
20
20
|
"atlaskit:src": "src/index.ts",
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@atlaskit/adf-schema": "^57.2.0",
|
|
23
|
-
"@atlaskit/custom-steps": "^1.
|
|
24
|
-
"@atlaskit/editor-json-transformer": "^9.
|
|
25
|
-
"@atlaskit/editor-plugin-analytics": "^16.
|
|
23
|
+
"@atlaskit/custom-steps": "^1.1.0",
|
|
24
|
+
"@atlaskit/editor-json-transformer": "^9.8.0",
|
|
25
|
+
"@atlaskit/editor-plugin-analytics": "^16.1.0",
|
|
26
26
|
"@atlaskit/editor-plugin-connectivity": "^16.0.0",
|
|
27
27
|
"@atlaskit/editor-plugin-editor-viewmode": "^18.0.0",
|
|
28
|
-
"@atlaskit/editor-plugin-feature-flags": "^15.
|
|
28
|
+
"@atlaskit/editor-plugin-feature-flags": "^15.1.0",
|
|
29
29
|
"@atlaskit/editor-prosemirror": "^8.0.0",
|
|
30
|
-
"@atlaskit/editor-shared-styles": "^4.
|
|
31
|
-
"@atlaskit/frontend-utilities": "^4.
|
|
30
|
+
"@atlaskit/editor-shared-styles": "^4.1.0",
|
|
31
|
+
"@atlaskit/frontend-utilities": "^4.3.0",
|
|
32
32
|
"@atlaskit/platform-feature-experiments": "^0.3.0",
|
|
33
|
-
"@atlaskit/platform-feature-flags": "^2.
|
|
34
|
-
"@atlaskit/prosemirror-collab": "^1.
|
|
35
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
36
|
-
"@atlaskit/tokens": "^16.
|
|
33
|
+
"@atlaskit/platform-feature-flags": "^2.2.0",
|
|
34
|
+
"@atlaskit/prosemirror-collab": "^1.1.0",
|
|
35
|
+
"@atlaskit/tmp-editor-statsig": "^169.0.0",
|
|
36
|
+
"@atlaskit/tokens": "^16.10.0",
|
|
37
37
|
"@babel/runtime": "^7.0.0",
|
|
38
38
|
"memoize-one": "^6.0.0"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
|
-
"@atlaskit/editor-common": "^120.
|
|
41
|
+
"@atlaskit/editor-common": "^120.10.0",
|
|
42
42
|
"react": "^18.2.0 || ^19.2.0",
|
|
43
43
|
"react-dom": "^18.2.0 || ^19.2.0"
|
|
44
44
|
},
|