@atlaskit/editor-core 193.11.5 → 193.11.9
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/ui/ContentStyles/extension.js +2 -10
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/ui/ContentStyles/extension.js +5 -17
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/ui/ContentStyles/extension.js +3 -11
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/create-editor/create-preset.d.ts +31 -31
- package/dist/types/presets/default.d.ts +22 -22
- package/dist/types/presets/universal.d.ts +31 -31
- package/dist/types/presets/useUniversalPreset.d.ts +31 -31
- package/dist/types-ts4.5/create-editor/create-preset.d.ts +31 -31
- package/dist/types-ts4.5/presets/default.d.ts +22 -22
- package/dist/types-ts4.5/presets/universal.d.ts +31 -31
- package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +31 -31
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 193.11.9
|
|
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
|
+
## 193.11.8
|
|
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
|
## 193.11.5
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -10,19 +10,11 @@ var _react = require("@emotion/react");
|
|
|
10
10
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
11
11
|
var _colors = require("@atlaskit/theme/colors");
|
|
12
12
|
var _templateObject, _templateObject2, _templateObject3;
|
|
13
|
-
// Bodied extensions have labels that need to be styled differently
|
|
14
|
-
var baseBodiedExtensionLabelStyles = (0, _react.css)({
|
|
15
|
-
borderBottom: 'none',
|
|
16
|
-
// Needs this exact number otherwise there will be a a noticeable gap
|
|
17
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
18
|
-
top: '-19px'
|
|
19
|
-
});
|
|
20
|
-
|
|
21
13
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- Needs manual remediation
|
|
22
|
-
var bodiedExtensionLabelStyles = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n &.danger > span > div > .bodied.extension-label
|
|
14
|
+
var bodiedExtensionLabelStyles = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n // Bodied extensions have labels that need to be styled differently on danger/select due to initially having a border\n &.danger > span > div > .bodied.extension-label,\n &:not(.danger).", "\n > span\n > div\n > .bodied.extension-label {\n border: none;\n }\n"])), _editorSharedStyles.akEditorSelectedNodeClassName);
|
|
23
15
|
|
|
24
16
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- Needs manual remediation
|
|
25
|
-
var extensionLabelStyles = (0, _react.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n &.danger > span > div > .extension-label {\n background-color: ", ";\n color: ", ";\n opacity: 1;\n }\n\n &:not(.danger).", "\n > span\n > div\n > .extension-label {\n background-color: ", ";\n color: ", ";\n opacity: 1;\n }\n\n ", "\n"])), "var(--ds-background-accent-red-subtler, ".concat(_colors.
|
|
17
|
+
var extensionLabelStyles = (0, _react.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n &.danger > span > div > .extension-label {\n background-color: ", ";\n color: ", ";\n opacity: 1;\n }\n\n &:not(.danger).", "\n > span\n > div\n > .extension-label {\n background-color: ", ";\n color: ", ";\n opacity: 1;\n }\n\n ", "\n"])), "var(--ds-background-accent-red-subtler, ".concat(_colors.R50, ")"), "var(--ds-text-danger, ".concat(_colors.R400, ")"), _editorSharedStyles.akEditorSelectedNodeClassName, "var(--ds-background-selected, ".concat(_colors.B50, ")"), "var(--ds-text-selected, ".concat(_colors.B400, ")"), bodiedExtensionLabelStyles);
|
|
26
18
|
var dangerOverlayStyles = (0, _react.css)({
|
|
27
19
|
opacity: 0.3,
|
|
28
20
|
backgroundColor: "var(--ds-background-danger-hovered, ".concat(_editorSharedStyles.akEditorDeleteBackground, ")")
|
|
@@ -1,34 +1,22 @@
|
|
|
1
1
|
import { css } from '@emotion/react';
|
|
2
2
|
import { akEditorDeleteBackground, akEditorDeleteBorder, akEditorSelectedBorderSize, akEditorSelectedNodeClassName, blockNodesVerticalMargin, getSelectionStyles, SelectionStyle } from '@atlaskit/editor-shared-styles';
|
|
3
|
-
import { B400, B50,
|
|
4
|
-
// Bodied extensions have labels that need to be styled differently
|
|
5
|
-
const baseBodiedExtensionLabelStyles = css({
|
|
6
|
-
borderBottom: 'none',
|
|
7
|
-
// Needs this exact number otherwise there will be a a noticeable gap
|
|
8
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
9
|
-
top: '-19px'
|
|
10
|
-
});
|
|
11
|
-
|
|
3
|
+
import { B400, B50, R400, R50 } from '@atlaskit/theme/colors';
|
|
12
4
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- Needs manual remediation
|
|
13
5
|
const bodiedExtensionLabelStyles = css`
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
${baseBodiedExtensionLabelStyles}
|
|
17
|
-
}
|
|
18
|
-
|
|
6
|
+
// Bodied extensions have labels that need to be styled differently on danger/select due to initially having a border
|
|
7
|
+
&.danger > span > div > .bodied.extension-label,
|
|
19
8
|
&:not(.danger).${akEditorSelectedNodeClassName}
|
|
20
9
|
> span
|
|
21
10
|
> div
|
|
22
11
|
> .bodied.extension-label {
|
|
23
|
-
border:
|
|
24
|
-
${baseBodiedExtensionLabelStyles}
|
|
12
|
+
border: none;
|
|
25
13
|
}
|
|
26
14
|
`;
|
|
27
15
|
|
|
28
16
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- Needs manual remediation
|
|
29
17
|
const extensionLabelStyles = css`
|
|
30
18
|
&.danger > span > div > .extension-label {
|
|
31
|
-
background-color: ${`var(--ds-background-accent-red-subtler, ${
|
|
19
|
+
background-color: ${`var(--ds-background-accent-red-subtler, ${R50})`};
|
|
32
20
|
color: ${`var(--ds-text-danger, ${R400})`};
|
|
33
21
|
opacity: 1;
|
|
34
22
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "193.11.
|
|
2
|
+
export const version = "193.11.9";
|
|
@@ -2,20 +2,12 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
|
|
|
2
2
|
var _templateObject, _templateObject2, _templateObject3;
|
|
3
3
|
import { css } from '@emotion/react';
|
|
4
4
|
import { akEditorDeleteBackground, akEditorDeleteBorder, akEditorSelectedBorderSize, akEditorSelectedNodeClassName, blockNodesVerticalMargin, getSelectionStyles, SelectionStyle } from '@atlaskit/editor-shared-styles';
|
|
5
|
-
import { B400, B50,
|
|
6
|
-
// Bodied extensions have labels that need to be styled differently
|
|
7
|
-
var baseBodiedExtensionLabelStyles = css({
|
|
8
|
-
borderBottom: 'none',
|
|
9
|
-
// Needs this exact number otherwise there will be a a noticeable gap
|
|
10
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
11
|
-
top: '-19px'
|
|
12
|
-
});
|
|
13
|
-
|
|
5
|
+
import { B400, B50, R400, R50 } from '@atlaskit/theme/colors';
|
|
14
6
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- Needs manual remediation
|
|
15
|
-
var bodiedExtensionLabelStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n &.danger > span > div > .bodied.extension-label
|
|
7
|
+
var bodiedExtensionLabelStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n // Bodied extensions have labels that need to be styled differently on danger/select due to initially having a border\n &.danger > span > div > .bodied.extension-label,\n &:not(.danger).", "\n > span\n > div\n > .bodied.extension-label {\n border: none;\n }\n"])), akEditorSelectedNodeClassName);
|
|
16
8
|
|
|
17
9
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- Needs manual remediation
|
|
18
|
-
var extensionLabelStyles = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n &.danger > span > div > .extension-label {\n background-color: ", ";\n color: ", ";\n opacity: 1;\n }\n\n &:not(.danger).", "\n > span\n > div\n > .extension-label {\n background-color: ", ";\n color: ", ";\n opacity: 1;\n }\n\n ", "\n"])), "var(--ds-background-accent-red-subtler, ".concat(
|
|
10
|
+
var extensionLabelStyles = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n &.danger > span > div > .extension-label {\n background-color: ", ";\n color: ", ";\n opacity: 1;\n }\n\n &:not(.danger).", "\n > span\n > div\n > .extension-label {\n background-color: ", ";\n color: ", ";\n opacity: 1;\n }\n\n ", "\n"])), "var(--ds-background-accent-red-subtler, ".concat(R50, ")"), "var(--ds-text-danger, ".concat(R400, ")"), akEditorSelectedNodeClassName, "var(--ds-background-selected, ".concat(B50, ")"), "var(--ds-text-selected, ".concat(B400, ")"), bodiedExtensionLabelStyles);
|
|
19
11
|
var dangerOverlayStyles = css({
|
|
20
12
|
opacity: 0.3,
|
|
21
13
|
backgroundColor: "var(--ds-background-danger-hovered, ".concat(akEditorDeleteBackground, ")")
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "193.11.
|
|
2
|
+
export var version = "193.11.9";
|