@atlaskit/editor-common 78.33.0 → 78.33.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 +12 -0
- package/dist/cjs/extensibility/Extension/Lozenge/ExtensionLabel.js +9 -7
- 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 +10 -8
- 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 +10 -8
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 78.33.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#93874](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/93874) [`ee61ce6c1a65`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/ee61ce6c1a65) - Updates fallback tokens and adds VR tests for new macro updates
|
|
8
|
+
|
|
9
|
+
## 78.33.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#94190](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/94190) [`a630077ab3ca`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a630077ab3ca) - [ux] Removes outline from bodied outline borders for new macro design
|
|
14
|
+
|
|
3
15
|
## 78.33.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
|
@@ -17,9 +17,9 @@ var labelStyles = (0, _react2.css)({
|
|
|
17
17
|
width: 'max-content',
|
|
18
18
|
justifyContent: 'left',
|
|
19
19
|
position: 'absolute',
|
|
20
|
-
// Unfortunately, these need to be these exact numbers - otherwise there will be a gap/
|
|
20
|
+
// Unfortunately, these need to be these exact numbers - otherwise there will be a noticeable gap/overlap
|
|
21
21
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
22
|
-
top: '-
|
|
22
|
+
top: '-19px',
|
|
23
23
|
'&.inline': {
|
|
24
24
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
25
25
|
top: '-17px',
|
|
@@ -27,7 +27,7 @@ var labelStyles = (0, _react2.css)({
|
|
|
27
27
|
},
|
|
28
28
|
'&.show-label': {
|
|
29
29
|
cursor: 'pointer',
|
|
30
|
-
background: "var(--ds-background-accent-gray-subtle-pressed, ".concat(_colors.
|
|
30
|
+
background: "var(--ds-background-accent-gray-subtle-pressed, ".concat(_colors.N40, ")"),
|
|
31
31
|
color: "var(--ds-text-subtle, ".concat(_colors.N500, ")"),
|
|
32
32
|
opacity: 1
|
|
33
33
|
},
|
|
@@ -42,9 +42,11 @@ var labelStyles = (0, _react2.css)({
|
|
|
42
42
|
background: "var(--ds-surface, ".concat(_colors.N0, ")")
|
|
43
43
|
},
|
|
44
44
|
'&.bodied-border': {
|
|
45
|
-
border: "1px solid ".concat("var(--ds-border, ".concat(_colors.N30, ")"))
|
|
46
|
-
|
|
47
|
-
|
|
45
|
+
border: "1px solid ".concat("var(--ds-border, ".concat(_colors.N30, ")"))
|
|
46
|
+
},
|
|
47
|
+
// to account for bodied having borders now - adding this to help with less conditional styling
|
|
48
|
+
border: '1px solid transparent',
|
|
49
|
+
borderBottom: 'none'
|
|
48
50
|
});
|
|
49
51
|
var textStyles = (0, _react2.css)({
|
|
50
52
|
fontSize: '14px',
|
|
@@ -63,7 +65,7 @@ var ExtensionLabel = exports.ExtensionLabel = function ExtensionLabel(_ref) {
|
|
|
63
65
|
nested: isNodeNested,
|
|
64
66
|
inline: extensionName === 'inlineExtension',
|
|
65
67
|
bodied: isBodiedMacro,
|
|
66
|
-
'bodied-border': isBodiedMacro,
|
|
68
|
+
'bodied-border': isBodiedMacro && !isNodeHovered,
|
|
67
69
|
'bodied-background': isBodiedMacro && !isNodeHovered,
|
|
68
70
|
'show-label': isNodeHovered || isBodiedMacro
|
|
69
71
|
});
|
|
@@ -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.33.
|
|
19
|
+
var packageVersion = "78.33.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
|
|
@@ -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 */
|
|
22
22
|
var packageName = "@atlaskit/editor-common";
|
|
23
|
-
var packageVersion = "78.33.
|
|
23
|
+
var packageVersion = "78.33.2";
|
|
24
24
|
var halfFocusRing = 1;
|
|
25
25
|
var dropOffset = '0, 8';
|
|
26
26
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
import { useCallback } from 'react';
|
|
3
3
|
import { css, jsx } from '@emotion/react';
|
|
4
4
|
import classnames from 'classnames';
|
|
5
|
-
import { N0, N30,
|
|
5
|
+
import { N0, N30, N40, N500 } from '@atlaskit/theme/colors';
|
|
6
6
|
const labelStyles = css({
|
|
7
7
|
opacity: 0,
|
|
8
8
|
display: 'inline-flex',
|
|
9
9
|
width: 'max-content',
|
|
10
10
|
justifyContent: 'left',
|
|
11
11
|
position: 'absolute',
|
|
12
|
-
// Unfortunately, these need to be these exact numbers - otherwise there will be a gap/
|
|
12
|
+
// Unfortunately, these need to be these exact numbers - otherwise there will be a noticeable gap/overlap
|
|
13
13
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
14
|
-
top: '-
|
|
14
|
+
top: '-19px',
|
|
15
15
|
'&.inline': {
|
|
16
16
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
17
17
|
top: '-17px',
|
|
@@ -19,7 +19,7 @@ const labelStyles = css({
|
|
|
19
19
|
},
|
|
20
20
|
'&.show-label': {
|
|
21
21
|
cursor: 'pointer',
|
|
22
|
-
background: `var(--ds-background-accent-gray-subtle-pressed, ${
|
|
22
|
+
background: `var(--ds-background-accent-gray-subtle-pressed, ${N40})`,
|
|
23
23
|
color: `var(--ds-text-subtle, ${N500})`,
|
|
24
24
|
opacity: 1
|
|
25
25
|
},
|
|
@@ -34,9 +34,11 @@ const labelStyles = css({
|
|
|
34
34
|
background: `var(--ds-surface, ${N0})`
|
|
35
35
|
},
|
|
36
36
|
'&.bodied-border': {
|
|
37
|
-
border: `1px solid ${`var(--ds-border, ${N30})`}
|
|
38
|
-
|
|
39
|
-
|
|
37
|
+
border: `1px solid ${`var(--ds-border, ${N30})`}`
|
|
38
|
+
},
|
|
39
|
+
// to account for bodied having borders now - adding this to help with less conditional styling
|
|
40
|
+
border: '1px solid transparent',
|
|
41
|
+
borderBottom: 'none'
|
|
40
42
|
});
|
|
41
43
|
const textStyles = css({
|
|
42
44
|
fontSize: '14px',
|
|
@@ -56,7 +58,7 @@ export const ExtensionLabel = ({
|
|
|
56
58
|
nested: isNodeNested,
|
|
57
59
|
inline: extensionName === 'inlineExtension',
|
|
58
60
|
bodied: isBodiedMacro,
|
|
59
|
-
'bodied-border': isBodiedMacro,
|
|
61
|
+
'bodied-border': isBodiedMacro && !isNodeHovered,
|
|
60
62
|
'bodied-background': isBodiedMacro && !isNodeHovered,
|
|
61
63
|
'show-label': isNodeHovered || isBodiedMacro
|
|
62
64
|
});
|
|
@@ -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.33.
|
|
3
|
+
const packageVersion = "78.33.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.33.
|
|
10
|
+
const packageVersion = "78.33.2";
|
|
11
11
|
const halfFocusRing = 1;
|
|
12
12
|
const dropOffset = '0, 8';
|
|
13
13
|
class DropList extends Component {
|
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
import { useCallback } from 'react';
|
|
3
3
|
import { css, jsx } from '@emotion/react';
|
|
4
4
|
import classnames from 'classnames';
|
|
5
|
-
import { N0, N30,
|
|
5
|
+
import { N0, N30, N40, N500 } from '@atlaskit/theme/colors';
|
|
6
6
|
var labelStyles = css({
|
|
7
7
|
opacity: 0,
|
|
8
8
|
display: 'inline-flex',
|
|
9
9
|
width: 'max-content',
|
|
10
10
|
justifyContent: 'left',
|
|
11
11
|
position: 'absolute',
|
|
12
|
-
// Unfortunately, these need to be these exact numbers - otherwise there will be a gap/
|
|
12
|
+
// Unfortunately, these need to be these exact numbers - otherwise there will be a noticeable gap/overlap
|
|
13
13
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
14
|
-
top: '-
|
|
14
|
+
top: '-19px',
|
|
15
15
|
'&.inline': {
|
|
16
16
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
17
17
|
top: '-17px',
|
|
@@ -19,7 +19,7 @@ var labelStyles = css({
|
|
|
19
19
|
},
|
|
20
20
|
'&.show-label': {
|
|
21
21
|
cursor: 'pointer',
|
|
22
|
-
background: "var(--ds-background-accent-gray-subtle-pressed, ".concat(
|
|
22
|
+
background: "var(--ds-background-accent-gray-subtle-pressed, ".concat(N40, ")"),
|
|
23
23
|
color: "var(--ds-text-subtle, ".concat(N500, ")"),
|
|
24
24
|
opacity: 1
|
|
25
25
|
},
|
|
@@ -34,9 +34,11 @@ var labelStyles = css({
|
|
|
34
34
|
background: "var(--ds-surface, ".concat(N0, ")")
|
|
35
35
|
},
|
|
36
36
|
'&.bodied-border': {
|
|
37
|
-
border: "1px solid ".concat("var(--ds-border, ".concat(N30, ")"))
|
|
38
|
-
|
|
39
|
-
|
|
37
|
+
border: "1px solid ".concat("var(--ds-border, ".concat(N30, ")"))
|
|
38
|
+
},
|
|
39
|
+
// to account for bodied having borders now - adding this to help with less conditional styling
|
|
40
|
+
border: '1px solid transparent',
|
|
41
|
+
borderBottom: 'none'
|
|
40
42
|
});
|
|
41
43
|
var textStyles = css({
|
|
42
44
|
fontSize: '14px',
|
|
@@ -55,7 +57,7 @@ export var ExtensionLabel = function ExtensionLabel(_ref) {
|
|
|
55
57
|
nested: isNodeNested,
|
|
56
58
|
inline: extensionName === 'inlineExtension',
|
|
57
59
|
bodied: isBodiedMacro,
|
|
58
|
-
'bodied-border': isBodiedMacro,
|
|
60
|
+
'bodied-border': isBodiedMacro && !isNodeHovered,
|
|
59
61
|
'bodied-background': isBodiedMacro && !isNodeHovered,
|
|
60
62
|
'show-label': isNodeHovered || isBodiedMacro
|
|
61
63
|
});
|
|
@@ -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.33.
|
|
9
|
+
var packageVersion = "78.33.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
|
|
@@ -15,7 +15,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
|
|
|
15
15
|
import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
|
|
16
16
|
import Layer from '../Layer';
|
|
17
17
|
var packageName = "@atlaskit/editor-common";
|
|
18
|
-
var packageVersion = "78.33.
|
|
18
|
+
var packageVersion = "78.33.2";
|
|
19
19
|
var halfFocusRing = 1;
|
|
20
20
|
var dropOffset = '0, 8';
|
|
21
21
|
var DropList = /*#__PURE__*/function (_Component) {
|
package/package.json
CHANGED