@atlaskit/editor-common 123.4.2 → 123.5.0
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/extensibility/Extension/Extension/index.js +2 -4
- package/dist/cjs/extensibility/MultiBodiedExtension/index.js +2 -5
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/extensibility/Extension/Extension/index.js +2 -4
- package/dist/es2019/extensibility/MultiBodiedExtension/index.js +2 -5
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/extensibility/Extension/Extension/index.js +2 -4
- package/dist/esm/extensibility/MultiBodiedExtension/index.js +2 -5
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/types/floating-toolbar.d.ts +7 -0
- package/dist/types/types/hyperlink.d.ts +4 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 123.5.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`c4d3272bbafce`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c4d3272bbafce) -
|
|
8
|
+
Add an opt-in LinkPickerOptions.popupContainerSurface ('default' | 'none') that lets a custom link
|
|
9
|
+
picker component (e.g. RovoLinkPicker) suppress the editor's floating toolbar popup surface
|
|
10
|
+
(background, box-shadow, border-radius, padding) when it renders its own complete surface.
|
|
11
|
+
Threaded through FloatingToolbarConfig/Toolbar's new containerSurface prop. Defaults to the
|
|
12
|
+
existing wrapper surface; only a caller that explicitly opts in is affected.
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- [`3f8ea6c51b718`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3f8ea6c51b718) -
|
|
17
|
+
Remove the rolled-out `editor_tinymce_full_width_mode` and
|
|
18
|
+
`confluence_max_width_content_appearance` experiments and make max-width content behavior
|
|
19
|
+
permanent.
|
|
20
|
+
- Updated dependencies
|
|
21
|
+
|
|
3
22
|
## 123.4.2
|
|
4
23
|
|
|
5
24
|
### Patch Changes
|
|
@@ -85,13 +85,11 @@ function ExtensionWithPluginState(props) {
|
|
|
85
85
|
return typeof pos !== 'undefined' && !isNaN(pos) && view.state.doc.resolve(pos).depth === 0;
|
|
86
86
|
}, [view, getPos]);
|
|
87
87
|
var layout = node.attrs.layout;
|
|
88
|
-
var
|
|
89
|
-
var tinymceFullWidthModeEnabled = (0, _expValEquals.expValEquals)('confluence_max_width_content_appearance', 'isEnabled', true);
|
|
90
|
-
var shouldBreakout = tinymceFullWidthModeEnabled ? (0, _shouldExtensionBreakout.shouldExtensionBreakout)({
|
|
88
|
+
var shouldBreakout = (0, _shouldExtensionBreakout.shouldExtensionBreakout)({
|
|
91
89
|
layout: layout,
|
|
92
90
|
isTopLevelNode: isTopLevelNode,
|
|
93
91
|
editorAppearance: editorAppearance
|
|
94
|
-
})
|
|
92
|
+
});
|
|
95
93
|
|
|
96
94
|
// We don't want to show border for non-empty 1p bodied extensions in live pages
|
|
97
95
|
var show1PBodiedExtensionBorder = showUpdatedLivePages1PBodiedExtensionUI ? (0, _extensionUtils.isEmptyBodiedMacro)(node) : true;
|
|
@@ -270,14 +270,11 @@ var MultiBodiedExtensionWithWidth = function MultiBodiedExtensionWithWidth(_ref2
|
|
|
270
270
|
return tryExtensionHandler(actions);
|
|
271
271
|
}, [tryExtensionHandler, actions]);
|
|
272
272
|
var layout = node.attrs.layout;
|
|
273
|
-
var
|
|
274
|
-
var tinymceFullWidthModeEnabled = (0, _expValEquals.expValEquals)('confluence_max_width_content_appearance', 'isEnabled', true);
|
|
275
|
-
var shouldUseBreakoutFix = tinymceFullWidthModeEnabled;
|
|
276
|
-
var shouldBreakout = shouldUseBreakoutFix ? (0, _shouldExtensionBreakout.shouldExtensionBreakout)({
|
|
273
|
+
var shouldBreakout = (0, _shouldExtensionBreakout.shouldExtensionBreakout)({
|
|
277
274
|
layout: layout,
|
|
278
275
|
editorAppearance: editorAppearance,
|
|
279
276
|
isTopLevelNode: true
|
|
280
|
-
})
|
|
277
|
+
});
|
|
281
278
|
var mbeWrapperStyles = {};
|
|
282
279
|
if (shouldBreakout) {
|
|
283
280
|
var _calculateBreakoutSty = (0, _utils.calculateBreakoutStyles)({
|
|
@@ -27,7 +27,7 @@ var NETWORK_FAILURE_REGEX = /^network failure/i;
|
|
|
27
27
|
var RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
|
|
28
28
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
29
29
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
30
|
-
var packageVersion = "123.4.
|
|
30
|
+
var packageVersion = "123.4.2";
|
|
31
31
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
32
32
|
// Remove URL as it has UGC
|
|
33
33
|
// 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 = "123.4.
|
|
27
|
+
var packageVersion = "123.4.2";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var fadeIn = (0, _react2.keyframes)({
|
|
@@ -78,13 +78,11 @@ function ExtensionWithPluginState(props) {
|
|
|
78
78
|
return typeof pos !== 'undefined' && !isNaN(pos) && view.state.doc.resolve(pos).depth === 0;
|
|
79
79
|
}, [view, getPos]);
|
|
80
80
|
const layout = node.attrs.layout;
|
|
81
|
-
const
|
|
82
|
-
const tinymceFullWidthModeEnabled = expValEquals('confluence_max_width_content_appearance', 'isEnabled', true);
|
|
83
|
-
const shouldBreakout = tinymceFullWidthModeEnabled ? shouldExtensionBreakout({
|
|
81
|
+
const shouldBreakout = shouldExtensionBreakout({
|
|
84
82
|
layout,
|
|
85
83
|
isTopLevelNode,
|
|
86
84
|
editorAppearance
|
|
87
|
-
})
|
|
85
|
+
});
|
|
88
86
|
|
|
89
87
|
// We don't want to show border for non-empty 1p bodied extensions in live pages
|
|
90
88
|
const show1PBodiedExtensionBorder = showUpdatedLivePages1PBodiedExtensionUI ? isEmptyBodiedMacro(node) : true;
|
|
@@ -263,14 +263,11 @@ const MultiBodiedExtensionWithWidth = ({
|
|
|
263
263
|
return tryExtensionHandler(actions);
|
|
264
264
|
}, [tryExtensionHandler, actions]);
|
|
265
265
|
const layout = node.attrs.layout;
|
|
266
|
-
const
|
|
267
|
-
const tinymceFullWidthModeEnabled = expValEquals('confluence_max_width_content_appearance', 'isEnabled', true);
|
|
268
|
-
const shouldUseBreakoutFix = tinymceFullWidthModeEnabled;
|
|
269
|
-
const shouldBreakout = shouldUseBreakoutFix ? shouldExtensionBreakout({
|
|
266
|
+
const shouldBreakout = shouldExtensionBreakout({
|
|
270
267
|
layout,
|
|
271
268
|
editorAppearance,
|
|
272
269
|
isTopLevelNode: true
|
|
273
|
-
})
|
|
270
|
+
});
|
|
274
271
|
let mbeWrapperStyles = {};
|
|
275
272
|
if (shouldBreakout) {
|
|
276
273
|
const {
|
|
@@ -13,7 +13,7 @@ const NETWORK_FAILURE_REGEX = /^network failure/i;
|
|
|
13
13
|
const RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
|
|
14
14
|
const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
15
15
|
const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
16
|
-
const packageVersion = "123.4.
|
|
16
|
+
const packageVersion = "123.4.2";
|
|
17
17
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
18
18
|
// Remove URL as it has UGC
|
|
19
19
|
// Ignored via go/ees007
|
|
@@ -14,7 +14,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
|
14
14
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
15
15
|
import Layer from '../Layer';
|
|
16
16
|
const packageName = "@atlaskit/editor-common";
|
|
17
|
-
const packageVersion = "123.4.
|
|
17
|
+
const packageVersion = "123.4.2";
|
|
18
18
|
const halfFocusRing = 1;
|
|
19
19
|
const dropOffset = '0, 8';
|
|
20
20
|
const fadeIn = keyframes({
|
|
@@ -78,13 +78,11 @@ function ExtensionWithPluginState(props) {
|
|
|
78
78
|
return typeof pos !== 'undefined' && !isNaN(pos) && view.state.doc.resolve(pos).depth === 0;
|
|
79
79
|
}, [view, getPos]);
|
|
80
80
|
var layout = node.attrs.layout;
|
|
81
|
-
var
|
|
82
|
-
var tinymceFullWidthModeEnabled = expValEquals('confluence_max_width_content_appearance', 'isEnabled', true);
|
|
83
|
-
var shouldBreakout = tinymceFullWidthModeEnabled ? shouldExtensionBreakout({
|
|
81
|
+
var shouldBreakout = shouldExtensionBreakout({
|
|
84
82
|
layout: layout,
|
|
85
83
|
isTopLevelNode: isTopLevelNode,
|
|
86
84
|
editorAppearance: editorAppearance
|
|
87
|
-
})
|
|
85
|
+
});
|
|
88
86
|
|
|
89
87
|
// We don't want to show border for non-empty 1p bodied extensions in live pages
|
|
90
88
|
var show1PBodiedExtensionBorder = showUpdatedLivePages1PBodiedExtensionUI ? isEmptyBodiedMacro(node) : true;
|
|
@@ -263,14 +263,11 @@ var MultiBodiedExtensionWithWidth = function MultiBodiedExtensionWithWidth(_ref2
|
|
|
263
263
|
return tryExtensionHandler(actions);
|
|
264
264
|
}, [tryExtensionHandler, actions]);
|
|
265
265
|
var layout = node.attrs.layout;
|
|
266
|
-
var
|
|
267
|
-
var tinymceFullWidthModeEnabled = expValEquals('confluence_max_width_content_appearance', 'isEnabled', true);
|
|
268
|
-
var shouldUseBreakoutFix = tinymceFullWidthModeEnabled;
|
|
269
|
-
var shouldBreakout = shouldUseBreakoutFix ? shouldExtensionBreakout({
|
|
266
|
+
var shouldBreakout = shouldExtensionBreakout({
|
|
270
267
|
layout: layout,
|
|
271
268
|
editorAppearance: editorAppearance,
|
|
272
269
|
isTopLevelNode: true
|
|
273
|
-
})
|
|
270
|
+
});
|
|
274
271
|
var mbeWrapperStyles = {};
|
|
275
272
|
if (shouldBreakout) {
|
|
276
273
|
var _calculateBreakoutSty = calculateBreakoutStyles({
|
|
@@ -19,7 +19,7 @@ var NETWORK_FAILURE_REGEX = /^network failure/i;
|
|
|
19
19
|
var RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
|
|
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 = "123.4.
|
|
22
|
+
var packageVersion = "123.4.2";
|
|
23
23
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
24
24
|
// Remove URL as it has UGC
|
|
25
25
|
// Ignored via go/ees007
|
|
@@ -21,7 +21,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
|
21
21
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
22
22
|
import Layer from '../Layer';
|
|
23
23
|
var packageName = "@atlaskit/editor-common";
|
|
24
|
-
var packageVersion = "123.4.
|
|
24
|
+
var packageVersion = "123.4.2";
|
|
25
25
|
var halfFocusRing = 1;
|
|
26
26
|
var dropOffset = '0, 8';
|
|
27
27
|
var fadeIn = keyframes({
|
|
@@ -329,6 +329,13 @@ export interface FloatingToolbarConfig {
|
|
|
329
329
|
align?: AlignType;
|
|
330
330
|
/** Class added to Toolbar wrapper */
|
|
331
331
|
className?: string;
|
|
332
|
+
/**
|
|
333
|
+
* Controls the Toolbar wrapper's own visual surface (background, shadow, border radius,
|
|
334
|
+
* padding). Set to `'none'` when a single custom item already renders its own complete
|
|
335
|
+
* surface (e.g. a custom link picker component), so the wrapper's surface isn't duplicated
|
|
336
|
+
* behind it. Defaults to `'default'` (the wrapper's surface, as today).
|
|
337
|
+
*/
|
|
338
|
+
containerSurface?: 'default' | 'none';
|
|
332
339
|
/**
|
|
333
340
|
* Enable Popup component's focus trap
|
|
334
341
|
*/
|
|
@@ -8,8 +8,12 @@ export type LinkInputType = INPUT_METHOD.MANUAL | INPUT_METHOD.TYPEAHEAD;
|
|
|
8
8
|
* Extends `LinkPickerProps` to provide future extensibility out-of-the-box.
|
|
9
9
|
* Use `popupWidth` and `popupHeight` to control the editor popup container size
|
|
10
10
|
* when providing a custom `component` with non-standard dimensions.
|
|
11
|
+
* Use `popupContainerSurface: 'none'` when that `component` renders its own complete
|
|
12
|
+
* surface (background, shadow, border radius, padding), so the popup wrapper's own
|
|
13
|
+
* surface isn't duplicated behind it. Defaults to `'default'` (the wrapper's surface).
|
|
11
14
|
*/
|
|
12
15
|
export type LinkPickerOptions = Partial<LinkPickerProps> & {
|
|
16
|
+
popupContainerSurface?: 'default' | 'none';
|
|
13
17
|
popupHeight?: number;
|
|
14
18
|
popupWidth?: number;
|
|
15
19
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "123.
|
|
3
|
+
"version": "123.5.0",
|
|
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/"
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
"@atlaskit/task-decision": "^21.10.0",
|
|
85
85
|
"@atlaskit/teams-app-config": "^3.1.0",
|
|
86
86
|
"@atlaskit/textfield": "^10.2.0",
|
|
87
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
87
|
+
"@atlaskit/tmp-editor-statsig": "^202.0.0",
|
|
88
88
|
"@atlaskit/tokens": "^18.2.0",
|
|
89
89
|
"@atlaskit/tooltip": "^24.3.0",
|
|
90
90
|
"@atlaskit/width-detector": "^7.2.0",
|