@atlaskit/editor-common 102.13.0 → 102.13.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 +12 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/utils/calculate-toolbar-position.js +5 -6
- package/dist/cjs/utils/processRawValue.js +1 -1
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/utils/calculate-toolbar-position.js +5 -6
- package/dist/es2019/utils/processRawValue.js +1 -1
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/utils/calculate-toolbar-position.js +5 -6
- package/dist/esm/utils/processRawValue.js +1 -1
- package/package.json +2 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 102.13.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#128179](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/128179)
|
|
8
|
+
[`1ce5182d1a35f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/1ce5182d1a35f) -
|
|
9
|
+
Clean up feature flag platform_editor_advanced_layouts_post_fix_patch_3
|
|
10
|
+
- [#130605](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/130605)
|
|
11
|
+
[`2f50b6db9e791`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/2f50b6db9e791) -
|
|
12
|
+
Clean up feature flag platform_editor_selection_toolbar_scroll_fix
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
3
15
|
## 102.13.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
|
@@ -17,7 +17,7 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
|
|
|
17
17
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
18
18
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
19
19
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
20
|
-
var packageVersion = "102.13.
|
|
20
|
+
var packageVersion = "102.13.1";
|
|
21
21
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
22
22
|
// Remove URL as it has UGC
|
|
23
23
|
// Ignored via go/ees007
|
|
@@ -23,7 +23,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
23
23
|
* @jsx jsx
|
|
24
24
|
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
25
25
|
var packageName = "@atlaskit/editor-common";
|
|
26
|
-
var packageVersion = "102.13.
|
|
26
|
+
var packageVersion = "102.13.1";
|
|
27
27
|
var halfFocusRing = 1;
|
|
28
28
|
var dropOffset = '0, 8';
|
|
29
29
|
// Ignored via go/ees005
|
|
@@ -6,7 +6,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.calculateToolbarPositionTrackHead = exports.calculateToolbarPositionOnCellSelection = exports.calculateToolbarPositionAboveSelection = void 0;
|
|
7
7
|
var _utils = require("@atlaskit/editor-prosemirror/utils");
|
|
8
8
|
var _cellSelection = require("@atlaskit/editor-tables/cell-selection");
|
|
9
|
-
var
|
|
9
|
+
var MAXIMUM_BROWSER_SCROLLBAR_WIDTH = 20;
|
|
10
|
+
|
|
10
11
|
/*
|
|
11
12
|
Calculates the position of the floating toolbar relative to the selection.
|
|
12
13
|
This is a re-implementation which closely matches the behaviour on Confluence renderer.
|
|
@@ -135,11 +136,9 @@ var calculateToolbarPositionTrackHead = exports.calculateToolbarPositionTrackHea
|
|
|
135
136
|
left = _getCoordsBelowSelect2.left;
|
|
136
137
|
}
|
|
137
138
|
var leftCoord = Math.max(0, left - wrapperBounds.left);
|
|
138
|
-
if (
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
leftCoord = Math.max(0, wrapperBounds.width - (toolbarRect.width + _scrollbarWidth));
|
|
142
|
-
}
|
|
139
|
+
if (leftCoord + toolbarRect.width > wrapperBounds.width) {
|
|
140
|
+
var _scrollbarWidth = MAXIMUM_BROWSER_SCROLLBAR_WIDTH;
|
|
141
|
+
leftCoord = Math.max(0, wrapperBounds.width - (toolbarRect.width + _scrollbarWidth));
|
|
143
142
|
}
|
|
144
143
|
|
|
145
144
|
// remap positions from browser document to wrapperBounds
|
|
@@ -204,7 +204,7 @@ function processRawValue(schema, value, providerFactory, sanitizePrivateContent,
|
|
|
204
204
|
var _transformNestedTable3 = transformNestedTablesWithAnalytics(transformedAdf, dispatchAnalyticsEvent);
|
|
205
205
|
transformedAdf = _transformNestedTable3.transformedAdf;
|
|
206
206
|
}
|
|
207
|
-
if (dispatchAnalyticsEvent
|
|
207
|
+
if (dispatchAnalyticsEvent) {
|
|
208
208
|
var _transformedAdf$conte;
|
|
209
209
|
var hasSingleColumnLayout = (_transformedAdf$conte = transformedAdf.content) === null || _transformedAdf$conte === void 0 ? void 0 : _transformedAdf$conte.some(function (node) {
|
|
210
210
|
var _node$content;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { isFedRamp } from './environment';
|
|
2
2
|
const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
3
3
|
const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
4
|
-
const packageVersion = "102.13.
|
|
4
|
+
const packageVersion = "102.13.1";
|
|
5
5
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
6
6
|
// Remove URL as it has UGC
|
|
7
7
|
// Ignored via go/ees007
|
|
@@ -13,7 +13,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
|
|
|
13
13
|
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
14
14
|
import Layer from '../Layer';
|
|
15
15
|
const packageName = "@atlaskit/editor-common";
|
|
16
|
-
const packageVersion = "102.13.
|
|
16
|
+
const packageVersion = "102.13.1";
|
|
17
17
|
const halfFocusRing = 1;
|
|
18
18
|
const dropOffset = '0, 8';
|
|
19
19
|
// Ignored via go/ees005
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { findDomRefAtPos } from '@atlaskit/editor-prosemirror/utils';
|
|
2
2
|
import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
|
|
3
|
-
|
|
3
|
+
const MAXIMUM_BROWSER_SCROLLBAR_WIDTH = 20;
|
|
4
|
+
|
|
4
5
|
/*
|
|
5
6
|
Calculates the position of the floating toolbar relative to the selection.
|
|
6
7
|
This is a re-implementation which closely matches the behaviour on Confluence renderer.
|
|
@@ -130,11 +131,9 @@ export const calculateToolbarPositionTrackHead = toolbarTitle => (editorView, ne
|
|
|
130
131
|
} = getCoordsBelowSelection(bottomCoords, toolbarRect));
|
|
131
132
|
}
|
|
132
133
|
let leftCoord = Math.max(0, left - wrapperBounds.left);
|
|
133
|
-
if (
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
leftCoord = Math.max(0, wrapperBounds.width - (toolbarRect.width + scrollbarWidth));
|
|
137
|
-
}
|
|
134
|
+
if (leftCoord + toolbarRect.width > wrapperBounds.width) {
|
|
135
|
+
const scrollbarWidth = MAXIMUM_BROWSER_SCROLLBAR_WIDTH;
|
|
136
|
+
leftCoord = Math.max(0, wrapperBounds.width - (toolbarRect.width + scrollbarWidth));
|
|
138
137
|
}
|
|
139
138
|
|
|
140
139
|
// remap positions from browser document to wrapperBounds
|
|
@@ -203,7 +203,7 @@ export function processRawValue(schema, value, providerFactory, sanitizePrivateC
|
|
|
203
203
|
transformedAdf
|
|
204
204
|
} = transformNestedTablesWithAnalytics(transformedAdf, dispatchAnalyticsEvent));
|
|
205
205
|
}
|
|
206
|
-
if (dispatchAnalyticsEvent
|
|
206
|
+
if (dispatchAnalyticsEvent) {
|
|
207
207
|
var _transformedAdf$conte;
|
|
208
208
|
const hasSingleColumnLayout = (_transformedAdf$conte = transformedAdf.content) === null || _transformedAdf$conte === void 0 ? void 0 : _transformedAdf$conte.some(node => {
|
|
209
209
|
var _node$content;
|
|
@@ -7,7 +7,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
7
7
|
import { isFedRamp } from './environment';
|
|
8
8
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
9
9
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
10
|
-
var packageVersion = "102.13.
|
|
10
|
+
var packageVersion = "102.13.1";
|
|
11
11
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
12
12
|
// Remove URL as it has UGC
|
|
13
13
|
// Ignored via go/ees007
|
|
@@ -20,7 +20,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
|
|
|
20
20
|
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
21
21
|
import Layer from '../Layer';
|
|
22
22
|
var packageName = "@atlaskit/editor-common";
|
|
23
|
-
var packageVersion = "102.13.
|
|
23
|
+
var packageVersion = "102.13.1";
|
|
24
24
|
var halfFocusRing = 1;
|
|
25
25
|
var dropOffset = '0, 8';
|
|
26
26
|
// Ignored via go/ees005
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { findDomRefAtPos } from '@atlaskit/editor-prosemirror/utils';
|
|
2
2
|
import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
|
|
3
|
-
|
|
3
|
+
var MAXIMUM_BROWSER_SCROLLBAR_WIDTH = 20;
|
|
4
|
+
|
|
4
5
|
/*
|
|
5
6
|
Calculates the position of the floating toolbar relative to the selection.
|
|
6
7
|
This is a re-implementation which closely matches the behaviour on Confluence renderer.
|
|
@@ -129,11 +130,9 @@ export var calculateToolbarPositionTrackHead = function calculateToolbarPosition
|
|
|
129
130
|
left = _getCoordsBelowSelect2.left;
|
|
130
131
|
}
|
|
131
132
|
var leftCoord = Math.max(0, left - wrapperBounds.left);
|
|
132
|
-
if (
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
leftCoord = Math.max(0, wrapperBounds.width - (toolbarRect.width + _scrollbarWidth));
|
|
136
|
-
}
|
|
133
|
+
if (leftCoord + toolbarRect.width > wrapperBounds.width) {
|
|
134
|
+
var _scrollbarWidth = MAXIMUM_BROWSER_SCROLLBAR_WIDTH;
|
|
135
|
+
leftCoord = Math.max(0, wrapperBounds.width - (toolbarRect.width + _scrollbarWidth));
|
|
137
136
|
}
|
|
138
137
|
|
|
139
138
|
// remap positions from browser document to wrapperBounds
|
|
@@ -196,7 +196,7 @@ export function processRawValue(schema, value, providerFactory, sanitizePrivateC
|
|
|
196
196
|
var _transformNestedTable3 = transformNestedTablesWithAnalytics(transformedAdf, dispatchAnalyticsEvent);
|
|
197
197
|
transformedAdf = _transformNestedTable3.transformedAdf;
|
|
198
198
|
}
|
|
199
|
-
if (dispatchAnalyticsEvent
|
|
199
|
+
if (dispatchAnalyticsEvent) {
|
|
200
200
|
var _transformedAdf$conte;
|
|
201
201
|
var hasSingleColumnLayout = (_transformedAdf$conte = transformedAdf.content) === null || _transformedAdf$conte === void 0 ? void 0 : _transformedAdf$conte.some(function (node) {
|
|
202
202
|
var _node$content;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "102.13.
|
|
3
|
+
"version": "102.13.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/"
|
|
@@ -153,7 +153,7 @@
|
|
|
153
153
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
154
154
|
"@atlaskit/popper": "^7.0.0",
|
|
155
155
|
"@atlaskit/primitives": "^14.2.0",
|
|
156
|
-
"@atlaskit/profilecard": "^23.
|
|
156
|
+
"@atlaskit/profilecard": "^23.5.0",
|
|
157
157
|
"@atlaskit/section-message": "^8.2.0",
|
|
158
158
|
"@atlaskit/smart-card": "^36.0.0",
|
|
159
159
|
"@atlaskit/smart-user-picker": "^8.0.0",
|
|
@@ -280,9 +280,6 @@
|
|
|
280
280
|
"platform_editor_nested_tables_renderer_styles": {
|
|
281
281
|
"type": "boolean"
|
|
282
282
|
},
|
|
283
|
-
"platform_editor_selection_toolbar_scroll_fix": {
|
|
284
|
-
"type": "boolean"
|
|
285
|
-
},
|
|
286
283
|
"platform_editor_advanced_layouts_a11y": {
|
|
287
284
|
"type": "boolean"
|
|
288
285
|
},
|
|
@@ -292,9 +289,6 @@
|
|
|
292
289
|
"platform_editor_extension_fix_ssr_ref": {
|
|
293
290
|
"type": "boolean"
|
|
294
291
|
},
|
|
295
|
-
"platform_editor_advanced_layouts_post_fix_patch_3": {
|
|
296
|
-
"type": "boolean"
|
|
297
|
-
},
|
|
298
292
|
"platform_editor_breakoutresizer_remove_assertion": {
|
|
299
293
|
"type": "boolean"
|
|
300
294
|
},
|