@atlaskit/editor-common 114.12.0 → 114.12.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,15 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 114.12.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`bc415f8eb86a9`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/bc415f8eb86a9) -
|
|
8
|
+
Add OR check with create_work_item_modernization_exp experiment to
|
|
9
|
+
platform_editor_fix_scrolling_popup_position, platform_editor_table_resize_chromeless, and
|
|
10
|
+
platform_editor_chromeless_akeditor_class usages
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
|
|
3
13
|
## 114.12.0
|
|
4
14
|
|
|
5
15
|
### Minor Changes
|
|
@@ -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
|
}
|
|
@@ -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
|
}
|
|
@@ -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.
|
|
3
|
+
"version": "114.12.1",
|
|
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/"
|
|
@@ -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.
|
|
89
|
+
"@atlaskit/tmp-editor-statsig": "^70.5.0",
|
|
90
90
|
"@atlaskit/tokens": "^13.0.0",
|
|
91
91
|
"@atlaskit/tooltip": "^21.2.0",
|
|
92
92
|
"@atlaskit/width-detector": "^5.1.0",
|