@atlaskit/editor-plugin-collab-edit 7.0.0 → 7.0.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,13 @@
1
1
  # @atlaskit/editor-plugin-collab-edit
2
2
 
3
+ ## 7.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`76ffc91d514f3`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/76ffc91d514f3) -
8
+ Changed packages over to using the generic AIFC FG rather then an experiment
9
+ - Updated dependencies
10
+
3
11
  ## 7.0.0
4
12
 
5
13
  ### Patch Changes
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.sendTransaction = void 0;
7
7
  var _steps = require("@atlaskit/adf-schema/steps");
8
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
8
9
  var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
9
10
  var _actions = require("../actions");
10
11
  var _pluginKey = require("../main/plugin-key");
@@ -47,7 +48,7 @@ var sendTransaction = exports.sendTransaction = function sendTransaction(_ref) {
47
48
  sessionId = currentPluginState.sessionId;
48
49
  var selectionChanged = !oldEditorState.selection.eq(newEditorState.selection);
49
50
  var participantsChanged = prevActiveParticipants && !prevActiveParticipants.eq(activeParticipants);
50
- if ((0, _experiments.editorExperiment)('platform_editor_ai_aifc', true)) {
51
+ if ((0, _platformFeatureFlags.fg)('aifc_create_enabled')) {
51
52
  if (!sessionId || viewMode !== 'edit') {
52
53
  return;
53
54
  }
@@ -12,7 +12,7 @@ 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 _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
15
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
16
16
  var _participants = require("../participants");
17
17
  var _utils = require("../utils");
18
18
  /**
@@ -173,7 +173,7 @@ var PluginState = exports.PluginState = /*#__PURE__*/function () {
173
173
  } catch (err) {
174
174
  this.onError(err);
175
175
  }
176
- if (!(0, _experiments.editorExperiment)('platform_editor_ai_aifc', true)) {
176
+ if (!(0, _platformFeatureFlags.fg)('aifc_create_enabled')) {
177
177
  // Remove any selection decoration within the change range,
178
178
  // takes care of the issue when after pasting we end up with a dead selection
179
179
  tr.steps.filter(_utils.isReplaceStep).forEach(function (s) {
@@ -1,4 +1,5 @@
1
1
  import { AnalyticsStep } from '@atlaskit/adf-schema/steps';
2
+ import { fg } from '@atlaskit/platform-feature-flags';
2
3
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
3
4
  import { getSendableSelection } from '../actions';
4
5
  import { pluginKey } from '../main/plugin-key';
@@ -42,7 +43,7 @@ export const sendTransaction = ({
42
43
  } = currentPluginState;
43
44
  const selectionChanged = !oldEditorState.selection.eq(newEditorState.selection);
44
45
  const participantsChanged = prevActiveParticipants && !prevActiveParticipants.eq(activeParticipants);
45
- if (editorExperiment('platform_editor_ai_aifc', true)) {
46
+ if (fg('aifc_create_enabled')) {
46
47
  if (!sessionId || viewMode !== 'edit') {
47
48
  return;
48
49
  }
@@ -3,7 +3,7 @@ import { browser } 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 { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
6
+ import { fg } from '@atlaskit/platform-feature-flags';
7
7
  import { Participants } from '../participants';
8
8
  import { createTelepointers, findPointers, getPositionOfTelepointer, isReplaceStep, hasExistingNudge } from '../utils';
9
9
 
@@ -154,7 +154,7 @@ export class PluginState {
154
154
  } catch (err) {
155
155
  this.onError(err);
156
156
  }
157
- if (!editorExperiment('platform_editor_ai_aifc', true)) {
157
+ if (!fg('aifc_create_enabled')) {
158
158
  // Remove any selection decoration within the change range,
159
159
  // takes care of the issue when after pasting we end up with a dead selection
160
160
  tr.steps.filter(isReplaceStep).forEach(s => {
@@ -1,4 +1,5 @@
1
1
  import { AnalyticsStep } from '@atlaskit/adf-schema/steps';
2
+ import { fg } from '@atlaskit/platform-feature-flags';
2
3
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
3
4
  import { getSendableSelection } from '../actions';
4
5
  import { pluginKey } from '../main/plugin-key';
@@ -41,7 +42,7 @@ export var sendTransaction = function sendTransaction(_ref) {
41
42
  sessionId = currentPluginState.sessionId;
42
43
  var selectionChanged = !oldEditorState.selection.eq(newEditorState.selection);
43
44
  var participantsChanged = prevActiveParticipants && !prevActiveParticipants.eq(activeParticipants);
44
- if (editorExperiment('platform_editor_ai_aifc', true)) {
45
+ if (fg('aifc_create_enabled')) {
45
46
  if (!sessionId || viewMode !== 'edit') {
46
47
  return;
47
48
  }
@@ -5,7 +5,7 @@ import { browser } 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 { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
8
+ import { fg } from '@atlaskit/platform-feature-flags';
9
9
  import { Participants } from '../participants';
10
10
  import { createTelepointers, findPointers, getPositionOfTelepointer, isReplaceStep, hasExistingNudge } from '../utils';
11
11
 
@@ -167,7 +167,7 @@ export var PluginState = /*#__PURE__*/function () {
167
167
  } catch (err) {
168
168
  this.onError(err);
169
169
  }
170
- if (!editorExperiment('platform_editor_ai_aifc', true)) {
170
+ if (!fg('aifc_create_enabled')) {
171
171
  // Remove any selection decoration within the change range,
172
172
  // takes care of the issue when after pasting we end up with a dead selection
173
173
  tr.steps.filter(isReplaceStep).forEach(function (s) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-collab-edit",
3
- "version": "7.0.0",
3
+ "version": "7.0.1",
4
4
  "description": "Collab Edit plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -30,21 +30,21 @@
30
30
  "@atlaskit/adf-schema": "^51.2.0",
31
31
  "@atlaskit/custom-steps": "^0.14.0",
32
32
  "@atlaskit/editor-json-transformer": "^8.30.0",
33
- "@atlaskit/editor-plugin-analytics": "^6.0.0",
33
+ "@atlaskit/editor-plugin-analytics": "^6.1.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
38
  "@atlaskit/editor-shared-styles": "^3.6.0",
39
- "@atlaskit/frontend-utilities": "^3.1.0",
39
+ "@atlaskit/frontend-utilities": "^3.2.0",
40
40
  "@atlaskit/platform-feature-flags": "^1.1.0",
41
41
  "@atlaskit/prosemirror-collab": "^0.20.0",
42
- "@atlaskit/tmp-editor-statsig": "^12.31.0",
42
+ "@atlaskit/tmp-editor-statsig": "^12.32.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.0.0",
47
+ "@atlaskit/editor-common": "^110.3.0",
48
48
  "react": "^18.2.0",
49
49
  "react-dom": "^18.2.0"
50
50
  },
@@ -53,7 +53,7 @@
53
53
  "@af/visual-regression": "workspace:^",
54
54
  "@atlaskit/editor-plugin-mentions": "^8.0.0",
55
55
  "@atlaskit/editor-plugin-text-formatting": "^6.0.0",
56
- "@atlaskit/editor-plugin-type-ahead": "^6.0.0",
56
+ "@atlaskit/editor-plugin-type-ahead": "^6.1.0",
57
57
  "@atlaskit/editor-plugin-unsupported-content": "^6.0.0",
58
58
  "@atlaskit/ssr": "workspace:^",
59
59
  "@atlaskit/synchrony-test-helpers": "workspace:^",
@@ -102,6 +102,9 @@
102
102
  },
103
103
  "platform_editor_offline_editing_resync_flicker_fix": {
104
104
  "type": "boolean"
105
+ },
106
+ "aifc_create_enabled": {
107
+ "type": "boolean"
105
108
  }
106
109
  }
107
110
  }