@atlaskit/editor-common 114.11.1 → 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 +19 -0
- package/dist/cjs/messages/native-embed-toolbar.js +5 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/ui/Popup/index.js +3 -3
- package/dist/es2019/messages/native-embed-toolbar.js +5 -0
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/ui/Popup/index.js +3 -3
- package/dist/esm/messages/native-embed-toolbar.js +5 -0
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/ui/Popup/index.js +3 -3
- package/dist/types/messages/native-embed-toolbar.d.ts +10 -5
- package/dist/types-ts4.5/messages/native-embed-toolbar.d.ts +10 -5
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
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
|
+
|
|
13
|
+
## 114.12.0
|
|
14
|
+
|
|
15
|
+
### Minor Changes
|
|
16
|
+
|
|
17
|
+
- [`7fe1914f87802`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7fe1914f87802) -
|
|
18
|
+
MAUI-463: Add expand (fullscreen preview) button to native embed editor floating toolbar. Removes
|
|
19
|
+
expand button from embed header for MAUI embeds (Infographic, Chart, Visualization) since it is
|
|
20
|
+
now in the editor toolbar.
|
|
21
|
+
|
|
3
22
|
## 114.11.1
|
|
4
23
|
|
|
5
24
|
### Patch Changes
|
|
@@ -25,5 +25,10 @@ var nativeEmbedToolbarMessages = exports.nativeEmbedToolbarMessages = (0, _react
|
|
|
25
25
|
id: 'fabric.editor.setEmbedType.non-final',
|
|
26
26
|
defaultMessage: 'Set embed type',
|
|
27
27
|
description: 'Label for the button to set the type of embed.'
|
|
28
|
+
},
|
|
29
|
+
expandPreview: {
|
|
30
|
+
id: 'fabric.editor.nativeEmbeds.expandPreview',
|
|
31
|
+
defaultMessage: 'Expand preview',
|
|
32
|
+
description: 'Label for the button to open the embed in a fullscreen preview.'
|
|
28
33
|
}
|
|
29
34
|
});
|
|
@@ -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 = "
|
|
22
|
+
var packageVersion = "0.0.0-development";
|
|
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 = "
|
|
27
|
+
var packageVersion = "0.0.0-development";
|
|
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
|
}
|
|
@@ -19,5 +19,10 @@ export const nativeEmbedToolbarMessages = defineMessages({
|
|
|
19
19
|
id: 'fabric.editor.setEmbedType.non-final',
|
|
20
20
|
defaultMessage: 'Set embed type',
|
|
21
21
|
description: 'Label for the button to set the type of embed.'
|
|
22
|
+
},
|
|
23
|
+
expandPreview: {
|
|
24
|
+
id: 'fabric.editor.nativeEmbeds.expandPreview',
|
|
25
|
+
defaultMessage: 'Expand preview',
|
|
26
|
+
description: 'Label for the button to open the embed in a fullscreen preview.'
|
|
22
27
|
}
|
|
23
28
|
});
|
|
@@ -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 = "
|
|
7
|
+
const packageVersion = "0.0.0-development";
|
|
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 = "
|
|
17
|
+
const packageVersion = "0.0.0-development";
|
|
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
|
}
|
|
@@ -19,5 +19,10 @@ export var nativeEmbedToolbarMessages = defineMessages({
|
|
|
19
19
|
id: 'fabric.editor.setEmbedType.non-final',
|
|
20
20
|
defaultMessage: 'Set embed type',
|
|
21
21
|
description: 'Label for the button to set the type of embed.'
|
|
22
|
+
},
|
|
23
|
+
expandPreview: {
|
|
24
|
+
id: 'fabric.editor.nativeEmbeds.expandPreview',
|
|
25
|
+
defaultMessage: 'Expand preview',
|
|
26
|
+
description: 'Label for the button to open the embed in a fullscreen preview.'
|
|
22
27
|
}
|
|
23
28
|
});
|
|
@@ -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 = "
|
|
13
|
+
var packageVersion = "0.0.0-development";
|
|
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 = "
|
|
24
|
+
var packageVersion = "0.0.0-development";
|
|
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
|
}
|
|
@@ -1,22 +1,27 @@
|
|
|
1
1
|
export declare const nativeEmbedToolbarMessages: {
|
|
2
2
|
alwaysShowTitle: {
|
|
3
|
-
id: string;
|
|
4
3
|
defaultMessage: string;
|
|
5
4
|
description: string;
|
|
6
|
-
};
|
|
7
|
-
refresh: {
|
|
8
5
|
id: string;
|
|
6
|
+
};
|
|
7
|
+
expandPreview: {
|
|
9
8
|
defaultMessage: string;
|
|
10
9
|
description: string;
|
|
11
|
-
};
|
|
12
|
-
summarise: {
|
|
13
10
|
id: string;
|
|
11
|
+
};
|
|
12
|
+
refresh: {
|
|
14
13
|
defaultMessage: string;
|
|
15
14
|
description: string;
|
|
15
|
+
id: string;
|
|
16
16
|
};
|
|
17
17
|
setEmbedType: {
|
|
18
|
+
defaultMessage: string;
|
|
19
|
+
description: string;
|
|
18
20
|
id: string;
|
|
21
|
+
};
|
|
22
|
+
summarise: {
|
|
19
23
|
defaultMessage: string;
|
|
20
24
|
description: string;
|
|
25
|
+
id: string;
|
|
21
26
|
};
|
|
22
27
|
};
|
|
@@ -1,22 +1,27 @@
|
|
|
1
1
|
export declare const nativeEmbedToolbarMessages: {
|
|
2
2
|
alwaysShowTitle: {
|
|
3
|
-
id: string;
|
|
4
3
|
defaultMessage: string;
|
|
5
4
|
description: string;
|
|
6
|
-
};
|
|
7
|
-
refresh: {
|
|
8
5
|
id: string;
|
|
6
|
+
};
|
|
7
|
+
expandPreview: {
|
|
9
8
|
defaultMessage: string;
|
|
10
9
|
description: string;
|
|
11
|
-
};
|
|
12
|
-
summarise: {
|
|
13
10
|
id: string;
|
|
11
|
+
};
|
|
12
|
+
refresh: {
|
|
14
13
|
defaultMessage: string;
|
|
15
14
|
description: string;
|
|
15
|
+
id: string;
|
|
16
16
|
};
|
|
17
17
|
setEmbedType: {
|
|
18
|
+
defaultMessage: string;
|
|
19
|
+
description: string;
|
|
18
20
|
id: string;
|
|
21
|
+
};
|
|
22
|
+
summarise: {
|
|
19
23
|
defaultMessage: string;
|
|
20
24
|
description: string;
|
|
25
|
+
id: string;
|
|
21
26
|
};
|
|
22
27
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "114.
|
|
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",
|