@atlaskit/editor-common 78.18.1 → 78.18.2
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 +8 -0
- package/dist/cjs/extensibility/Extension/Lozenge/ExtensionLabel.js +9 -9
- package/dist/cjs/extensibility/Extension/Lozenge/LozengeComponent.js +18 -21
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/extensibility/Extension/Lozenge/ExtensionLabel.js +9 -9
- package/dist/es2019/extensibility/Extension/Lozenge/LozengeComponent.js +17 -20
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/extensibility/Extension/Lozenge/ExtensionLabel.js +9 -9
- package/dist/esm/extensibility/Extension/Lozenge/LozengeComponent.js +18 -21
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/extensibility/Extension/Lozenge/ExtensionLabel.d.ts +2 -3
- package/dist/types/extensibility/Extension/Lozenge/LozengeComponent.d.ts +1 -1
- package/dist/types-ts4.5/extensibility/Extension/Lozenge/ExtensionLabel.d.ts +2 -3
- package/dist/types-ts4.5/extensibility/Extension/Lozenge/LozengeComponent.d.ts +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 78.18.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#81777](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/81777) [`c6d7a5378751`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c6d7a5378751) - Bump adf-schema to 35.7.0
|
|
8
|
+
- [#83037](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83037) [`659c2a11c370`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/659c2a11c370) - [ux] Fix bodied macro copy/delete behavior
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 78.18.1
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -4,13 +4,14 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.
|
|
7
|
+
exports.ExtensionLabel = void 0;
|
|
8
8
|
var _react = require("@emotion/react");
|
|
9
9
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
10
10
|
var _colors = require("@atlaskit/theme/colors");
|
|
11
11
|
/** @jsx jsx */
|
|
12
12
|
|
|
13
|
-
var labelStyles =
|
|
13
|
+
var labelStyles = (0, _react.css)({
|
|
14
|
+
opacity: 0,
|
|
14
15
|
display: 'inline-flex',
|
|
15
16
|
width: 'max-content',
|
|
16
17
|
justifyContent: 'left',
|
|
@@ -22,11 +23,10 @@ var labelStyles = exports.labelStyles = (0, _react.css)({
|
|
|
22
23
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
23
24
|
top: '-17px'
|
|
24
25
|
},
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
color: "var(--ds-text-selected, ".concat(_colors.B400, ")")
|
|
26
|
+
'&.hovered': {
|
|
27
|
+
background: "var(--ds-background-accent-gray-subtle-pressed, ".concat(_colors.N300, ")"),
|
|
28
|
+
color: "var(--ds-text-subtle, ".concat(_colors.N500, ")"),
|
|
29
|
+
opacity: 1
|
|
30
30
|
},
|
|
31
31
|
borderRadius: "var(--ds-border-radius, 3px)",
|
|
32
32
|
lineHeight: 1,
|
|
@@ -40,11 +40,11 @@ var textStyles = (0, _react.css)({
|
|
|
40
40
|
var ExtensionLabel = exports.ExtensionLabel = function ExtensionLabel(_ref) {
|
|
41
41
|
var text = _ref.text,
|
|
42
42
|
extensionName = _ref.extensionName,
|
|
43
|
-
|
|
43
|
+
isNodeHovered = _ref.isNodeHovered,
|
|
44
44
|
customContainerStyles = _ref.customContainerStyles;
|
|
45
45
|
var classNames = (0, _classnames.default)('extension-title', 'extension-label', {
|
|
46
46
|
'inline-extension': extensionName === 'inlineExtension',
|
|
47
|
-
|
|
47
|
+
hovered: isNodeHovered
|
|
48
48
|
});
|
|
49
49
|
return (0, _react.jsx)("div", {
|
|
50
50
|
style: customContainerStyles
|
|
@@ -22,35 +22,32 @@ var LozengeComponent = exports.LozengeComponent = function LozengeComponent(_ref
|
|
|
22
22
|
title = _ref.title,
|
|
23
23
|
params = _ref.params,
|
|
24
24
|
renderImage = _ref.renderImage,
|
|
25
|
-
isNodeSelected = _ref.isNodeSelected,
|
|
26
25
|
showMacroInteractionDesignUpdates = _ref.showMacroInteractionDesignUpdates,
|
|
27
26
|
customContainerStyles = _ref.customContainerStyles,
|
|
28
27
|
isNodeHovered = _ref.isNodeHovered;
|
|
29
28
|
var capitalizedTitle = capitalizeFirstLetter(title);
|
|
30
|
-
if (showMacroInteractionDesignUpdates
|
|
29
|
+
if (showMacroInteractionDesignUpdates) {
|
|
31
30
|
return (0, _react.jsx)(_ExtensionLabel.ExtensionLabel, {
|
|
32
31
|
text: capitalizedTitle,
|
|
33
32
|
extensionName: extensionName,
|
|
34
|
-
|
|
33
|
+
isNodeHovered: isNodeHovered,
|
|
35
34
|
customContainerStyles: customContainerStyles
|
|
36
35
|
});
|
|
37
|
-
} else if (!showMacroInteractionDesignUpdates) {
|
|
38
|
-
var isBlockExtension = extensionName === 'extension';
|
|
39
|
-
return (0, _react.jsx)("div", {
|
|
40
|
-
"data-testid": "lozenge-fallback",
|
|
41
|
-
css: _styles.placeholderFallback
|
|
42
|
-
}, lozengeData && !isBlockExtension ? renderImage(_objectSpread({
|
|
43
|
-
height: ICON_SIZE,
|
|
44
|
-
width: ICON_SIZE
|
|
45
|
-
}, lozengeData)) : (0, _react.jsx)(_file.default, {
|
|
46
|
-
label: title
|
|
47
|
-
}), (0, _react.jsx)("span", {
|
|
48
|
-
className: "extension-title"
|
|
49
|
-
}, capitalizedTitle), params && !isBlockExtension && (0, _react.jsx)("span", {
|
|
50
|
-
css: _styles.placeholderFallbackParams
|
|
51
|
-
}, Object.keys(params).map(function (key) {
|
|
52
|
-
return key && " | ".concat(key, " = ").concat(params[key].value);
|
|
53
|
-
})));
|
|
54
36
|
}
|
|
55
|
-
|
|
37
|
+
var isBlockExtension = extensionName === 'extension';
|
|
38
|
+
return (0, _react.jsx)("div", {
|
|
39
|
+
"data-testid": "lozenge-fallback",
|
|
40
|
+
css: _styles.placeholderFallback
|
|
41
|
+
}, lozengeData && !isBlockExtension ? renderImage(_objectSpread({
|
|
42
|
+
height: ICON_SIZE,
|
|
43
|
+
width: ICON_SIZE
|
|
44
|
+
}, lozengeData)) : (0, _react.jsx)(_file.default, {
|
|
45
|
+
label: title
|
|
46
|
+
}), (0, _react.jsx)("span", {
|
|
47
|
+
className: "extension-title"
|
|
48
|
+
}, capitalizedTitle), params && !isBlockExtension && (0, _react.jsx)("span", {
|
|
49
|
+
css: _styles.placeholderFallbackParams
|
|
50
|
+
}, Object.keys(params).map(function (key) {
|
|
51
|
+
return key && " | ".concat(key, " = ").concat(params[key].value);
|
|
52
|
+
})));
|
|
56
53
|
};
|
|
@@ -16,7 +16,7 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
|
|
|
16
16
|
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; }
|
|
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 = "78.18.
|
|
19
|
+
var packageVersion = "78.18.2";
|
|
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
|
|
@@ -22,7 +22,7 @@ var _templateObject, _templateObject2, _templateObject3;
|
|
|
22
22
|
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); }; }
|
|
23
23
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /** @jsx jsx */
|
|
24
24
|
var packageName = "@atlaskit/editor-common";
|
|
25
|
-
var packageVersion = "78.18.
|
|
25
|
+
var packageVersion = "78.18.2";
|
|
26
26
|
var halfFocusRing = 1;
|
|
27
27
|
var dropOffset = '0, 8';
|
|
28
28
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
import { css, jsx } from '@emotion/react';
|
|
4
4
|
import classnames from 'classnames';
|
|
5
|
-
import {
|
|
6
|
-
|
|
5
|
+
import { N300, N500 } from '@atlaskit/theme/colors';
|
|
6
|
+
const labelStyles = css({
|
|
7
|
+
opacity: 0,
|
|
7
8
|
display: 'inline-flex',
|
|
8
9
|
width: 'max-content',
|
|
9
10
|
justifyContent: 'left',
|
|
@@ -15,11 +16,10 @@ export const labelStyles = css({
|
|
|
15
16
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
16
17
|
top: '-17px'
|
|
17
18
|
},
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
color: `var(--ds-text-selected, ${B400})`
|
|
19
|
+
'&.hovered': {
|
|
20
|
+
background: `var(--ds-background-accent-gray-subtle-pressed, ${N300})`,
|
|
21
|
+
color: `var(--ds-text-subtle, ${N500})`,
|
|
22
|
+
opacity: 1
|
|
23
23
|
},
|
|
24
24
|
borderRadius: "var(--ds-border-radius, 3px)",
|
|
25
25
|
lineHeight: 1,
|
|
@@ -33,12 +33,12 @@ const textStyles = css({
|
|
|
33
33
|
export const ExtensionLabel = ({
|
|
34
34
|
text,
|
|
35
35
|
extensionName,
|
|
36
|
-
|
|
36
|
+
isNodeHovered,
|
|
37
37
|
customContainerStyles
|
|
38
38
|
}) => {
|
|
39
39
|
const classNames = classnames('extension-title', 'extension-label', {
|
|
40
40
|
'inline-extension': extensionName === 'inlineExtension',
|
|
41
|
-
|
|
41
|
+
hovered: isNodeHovered
|
|
42
42
|
});
|
|
43
43
|
return jsx("div", {
|
|
44
44
|
style: customContainerStyles
|
|
@@ -14,35 +14,32 @@ export const LozengeComponent = ({
|
|
|
14
14
|
title,
|
|
15
15
|
params,
|
|
16
16
|
renderImage,
|
|
17
|
-
isNodeSelected,
|
|
18
17
|
showMacroInteractionDesignUpdates,
|
|
19
18
|
customContainerStyles,
|
|
20
19
|
isNodeHovered
|
|
21
20
|
}) => {
|
|
22
21
|
const capitalizedTitle = capitalizeFirstLetter(title);
|
|
23
|
-
if (showMacroInteractionDesignUpdates
|
|
22
|
+
if (showMacroInteractionDesignUpdates) {
|
|
24
23
|
return jsx(ExtensionLabel, {
|
|
25
24
|
text: capitalizedTitle,
|
|
26
25
|
extensionName: extensionName,
|
|
27
|
-
|
|
26
|
+
isNodeHovered: isNodeHovered,
|
|
28
27
|
customContainerStyles: customContainerStyles
|
|
29
28
|
});
|
|
30
|
-
} else if (!showMacroInteractionDesignUpdates) {
|
|
31
|
-
const isBlockExtension = extensionName === 'extension';
|
|
32
|
-
return jsx("div", {
|
|
33
|
-
"data-testid": "lozenge-fallback",
|
|
34
|
-
css: placeholderFallback
|
|
35
|
-
}, lozengeData && !isBlockExtension ? renderImage({
|
|
36
|
-
height: ICON_SIZE,
|
|
37
|
-
width: ICON_SIZE,
|
|
38
|
-
...lozengeData
|
|
39
|
-
}) : jsx(EditorFileIcon, {
|
|
40
|
-
label: title
|
|
41
|
-
}), jsx("span", {
|
|
42
|
-
className: "extension-title"
|
|
43
|
-
}, capitalizedTitle), params && !isBlockExtension && jsx("span", {
|
|
44
|
-
css: placeholderFallbackParams
|
|
45
|
-
}, Object.keys(params).map(key => key && ` | ${key} = ${params[key].value}`)));
|
|
46
29
|
}
|
|
47
|
-
|
|
30
|
+
const isBlockExtension = extensionName === 'extension';
|
|
31
|
+
return jsx("div", {
|
|
32
|
+
"data-testid": "lozenge-fallback",
|
|
33
|
+
css: placeholderFallback
|
|
34
|
+
}, lozengeData && !isBlockExtension ? renderImage({
|
|
35
|
+
height: ICON_SIZE,
|
|
36
|
+
width: ICON_SIZE,
|
|
37
|
+
...lozengeData
|
|
38
|
+
}) : jsx(EditorFileIcon, {
|
|
39
|
+
label: title
|
|
40
|
+
}), jsx("span", {
|
|
41
|
+
className: "extension-title"
|
|
42
|
+
}, capitalizedTitle), params && !isBlockExtension && jsx("span", {
|
|
43
|
+
css: placeholderFallbackParams
|
|
44
|
+
}, Object.keys(params).map(key => key && ` | ${key} = ${params[key].value}`)));
|
|
48
45
|
};
|
|
@@ -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 = "78.18.
|
|
3
|
+
const packageVersion = "78.18.2";
|
|
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
|
|
@@ -7,7 +7,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
|
|
|
7
7
|
import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
|
|
8
8
|
import Layer from '../Layer';
|
|
9
9
|
const packageName = "@atlaskit/editor-common";
|
|
10
|
-
const packageVersion = "78.18.
|
|
10
|
+
const packageVersion = "78.18.2";
|
|
11
11
|
const halfFocusRing = 1;
|
|
12
12
|
const dropOffset = '0, 8';
|
|
13
13
|
class DropList extends Component {
|
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
import { css, jsx } from '@emotion/react';
|
|
4
4
|
import classnames from 'classnames';
|
|
5
|
-
import {
|
|
6
|
-
|
|
5
|
+
import { N300, N500 } from '@atlaskit/theme/colors';
|
|
6
|
+
var labelStyles = css({
|
|
7
|
+
opacity: 0,
|
|
7
8
|
display: 'inline-flex',
|
|
8
9
|
width: 'max-content',
|
|
9
10
|
justifyContent: 'left',
|
|
@@ -15,11 +16,10 @@ export var labelStyles = css({
|
|
|
15
16
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
16
17
|
top: '-17px'
|
|
17
18
|
},
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
color: "var(--ds-text-selected, ".concat(B400, ")")
|
|
19
|
+
'&.hovered': {
|
|
20
|
+
background: "var(--ds-background-accent-gray-subtle-pressed, ".concat(N300, ")"),
|
|
21
|
+
color: "var(--ds-text-subtle, ".concat(N500, ")"),
|
|
22
|
+
opacity: 1
|
|
23
23
|
},
|
|
24
24
|
borderRadius: "var(--ds-border-radius, 3px)",
|
|
25
25
|
lineHeight: 1,
|
|
@@ -33,11 +33,11 @@ var textStyles = css({
|
|
|
33
33
|
export var ExtensionLabel = function ExtensionLabel(_ref) {
|
|
34
34
|
var text = _ref.text,
|
|
35
35
|
extensionName = _ref.extensionName,
|
|
36
|
-
|
|
36
|
+
isNodeHovered = _ref.isNodeHovered,
|
|
37
37
|
customContainerStyles = _ref.customContainerStyles;
|
|
38
38
|
var classNames = classnames('extension-title', 'extension-label', {
|
|
39
39
|
'inline-extension': extensionName === 'inlineExtension',
|
|
40
|
-
|
|
40
|
+
hovered: isNodeHovered
|
|
41
41
|
});
|
|
42
42
|
return jsx("div", {
|
|
43
43
|
style: customContainerStyles
|
|
@@ -17,35 +17,32 @@ export var LozengeComponent = function LozengeComponent(_ref) {
|
|
|
17
17
|
title = _ref.title,
|
|
18
18
|
params = _ref.params,
|
|
19
19
|
renderImage = _ref.renderImage,
|
|
20
|
-
isNodeSelected = _ref.isNodeSelected,
|
|
21
20
|
showMacroInteractionDesignUpdates = _ref.showMacroInteractionDesignUpdates,
|
|
22
21
|
customContainerStyles = _ref.customContainerStyles,
|
|
23
22
|
isNodeHovered = _ref.isNodeHovered;
|
|
24
23
|
var capitalizedTitle = capitalizeFirstLetter(title);
|
|
25
|
-
if (showMacroInteractionDesignUpdates
|
|
24
|
+
if (showMacroInteractionDesignUpdates) {
|
|
26
25
|
return jsx(ExtensionLabel, {
|
|
27
26
|
text: capitalizedTitle,
|
|
28
27
|
extensionName: extensionName,
|
|
29
|
-
|
|
28
|
+
isNodeHovered: isNodeHovered,
|
|
30
29
|
customContainerStyles: customContainerStyles
|
|
31
30
|
});
|
|
32
|
-
} else if (!showMacroInteractionDesignUpdates) {
|
|
33
|
-
var isBlockExtension = extensionName === 'extension';
|
|
34
|
-
return jsx("div", {
|
|
35
|
-
"data-testid": "lozenge-fallback",
|
|
36
|
-
css: placeholderFallback
|
|
37
|
-
}, lozengeData && !isBlockExtension ? renderImage(_objectSpread({
|
|
38
|
-
height: ICON_SIZE,
|
|
39
|
-
width: ICON_SIZE
|
|
40
|
-
}, lozengeData)) : jsx(EditorFileIcon, {
|
|
41
|
-
label: title
|
|
42
|
-
}), jsx("span", {
|
|
43
|
-
className: "extension-title"
|
|
44
|
-
}, capitalizedTitle), params && !isBlockExtension && jsx("span", {
|
|
45
|
-
css: placeholderFallbackParams
|
|
46
|
-
}, Object.keys(params).map(function (key) {
|
|
47
|
-
return key && " | ".concat(key, " = ").concat(params[key].value);
|
|
48
|
-
})));
|
|
49
31
|
}
|
|
50
|
-
|
|
32
|
+
var isBlockExtension = extensionName === 'extension';
|
|
33
|
+
return jsx("div", {
|
|
34
|
+
"data-testid": "lozenge-fallback",
|
|
35
|
+
css: placeholderFallback
|
|
36
|
+
}, lozengeData && !isBlockExtension ? renderImage(_objectSpread({
|
|
37
|
+
height: ICON_SIZE,
|
|
38
|
+
width: ICON_SIZE
|
|
39
|
+
}, lozengeData)) : jsx(EditorFileIcon, {
|
|
40
|
+
label: title
|
|
41
|
+
}), jsx("span", {
|
|
42
|
+
className: "extension-title"
|
|
43
|
+
}, capitalizedTitle), params && !isBlockExtension && jsx("span", {
|
|
44
|
+
css: placeholderFallbackParams
|
|
45
|
+
}, Object.keys(params).map(function (key) {
|
|
46
|
+
return key && " | ".concat(key, " = ").concat(params[key].value);
|
|
47
|
+
})));
|
|
51
48
|
};
|
|
@@ -6,7 +6,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
6
6
|
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) { _defineProperty(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; }
|
|
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 = "78.18.
|
|
9
|
+
var packageVersion = "78.18.2";
|
|
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
|
|
@@ -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 = "78.18.
|
|
20
|
+
var packageVersion = "78.18.2";
|
|
21
21
|
var halfFocusRing = 1;
|
|
22
22
|
var dropOffset = '0, 8';
|
|
23
23
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import type { CSSProperties } from 'react';
|
|
3
3
|
import { jsx } from '@emotion/react';
|
|
4
|
-
export declare const labelStyles: import("@emotion/react").SerializedStyles;
|
|
5
4
|
type ExtensionLabelProps = {
|
|
6
5
|
text: string;
|
|
7
6
|
extensionName: string;
|
|
8
|
-
|
|
7
|
+
isNodeHovered?: boolean;
|
|
9
8
|
customContainerStyles?: CSSProperties;
|
|
10
9
|
};
|
|
11
|
-
export declare const ExtensionLabel: ({ text, extensionName,
|
|
10
|
+
export declare const ExtensionLabel: ({ text, extensionName, isNodeHovered, customContainerStyles, }: ExtensionLabelProps) => jsx.JSX.Element;
|
|
12
11
|
export {};
|
|
@@ -14,5 +14,5 @@ type LozengeComponentProps = {
|
|
|
14
14
|
customContainerStyles?: CSSProperties;
|
|
15
15
|
isNodeHovered?: boolean;
|
|
16
16
|
};
|
|
17
|
-
export declare const LozengeComponent: ({ lozengeData, extensionName, title, params, renderImage,
|
|
17
|
+
export declare const LozengeComponent: ({ lozengeData, extensionName, title, params, renderImage, showMacroInteractionDesignUpdates, customContainerStyles, isNodeHovered, }: LozengeComponentProps) => jsx.JSX.Element;
|
|
18
18
|
export {};
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import type { CSSProperties } from 'react';
|
|
3
3
|
import { jsx } from '@emotion/react';
|
|
4
|
-
export declare const labelStyles: import("@emotion/react").SerializedStyles;
|
|
5
4
|
type ExtensionLabelProps = {
|
|
6
5
|
text: string;
|
|
7
6
|
extensionName: string;
|
|
8
|
-
|
|
7
|
+
isNodeHovered?: boolean;
|
|
9
8
|
customContainerStyles?: CSSProperties;
|
|
10
9
|
};
|
|
11
|
-
export declare const ExtensionLabel: ({ text, extensionName,
|
|
10
|
+
export declare const ExtensionLabel: ({ text, extensionName, isNodeHovered, customContainerStyles, }: ExtensionLabelProps) => jsx.JSX.Element;
|
|
12
11
|
export {};
|
|
@@ -14,5 +14,5 @@ type LozengeComponentProps = {
|
|
|
14
14
|
customContainerStyles?: CSSProperties;
|
|
15
15
|
isNodeHovered?: boolean;
|
|
16
16
|
};
|
|
17
|
-
export declare const LozengeComponent: ({ lozengeData, extensionName, title, params, renderImage,
|
|
17
|
+
export declare const LozengeComponent: ({ lozengeData, extensionName, title, params, renderImage, showMacroInteractionDesignUpdates, customContainerStyles, isNodeHovered, }: LozengeComponentProps) => jsx.JSX.Element;
|
|
18
18
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "78.18.
|
|
3
|
+
"version": "78.18.2",
|
|
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/"
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
},
|
|
95
95
|
"dependencies": {
|
|
96
96
|
"@atlaskit/activity-provider": "^2.4.0",
|
|
97
|
-
"@atlaskit/adf-schema": "^35.
|
|
97
|
+
"@atlaskit/adf-schema": "^35.7.0",
|
|
98
98
|
"@atlaskit/adf-utils": "^19.0.0",
|
|
99
99
|
"@atlaskit/analytics-listeners": "^8.9.0",
|
|
100
100
|
"@atlaskit/analytics-namespaced-context": "^6.9.0",
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
"@atlaskit/button": "^17.7.0",
|
|
104
104
|
"@atlaskit/code": "^15.1.0",
|
|
105
105
|
"@atlaskit/codemod-utils": "^4.2.0",
|
|
106
|
-
"@atlaskit/custom-steps": "^0.0.
|
|
106
|
+
"@atlaskit/custom-steps": "^0.0.16",
|
|
107
107
|
"@atlaskit/editor-json-transformer": "^8.10.0",
|
|
108
108
|
"@atlaskit/editor-palette": "1.5.3",
|
|
109
109
|
"@atlaskit/editor-prosemirror": "3.0.0",
|