@atlaskit/editor-plugin-collab-edit 9.0.32 → 10.0.0

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,20 @@
1
1
  # @atlaskit/editor-plugin-collab-edit
2
2
 
3
+ ## 10.0.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 9.0.33
10
+
11
+ ### Patch Changes
12
+
13
+ - [`73b2fc243f544`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/73b2fc243f544) -
14
+ Cleaning up getBrowserInfo which was behind experiment platform_editor_hydratable_ui and is now
15
+ rolled out
16
+ - Updated dependencies
17
+
3
18
  ## 9.0.32
4
19
 
5
20
  ### Patch Changes
@@ -12,7 +12,6 @@ var _browser = require("@atlaskit/editor-common/browser");
12
12
  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
- var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
16
15
  var _participants = require("../participants");
17
16
  var _utils = require("../utils");
18
17
  /**
@@ -180,7 +179,7 @@ var PluginState = exports.PluginState = /*#__PURE__*/function () {
180
179
  this.decorationSet.find().forEach(function (deco) {
181
180
  if (deco.type.toDOM) {
182
181
  var hasTelepointerDimClass = deco.type.toDOM.classList.contains(_collab.TELEPOINTER_DIM_CLASS);
183
- var browser = (0, _expValEquals.expValEquals)('platform_editor_hydratable_ui', 'isEnabled', true) ? (0, _browser.getBrowserInfo)() : _browser.browser;
182
+ var browser = (0, _browser.getBrowserInfo)();
184
183
  if (deco.from === selection.from && deco.to === selection.to) {
185
184
  if (!hasTelepointerDimClass) {
186
185
  deco.type.toDOM.classList.add(_collab.TELEPOINTER_DIM_CLASS);
@@ -1,9 +1,8 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
- import { browser as browserLegacy, getBrowserInfo } from '@atlaskit/editor-common/browser';
2
+ import { 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
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
7
6
  import { Participants } from '../participants';
8
7
  import { createTelepointers, findPointers, getPositionOfTelepointer, isReplaceStep, hasExistingNudge } from '../utils';
9
8
  /**
@@ -162,7 +161,7 @@ export class PluginState {
162
161
  this.decorationSet.find().forEach(deco => {
163
162
  if (deco.type.toDOM) {
164
163
  const hasTelepointerDimClass = deco.type.toDOM.classList.contains(TELEPOINTER_DIM_CLASS);
165
- const browser = expValEquals('platform_editor_hydratable_ui', 'isEnabled', true) ? getBrowserInfo() : browserLegacy;
164
+ const browser = getBrowserInfo();
166
165
  if (deco.from === selection.from && deco.to === selection.to) {
167
166
  if (!hasTelepointerDimClass) {
168
167
  deco.type.toDOM.classList.add(TELEPOINTER_DIM_CLASS);
@@ -1,11 +1,10 @@
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 as browserLegacy, getBrowserInfo } from '@atlaskit/editor-common/browser';
4
+ import { 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
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
9
8
  import { Participants } from '../participants';
10
9
  import { createTelepointers, findPointers, getPositionOfTelepointer, isReplaceStep, hasExistingNudge } from '../utils';
11
10
  /**
@@ -173,7 +172,7 @@ export var PluginState = /*#__PURE__*/function () {
173
172
  this.decorationSet.find().forEach(function (deco) {
174
173
  if (deco.type.toDOM) {
175
174
  var hasTelepointerDimClass = deco.type.toDOM.classList.contains(TELEPOINTER_DIM_CLASS);
176
- var browser = expValEquals('platform_editor_hydratable_ui', 'isEnabled', true) ? getBrowserInfo() : browserLegacy;
175
+ var browser = getBrowserInfo();
177
176
  if (deco.from === selection.from && deco.to === selection.to) {
178
177
  if (!hasTelepointerDimClass) {
179
178
  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": "9.0.32",
3
+ "version": "10.0.0",
4
4
  "description": "Collab Edit plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -27,25 +27,25 @@
27
27
  "sideEffects": false,
28
28
  "atlaskit:src": "src/index.ts",
29
29
  "dependencies": {
30
- "@atlaskit/adf-schema": "^52.4.0",
30
+ "@atlaskit/adf-schema": "^52.5.0",
31
31
  "@atlaskit/custom-steps": "^0.16.0",
32
32
  "@atlaskit/editor-json-transformer": "^8.31.0",
33
- "@atlaskit/editor-plugin-analytics": "^8.0.0",
34
- "@atlaskit/editor-plugin-connectivity": "^8.0.0",
35
- "@atlaskit/editor-plugin-editor-viewmode": "^10.0.0",
36
- "@atlaskit/editor-plugin-feature-flags": "^7.0.0",
33
+ "@atlaskit/editor-plugin-analytics": "^9.0.0",
34
+ "@atlaskit/editor-plugin-connectivity": "^9.0.0",
35
+ "@atlaskit/editor-plugin-editor-viewmode": "^11.0.0",
36
+ "@atlaskit/editor-plugin-feature-flags": "^8.0.0",
37
37
  "@atlaskit/editor-prosemirror": "^7.3.0",
38
38
  "@atlaskit/editor-shared-styles": "^3.10.0",
39
39
  "@atlaskit/frontend-utilities": "^3.2.0",
40
40
  "@atlaskit/platform-feature-flags": "^1.1.0",
41
41
  "@atlaskit/prosemirror-collab": "^0.22.0",
42
- "@atlaskit/tmp-editor-statsig": "^61.0.0",
42
+ "@atlaskit/tmp-editor-statsig": "^62.4.0",
43
43
  "@atlaskit/tokens": "^13.0.0",
44
44
  "@babel/runtime": "^7.0.0",
45
45
  "memoize-one": "^6.0.0"
46
46
  },
47
47
  "peerDependencies": {
48
- "@atlaskit/editor-common": "^112.20.0",
48
+ "@atlaskit/editor-common": "^113.0.0",
49
49
  "react": "^18.2.0",
50
50
  "react-dom": "^18.2.0"
51
51
  },