@atlaskit/editor-common 115.7.2 → 115.7.3

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,16 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 115.7.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [`f7faa21a01fc7`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f7faa21a01fc7) -
8
+ Cleanup stale feature gates and experiments now that they have shipped. The following
9
+ gates/experiments have been removed and their enabled paths kept as the permanent behaviour:
10
+ platform_editor_fix_scrolling_popup_position, platform_editor_table_resize_chromeless,
11
+ platform_editor_chromeless_akeditor_class, create_work_item_modernization_exp.
12
+ - Updated dependencies
13
+
3
14
  ## 115.7.2
4
15
 
5
16
  ### Patch Changes
@@ -19,7 +19,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
19
19
  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 _t2 in e) "default" !== _t2 && {}.hasOwnProperty.call(e, _t2) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t2)) && (i.get || i.set) ? o(f, _t2, i) : f[_t2] = e[_t2]); return f; })(e, t); }
20
20
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
21
21
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
22
- var packageVersion = "115.7.1";
22
+ var packageVersion = "115.7.2";
23
23
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
24
24
  // Remove URL as it has UGC
25
25
  // Ignored via go/ees007
@@ -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 = "115.7.1";
27
+ var packageVersion = "115.7.2";
28
28
  var halfFocusRing = 1;
29
29
  var dropOffset = '0, 8';
30
30
  var fadeIn = (0, _react2.keyframes)({
@@ -18,7 +18,6 @@ var _rafSchd = _interopRequireDefault(require("raf-schd"));
18
18
  var _reactDom = require("react-dom");
19
19
  var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
20
20
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
21
- var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
22
21
  var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
23
22
  var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
24
23
  var _utils = require("./utils");
@@ -127,7 +126,7 @@ var Popup = exports.default = /*#__PURE__*/function (_React$Component) {
127
126
  // eslint-disable-next-line @atlaskit/platform/no-direct-document-usage -- Existing Popup positioning fallback; keep unchanged for safety.
128
127
  boundariesElement: boundariesElement || document.body,
129
128
  minPopupMargin: minPopupMargin,
130
- scrollableElement: stick && ((0, _expValEquals.expValEquals)('platform_editor_fix_scrolling_popup_position', 'isEnabled', true) || (0, _expValEquals.expValEquals)('create_work_item_modernization_exp', 'isEnabled', true)) ? this.scrollElement : undefined
129
+ scrollableElement: stick ? this.scrollElement : undefined
131
130
  });
132
131
  position = onPositionCalculated ? onPositionCalculated(position) : position;
133
132
  if (typeof position.top !== 'undefined' && absoluteOffset !== null && absoluteOffset !== void 0 && absoluteOffset.top) {
@@ -295,7 +294,7 @@ var Popup = exports.default = /*#__PURE__*/function (_React$Component) {
295
294
  key: "componentDidUpdate",
296
295
  value: function componentDidUpdate(prevProps) {
297
296
  this.handleChangedFocusTrapProp(prevProps);
298
- if (((0, _expValEquals.expValEquals)('platform_editor_fix_scrolling_popup_position', 'isEnabled', true) || (0, _expValEquals.expValEquals)('create_work_item_modernization_exp', 'isEnabled', true)) && prevProps.scrollableElement !== this.props.scrollableElement) {
297
+ if (prevProps.scrollableElement !== this.props.scrollableElement) {
299
298
  this.initScrollElement();
300
299
  }
301
300
  if (this.props !== prevProps) {
@@ -308,29 +307,7 @@ var Popup = exports.default = /*#__PURE__*/function (_React$Component) {
308
307
  // Ignored via go/ees005
309
308
  // eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
310
309
  window.addEventListener('resize', this.onResize);
311
- if ((0, _expValEquals.expValEquals)('platform_editor_fix_scrolling_popup_position', 'isEnabled', true) || (0, _expValEquals.expValEquals)('create_work_item_modernization_exp', 'isEnabled', true)) {
312
- this.initScrollElement();
313
- return;
314
- }
315
- var stick = this.props.stick;
316
-
317
- // Ignored via go/ees005
318
- // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
319
- var target = this.props.target;
320
- var scrollParentElement = (0, _utils.findOverflowScrollParent)(target);
321
- if (scrollParentElement && this.resizeObserver) {
322
- this.resizeObserver.observe(scrollParentElement);
323
- }
324
- if (stick) {
325
- this.scrollElement = scrollParentElement;
326
- } else {
327
- this.scrollElement = this.props.scrollableElement;
328
- }
329
- if (this.scrollElement) {
330
- // Ignored via go/ees005
331
- // eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
332
- this.scrollElement.addEventListener('scroll', this.onResize);
333
- }
310
+ this.initScrollElement();
334
311
  }
335
312
  }, {
336
313
  key: "componentWillUnmount",
@@ -4,7 +4,7 @@ import { isFedRamp } from './environment';
4
4
  import { normaliseSentryBreadcrumbs, SERIALIZABLE_ATTRIBUTES } from './normalise-sentry-breadcrumbs';
5
5
  const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
6
6
  const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
7
- const packageVersion = "115.7.1";
7
+ const packageVersion = "115.7.2";
8
8
  const sanitiseSentryEvents = (data, _hint) => {
9
9
  // Remove URL as it has UGC
10
10
  // Ignored via go/ees007
@@ -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 = "115.7.1";
17
+ const packageVersion = "115.7.2";
18
18
  const halfFocusRing = 1;
19
19
  const dropOffset = '0, 8';
20
20
  const fadeIn = keyframes({
@@ -6,7 +6,6 @@ import rafSchedule from 'raf-schd';
6
6
  import { createPortal, flushSync } from 'react-dom';
7
7
  import { akEditorFloatingPanelZIndex } from '@atlaskit/editor-shared-styles';
8
8
  import { fg } from '@atlaskit/platform-feature-flags';
9
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
10
9
  import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
11
10
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
12
11
  import { calculatePlacement, calculatePosition, findOverflowScrollParent } from './utils';
@@ -104,7 +103,7 @@ export default class Popup extends React.Component {
104
103
  // eslint-disable-next-line @atlaskit/platform/no-direct-document-usage -- Existing Popup positioning fallback; keep unchanged for safety.
105
104
  boundariesElement: boundariesElement || document.body,
106
105
  minPopupMargin,
107
- scrollableElement: stick && (expValEquals('platform_editor_fix_scrolling_popup_position', 'isEnabled', true) || expValEquals('create_work_item_modernization_exp', 'isEnabled', true)) ? this.scrollElement : undefined
106
+ scrollableElement: stick ? this.scrollElement : undefined
108
107
  });
109
108
  position = onPositionCalculated ? onPositionCalculated(position) : position;
110
109
  if (typeof position.top !== 'undefined' && absoluteOffset !== null && absoluteOffset !== void 0 && absoluteOffset.top) {
@@ -260,7 +259,7 @@ export default class Popup extends React.Component {
260
259
  }
261
260
  componentDidUpdate(prevProps) {
262
261
  this.handleChangedFocusTrapProp(prevProps);
263
- if ((expValEquals('platform_editor_fix_scrolling_popup_position', 'isEnabled', true) || expValEquals('create_work_item_modernization_exp', 'isEnabled', true)) && prevProps.scrollableElement !== this.props.scrollableElement) {
262
+ if (prevProps.scrollableElement !== this.props.scrollableElement) {
264
263
  this.initScrollElement();
265
264
  }
266
265
  if (this.props !== prevProps) {
@@ -271,31 +270,7 @@ export default class Popup extends React.Component {
271
270
  // Ignored via go/ees005
272
271
  // eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
273
272
  window.addEventListener('resize', this.onResize);
274
- if (expValEquals('platform_editor_fix_scrolling_popup_position', 'isEnabled', true) || expValEquals('create_work_item_modernization_exp', 'isEnabled', true)) {
275
- this.initScrollElement();
276
- return;
277
- }
278
- const {
279
- stick
280
- } = this.props;
281
-
282
- // Ignored via go/ees005
283
- // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
284
- const target = this.props.target;
285
- const scrollParentElement = findOverflowScrollParent(target);
286
- if (scrollParentElement && this.resizeObserver) {
287
- this.resizeObserver.observe(scrollParentElement);
288
- }
289
- if (stick) {
290
- this.scrollElement = scrollParentElement;
291
- } else {
292
- this.scrollElement = this.props.scrollableElement;
293
- }
294
- if (this.scrollElement) {
295
- // Ignored via go/ees005
296
- // eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
297
- this.scrollElement.addEventListener('scroll', this.onResize);
298
- }
273
+ this.initScrollElement();
299
274
  }
300
275
  componentWillUnmount() {
301
276
  var _this$unbindScroll2, _this$resizeObserver3;
@@ -10,7 +10,7 @@ import { isFedRamp } from './environment';
10
10
  import { normaliseSentryBreadcrumbs, SERIALIZABLE_ATTRIBUTES } from './normalise-sentry-breadcrumbs';
11
11
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
12
12
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
13
- var packageVersion = "115.7.1";
13
+ var packageVersion = "115.7.2";
14
14
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
15
15
  // Remove URL as it has UGC
16
16
  // Ignored via go/ees007
@@ -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 = "115.7.1";
24
+ var packageVersion = "115.7.2";
25
25
  var halfFocusRing = 1;
26
26
  var dropOffset = '0, 8';
27
27
  var fadeIn = keyframes({
@@ -15,7 +15,6 @@ import rafSchedule from 'raf-schd';
15
15
  import { createPortal, flushSync } from 'react-dom';
16
16
  import { akEditorFloatingPanelZIndex } from '@atlaskit/editor-shared-styles';
17
17
  import { fg } from '@atlaskit/platform-feature-flags';
18
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
19
18
  import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
20
19
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
21
20
  import { calculatePlacement, calculatePosition as _calculatePosition, findOverflowScrollParent } from './utils';
@@ -120,7 +119,7 @@ var Popup = /*#__PURE__*/function (_React$Component) {
120
119
  // eslint-disable-next-line @atlaskit/platform/no-direct-document-usage -- Existing Popup positioning fallback; keep unchanged for safety.
121
120
  boundariesElement: boundariesElement || document.body,
122
121
  minPopupMargin: minPopupMargin,
123
- scrollableElement: stick && (expValEquals('platform_editor_fix_scrolling_popup_position', 'isEnabled', true) || expValEquals('create_work_item_modernization_exp', 'isEnabled', true)) ? this.scrollElement : undefined
122
+ scrollableElement: stick ? this.scrollElement : undefined
124
123
  });
125
124
  position = onPositionCalculated ? onPositionCalculated(position) : position;
126
125
  if (typeof position.top !== 'undefined' && absoluteOffset !== null && absoluteOffset !== void 0 && absoluteOffset.top) {
@@ -288,7 +287,7 @@ var Popup = /*#__PURE__*/function (_React$Component) {
288
287
  key: "componentDidUpdate",
289
288
  value: function componentDidUpdate(prevProps) {
290
289
  this.handleChangedFocusTrapProp(prevProps);
291
- if ((expValEquals('platform_editor_fix_scrolling_popup_position', 'isEnabled', true) || expValEquals('create_work_item_modernization_exp', 'isEnabled', true)) && prevProps.scrollableElement !== this.props.scrollableElement) {
290
+ if (prevProps.scrollableElement !== this.props.scrollableElement) {
292
291
  this.initScrollElement();
293
292
  }
294
293
  if (this.props !== prevProps) {
@@ -301,29 +300,7 @@ var Popup = /*#__PURE__*/function (_React$Component) {
301
300
  // Ignored via go/ees005
302
301
  // eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
303
302
  window.addEventListener('resize', this.onResize);
304
- if (expValEquals('platform_editor_fix_scrolling_popup_position', 'isEnabled', true) || expValEquals('create_work_item_modernization_exp', 'isEnabled', true)) {
305
- this.initScrollElement();
306
- return;
307
- }
308
- var stick = this.props.stick;
309
-
310
- // Ignored via go/ees005
311
- // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
312
- var target = this.props.target;
313
- var scrollParentElement = findOverflowScrollParent(target);
314
- if (scrollParentElement && this.resizeObserver) {
315
- this.resizeObserver.observe(scrollParentElement);
316
- }
317
- if (stick) {
318
- this.scrollElement = scrollParentElement;
319
- } else {
320
- this.scrollElement = this.props.scrollableElement;
321
- }
322
- if (this.scrollElement) {
323
- // Ignored via go/ees005
324
- // eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
325
- this.scrollElement.addEventListener('scroll', this.onResize);
326
- }
303
+ this.initScrollElement();
327
304
  }
328
305
  }, {
329
306
  key: "componentWillUnmount",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "115.7.2",
3
+ "version": "115.7.3",
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/"
@@ -81,13 +81,13 @@
81
81
  "@atlaskit/prosemirror-history": "^0.2.0",
82
82
  "@atlaskit/react-ufo": "^6.7.0",
83
83
  "@atlaskit/section-message": "^8.13.0",
84
- "@atlaskit/smart-card": "^44.23.0",
84
+ "@atlaskit/smart-card": "^44.24.0",
85
85
  "@atlaskit/smart-user-picker": "^10.2.0",
86
86
  "@atlaskit/spinner": "^19.1.0",
87
87
  "@atlaskit/task-decision": "^20.1.0",
88
88
  "@atlaskit/teams-app-config": "^1.12.0",
89
89
  "@atlaskit/textfield": "^8.3.0",
90
- "@atlaskit/tmp-editor-statsig": "^90.2.0",
90
+ "@atlaskit/tmp-editor-statsig": "^91.0.0",
91
91
  "@atlaskit/tokens": "^13.3.0",
92
92
  "@atlaskit/tooltip": "^22.6.0",
93
93
  "@atlaskit/width-detector": "^5.1.0",