@atlaskit/editor-plugin-collab-edit 7.0.3 → 7.1.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
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-collab-edit
|
|
2
2
|
|
|
3
|
+
## 7.1.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`6d4a0ec8c53a8`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6d4a0ec8c53a8) -
|
|
8
|
+
upgrade use of browser util
|
|
9
|
+
|
|
10
|
+
## 7.1.0
|
|
11
|
+
|
|
12
|
+
### Minor Changes
|
|
13
|
+
|
|
14
|
+
- [`5167552fe1a93`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5167552fe1a93) -
|
|
15
|
+
[EDITOR-2339] Bump @atlaskit/adf-schema to 51.3.0
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Updated dependencies
|
|
20
|
+
|
|
3
21
|
## 7.0.3
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
|
@@ -235,7 +253,6 @@
|
|
|
235
253
|
shared context or singletons.
|
|
236
254
|
|
|
237
255
|
**HOW TO ADJUST:**
|
|
238
|
-
|
|
239
256
|
- Consumers must now explicitly install `@atlaskit/editor-common` in their own project if they use
|
|
240
257
|
any of these editor plugins.
|
|
241
258
|
- Ensure the version you install matches the version required by the plugins.
|
|
@@ -710,7 +727,6 @@
|
|
|
710
727
|
Removed re-exports of external dependency.
|
|
711
728
|
|
|
712
729
|
@atlaskit/editor-plugin-collab-edit:
|
|
713
|
-
|
|
714
730
|
- type { CollabInviteToEditProps } -> @atlaskit/editor-common/collab
|
|
715
731
|
|
|
716
732
|
## 1.23.7
|
|
@@ -13,6 +13,7 @@ var _collab = require("@atlaskit/editor-common/collab");
|
|
|
13
13
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
14
14
|
var _view = require("@atlaskit/editor-prosemirror/view");
|
|
15
15
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
16
|
+
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
16
17
|
var _participants = require("../participants");
|
|
17
18
|
var _utils = require("../utils");
|
|
18
19
|
/**
|
|
@@ -200,6 +201,7 @@ var PluginState = exports.PluginState = /*#__PURE__*/function () {
|
|
|
200
201
|
this.decorationSet.find().forEach(function (deco) {
|
|
201
202
|
if (deco.type.toDOM) {
|
|
202
203
|
var hasTelepointerDimClass = deco.type.toDOM.classList.contains(_collab.TELEPOINTER_DIM_CLASS);
|
|
204
|
+
var browser = (0, _expValEquals.expValEquals)('platform_editor_hydratable_ui', 'isEnabled', true) ? (0, _browser.getBrowserInfo)() : _browser.browser;
|
|
203
205
|
if (deco.from === selection.from && deco.to === selection.to) {
|
|
204
206
|
if (!hasTelepointerDimClass) {
|
|
205
207
|
deco.type.toDOM.classList.add(_collab.TELEPOINTER_DIM_CLASS);
|
|
@@ -208,7 +210,7 @@ var PluginState = exports.PluginState = /*#__PURE__*/function () {
|
|
|
208
210
|
// Browser condition here to fix ED-14722 where telepointer
|
|
209
211
|
// decorations with side -1 in Firefox causes backspace issues.
|
|
210
212
|
// This is likely caused by contenteditable quirks in Firefox
|
|
211
|
-
if (!
|
|
213
|
+
if (!browser.gecko) {
|
|
212
214
|
deco.type.side = -1;
|
|
213
215
|
}
|
|
214
216
|
} else {
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
import { browser } from '@atlaskit/editor-common/browser';
|
|
2
|
+
import { browser as browserLegacy, getBrowserInfo } from '@atlaskit/editor-common/browser';
|
|
3
3
|
import { TELEPOINTER_DIM_CLASS, TELEPOINTER_PULSE_CLASS, TELEPOINTER_PULSE_DURING_TR_CLASS } from '@atlaskit/editor-common/collab';
|
|
4
4
|
import { Selection } from '@atlaskit/editor-prosemirror/state';
|
|
5
5
|
import { DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
6
6
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
7
8
|
import { Participants } from '../participants';
|
|
8
9
|
import { createTelepointers, findPointers, getPositionOfTelepointer, isReplaceStep, hasExistingNudge } from '../utils';
|
|
9
10
|
|
|
@@ -184,6 +185,7 @@ export class PluginState {
|
|
|
184
185
|
this.decorationSet.find().forEach(deco => {
|
|
185
186
|
if (deco.type.toDOM) {
|
|
186
187
|
const hasTelepointerDimClass = deco.type.toDOM.classList.contains(TELEPOINTER_DIM_CLASS);
|
|
188
|
+
const browser = expValEquals('platform_editor_hydratable_ui', 'isEnabled', true) ? getBrowserInfo() : browserLegacy;
|
|
187
189
|
if (deco.from === selection.from && deco.to === selection.to) {
|
|
188
190
|
if (!hasTelepointerDimClass) {
|
|
189
191
|
deco.type.toDOM.classList.add(TELEPOINTER_DIM_CLASS);
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
2
2
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
3
3
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
4
|
-
import { browser } from '@atlaskit/editor-common/browser';
|
|
4
|
+
import { browser as browserLegacy, getBrowserInfo } from '@atlaskit/editor-common/browser';
|
|
5
5
|
import { TELEPOINTER_DIM_CLASS, TELEPOINTER_PULSE_CLASS, TELEPOINTER_PULSE_DURING_TR_CLASS } from '@atlaskit/editor-common/collab';
|
|
6
6
|
import { Selection } from '@atlaskit/editor-prosemirror/state';
|
|
7
7
|
import { DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
8
8
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
9
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
9
10
|
import { Participants } from '../participants';
|
|
10
11
|
import { createTelepointers, findPointers, getPositionOfTelepointer, isReplaceStep, hasExistingNudge } from '../utils';
|
|
11
12
|
|
|
@@ -194,6 +195,7 @@ export var PluginState = /*#__PURE__*/function () {
|
|
|
194
195
|
this.decorationSet.find().forEach(function (deco) {
|
|
195
196
|
if (deco.type.toDOM) {
|
|
196
197
|
var hasTelepointerDimClass = deco.type.toDOM.classList.contains(TELEPOINTER_DIM_CLASS);
|
|
198
|
+
var browser = expValEquals('platform_editor_hydratable_ui', 'isEnabled', true) ? getBrowserInfo() : browserLegacy;
|
|
197
199
|
if (deco.from === selection.from && deco.to === selection.to) {
|
|
198
200
|
if (!hasTelepointerDimClass) {
|
|
199
201
|
deco.type.toDOM.classList.add(TELEPOINTER_DIM_CLASS);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-collab-edit",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.1.1",
|
|
4
4
|
"description": "Collab Edit plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -27,34 +27,34 @@
|
|
|
27
27
|
"sideEffects": false,
|
|
28
28
|
"atlaskit:src": "src/index.ts",
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@atlaskit/adf-schema": "^51.
|
|
31
|
-
"@atlaskit/custom-steps": "^0.
|
|
32
|
-
"@atlaskit/editor-json-transformer": "^8.
|
|
33
|
-
"@atlaskit/editor-plugin-analytics": "^6.
|
|
30
|
+
"@atlaskit/adf-schema": "^51.3.0",
|
|
31
|
+
"@atlaskit/custom-steps": "^0.16.0",
|
|
32
|
+
"@atlaskit/editor-json-transformer": "^8.31.0",
|
|
33
|
+
"@atlaskit/editor-plugin-analytics": "^6.2.0",
|
|
34
34
|
"@atlaskit/editor-plugin-connectivity": "^6.0.0",
|
|
35
35
|
"@atlaskit/editor-plugin-editor-viewmode": "^8.0.0",
|
|
36
36
|
"@atlaskit/editor-plugin-feature-flags": "^5.0.0",
|
|
37
37
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
38
|
-
"@atlaskit/editor-shared-styles": "^3.
|
|
38
|
+
"@atlaskit/editor-shared-styles": "^3.8.0",
|
|
39
39
|
"@atlaskit/frontend-utilities": "^3.2.0",
|
|
40
40
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
41
|
-
"@atlaskit/prosemirror-collab": "^0.
|
|
42
|
-
"@atlaskit/tmp-editor-statsig": "^13.
|
|
41
|
+
"@atlaskit/prosemirror-collab": "^0.22.0",
|
|
42
|
+
"@atlaskit/tmp-editor-statsig": "^13.13.0",
|
|
43
43
|
"@babel/runtime": "^7.0.0",
|
|
44
44
|
"memoize-one": "^6.0.0"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
|
-
"@atlaskit/editor-common": "^110.
|
|
47
|
+
"@atlaskit/editor-common": "^110.14.0",
|
|
48
48
|
"react": "^18.2.0",
|
|
49
49
|
"react-dom": "^18.2.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@af/integration-testing": "workspace:^",
|
|
53
53
|
"@af/visual-regression": "workspace:^",
|
|
54
|
-
"@atlaskit/editor-plugin-mentions": "^8.
|
|
55
|
-
"@atlaskit/editor-plugin-text-formatting": "^6.
|
|
56
|
-
"@atlaskit/editor-plugin-type-ahead": "^6.
|
|
57
|
-
"@atlaskit/editor-plugin-unsupported-content": "^6.
|
|
54
|
+
"@atlaskit/editor-plugin-mentions": "^8.2.0",
|
|
55
|
+
"@atlaskit/editor-plugin-text-formatting": "^6.1.0",
|
|
56
|
+
"@atlaskit/editor-plugin-type-ahead": "^6.5.0",
|
|
57
|
+
"@atlaskit/editor-plugin-unsupported-content": "^6.1.0",
|
|
58
58
|
"@atlaskit/ssr": "workspace:^",
|
|
59
59
|
"@atlaskit/synchrony-test-helpers": "workspace:^",
|
|
60
60
|
"@testing-library/react": "^13.4.0",
|