@atlaskit/editor-common 86.2.2 → 86.2.3
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 +11 -0
- package/dist/cjs/link/utils.js +3 -2
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/node-width/index.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/link/utils.js +4 -2
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/node-width/index.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/link/utils.js +3 -2
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/node-width/index.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/link/utils.d.ts +4 -1
- package/dist/types/node-width/index.d.ts +1 -1
- package/dist/types-ts4.5/link/utils.d.ts +4 -1
- package/dist/types-ts4.5/node-width/index.d.ts +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 86.2.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#121941](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/121941)
|
|
8
|
+
[`9db19df977817`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/9db19df977817) -
|
|
9
|
+
Added new commands for hyperlink plugin: removeLink and updateLink. These can be used on an active
|
|
10
|
+
link to remove the hyperlink mark or update the text/href on the link.
|
|
11
|
+
- [`3b20c735bc9ee`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3b20c735bc9ee) -
|
|
12
|
+
[ux] Insert full-width table in comment editor when table resizing is enabled.
|
|
13
|
+
|
|
3
14
|
## 86.2.2
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
package/dist/cjs/link/utils.js
CHANGED
|
@@ -9,8 +9,9 @@ exports.isTextAtPos = isTextAtPos;
|
|
|
9
9
|
var _atlassianContext = require("@atlaskit/atlassian-context");
|
|
10
10
|
var _constants = require("./constants");
|
|
11
11
|
function isTextAtPos(pos) {
|
|
12
|
-
return function (
|
|
13
|
-
var
|
|
12
|
+
return function (_ref) {
|
|
13
|
+
var tr = _ref.tr;
|
|
14
|
+
var node = tr.doc.nodeAt(pos);
|
|
14
15
|
return !!node && node.isText;
|
|
15
16
|
};
|
|
16
17
|
}
|
|
@@ -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 && Object.prototype.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 = "86.2.
|
|
20
|
+
var packageVersion = "86.2.3";
|
|
21
21
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
22
22
|
// Remove URL as it has UGC
|
|
23
23
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -105,7 +105,7 @@ var getNestedParentNode = function getNestedParentNode(tablePos, state) {
|
|
|
105
105
|
var calcBreakoutNodeWidth = function calcBreakoutNodeWidth(layout, containerWidth, isFullWidthModeEnabled) {
|
|
106
106
|
return isFullWidthModeEnabled ? Math.min(containerWidth.lineLength, _editorSharedStyles.akEditorFullWidthLayoutWidth) : (0, _breakout.absoluteBreakoutWidth)(layout, containerWidth.width);
|
|
107
107
|
};
|
|
108
|
-
var getTableContainerWidth = exports.getTableContainerWidth = function getTableContainerWidth(node) {
|
|
108
|
+
var getTableContainerWidth = exports.getTableContainerWidth = function getTableContainerWidth(node, isCommentEditor) {
|
|
109
109
|
if (node !== null && node !== void 0 && node.attrs.width) {
|
|
110
110
|
return node.attrs.width;
|
|
111
111
|
}
|
|
@@ -20,7 +20,7 @@ var _Layer = _interopRequireDefault(require("../Layer"));
|
|
|
20
20
|
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); }; }
|
|
21
21
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /** @jsx jsx */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
22
22
|
var packageName = "@atlaskit/editor-common";
|
|
23
|
-
var packageVersion = "86.2.
|
|
23
|
+
var packageVersion = "86.2.3";
|
|
24
24
|
var halfFocusRing = 1;
|
|
25
25
|
var dropOffset = '0, 8';
|
|
26
26
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { getATLContextUrl } from '@atlaskit/atlassian-context';
|
|
2
2
|
import { linkPreferencesPath } from './constants';
|
|
3
3
|
export function isTextAtPos(pos) {
|
|
4
|
-
return
|
|
5
|
-
|
|
4
|
+
return ({
|
|
5
|
+
tr
|
|
6
|
+
}) => {
|
|
7
|
+
const node = tr.doc.nodeAt(pos);
|
|
6
8
|
return !!node && node.isText;
|
|
7
9
|
};
|
|
8
10
|
}
|
|
@@ -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 = "86.2.
|
|
4
|
+
const packageVersion = "86.2.3";
|
|
5
5
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
6
6
|
// Remove URL as it has UGC
|
|
7
7
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -100,7 +100,7 @@ const getNestedParentNode = (tablePos, state) => {
|
|
|
100
100
|
const calcBreakoutNodeWidth = (layout, containerWidth, isFullWidthModeEnabled) => {
|
|
101
101
|
return isFullWidthModeEnabled ? Math.min(containerWidth.lineLength, akEditorFullWidthLayoutWidth) : absoluteBreakoutWidth(layout, containerWidth.width);
|
|
102
102
|
};
|
|
103
|
-
export const getTableContainerWidth = node => {
|
|
103
|
+
export const getTableContainerWidth = (node, isCommentEditor) => {
|
|
104
104
|
if (node !== null && node !== void 0 && node.attrs.width) {
|
|
105
105
|
return node.attrs.width;
|
|
106
106
|
}
|
|
@@ -9,7 +9,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
|
|
|
9
9
|
import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
|
|
10
10
|
import Layer from '../Layer';
|
|
11
11
|
const packageName = "@atlaskit/editor-common";
|
|
12
|
-
const packageVersion = "86.2.
|
|
12
|
+
const packageVersion = "86.2.3";
|
|
13
13
|
const halfFocusRing = 1;
|
|
14
14
|
const dropOffset = '0, 8';
|
|
15
15
|
class DropList extends Component {
|
package/dist/esm/link/utils.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { getATLContextUrl } from '@atlaskit/atlassian-context';
|
|
2
2
|
import { linkPreferencesPath } from './constants';
|
|
3
3
|
export function isTextAtPos(pos) {
|
|
4
|
-
return function (
|
|
5
|
-
var
|
|
4
|
+
return function (_ref) {
|
|
5
|
+
var tr = _ref.tr;
|
|
6
|
+
var node = tr.doc.nodeAt(pos);
|
|
6
7
|
return !!node && node.isText;
|
|
7
8
|
};
|
|
8
9
|
}
|
|
@@ -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 = "86.2.
|
|
10
|
+
var packageVersion = "86.2.3";
|
|
11
11
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
12
12
|
// Remove URL as it has UGC
|
|
13
13
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -98,7 +98,7 @@ var getNestedParentNode = function getNestedParentNode(tablePos, state) {
|
|
|
98
98
|
var calcBreakoutNodeWidth = function calcBreakoutNodeWidth(layout, containerWidth, isFullWidthModeEnabled) {
|
|
99
99
|
return isFullWidthModeEnabled ? Math.min(containerWidth.lineLength, akEditorFullWidthLayoutWidth) : absoluteBreakoutWidth(layout, containerWidth.width);
|
|
100
100
|
};
|
|
101
|
-
export var getTableContainerWidth = function getTableContainerWidth(node) {
|
|
101
|
+
export var getTableContainerWidth = function getTableContainerWidth(node, isCommentEditor) {
|
|
102
102
|
if (node !== null && node !== void 0 && node.attrs.width) {
|
|
103
103
|
return node.attrs.width;
|
|
104
104
|
}
|
|
@@ -17,7 +17,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
|
|
|
17
17
|
import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
|
|
18
18
|
import Layer from '../Layer';
|
|
19
19
|
var packageName = "@atlaskit/editor-common";
|
|
20
|
-
var packageVersion = "86.2.
|
|
20
|
+
var packageVersion = "86.2.3";
|
|
21
21
|
var halfFocusRing = 1;
|
|
22
22
|
var dropOffset = '0, 8';
|
|
23
23
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
+
import type { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
1
2
|
import type { Predicate } from '../types';
|
|
2
|
-
export declare function isTextAtPos(pos: number):
|
|
3
|
+
export declare function isTextAtPos(pos: number): (props: {
|
|
4
|
+
tr: Transaction;
|
|
5
|
+
}) => boolean;
|
|
3
6
|
export declare function isLinkAtPos(pos: number): Predicate;
|
|
4
7
|
export declare const getLinkPreferencesURLFromENV: () => string;
|
|
@@ -11,5 +11,5 @@ export declare const layoutToWidth: {
|
|
|
11
11
|
* If current node selection is not nested will return undefined
|
|
12
12
|
*/
|
|
13
13
|
export declare const getParentNodeWidth: (pos: number | undefined, state: EditorState, containerWidth: EditorContainerWidth, isFullWidthModeEnabled?: boolean) => any;
|
|
14
|
-
export declare const getTableContainerWidth: (node?: PMNode) => number;
|
|
14
|
+
export declare const getTableContainerWidth: (node?: PMNode, isCommentEditor?: boolean) => number;
|
|
15
15
|
export declare const getTableWidthWithNumberColumn: (node: PMNode, offset: number) => number;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
+
import type { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
1
2
|
import type { Predicate } from '../types';
|
|
2
|
-
export declare function isTextAtPos(pos: number):
|
|
3
|
+
export declare function isTextAtPos(pos: number): (props: {
|
|
4
|
+
tr: Transaction;
|
|
5
|
+
}) => boolean;
|
|
3
6
|
export declare function isLinkAtPos(pos: number): Predicate;
|
|
4
7
|
export declare const getLinkPreferencesURLFromENV: () => string;
|
|
@@ -11,5 +11,5 @@ export declare const layoutToWidth: {
|
|
|
11
11
|
* If current node selection is not nested will return undefined
|
|
12
12
|
*/
|
|
13
13
|
export declare const getParentNodeWidth: (pos: number | undefined, state: EditorState, containerWidth: EditorContainerWidth, isFullWidthModeEnabled?: boolean) => any;
|
|
14
|
-
export declare const getTableContainerWidth: (node?: PMNode) => number;
|
|
14
|
+
export declare const getTableContainerWidth: (node?: PMNode, isCommentEditor?: boolean) => number;
|
|
15
15
|
export declare const getTableWidthWithNumberColumn: (node: PMNode, offset: number) => number;
|
package/package.json
CHANGED