@atlaskit/editor-common 103.15.0 → 103.16.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 +16 -0
- package/dist/cjs/extensibility/Extension/Lozenge/ExtensionLabel.js +1 -1
- package/dist/cjs/extensions/messages.js +1 -1
- package/dist/cjs/media-inline/inline-image-wrapper.js +1 -1
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/resizer/Resizer.js +3 -2
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/ui/MediaSingle/index.js +2 -1
- package/dist/es2019/extensibility/Extension/Lozenge/ExtensionLabel.js +1 -1
- package/dist/es2019/extensions/messages.js +1 -1
- package/dist/es2019/media-inline/inline-image-wrapper.js +1 -1
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/resizer/Resizer.js +3 -2
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/ui/MediaSingle/index.js +2 -1
- package/dist/esm/extensibility/Extension/Lozenge/ExtensionLabel.js +1 -1
- package/dist/esm/extensions/messages.js +1 -1
- package/dist/esm/media-inline/inline-image-wrapper.js +1 -1
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/resizer/Resizer.js +3 -2
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/ui/MediaSingle/index.js +2 -1
- package/dist/types/extensions/types/extension-handler.d.ts +2 -0
- package/dist/types-ts4.5/extensions/types/extension-handler.d.ts +2 -0
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 103.16.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#146038](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/146038)
|
|
8
|
+
[`3b0e0fffbbfe7`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3b0e0fffbbfe7) -
|
|
9
|
+
ED-27645 fix wide and full width label is overlapped by content below
|
|
10
|
+
|
|
11
|
+
## 103.16.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- [#145243](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/145243)
|
|
16
|
+
[`7d32c3cc54ceb`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7d32c3cc54ceb) -
|
|
17
|
+
Exposes a new getNodeWithPosByLocalId(localId: string) function in the ExtensionAPI
|
|
18
|
+
|
|
3
19
|
## 103.15.0
|
|
4
20
|
|
|
5
21
|
### Minor Changes
|
|
@@ -151,7 +151,7 @@ var ExtensionLabel = exports.ExtensionLabel = function ExtensionLabel(_ref) {
|
|
|
151
151
|
'hide-icon': isBodiedMacro && !isNodeHovered
|
|
152
152
|
});
|
|
153
153
|
return (
|
|
154
|
-
// eslint-disable-next-line jsx-a11y/no-static-element-interactions, jsx-a11y/click-events-have-key-events
|
|
154
|
+
// eslint-disable-next-line jsx-a11y/no-static-element-interactions, jsx-a11y/click-events-have-key-events, @atlassian/a11y/interactive-element-not-keyboard-focusable
|
|
155
155
|
(0, _react.jsx)("div", {
|
|
156
156
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
157
157
|
css: containerStyles
|
|
@@ -43,7 +43,7 @@ var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
|
|
|
43
43
|
},
|
|
44
44
|
panelLoadingError: {
|
|
45
45
|
id: 'fabric.editor.extensions.config-panel.loading-error.non-final',
|
|
46
|
-
defaultMessage:
|
|
46
|
+
defaultMessage: 'We ran into a bit of trouble. Refresh to try again.',
|
|
47
47
|
description: 'Error message when loading the configuration panel'
|
|
48
48
|
}
|
|
49
49
|
});
|
|
@@ -36,7 +36,7 @@ var InlineImageWrapper = exports.InlineImageWrapper = function InlineImageWrappe
|
|
|
36
36
|
var borderStyleVars = borderSize && borderColor ? (0, _defineProperty2.default)((0, _defineProperty2.default)({}, _styles.INLINE_IMAGE_BORDER_SIZE_CSS_VAR_KEY, borderSize), _styles.INLINE_IMAGE_BORDER_COLOR_CSS_VAR_KEY, (0, _editorPalette.hexToEditorBorderPaletteColor)(borderColor) || borderColor) : {};
|
|
37
37
|
var aspectStyleVars = aspectRatio ? (0, _defineProperty2.default)({}, _styles.INLINE_IMAGE_ASPECT_RATIO_CSS_VAR_KEY, aspectRatio) : {};
|
|
38
38
|
return (
|
|
39
|
-
// eslint-disable-next-line @atlaskit/design-system/prefer-primitives, jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
|
|
39
|
+
// eslint-disable-next-line @atlaskit/design-system/prefer-primitives, jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions, @atlassian/a11y/interactive-element-not-keyboard-focusable
|
|
40
40
|
(0, _react.jsx)("span", (0, _extends2.default)({
|
|
41
41
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
42
42
|
style: _objectSpread(_objectSpread({}, borderStyleVars), aspectStyleVars)
|
|
@@ -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 = "103.
|
|
20
|
+
var packageVersion = "103.16.1";
|
|
21
21
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
22
22
|
// Remove URL as it has UGC
|
|
23
23
|
// Ignored via go/ees007
|
|
@@ -24,13 +24,14 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
24
24
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
25
25
|
var resizerLabelStyles = (0, _primitives.xcss)({
|
|
26
26
|
position: 'absolute',
|
|
27
|
-
bottom: "var(--ds-space-
|
|
27
|
+
bottom: "var(--ds-space-0, 0)",
|
|
28
28
|
width: '100%',
|
|
29
29
|
overflow: 'visible',
|
|
30
30
|
display: 'flex',
|
|
31
31
|
justifyContent: 'center',
|
|
32
32
|
alignItems: 'center',
|
|
33
|
-
height: "var(--ds-space-0, 0px)"
|
|
33
|
+
height: "var(--ds-space-0, 0px)",
|
|
34
|
+
zIndex: 'layer' // 400 same z-index as the floating toolbar
|
|
34
35
|
});
|
|
35
36
|
var SUPPORTED_HANDLES = ['left', 'right'];
|
|
36
37
|
var inheritedCSS = {
|
|
@@ -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 = "103.
|
|
26
|
+
var packageVersion = "103.16.1";
|
|
27
27
|
var halfFocusRing = 1;
|
|
28
28
|
var dropOffset = '0, 8';
|
|
29
29
|
// Ignored via go/ees005
|
|
@@ -114,7 +114,8 @@ function MediaSingle(_ref) {
|
|
|
114
114
|
}, {
|
|
115
115
|
"data-width": mediaSingleWidth,
|
|
116
116
|
"data-width-type": (size === null || size === void 0 ? void 0 : size.widthType) || 'percentage',
|
|
117
|
-
"data-node-type": nodeType
|
|
117
|
+
"data-node-type": nodeType,
|
|
118
|
+
"data-vc": "media-single"
|
|
118
119
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
119
120
|
,
|
|
120
121
|
className: (0, _classnames.default)('rich-media-item mediaSingleView-content-wrap', "image-".concat(layout), className, {
|
|
@@ -144,7 +144,7 @@ export const ExtensionLabel = ({
|
|
|
144
144
|
'hide-icon': isBodiedMacro && !isNodeHovered
|
|
145
145
|
});
|
|
146
146
|
return (
|
|
147
|
-
// eslint-disable-next-line jsx-a11y/no-static-element-interactions, jsx-a11y/click-events-have-key-events
|
|
147
|
+
// eslint-disable-next-line jsx-a11y/no-static-element-interactions, jsx-a11y/click-events-have-key-events, @atlassian/a11y/interactive-element-not-keyboard-focusable
|
|
148
148
|
jsx("div", {
|
|
149
149
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
150
150
|
css: containerStyles
|
|
@@ -37,7 +37,7 @@ export const messages = defineMessages({
|
|
|
37
37
|
},
|
|
38
38
|
panelLoadingError: {
|
|
39
39
|
id: 'fabric.editor.extensions.config-panel.loading-error.non-final',
|
|
40
|
-
defaultMessage:
|
|
40
|
+
defaultMessage: 'We ran into a bit of trouble. Refresh to try again.',
|
|
41
41
|
description: 'Error message when loading the configuration panel'
|
|
42
42
|
}
|
|
43
43
|
});
|
|
@@ -35,7 +35,7 @@ export const InlineImageWrapper = ({
|
|
|
35
35
|
[INLINE_IMAGE_ASPECT_RATIO_CSS_VAR_KEY]: aspectRatio
|
|
36
36
|
} : {};
|
|
37
37
|
return (
|
|
38
|
-
// eslint-disable-next-line @atlaskit/design-system/prefer-primitives, jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
|
|
38
|
+
// eslint-disable-next-line @atlaskit/design-system/prefer-primitives, jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions, @atlassian/a11y/interactive-element-not-keyboard-focusable
|
|
39
39
|
jsx("span", _extends({
|
|
40
40
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
41
41
|
style: {
|
|
@@ -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 = "103.
|
|
4
|
+
const packageVersion = "103.16.1";
|
|
5
5
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
6
6
|
// Remove URL as it has UGC
|
|
7
7
|
// Ignored via go/ees007
|
|
@@ -8,13 +8,14 @@ import Tooltip from '@atlaskit/tooltip';
|
|
|
8
8
|
import { handleWrapperClass, resizerDangerClassName, resizerExtendedZone, resizerHandleClassName, resizerHandleThumbClassName, resizerHandleTrackClassName, resizerHandleZIndex, resizerHoverZoneClassName, resizerItemClassName } from '../styles/shared/resizer';
|
|
9
9
|
const resizerLabelStyles = xcss({
|
|
10
10
|
position: 'absolute',
|
|
11
|
-
bottom: "var(--ds-space-
|
|
11
|
+
bottom: "var(--ds-space-0, 0)",
|
|
12
12
|
width: '100%',
|
|
13
13
|
overflow: 'visible',
|
|
14
14
|
display: 'flex',
|
|
15
15
|
justifyContent: 'center',
|
|
16
16
|
alignItems: 'center',
|
|
17
|
-
height: "var(--ds-space-0, 0px)"
|
|
17
|
+
height: "var(--ds-space-0, 0px)",
|
|
18
|
+
zIndex: 'layer' // 400 same z-index as the floating toolbar
|
|
18
19
|
});
|
|
19
20
|
const SUPPORTED_HANDLES = ['left', 'right'];
|
|
20
21
|
const inheritedCSS = {
|
|
@@ -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 = "103.
|
|
16
|
+
const packageVersion = "103.16.1";
|
|
17
17
|
const halfFocusRing = 1;
|
|
18
18
|
const dropOffset = '0, 8';
|
|
19
19
|
// Ignored via go/ees005
|
|
@@ -99,7 +99,8 @@ export default function MediaSingle({
|
|
|
99
99
|
}, {
|
|
100
100
|
"data-width": mediaSingleWidth,
|
|
101
101
|
"data-width-type": (size === null || size === void 0 ? void 0 : size.widthType) || 'percentage',
|
|
102
|
-
"data-node-type": nodeType
|
|
102
|
+
"data-node-type": nodeType,
|
|
103
|
+
"data-vc": "media-single"
|
|
103
104
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
104
105
|
,
|
|
105
106
|
className: classnames('rich-media-item mediaSingleView-content-wrap', `image-${layout}`, className, {
|
|
@@ -143,7 +143,7 @@ export var ExtensionLabel = function ExtensionLabel(_ref) {
|
|
|
143
143
|
'hide-icon': isBodiedMacro && !isNodeHovered
|
|
144
144
|
});
|
|
145
145
|
return (
|
|
146
|
-
// eslint-disable-next-line jsx-a11y/no-static-element-interactions, jsx-a11y/click-events-have-key-events
|
|
146
|
+
// eslint-disable-next-line jsx-a11y/no-static-element-interactions, jsx-a11y/click-events-have-key-events, @atlassian/a11y/interactive-element-not-keyboard-focusable
|
|
147
147
|
jsx("div", {
|
|
148
148
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
149
149
|
css: containerStyles
|
|
@@ -37,7 +37,7 @@ export var messages = defineMessages({
|
|
|
37
37
|
},
|
|
38
38
|
panelLoadingError: {
|
|
39
39
|
id: 'fabric.editor.extensions.config-panel.loading-error.non-final',
|
|
40
|
-
defaultMessage:
|
|
40
|
+
defaultMessage: 'We ran into a bit of trouble. Refresh to try again.',
|
|
41
41
|
description: 'Error message when loading the configuration panel'
|
|
42
42
|
}
|
|
43
43
|
});
|
|
@@ -33,7 +33,7 @@ export var InlineImageWrapper = function InlineImageWrapper(_ref) {
|
|
|
33
33
|
var borderStyleVars = borderSize && borderColor ? _defineProperty(_defineProperty({}, INLINE_IMAGE_BORDER_SIZE_CSS_VAR_KEY, borderSize), INLINE_IMAGE_BORDER_COLOR_CSS_VAR_KEY, hexToEditorBorderPaletteColor(borderColor) || borderColor) : {};
|
|
34
34
|
var aspectStyleVars = aspectRatio ? _defineProperty({}, INLINE_IMAGE_ASPECT_RATIO_CSS_VAR_KEY, aspectRatio) : {};
|
|
35
35
|
return (
|
|
36
|
-
// eslint-disable-next-line @atlaskit/design-system/prefer-primitives, jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
|
|
36
|
+
// eslint-disable-next-line @atlaskit/design-system/prefer-primitives, jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions, @atlassian/a11y/interactive-element-not-keyboard-focusable
|
|
37
37
|
jsx("span", _extends({
|
|
38
38
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
39
39
|
style: _objectSpread(_objectSpread({}, borderStyleVars), aspectStyleVars)
|
|
@@ -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 = "103.
|
|
10
|
+
var packageVersion = "103.16.1";
|
|
11
11
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
12
12
|
// Remove URL as it has UGC
|
|
13
13
|
// Ignored via go/ees007
|
|
@@ -14,13 +14,14 @@ import Tooltip from '@atlaskit/tooltip';
|
|
|
14
14
|
import { handleWrapperClass, resizerDangerClassName, resizerExtendedZone, resizerHandleClassName, resizerHandleThumbClassName, resizerHandleTrackClassName, resizerHandleZIndex, resizerHoverZoneClassName, resizerItemClassName } from '../styles/shared/resizer';
|
|
15
15
|
var resizerLabelStyles = xcss({
|
|
16
16
|
position: 'absolute',
|
|
17
|
-
bottom: "var(--ds-space-
|
|
17
|
+
bottom: "var(--ds-space-0, 0)",
|
|
18
18
|
width: '100%',
|
|
19
19
|
overflow: 'visible',
|
|
20
20
|
display: 'flex',
|
|
21
21
|
justifyContent: 'center',
|
|
22
22
|
alignItems: 'center',
|
|
23
|
-
height: "var(--ds-space-0, 0px)"
|
|
23
|
+
height: "var(--ds-space-0, 0px)",
|
|
24
|
+
zIndex: 'layer' // 400 same z-index as the floating toolbar
|
|
24
25
|
});
|
|
25
26
|
var SUPPORTED_HANDLES = ['left', 'right'];
|
|
26
27
|
var inheritedCSS = {
|
|
@@ -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 = "103.
|
|
23
|
+
var packageVersion = "103.16.1";
|
|
24
24
|
var halfFocusRing = 1;
|
|
25
25
|
var dropOffset = '0, 8';
|
|
26
26
|
// Ignored via go/ees005
|
|
@@ -106,7 +106,8 @@ export default function MediaSingle(_ref) {
|
|
|
106
106
|
}, {
|
|
107
107
|
"data-width": mediaSingleWidth,
|
|
108
108
|
"data-width-type": (size === null || size === void 0 ? void 0 : size.widthType) || 'percentage',
|
|
109
|
-
"data-node-type": nodeType
|
|
109
|
+
"data-node-type": nodeType,
|
|
110
|
+
"data-vc": "media-single"
|
|
110
111
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
111
112
|
,
|
|
112
113
|
className: classnames('rich-media-item mediaSingleView-content-wrap', "image-".concat(layout), className, {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { ADFEntity } from '@atlaskit/adf-utils/types';
|
|
3
|
+
import type { NodeWithPos } from '@atlaskit/editor-prosemirror/utils';
|
|
3
4
|
import type { Parameters } from './extension-parameters';
|
|
4
5
|
export interface ExtensionParams<T extends Parameters> {
|
|
5
6
|
extensionKey: string;
|
|
@@ -19,6 +20,7 @@ export type TransformAfter<T extends Parameters = Parameters> = (data: any) => P
|
|
|
19
20
|
export type ExtensionAPI<T extends Parameters = Parameters> = {
|
|
20
21
|
editInContextPanel: (transformBefore: TransformBefore<T>, transformAfter: TransformAfter<T>) => void;
|
|
21
22
|
_editInLegacyMacroBrowser: () => void;
|
|
23
|
+
getNodeWithPosByLocalId: (localId: string) => NodeWithPos;
|
|
22
24
|
doc: {
|
|
23
25
|
insertAfter: (localId: string, adf: ADFEntity, options?: {
|
|
24
26
|
allowSelectionToNewNode?: boolean;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { ADFEntity } from '@atlaskit/adf-utils/types';
|
|
3
|
+
import type { NodeWithPos } from '@atlaskit/editor-prosemirror/utils';
|
|
3
4
|
import type { Parameters } from './extension-parameters';
|
|
4
5
|
export interface ExtensionParams<T extends Parameters> {
|
|
5
6
|
extensionKey: string;
|
|
@@ -19,6 +20,7 @@ export type TransformAfter<T extends Parameters = Parameters> = (data: any) => P
|
|
|
19
20
|
export type ExtensionAPI<T extends Parameters = Parameters> = {
|
|
20
21
|
editInContextPanel: (transformBefore: TransformBefore<T>, transformAfter: TransformAfter<T>) => void;
|
|
21
22
|
_editInLegacyMacroBrowser: () => void;
|
|
23
|
+
getNodeWithPosByLocalId: (localId: string) => NodeWithPos;
|
|
22
24
|
doc: {
|
|
23
25
|
insertAfter: (localId: string, adf: ADFEntity, options?: {
|
|
24
26
|
allowSelectionToNewNode?: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "103.
|
|
3
|
+
"version": "103.16.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/"
|
|
@@ -139,7 +139,7 @@
|
|
|
139
139
|
"@atlaskit/emoji": "^69.1.0",
|
|
140
140
|
"@atlaskit/icon": "^25.6.0",
|
|
141
141
|
"@atlaskit/icon-object": "^7.1.0",
|
|
142
|
-
"@atlaskit/link-datasource": "^4.
|
|
142
|
+
"@atlaskit/link-datasource": "^4.7.0",
|
|
143
143
|
"@atlaskit/link-picker": "^3.2.0",
|
|
144
144
|
"@atlaskit/media-card": "^79.2.0",
|
|
145
145
|
"@atlaskit/media-client": "^32.0.0",
|
|
@@ -157,13 +157,13 @@
|
|
|
157
157
|
"@atlaskit/primitives": "^14.4.0",
|
|
158
158
|
"@atlaskit/profilecard": "^23.8.0",
|
|
159
159
|
"@atlaskit/section-message": "^8.2.0",
|
|
160
|
-
"@atlaskit/smart-card": "^36.
|
|
160
|
+
"@atlaskit/smart-card": "^36.10.0",
|
|
161
161
|
"@atlaskit/smart-user-picker": "^8.0.0",
|
|
162
162
|
"@atlaskit/spinner": "^18.0.0",
|
|
163
163
|
"@atlaskit/task-decision": "^19.1.0",
|
|
164
164
|
"@atlaskit/textfield": "^8.0.0",
|
|
165
165
|
"@atlaskit/theme": "^18.0.0",
|
|
166
|
-
"@atlaskit/tmp-editor-statsig": "^4.
|
|
166
|
+
"@atlaskit/tmp-editor-statsig": "^4.14.0",
|
|
167
167
|
"@atlaskit/tokens": "^4.8.0",
|
|
168
168
|
"@atlaskit/tooltip": "^20.0.0",
|
|
169
169
|
"@atlaskit/width-detector": "^5.0.0",
|
|
@@ -201,11 +201,11 @@
|
|
|
201
201
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
202
202
|
},
|
|
203
203
|
"devDependencies": {
|
|
204
|
-
"@af/visual-regression": "
|
|
204
|
+
"@af/visual-regression": "workspace:^",
|
|
205
205
|
"@atlaskit/media-core": "^35.0.0",
|
|
206
206
|
"@atlaskit/media-test-helpers": "^35.0.0",
|
|
207
207
|
"@atlaskit/util-data-test": "^18.0.0",
|
|
208
|
-
"@atlaskit/visual-regression": "
|
|
208
|
+
"@atlaskit/visual-regression": "workspace:^",
|
|
209
209
|
"@testing-library/dom": "^10.1.0",
|
|
210
210
|
"@testing-library/jest-dom": "^6.4.5",
|
|
211
211
|
"@testing-library/react": "^13.4.0",
|