@atlaskit/editor-common 74.7.3 → 74.7.5
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/node-width/index.js +15 -2
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/node-width/index.js +15 -2
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/node-width/index.js +15 -2
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/version.json +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 74.7.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`12d33fa653a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/12d33fa653a) - [ED-17762] Fix nested table rescale logic when the context menu opens
|
|
8
|
+
|
|
9
|
+
## 74.7.4
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
3
15
|
## 74.7.3
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -16,7 +16,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
16
16
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
17
17
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
18
18
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
19
|
-
var packageVersion = "74.7.
|
|
19
|
+
var packageVersion = "74.7.5";
|
|
20
20
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
21
21
|
// Remove URL as it has UGC
|
|
22
22
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -38,12 +38,25 @@ var getParentNodeWidth = function getParentNodeWidth(pos, state, containerWidth,
|
|
|
38
38
|
layout = breakoutMark.attrs.mode;
|
|
39
39
|
}
|
|
40
40
|
var parentWidth = calcBreakoutNodeWidth(layout, containerWidth, isFullWidthModeEnabled);
|
|
41
|
+
|
|
42
|
+
// TODO: ED-15663
|
|
43
|
+
// Please, do not copy or use this kind of code below
|
|
44
|
+
// @ts-ignore
|
|
45
|
+
var contextPanelPluginKey = {
|
|
46
|
+
key: 'contextPanelPluginKey$',
|
|
47
|
+
getState: function getState(state) {
|
|
48
|
+
return state['contextPanelPluginKey$'];
|
|
49
|
+
}
|
|
50
|
+
};
|
|
41
51
|
if (node.type === schema.nodes.layoutSection) {
|
|
52
|
+
var _contextPanelPluginKe, _contextPanelPluginKe2;
|
|
42
53
|
parentWidth += _editorSharedStyles.akLayoutGutterOffset * 2; // extra width that gets added to layout
|
|
43
54
|
|
|
44
|
-
|
|
55
|
+
// Calculate width of parent layout column when
|
|
56
|
+
// Parallel layout with viewport greater than 1024px
|
|
57
|
+
// OR side panel of an extension is open and change the node width to smaller than containerWidth
|
|
58
|
+
if (containerWidth.width > _editorSharedStyles.gridMediumMaxWidth || ((_contextPanelPluginKe = contextPanelPluginKey.getState(state)) === null || _contextPanelPluginKe === void 0 ? void 0 : _contextPanelPluginKe.contents.length) > 0 && ((_contextPanelPluginKe2 = contextPanelPluginKey.getState(state)) === null || _contextPanelPluginKe2 === void 0 ? void 0 : _contextPanelPluginKe2.contents[0]) !== undefined) {
|
|
45
59
|
parentWidth -= (_layout.LAYOUT_SECTION_MARGIN + 2) * (node.childCount - 1); // margin between sections
|
|
46
|
-
|
|
47
60
|
var $pos = state.doc.resolve(pos);
|
|
48
61
|
var column = (0, _prosemirrorUtils.findParentNodeOfTypeClosestToPos)($pos, [state.schema.nodes.layoutColumn]);
|
|
49
62
|
if (column && column.node && !isNaN(column.node.attrs.width)) {
|
|
@@ -24,7 +24,7 @@ var _templateObject, _templateObject2, _templateObject3;
|
|
|
24
24
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
25
25
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } /** @jsx jsx */
|
|
26
26
|
var packageName = "@atlaskit/editor-common";
|
|
27
|
-
var packageVersion = "74.7.
|
|
27
|
+
var packageVersion = "74.7.5";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var DropList = /*#__PURE__*/function (_Component) {
|
package/dist/cjs/version.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
2
2
|
const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
3
|
-
const packageVersion = "74.7.
|
|
3
|
+
const packageVersion = "74.7.5";
|
|
4
4
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
5
5
|
// Remove URL as it has UGC
|
|
6
6
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -32,12 +32,25 @@ export const getParentNodeWidth = (pos, state, containerWidth, isFullWidthModeEn
|
|
|
32
32
|
layout = breakoutMark.attrs.mode;
|
|
33
33
|
}
|
|
34
34
|
let parentWidth = calcBreakoutNodeWidth(layout, containerWidth, isFullWidthModeEnabled);
|
|
35
|
+
|
|
36
|
+
// TODO: ED-15663
|
|
37
|
+
// Please, do not copy or use this kind of code below
|
|
38
|
+
// @ts-ignore
|
|
39
|
+
const contextPanelPluginKey = {
|
|
40
|
+
key: 'contextPanelPluginKey$',
|
|
41
|
+
getState: state => {
|
|
42
|
+
return state['contextPanelPluginKey$'];
|
|
43
|
+
}
|
|
44
|
+
};
|
|
35
45
|
if (node.type === schema.nodes.layoutSection) {
|
|
46
|
+
var _contextPanelPluginKe, _contextPanelPluginKe2;
|
|
36
47
|
parentWidth += akLayoutGutterOffset * 2; // extra width that gets added to layout
|
|
37
48
|
|
|
38
|
-
|
|
49
|
+
// Calculate width of parent layout column when
|
|
50
|
+
// Parallel layout with viewport greater than 1024px
|
|
51
|
+
// OR side panel of an extension is open and change the node width to smaller than containerWidth
|
|
52
|
+
if (containerWidth.width > gridMediumMaxWidth || ((_contextPanelPluginKe = contextPanelPluginKey.getState(state)) === null || _contextPanelPluginKe === void 0 ? void 0 : _contextPanelPluginKe.contents.length) > 0 && ((_contextPanelPluginKe2 = contextPanelPluginKey.getState(state)) === null || _contextPanelPluginKe2 === void 0 ? void 0 : _contextPanelPluginKe2.contents[0]) !== undefined) {
|
|
39
53
|
parentWidth -= (LAYOUT_SECTION_MARGIN + 2) * (node.childCount - 1); // margin between sections
|
|
40
|
-
|
|
41
54
|
const $pos = state.doc.resolve(pos);
|
|
42
55
|
const column = findParentNodeOfTypeClosestToPos($pos, [state.schema.nodes.layoutColumn]);
|
|
43
56
|
if (column && column.node && !isNaN(column.node.attrs.width)) {
|
|
@@ -8,7 +8,7 @@ import { themed } from '@atlaskit/theme/components';
|
|
|
8
8
|
import { borderRadius } from '@atlaskit/theme/constants';
|
|
9
9
|
import Layer from '../Layer';
|
|
10
10
|
const packageName = "@atlaskit/editor-common";
|
|
11
|
-
const packageVersion = "74.7.
|
|
11
|
+
const packageVersion = "74.7.5";
|
|
12
12
|
const halfFocusRing = 1;
|
|
13
13
|
const dropOffset = '0, 8';
|
|
14
14
|
class DropList extends Component {
|
package/dist/es2019/version.json
CHANGED
|
@@ -6,7 +6,7 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
6
6
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
7
7
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
8
8
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
9
|
-
var packageVersion = "74.7.
|
|
9
|
+
var packageVersion = "74.7.5";
|
|
10
10
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
11
11
|
// Remove URL as it has UGC
|
|
12
12
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -30,12 +30,25 @@ export var getParentNodeWidth = function getParentNodeWidth(pos, state, containe
|
|
|
30
30
|
layout = breakoutMark.attrs.mode;
|
|
31
31
|
}
|
|
32
32
|
var parentWidth = calcBreakoutNodeWidth(layout, containerWidth, isFullWidthModeEnabled);
|
|
33
|
+
|
|
34
|
+
// TODO: ED-15663
|
|
35
|
+
// Please, do not copy or use this kind of code below
|
|
36
|
+
// @ts-ignore
|
|
37
|
+
var contextPanelPluginKey = {
|
|
38
|
+
key: 'contextPanelPluginKey$',
|
|
39
|
+
getState: function getState(state) {
|
|
40
|
+
return state['contextPanelPluginKey$'];
|
|
41
|
+
}
|
|
42
|
+
};
|
|
33
43
|
if (node.type === schema.nodes.layoutSection) {
|
|
44
|
+
var _contextPanelPluginKe, _contextPanelPluginKe2;
|
|
34
45
|
parentWidth += akLayoutGutterOffset * 2; // extra width that gets added to layout
|
|
35
46
|
|
|
36
|
-
|
|
47
|
+
// Calculate width of parent layout column when
|
|
48
|
+
// Parallel layout with viewport greater than 1024px
|
|
49
|
+
// OR side panel of an extension is open and change the node width to smaller than containerWidth
|
|
50
|
+
if (containerWidth.width > gridMediumMaxWidth || ((_contextPanelPluginKe = contextPanelPluginKey.getState(state)) === null || _contextPanelPluginKe === void 0 ? void 0 : _contextPanelPluginKe.contents.length) > 0 && ((_contextPanelPluginKe2 = contextPanelPluginKey.getState(state)) === null || _contextPanelPluginKe2 === void 0 ? void 0 : _contextPanelPluginKe2.contents[0]) !== undefined) {
|
|
37
51
|
parentWidth -= (LAYOUT_SECTION_MARGIN + 2) * (node.childCount - 1); // margin between sections
|
|
38
|
-
|
|
39
52
|
var $pos = state.doc.resolve(pos);
|
|
40
53
|
var column = findParentNodeOfTypeClosestToPos($pos, [state.schema.nodes.layoutColumn]);
|
|
41
54
|
if (column && column.node && !isNaN(column.node.attrs.width)) {
|
|
@@ -18,7 +18,7 @@ import { themed } from '@atlaskit/theme/components';
|
|
|
18
18
|
import { borderRadius } from '@atlaskit/theme/constants';
|
|
19
19
|
import Layer from '../Layer';
|
|
20
20
|
var packageName = "@atlaskit/editor-common";
|
|
21
|
-
var packageVersion = "74.7.
|
|
21
|
+
var packageVersion = "74.7.5";
|
|
22
22
|
var halfFocusRing = 1;
|
|
23
23
|
var dropOffset = '0, 8';
|
|
24
24
|
var DropList = /*#__PURE__*/function (_Component) {
|
package/dist/esm/version.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "74.7.
|
|
3
|
+
"version": "74.7.5",
|
|
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/"
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"@atlaskit/codemod-utils": "^4.2.0",
|
|
83
83
|
"@atlaskit/collab-provider": "^9.2.0",
|
|
84
84
|
"@atlaskit/editor-json-transformer": "^8.9.0",
|
|
85
|
-
"@atlaskit/editor-palette": "1.
|
|
85
|
+
"@atlaskit/editor-palette": "1.5.0",
|
|
86
86
|
"@atlaskit/editor-shared-styles": "^2.4.0",
|
|
87
87
|
"@atlaskit/emoji": "^67.4.0",
|
|
88
88
|
"@atlaskit/icon": "^21.12.0",
|