@atlaskit/editor-common 110.3.1 → 110.3.2

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,12 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 110.3.2
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
+
3
10
  ## 110.3.1
4
11
 
5
12
  ### Patch Changes
@@ -16,7 +16,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
16
16
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
17
17
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
18
18
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
19
- var packageVersion = "110.3.0";
19
+ var packageVersion = "110.3.1";
20
20
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
21
21
  // Remove URL as it has UGC
22
22
  // Ignored via go/ees007
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.corePlugin = void 0;
7
7
  var _model = require("@atlaskit/editor-prosemirror/model");
8
8
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
9
- var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
10
9
  var _nodeAnchorProvider = require("../../node-anchor/node-anchor-provider");
11
10
  var _processRawValue = require("../../utils/processRawValue");
12
11
  var _editorCommands = require("../editor-commands");
@@ -110,7 +109,7 @@ var corePlugin = exports.corePlugin = function corePlugin(_ref) {
110
109
  if ((_options$scrollIntoVi2 = options === null || options === void 0 ? void 0 : options.scrollIntoView) !== null && _options$scrollIntoVi2 !== void 0 ? _options$scrollIntoVi2 : true) {
111
110
  editorView.dispatch(tr.scrollIntoView());
112
111
  } else {
113
- if ((0, _experiments.editorExperiment)('platform_editor_ai_aifc', true)) {
112
+ if ((0, _platformFeatureFlags.fg)('aifc_create_enabled')) {
114
113
  editorView.dispatch(tr.setMeta('scrollIntoView', false));
115
114
  }
116
115
  }
@@ -24,7 +24,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
24
24
  * @jsx jsx
25
25
  */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
26
26
  var packageName = "@atlaskit/editor-common";
27
- var packageVersion = "110.3.0";
27
+ var packageVersion = "110.3.1";
28
28
  var halfFocusRing = 1;
29
29
  var dropOffset = '0, 8';
30
30
  var fadeIn = (0, _react2.keyframes)({
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.calculateToolbarPositionTrackHead = exports.calculateToolbarPositionOnCellSelection = exports.calculateToolbarPositionAboveSelection = void 0;
7
7
  var _utils = require("@atlaskit/editor-prosemirror/utils");
8
8
  var _cellSelection = require("@atlaskit/editor-tables/cell-selection");
9
- var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
9
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
10
10
  var MAXIMUM_BROWSER_SCROLLBAR_WIDTH = 20;
11
11
 
12
12
  /*
@@ -113,7 +113,7 @@ var calculateToolbarPositionTrackHead = exports.calculateToolbarPositionTrackHea
113
113
  var moreRovoOptionsButton = document.querySelector('button[aria-label="More Rovo options"], [aria-label="More Rovo options"]');
114
114
  var isMoreRovoOptionsButtonVisible = !!moreRovoOptionsButton && moreRovoOptionsButton instanceof HTMLElement && !!moreRovoOptionsButton.offsetParent;
115
115
  var range = null;
116
- if ((0, _experiments.editorExperiment)('platform_editor_ai_aifc', true) && isMoreRovoOptionsButtonVisible) {
116
+ if (isMoreRovoOptionsButtonVisible && (0, _platformFeatureFlags.fg)('aifc_create_enabled')) {
117
117
  if (selection && selection.getRangeAt && selection.rangeCount > 0) {
118
118
  var maybeRange = selection.getRangeAt(0);
119
119
  if (maybeRange instanceof Range) {
@@ -15,7 +15,7 @@ exports.isSelectionEndOfParagraph = exports.isReplaceDocOperation = void 0;
15
15
  exports.nodesBetweenChanged = nodesBetweenChanged;
16
16
  var _clamp = _interopRequireDefault(require("lodash/clamp"));
17
17
  var _transform = require("@atlaskit/editor-prosemirror/transform");
18
- var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
18
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
19
19
  var _editorCoreUtils = require("./editor-core-utils");
20
20
  var getStepRange = exports.getStepRange = function getStepRange(transaction) {
21
21
  var from = -1;
@@ -30,7 +30,7 @@ var getStepRange = exports.getStepRange = function getStepRange(transaction) {
30
30
  // See ticket https://hello.jira.atlassian.cloud/browse/EDITOR-1223 and
31
31
  // PR https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/208332/overview
32
32
  // to see why use clamp here
33
- if ((0, _experiments.editorExperiment)('platform_editor_ai_aifc', true)) {
33
+ if ((0, _platformFeatureFlags.fg)('aifc_create_enabled')) {
34
34
  var docSize = transaction.doc.content.size;
35
35
  from = (0, _clamp.default)(from, 0, docSize);
36
36
  to = (0, _clamp.default)(to, 0, docSize);
@@ -1,7 +1,7 @@
1
1
  import { isFedRamp } from './environment';
2
2
  const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
3
3
  const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
4
- const packageVersion = "110.3.0";
4
+ const packageVersion = "110.3.1";
5
5
  const sanitiseSentryEvents = (data, _hint) => {
6
6
  // Remove URL as it has UGC
7
7
  // Ignored via go/ees007
@@ -1,6 +1,5 @@
1
1
  import { Node } from '@atlaskit/editor-prosemirror/model';
2
2
  import { fg } from '@atlaskit/platform-feature-flags';
3
- import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
4
3
  import { getNodeIdProvider } from '../../node-anchor/node-anchor-provider';
5
4
  import { processRawFragmentValue, processRawValue, processRawValueWithoutValidation } from '../../utils/processRawValue';
6
5
  import { editorCommandToPMCommand } from '../editor-commands';
@@ -112,7 +111,7 @@ export const corePlugin = ({
112
111
  if ((_options$scrollIntoVi2 = options === null || options === void 0 ? void 0 : options.scrollIntoView) !== null && _options$scrollIntoVi2 !== void 0 ? _options$scrollIntoVi2 : true) {
113
112
  editorView.dispatch(tr.scrollIntoView());
114
113
  } else {
115
- if (editorExperiment('platform_editor_ai_aifc', true)) {
114
+ if (fg('aifc_create_enabled')) {
116
115
  editorView.dispatch(tr.setMeta('scrollIntoView', false));
117
116
  }
118
117
  }
@@ -14,7 +14,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
14
14
  import { fg } from '@atlaskit/platform-feature-flags';
15
15
  import Layer from '../Layer';
16
16
  const packageName = "@atlaskit/editor-common";
17
- const packageVersion = "110.3.0";
17
+ const packageVersion = "110.3.1";
18
18
  const halfFocusRing = 1;
19
19
  const dropOffset = '0, 8';
20
20
  const fadeIn = keyframes({
@@ -1,6 +1,6 @@
1
1
  import { findDomRefAtPos } from '@atlaskit/editor-prosemirror/utils';
2
2
  import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
3
- import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
3
+ import { fg } from '@atlaskit/platform-feature-flags';
4
4
  const MAXIMUM_BROWSER_SCROLLBAR_WIDTH = 20;
5
5
 
6
6
  /*
@@ -106,7 +106,7 @@ export const calculateToolbarPositionTrackHead = toolbarTitle => (editorView, ne
106
106
  const moreRovoOptionsButton = document.querySelector('button[aria-label="More Rovo options"], [aria-label="More Rovo options"]');
107
107
  const isMoreRovoOptionsButtonVisible = !!moreRovoOptionsButton && moreRovoOptionsButton instanceof HTMLElement && !!moreRovoOptionsButton.offsetParent;
108
108
  let range = null;
109
- if (editorExperiment('platform_editor_ai_aifc', true) && isMoreRovoOptionsButtonVisible) {
109
+ if (isMoreRovoOptionsButtonVisible && fg('aifc_create_enabled')) {
110
110
  if (selection && selection.getRangeAt && selection.rangeCount > 0) {
111
111
  const maybeRange = selection.getRangeAt(0);
112
112
  if (maybeRange instanceof Range) {
@@ -1,6 +1,6 @@
1
1
  import clamp from 'lodash/clamp';
2
2
  import { ReplaceStep } from '@atlaskit/editor-prosemirror/transform';
3
- import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
3
+ import { fg } from '@atlaskit/platform-feature-flags';
4
4
  import { isEmptyParagraph } from './editor-core-utils';
5
5
  export const getStepRange = transaction => {
6
6
  let from = -1;
@@ -15,7 +15,7 @@ export const getStepRange = transaction => {
15
15
  // See ticket https://hello.jira.atlassian.cloud/browse/EDITOR-1223 and
16
16
  // PR https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/208332/overview
17
17
  // to see why use clamp here
18
- if (editorExperiment('platform_editor_ai_aifc', true)) {
18
+ if (fg('aifc_create_enabled')) {
19
19
  const docSize = transaction.doc.content.size;
20
20
  from = clamp(from, 0, docSize);
21
21
  to = clamp(to, 0, docSize);
@@ -7,7 +7,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
7
7
  import { isFedRamp } from './environment';
8
8
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
9
9
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
10
- var packageVersion = "110.3.0";
10
+ var packageVersion = "110.3.1";
11
11
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
12
12
  // Remove URL as it has UGC
13
13
  // Ignored via go/ees007
@@ -1,6 +1,5 @@
1
1
  import { Node } from '@atlaskit/editor-prosemirror/model';
2
2
  import { fg } from '@atlaskit/platform-feature-flags';
3
- import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
4
3
  import { getNodeIdProvider } from '../../node-anchor/node-anchor-provider';
5
4
  import { processRawFragmentValue, processRawValue, processRawValueWithoutValidation } from '../../utils/processRawValue';
6
5
  import { editorCommandToPMCommand } from '../editor-commands';
@@ -105,7 +104,7 @@ export var corePlugin = function corePlugin(_ref) {
105
104
  if ((_options$scrollIntoVi2 = options === null || options === void 0 ? void 0 : options.scrollIntoView) !== null && _options$scrollIntoVi2 !== void 0 ? _options$scrollIntoVi2 : true) {
106
105
  editorView.dispatch(tr.scrollIntoView());
107
106
  } else {
108
- if (editorExperiment('platform_editor_ai_aifc', true)) {
107
+ if (fg('aifc_create_enabled')) {
109
108
  editorView.dispatch(tr.setMeta('scrollIntoView', false));
110
109
  }
111
110
  }
@@ -21,7 +21,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
21
21
  import { fg } from '@atlaskit/platform-feature-flags';
22
22
  import Layer from '../Layer';
23
23
  var packageName = "@atlaskit/editor-common";
24
- var packageVersion = "110.3.0";
24
+ var packageVersion = "110.3.1";
25
25
  var halfFocusRing = 1;
26
26
  var dropOffset = '0, 8';
27
27
  var fadeIn = keyframes({
@@ -1,6 +1,6 @@
1
1
  import { findDomRefAtPos } from '@atlaskit/editor-prosemirror/utils';
2
2
  import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
3
- import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
3
+ import { fg } from '@atlaskit/platform-feature-flags';
4
4
  var MAXIMUM_BROWSER_SCROLLBAR_WIDTH = 20;
5
5
 
6
6
  /*
@@ -107,7 +107,7 @@ export var calculateToolbarPositionTrackHead = function calculateToolbarPosition
107
107
  var moreRovoOptionsButton = document.querySelector('button[aria-label="More Rovo options"], [aria-label="More Rovo options"]');
108
108
  var isMoreRovoOptionsButtonVisible = !!moreRovoOptionsButton && moreRovoOptionsButton instanceof HTMLElement && !!moreRovoOptionsButton.offsetParent;
109
109
  var range = null;
110
- if (editorExperiment('platform_editor_ai_aifc', true) && isMoreRovoOptionsButtonVisible) {
110
+ if (isMoreRovoOptionsButtonVisible && fg('aifc_create_enabled')) {
111
111
  if (selection && selection.getRangeAt && selection.rangeCount > 0) {
112
112
  var maybeRange = selection.getRangeAt(0);
113
113
  if (maybeRange instanceof Range) {
@@ -1,6 +1,6 @@
1
1
  import clamp from 'lodash/clamp';
2
2
  import { ReplaceStep } from '@atlaskit/editor-prosemirror/transform';
3
- import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
3
+ import { fg } from '@atlaskit/platform-feature-flags';
4
4
  import { isEmptyParagraph } from './editor-core-utils';
5
5
  export var getStepRange = function getStepRange(transaction) {
6
6
  var from = -1;
@@ -15,7 +15,7 @@ export var getStepRange = function getStepRange(transaction) {
15
15
  // See ticket https://hello.jira.atlassian.cloud/browse/EDITOR-1223 and
16
16
  // PR https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/208332/overview
17
17
  // to see why use clamp here
18
- if (editorExperiment('platform_editor_ai_aifc', true)) {
18
+ if (fg('aifc_create_enabled')) {
19
19
  var docSize = transaction.doc.content.size;
20
20
  from = clamp(from, 0, docSize);
21
21
  to = clamp(to, 0, docSize);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "110.3.1",
3
+ "version": "110.3.2",
4
4
  "description": "A package that contains common classes and components for editor and renderer",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -178,6 +178,9 @@
178
178
  "platform_editor_blocktaskitem_patch_3": {
179
179
  "type": "boolean"
180
180
  },
181
+ "aifc_create_enabled": {
182
+ "type": "boolean"
183
+ },
181
184
  "platform-visual-refresh-icons": {
182
185
  "type": "boolean"
183
186
  },
@@ -274,9 +277,6 @@
274
277
  "platform_editor_resolve_hyperlinks_CONFLUENCE": {
275
278
  "type": "boolean"
276
279
  },
277
- "aifc_create_enabled": {
278
- "type": "boolean"
279
- },
280
280
  "platform_editor_resolve_hyperlinks_JIRA": {
281
281
  "type": "boolean"
282
282
  },