@atlaskit/editor-common 114.12.0 → 114.12.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,21 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 114.12.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 114.12.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [`bc415f8eb86a9`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/bc415f8eb86a9) -
14
+ Add OR check with create_work_item_modernization_exp experiment to
15
+ platform_editor_fix_scrolling_popup_position, platform_editor_table_resize_chromeless, and
16
+ platform_editor_chromeless_akeditor_class usages
17
+ - Updated dependencies
18
+
3
19
  ## 114.12.0
4
20
 
5
21
  ### Minor 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 _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); }
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 = "0.0.0-development";
22
+ var packageVersion = "114.12.1";
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 = "0.0.0-development";
27
+ var packageVersion = "114.12.1";
28
28
  var halfFocusRing = 1;
29
29
  var dropOffset = '0, 8';
30
30
  var fadeIn = (0, _react2.keyframes)({
@@ -122,7 +122,7 @@ var Popup = exports.default = /*#__PURE__*/function (_React$Component) {
122
122
  rect: rect,
123
123
  boundariesElement: boundariesElement || document.body,
124
124
  minPopupMargin: minPopupMargin,
125
- scrollableElement: stick && (0, _expValEquals.expValEquals)('platform_editor_fix_scrolling_popup_position', 'isEnabled', true) ? this.scrollElement : undefined
125
+ 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
126
126
  });
127
127
  position = onPositionCalculated ? onPositionCalculated(position) : position;
128
128
  if (typeof position.top !== 'undefined' && absoluteOffset !== null && absoluteOffset !== void 0 && absoluteOffset.top) {
@@ -288,7 +288,7 @@ var Popup = exports.default = /*#__PURE__*/function (_React$Component) {
288
288
  key: "componentDidUpdate",
289
289
  value: function componentDidUpdate(prevProps) {
290
290
  this.handleChangedFocusTrapProp(prevProps);
291
- if ((0, _expValEquals.expValEquals)('platform_editor_fix_scrolling_popup_position', 'isEnabled', true) && prevProps.scrollableElement !== this.props.scrollableElement) {
291
+ 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) {
292
292
  this.initScrollElement();
293
293
  }
294
294
  if (this.props !== prevProps) {
@@ -301,7 +301,7 @@ var Popup = exports.default = /*#__PURE__*/function (_React$Component) {
301
301
  // Ignored via go/ees005
302
302
  // eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
303
303
  window.addEventListener('resize', this.onResize);
304
- if ((0, _expValEquals.expValEquals)('platform_editor_fix_scrolling_popup_position', 'isEnabled', true)) {
304
+ if ((0, _expValEquals.expValEquals)('platform_editor_fix_scrolling_popup_position', 'isEnabled', true) || (0, _expValEquals.expValEquals)('create_work_item_modernization_exp', 'isEnabled', true)) {
305
305
  this.initScrollElement();
306
306
  return;
307
307
  }
@@ -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 = "0.0.0-development";
7
+ const packageVersion = "114.12.1";
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 = "0.0.0-development";
17
+ const packageVersion = "114.12.1";
18
18
  const halfFocusRing = 1;
19
19
  const dropOffset = '0, 8';
20
20
  const fadeIn = keyframes({
@@ -99,7 +99,7 @@ export default class Popup extends React.Component {
99
99
  rect,
100
100
  boundariesElement: boundariesElement || document.body,
101
101
  minPopupMargin,
102
- scrollableElement: stick && expValEquals('platform_editor_fix_scrolling_popup_position', 'isEnabled', true) ? this.scrollElement : undefined
102
+ scrollableElement: stick && (expValEquals('platform_editor_fix_scrolling_popup_position', 'isEnabled', true) || expValEquals('create_work_item_modernization_exp', 'isEnabled', true)) ? this.scrollElement : undefined
103
103
  });
104
104
  position = onPositionCalculated ? onPositionCalculated(position) : position;
105
105
  if (typeof position.top !== 'undefined' && absoluteOffset !== null && absoluteOffset !== void 0 && absoluteOffset.top) {
@@ -253,7 +253,7 @@ export default class Popup extends React.Component {
253
253
  }
254
254
  componentDidUpdate(prevProps) {
255
255
  this.handleChangedFocusTrapProp(prevProps);
256
- if (expValEquals('platform_editor_fix_scrolling_popup_position', 'isEnabled', true) && prevProps.scrollableElement !== this.props.scrollableElement) {
256
+ if ((expValEquals('platform_editor_fix_scrolling_popup_position', 'isEnabled', true) || expValEquals('create_work_item_modernization_exp', 'isEnabled', true)) && prevProps.scrollableElement !== this.props.scrollableElement) {
257
257
  this.initScrollElement();
258
258
  }
259
259
  if (this.props !== prevProps) {
@@ -264,7 +264,7 @@ export default class Popup extends React.Component {
264
264
  // Ignored via go/ees005
265
265
  // eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
266
266
  window.addEventListener('resize', this.onResize);
267
- if (expValEquals('platform_editor_fix_scrolling_popup_position', 'isEnabled', true)) {
267
+ if (expValEquals('platform_editor_fix_scrolling_popup_position', 'isEnabled', true) || expValEquals('create_work_item_modernization_exp', 'isEnabled', true)) {
268
268
  this.initScrollElement();
269
269
  return;
270
270
  }
@@ -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 = "0.0.0-development";
13
+ var packageVersion = "114.12.1";
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 = "0.0.0-development";
24
+ var packageVersion = "114.12.1";
25
25
  var halfFocusRing = 1;
26
26
  var dropOffset = '0, 8';
27
27
  var fadeIn = keyframes({
@@ -115,7 +115,7 @@ var Popup = /*#__PURE__*/function (_React$Component) {
115
115
  rect: rect,
116
116
  boundariesElement: boundariesElement || document.body,
117
117
  minPopupMargin: minPopupMargin,
118
- scrollableElement: stick && expValEquals('platform_editor_fix_scrolling_popup_position', 'isEnabled', true) ? this.scrollElement : undefined
118
+ scrollableElement: stick && (expValEquals('platform_editor_fix_scrolling_popup_position', 'isEnabled', true) || expValEquals('create_work_item_modernization_exp', 'isEnabled', true)) ? this.scrollElement : undefined
119
119
  });
120
120
  position = onPositionCalculated ? onPositionCalculated(position) : position;
121
121
  if (typeof position.top !== 'undefined' && absoluteOffset !== null && absoluteOffset !== void 0 && absoluteOffset.top) {
@@ -281,7 +281,7 @@ var Popup = /*#__PURE__*/function (_React$Component) {
281
281
  key: "componentDidUpdate",
282
282
  value: function componentDidUpdate(prevProps) {
283
283
  this.handleChangedFocusTrapProp(prevProps);
284
- if (expValEquals('platform_editor_fix_scrolling_popup_position', 'isEnabled', true) && prevProps.scrollableElement !== this.props.scrollableElement) {
284
+ if ((expValEquals('platform_editor_fix_scrolling_popup_position', 'isEnabled', true) || expValEquals('create_work_item_modernization_exp', 'isEnabled', true)) && prevProps.scrollableElement !== this.props.scrollableElement) {
285
285
  this.initScrollElement();
286
286
  }
287
287
  if (this.props !== prevProps) {
@@ -294,7 +294,7 @@ var Popup = /*#__PURE__*/function (_React$Component) {
294
294
  // Ignored via go/ees005
295
295
  // eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
296
296
  window.addEventListener('resize', this.onResize);
297
- if (expValEquals('platform_editor_fix_scrolling_popup_position', 'isEnabled', true)) {
297
+ if (expValEquals('platform_editor_fix_scrolling_popup_position', 'isEnabled', true) || expValEquals('create_work_item_modernization_exp', 'isEnabled', true)) {
298
298
  this.initScrollElement();
299
299
  return;
300
300
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "114.12.0",
3
+ "version": "114.12.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/"
@@ -63,14 +63,14 @@
63
63
  "@atlaskit/link": "^3.4.0",
64
64
  "@atlaskit/link-datasource": "^5.2.0",
65
65
  "@atlaskit/link-picker": "^5.1.0",
66
- "@atlaskit/media-card": "^80.2.0",
66
+ "@atlaskit/media-card": "^80.3.0",
67
67
  "@atlaskit/media-client": "^36.0.0",
68
- "@atlaskit/media-client-react": "^5.0.0",
69
- "@atlaskit/media-common": "^13.0.0",
70
- "@atlaskit/media-file-preview": "^0.16.0",
71
- "@atlaskit/media-picker": "^71.0.0",
72
- "@atlaskit/media-ui": "^29.0.0",
73
- "@atlaskit/media-viewer": "^53.0.0",
68
+ "@atlaskit/media-client-react": "^5.1.0",
69
+ "@atlaskit/media-common": "^13.1.0",
70
+ "@atlaskit/media-file-preview": "^0.17.0",
71
+ "@atlaskit/media-picker": "^71.1.0",
72
+ "@atlaskit/media-ui": "^29.1.0",
73
+ "@atlaskit/media-viewer": "^53.1.0",
74
74
  "@atlaskit/mention": "^25.0.0",
75
75
  "@atlaskit/menu": "^8.5.0",
76
76
  "@atlaskit/onboarding": "^14.6.0",
@@ -86,7 +86,7 @@
86
86
  "@atlaskit/spinner": "^19.1.0",
87
87
  "@atlaskit/task-decision": "^20.0.0",
88
88
  "@atlaskit/textfield": "^8.3.0",
89
- "@atlaskit/tmp-editor-statsig": "^70.3.0",
89
+ "@atlaskit/tmp-editor-statsig": "^70.6.0",
90
90
  "@atlaskit/tokens": "^13.0.0",
91
91
  "@atlaskit/tooltip": "^21.2.0",
92
92
  "@atlaskit/width-detector": "^5.1.0",